HTTP Header Injection, CWE-113, oascentral.wjla.com

CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Response Splitting')

Report generated by CloudScan Vulnerability Crawler at Sun Feb 27 16:15:40 CST 2011.


The DORK Report

Loading

1. HTTP header injection

1.1. http://oascentral.wjla.com/RealMedia/ads/adstream.cap [c parameter]

1.2. http://oascentral.wjla.com/RealMedia/ads/adstream.cap [dv parameter]

2. Cookie without HttpOnly flag set



1. HTTP header injection  next
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://oascentral.wjla.com/RealMedia/ads/adstream.cap [c parameter]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://oascentral.wjla.com
Path:   /RealMedia/ads/adstream.cap

Issue detail

The value of the c request parameter is copied into the Set-Cookie response header. The payload b4d66%0d%0ae0b57d0f7da was submitted in the c parameter. This caused a response containing an injected HTTP header.

Request

GET /RealMedia/ads/adstream.cap?c=b4d66%0d%0ae0b57d0f7da&dv=1&date=063015 HTTP/1.1
Host: oascentral.wjla.com
Proxy-Connection: keep-alive
Referer: http://login.dotomi.com/ucm/UCMController?dtm_com=28&dtm_fid=101&dtm_cid=2232&dtm_cmagic=3e6260&dtm_format=5&cli_promo_id=1&dtm_user_id=&dtmc_event_type=Concert&dtmc_artist_team=&dtmc_location=&dtmc_venue=&dtmc_event_date=&dtmc_source=NonPaidSearch&dtmc_url=http%3A//www.ticketsnow.com/concert-tickets/&dtmc_ref=http%3A//www.ticketsnow.com/
Accept: */*
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 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

Response

HTTP/1.1 302 Found
Date: Wed, 16 Feb 2011 12:41:09 GMT
Server: Apache/2.0.52 (Red Hat)
P3P: CP="NON NID PSAa PSDa OUR IND UNI COM NAV STA",policyref="/w3c/p3p.xml"
Set-Cookie: b4d66
e0b57d0f7da
=1; expires=Tue, 30-Jun-15 00:00:00 GMT; path=/; domain=.wjla.com
Location: /RealMedia/ads/Creatives/default/empty.gif
Connection: close
Content-Length: 0
Content-Type: text/plain
Set-Cookie: NSC_d17efm_f_qppm_iuuq=ffffffff09419e3b45525d5f4f58455e445a4a423660;path=/


1.2. http://oascentral.wjla.com/RealMedia/ads/adstream.cap [dv parameter]  previous

Summary

Severity:   High
Confidence:   Certain
Host:   http://oascentral.wjla.com
Path:   /RealMedia/ads/adstream.cap

Issue detail

The value of the dv request parameter is copied into the OAS_DE_ERROR response header. The payload 6944d%0d%0a2fff9b196cd was submitted in the dv parameter. This caused a response containing an injected HTTP header.

Request

GET /RealMedia/ads/adstream.cap?c=dotomicookie&dv=6944d%0d%0a2fff9b196cd&date=063015 HTTP/1.1
Host: oascentral.wjla.com
Proxy-Connection: keep-alive
Referer: http://login.dotomi.com/ucm/UCMController?dtm_com=28&dtm_fid=101&dtm_cid=2232&dtm_cmagic=3e6260&dtm_format=5&cli_promo_id=1&dtm_user_id=&dtmc_event_type=Concert&dtmc_artist_team=&dtmc_location=&dtmc_venue=&dtmc_event_date=&dtmc_source=NonPaidSearch&dtmc_url=http%3A//www.ticketsnow.com/concert-tickets/&dtmc_ref=http%3A//www.ticketsnow.com/
Accept: */*
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 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

Response

