The installed version of GForge is vulnerable to cross-site scripting (XSS) due to improper sanitization of user-supplied input in the 'helpname' parameter
Reporter | Title | Published | Views | Family All 11 |
---|---|---|---|---|
![]() | Debian DSA-1937-1 : gforge - insufficient input sanitising | 24 Feb 201000:00 | – | nessus |
![]() | Debian: Security Advisory (DSA-1937-1) | 23 Nov 200900:00 | – | openvas |
![]() | Debian Security Advisory DSA 1937-1 (gforge) | 23 Nov 200900:00 | – | openvas |
![]() | [SECURITY] [DSA 1937-1] New gforge packages fix cross-site scripting | 21 Nov 200905:30 | – | debian |
![]() | Cross site scripting | 24 Nov 200917:30 | – | prion |
![]() | CVE-2009-3303 | 24 Nov 200917:30 | – | cve |
![]() | CVE-2009-3303 | 24 Nov 200917:30 | – | nvd |
![]() | CVE-2009-3303 | 24 Nov 200900:00 | – | ubuntucve |
![]() | CVE-2009-3303 | 24 Nov 200917:00 | – | cvelist |
![]() | [SECURITY] [DSA 1937-1] New gforge packages fix cross-site scripting | 25 Nov 200900:00 | – | securityvulns |
#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#
include('deprecated_nasl_level.inc');
include('compat.inc');
if (description)
{
script_id(42964);
script_version("1.16");
script_set_attribute(attribute:"plugin_modification_date", value:"2022/04/11");
script_cve_id("CVE-2009-3303");
script_bugtraq_id(37088);
script_xref(name:"SECUNIA", value:"37450");
script_name(english:"GForge help/tracker.php helpname Parameter XSS");
script_set_attribute(attribute:"synopsis", value:
"The remote web server hosts an application that is prone to a cross-
site scripting attack.");
script_set_attribute(attribute:"description", value:
"The installed version of GForge fails to sanitize user-supplied input
to the 'helpname' parameter in the 'help/tracker.php' script before
using it to generate dynamic HTML content.
An unauthenticated, remote attacker may be able to leverage this issue
to inject arbitrary HTML or script code into a user's browser to be
executed within the security context of the affected site.");
script_set_attribute(attribute:"see_also", value:"https://www.debian.org/security/2009/dsa-1937");
script_set_attribute(attribute:"see_also", value:"https://seclists.org/fulldisclosure/2009/Nov/237");
script_set_attribute(attribute:"solution", value:
"If using GForge on Debian, refer to Debian Security Advisory for patches.
Otherwise, contact the vendor for a solution.");
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(79);
script_set_attribute(attribute:"vuln_publication_date", value:"2009/11/21");
script_set_attribute(attribute:"patch_publication_date", value:"2009/11/21");
script_set_attribute(attribute:"plugin_publication_date", value:"2009/12/01");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_set_attribute(attribute:"cpe", value:"cpe:/a:gforge:gforge");
script_set_attribute(attribute:"thorough_tests", value:"true");
script_end_attributes();
script_category(ACT_ATTACK);
script_family(english:"CGI abuses : XSS");
script_copyright(english:"This script is Copyright (C) 2009-2022 Tenable Network Security, Inc.");
script_dependencies("gforge_detect.nasl");
script_require_keys("www/gforge");
script_exclude_keys("Settings/disable_cgi_scanning");
script_require_ports("Services/www", 80);
exit(0);
}
include("audit.inc");
include("global_settings.inc");
include("misc_func.inc");
include("http.inc");
include("url_func.inc");
include("webapp_func.inc");
port = get_http_port(default:80);
if (!can_host_php(port:port)) exit(0, "The web server on port "+port+" does not support PHP scripts.");
install = get_install_from_kb(appname:'gforge', port:port);
if (isnull(install)) exit(0, "The 'www/"+port+"/gforge' KB item is missing.");
dir = install['dir'];
# Try to exploit the issue.
exploit = '<script>alert(' + "'" + SCRIPT_NAME + "'" + ')</script>';
vuln = test_cgi_xss(
port : port,
cgi : "/help/tracker.php",
dirs : make_list(dir),
qs : "helpname="+exploit,
pass_str : 'UNKNOWN HELP REQUEST:'+exploit,
pass2_re : "<(title|TITLE)>Tracker Help - <script>alert"
);
if (!vuln)
{
install_url = build_url(qs:install['dir'] + '/', port:port);
exit(0, "The GForge install at " + install_url + " is not affected.");
}
Transform Your Security Services
Elevate your offerings with Vulners' advanced Vulnerability Intelligence. Contact us for a demo and discover the difference comprehensive, actionable intelligence can make in your security strategy.
Book a live demo