Vulnerabilities > CVE-2006-5114 - Cross-Site Scripting vulnerability in SAP Internet Transaction Server 6.1/6.2

047910
CVSS 6.8 - MEDIUM
Attack vector
NETWORK
Attack complexity
MEDIUM
Privileges required
NONE
Confidentiality impact
PARTIAL
Integrity impact
PARTIAL
Availability impact
PARTIAL
network
sap
nessus
exploit available

Summary

Multiple cross-site scripting (XSS) vulnerabilities in wgate in SAP Internet Transaction Server (ITS) 6.1 and 6.2 allow remote attackers to inject arbitrary web script or HTML via the (1) ~urlmime or (2) ~command parameter, different vectors than CVE-2003-0749.

Vulnerable Configurations

Part Description Count
Application
Sap
2

Exploit-Db

descriptionSAP Internet Transaction Server 6.10/6.20 Cross-Site Scripting Vulnerability. CVE-2006-5114. Remote exploits for multiple platform
idEDB-ID:28725
last seen2016-02-03
modified2006-09-28
published2006-09-28
reporterILION Research
sourcehttps://www.exploit-db.com/download/28725/
titleSAP Internet Transaction Server 6.10/6.20 - Cross-Site Scripting Vulnerability

Nessus

NASL familyCGI abuses : XSS
NASL idSAP_ITS_URLMIME_XSS.NASL
descriptionThe remote web server fails to sanitize the contents of the
last seen2020-06-01
modified2020-06-02
plugin id22465
published2006-09-28
reporterThis script is Copyright (C) 2006-2018 Tenable Network Security, Inc.
sourcehttps://www.tenable.com/plugins/nessus/22465
titleSAP Internet Transaction Server wgate Multiple Parameter XSS
code
#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(22465);
  script_version("1.26");
  script_cvs_date("Date: 2018/11/15 20:50:20");

  script_cve_id("CVE-2006-5114");
  script_bugtraq_id(20244);

  script_name(english:"SAP Internet Transaction Server wgate Multiple Parameter XSS");
  script_summary(english:"Checks for an XSS flaw in SAP Internet Transaction Server");

  script_set_attribute(attribute:"synopsis", value:
"The remote web server contains a CGI script that is vulnerable to a
cross-site scripting attack.");
  script_set_attribute(attribute:"description", value:
"The remote web server fails to sanitize the contents of the 'urlmime'
parameter to the '/scripts/wgate' script before using it to generate
dynamic web content.  An unauthenticated, remote attacker may be able to
leverage this issue to inject arbitrary HTML and script code into a
user's browser to be evaluated within the security context of the
affected website.");
  script_set_attribute(attribute:"see_also", value:"https://seclists.org/bugtraq/2006/Sep/468");
  script_set_attribute(attribute:"solution", value:"Unknown at this time.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P");
  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:"2006/09/29");
  script_set_attribute(attribute:"plugin_publication_date", value:"2006/09/28");

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

  script_category(ACT_ATTACK);
  script_family(english:"CGI abuses : XSS");

  script_copyright(english:"This script is Copyright (C) 2006-2018 Tenable Network Security, Inc.");

  script_dependencies("http_version.nasl", "cross_site_scripting.nasl");
  script_exclude_keys("Settings/disable_cgi_scanning");
  script_require_ports("Services/www", 80);

  exit(0);
}

include("global_settings.inc");
include("misc_func.inc");
include("http.inc");
include("url_func.inc");

port = get_http_port(default:80);
if (get_kb_item("www/"+port+"/generic_xss")) exit(0, "The web server on port "+port+" is vulnerable to cross-site scripting");

# Generate a request to exploit the flaw.
xss = string('"><script>alert("', SCRIPT_NAME, '")</script><img src="');
w = http_send_recv3(method:"GET",
  item:string("/scripts/wgate/!?~urlmime=", urlencode(str:xss)), 
  port:port
);

if (isnull(w)) exit(1, "The web server on port "+port+ " did not answer");
res = w[2];

# There's a problem if...
if (
  # it's SAP ITS and...
  "SAP Internet Transaction Server" >< res &&
  # we see our exploit
  (
    string('<td background="', xss) >< res ||
    string('><img src="', xss) >< res ||
    # nb: this vector requires a minor tweak in the published exploit
    #     to actually pop up an alert.
    string('language="JavaScript1.2" src=', "'", xss) >< res
  )
)
{
 security_warning(port);
 set_kb_item(name: 'www/'+port+'/XSS', value: TRUE);
}