HTTP/1.1 500 Internal Server Error
Date: Wed, 16 Feb 2011 12:41:09 GMT
Server: Apache/2.0.52 (Red Hat)
P3P: CP="NON NID PSAa PSDa OUR IND UNI COM NAV STA",policyref="/w3c/p3p.xml"
OAS_DE_ERROR: error converting '6944d
2fff9b196cd
' value to numeric value [i]. request to 'oascentral.wjla.com' for '/RealMedia/ads/adstream.cap', referer 'http://login.dotomi.com/ucm/UCMController?dtm_com=28&dtm_fid=101&dtm_cid=2232&dtm_cmagic=3e6260&dtm_format=5&cli_promo_id=1&dtm_user_id=&dtmc_event_type=Concert&dtmc_artist_team=&dtmc_location=&dtmc_venue=&dtmc_event_date=&dtmc_source=NonPaidSearch&dtmc_url=http%3A//www.ticketsnow.com/concert-tickets/&dtmc_ref=http%3A//www.ticketsnow.com/', handler 'cap-add'
Cteonnt-Length: 620
Connection: close
Content-Type: text/html; charset=iso-8859-1
Set-Cookie: NSC_d17efm_f_qppm_iuuq=ffffffff09419e3b45525d5f4f58455e445a4a423660;path=/
Cache-Control: private
Content-Length: 620

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
mis
...[SNIP]...

2. Cookie without HttpOnly flag set  previous

Summary

Severity:   Information
Confidence:   Certain
Host:   http://oascentral.wjla.com
Path:   /RealMedia/ads/adstream.cap

Issue detail

The following cookie was issued by the application and does not have the HttpOnly flag set:The cookie does not appear to contain a session token, which may reduce the risk associated with this issue. You should review the contents of the cookie to determine its function.

Issue background

If the HttpOnly attribute is set on a cookie, then the cookie's value cannot be read or set by client-side JavaScript. This measure can prevent certain client-side attacks, such as cross-site scripting, from trivially capturing the cookie's value via an injected script.

Issue remediation

There is usually no good reason not to set the HttpOnly flag on all cookies. Unless you specifically require legitimate client-side scripts within your application to read or set a cookie's value, you should set the HttpOnly flag by including this attribute within the relevant Set-cookie directive.

You should be aware that the restrictions imposed by the HttpOnly flag can potentially be circumvented in some circumstances, and that numerous other serious attacks can be delivered by client-side script injection, aside from simple cookie stealing.

Request

GET /RealMedia/ads/adstream.cap?c=dotomicookie&dv=1&date=063015 HTTP/1.1
Host: oascentral.wjla.com
Proxy-Connection: keep-alive
Referer: http://login.dotomi.com/ucm/UCMController?dtm_com=28&dtm_fid=101&dtm_cid=2232&dtm_cmagic=3e6260&dtm_format=5&cli_promo_id=1&dtm_user_id=&dtmc_event_type=Concert&dtmc_artist_team=&dtmc_location=&dtmc_venue=&dtmc_event_date=&dtmc_source=NonPaidSearch&dtmc_url=http%3A//www.ticketsnow.com/concert-tickets/&dtmc_ref=http%3A//www.ticketsnow.com/
Accept: */*
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 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

Response

HTTP/1.1 302 Found
Date: Wed, 16 Feb 2011 12:40:53 GMT
Server: Apache/2.0.52 (Red Hat)
P3P: CP="NON NID PSAa PSDa OUR IND UNI COM NAV STA",policyref="/w3c/p3p.xml"
Set-Cookie: dotomicookie=1; expires=Tue, 30-Jun-15 00:00:00 GMT; path=/; domain=.wjla.com
Location: /RealMedia/ads/Creatives/default/empty.gif
Connection: close
Content-Length: 0
Content-Type: text/plain
Set-Cookie: NSC_d17efm_f_qppm_iuuq=ffffffff09419e3b45525d5f4f58455e445a4a423660;path=/


Report generated by CloudScan Vulnerability Crawler at Sun Feb 27 16:15:40 CST 2011.