Vulnerabilities > CVE-2005-0458 - Cross-Site Scripting vulnerability in Oscommerce 2.2Ms2

047910
CVSS 4.3 - MEDIUM
Attack vector
NETWORK
Attack complexity
MEDIUM
Privileges required
NONE
Confidentiality impact
NONE
Integrity impact
PARTIAL
Availability impact
NONE
network
oscommerce
nessus

Summary

Cross-site scripting (XSS) vulnerability in contact_us.php in osCommerce 2.2-MS2 allows remote attackers to inject arbitrary web script or HTML via the enquiry parameter.

Vulnerable Configurations

Part Description Count
Application
Oscommerce
1

Nessus

NASL familyCGI abuses : XSS
NASL idOSCOMMERCE_CONTACT_XSS.NASL
descriptionThe installed version of OSCommerce is vulnerable to a cross-site scripting (XSS) attack. An attacker, exploiting this flaw, would need to be able to coerce an unsuspecting user into visiting a malicious website. Upon successful exploitation, the attacker would potentially be able to steal credentials or execute browser-side code.
last seen2020-06-01
modified2020-06-02
plugin id16476
published2005-02-16
reporterThis script is Copyright (C) 2005-2018 Tenable Network Security, Inc.
sourcehttps://www.tenable.com/plugins/nessus/16476
titleosCommerce contact_us.php enquiry Parameter XSS
code
#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

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

 script_cve_id("CVE-2005-0458");
 script_bugtraq_id(12568);

 script_name(english:"osCommerce contact_us.php enquiry Parameter XSS");
 script_summary(english:"Determines the presence of OSCommerce");

 script_set_attribute(attribute:"synopsis", value:
"The remote host has a PHP script that is affected by a cross-site
scripting vulnerability." );
 script_set_attribute(attribute:"description", value:
"The installed version of OSCommerce is vulnerable to a cross-site
scripting (XSS) attack.  An attacker, exploiting this flaw, would need
to be able to coerce an unsuspecting user into visiting a malicious
website.  Upon successful exploitation, the attacker would potentially
be able to steal credentials or execute browser-side code." );
 script_set_attribute(attribute:"solution", value:"Unknown at this time.");
 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:"2005/02/16");
 script_set_attribute(attribute:"plugin_publication_date", value:"2005/02/16");

 script_set_attribute(attribute:"plugin_type", value:"remote");
 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("oscommerce_detect.nasl", "cross_site_scripting.nasl");
 script_require_ports("Services/www", 80);
 script_exclude_keys("Settings/disable_cgi_scanning");
 script_require_keys("www/oscommerce");
 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);
if (!can_host_php(port:port)) exit(0, "The web server on port "+port+" does not support PHP scripts.");
if (get_kb_item("www/"+port+"/generic_xss")) exit(0, "The web server itself is prone to XSS attacks.");

# Test an install.
install = get_install_from_kb(appname:'oscommerce', port:port);
if (isnull(install)) exit(0, "osCommerce wasn't detected on port "+port+".");
dir = install['dir'];


test_cgi_xss(port: port, cgi: "/contact_us.php", dirs:make_list(dir),
 pass_str: "<script>alert(document.cookie)</script>",
 qs: "&name=1&email=1&enquiry=</textarea><script>alert(document.cookie);</script>");