Vulnerabilities > CVE-2004-2574 - Unspecified vulnerability in PHPgroupware 0.9.16.000/0.9.16.002/0.9.16.003

047910
CVSS 0.0 - NONE
Attack vector
UNKNOWN
Attack complexity
UNKNOWN
Privileges required
UNKNOWN
Confidentiality impact
UNKNOWN
Integrity impact
UNKNOWN
Availability impact
UNKNOWN
phpgroupware
nessus
exploit available

Summary

Cross-site scripting (XSS) vulnerability in index.php in phpGroupWare 0.9.14.005 and earlier allows remote attackers to inject arbitrary web script or HTML via the date parameter in a calendar.uicalendar.planner menuaction.

Exploit-Db

descriptionPHPGroupWare 0.9.x Index.PHP HTML Injection Vulnerability. CVE-2004-2574. Webapps exploit for php platform
idEDB-ID:25044
last seen2016-02-03
modified2004-01-27
published2004-01-27
reporterCedric Cochin
sourcehttps://www.exploit-db.com/download/25044/
titlePHPGroupWare 0.9.x Index.PHP HTML Injection Vulnerability

Nessus

NASL familyCGI abuses : XSS
NASL idPHPGROUPWARE_HTML_INJECTION2.NASL
descriptionThe version of PhpGroupWare on the remote host is reportedly affected by HTML injection vulnerabilities that present themselves due to a lack of sufficient input validation performed on form fields used by PhpGroupWare modules. A malicious attacker may exploit these issues to inject arbitrary HTML and script code using these form fields that then may be incorporated into dynamically-generated web content.
last seen2020-06-01
modified2020-06-02
plugin id16138
published2005-01-12
reporterThis script is Copyright (C) 2005-2018 Tenable Network Security, Inc.
sourcehttps://www.tenable.com/plugins/nessus/16138
titlephpGroupWare index.php Calendar Date XSS
code
#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(16138);
  script_version("1.18");
  script_cvs_date("Date: 2018/07/24 18:56:11");

  script_cve_id("CVE-2004-2574");
  script_bugtraq_id(12082);

  script_name(english:"phpGroupWare index.php Calendar Date XSS");
  script_summary(english:"Checks for PhpGroupWare version");

  script_set_attribute(attribute:"synopsis", value:
"The remote web server contains a PHP application that is affected by
several cross-site scripting vulnerabilities.");
  script_set_attribute(attribute:"description", value:
"The version of PhpGroupWare on the remote host is reportedly affected
by HTML injection vulnerabilities that present themselves due to a
lack of sufficient input validation performed on form fields used by
PhpGroupWare modules.

A malicious attacker may exploit these issues to inject arbitrary HTML
and script code using these form fields that then may be incorporated
into dynamically-generated web content.");
  script_set_attribute(attribute:"see_also", value:"https://savannah.gnu.org/bugs/?func=detailitem&item_id=7478");
  script_set_attribute(attribute:"solution", value:"Update to version 0.9.16 RC3 or later.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:N/I:P/A:N");
  script_set_cvss_temporal_vector("CVSS2#E:H/RL:OF/RC:C");
  script_set_attribute(attribute:"exploitability_ease", value:"No exploit is required");
  script_set_attribute(attribute:"exploit_available", value:"false");
  script_cwe_id(20, 74, 79, 442, 629, 711, 712, 722, 725, 750, 751, 800, 801, 809, 811, 864, 900, 928, 931, 990);

  script_set_attribute(attribute:"vuln_publication_date", value:"2004/01/27");
  script_set_attribute(attribute:"plugin_publication_date", value:"2005/01/12");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:phpgroupware:phpgroupware");
  script_end_attributes();

  script_category(ACT_ATTACK);

  script_copyright(english:"This script is Copyright (C) 2005-2018 Tenable Network Security, Inc.");
  script_family(english:"CGI abuses : XSS");

  script_dependencies("phpgroupware_detect.nasl");
  script_exclude_keys("Settings/disable_cgi_scanning");
  script_require_keys("www/PHP", "www/phpGroupWare");
  script_require_ports("Services/www", 80);

  exit(0);
}


include("audit.inc");
include("global_settings.inc");
include("misc_func.inc");
include("http.inc");
include("webapp_func.inc");

port = get_http_port(default:80, php:TRUE);

install = get_install_from_kb(appname:"phpGroupWare", port:port, exit_on_fail:TRUE);
dir = install['dir'];

url = dir + "/phpsysinfo/inc/hook_admin.inc.php";
res = http_send_recv3(method: "GET", item:url, port:port, exit_on_fail:TRUE);

if (egrep(pattern:".*Fatal error.* in <b>/.*", string:res[2]))
{
  security_warning(port);
  set_kb_item(name: 'www/'+port+'/XSS', value: TRUE);
  exit(0);
}
else audit(AUDIT_WEB_APP_NOT_AFFECTED, "phpGroupWare", build_url(qs:dir, port:port));