1. Flash cross-domain policy

2. Cookie scoped to parent domain

2.1. http://ads.pointroll.com/PortalServe/

2.2. http://ads.pointroll.com/PortalServe/

3. Cross-domain Referer leakage

4. Cookie without HttpOnly flag set

4.1. http://ads.pointroll.com/PortalServe/

4.2. http://ads.pointroll.com/PortalServe/

5. HTML does not specify charset

6. Content type incorrectly stated



1. Flash cross-domain policy  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://ads.pointroll.com
Path:   /crossdomain.xml

Issue detail

The application publishes a Flash cross-domain policy which allows access from any domain.

Allowing access from all domains means that any domain can perform two-way interaction with this application. Unless the application consists entirely of unprotected public content, this policy is likely to present a significant security risk.

Issue background

The Flash cross-domain policy controls whether Flash client components running on other domains can perform two-way interaction with the domain which publishes the policy. If another domain is allowed by the policy, then that domain can potentially attack users of the application. If a user is logged in to the application, and visits a domain allowed by the policy, then any malicious content running on that domain can potentially gain full access to the application within the security context of the logged in user.

Even if an allowed domain is not overtly malicious in itself, security vulnerabilities within that domain could potentially be leveraged by a third-party attacker to exploit the trust relationship and attack the application which allows access.

Issue remediation

You should review the domains which are allowed by the Flash cross-domain policy and determine whether it is appropriate for the application to fully trust both the intentions and security posture of those domains.

Request

GET /crossdomain.xml HTTP/1.0
Host: ads.pointroll.com

Response

HTTP/1.1 200 OK
Content-Length: 170
Content-Type: text/xml
Last-Modified: Tue, 06 Apr 2010 18:31:31 GMT
Accept-Ranges: bytes
ETag: "8e43ce60b7d5ca1:1098"
Server: Microsoft-IIS/6.0
P3P: CP="NOI DSP COR PSAo PSDo OUR BUS OTC"
Date: Sun, 07 Nov 2010 20:38:35 GMT
Connection: close

<?xml version="1.0"?>
<cross-domain-policy>
<allow-access-from domain="*" />
<allow-http-request-headers-from domain="*" headers="*"/>
</cross-domain-policy>

2. Cookie scoped to parent domain  previous  next
There are 2 instances of this issue:

Issue background

A cookie's domain attribute determines which domains can access the cookie. Browsers will automatically submit the cookie in requests to in-scope domains, and those domains will also be able to access the cookie via JavaScript. If a cookie is scoped to a parent domain, then that cookie will be accessible by the parent domain and also by any other subdomains of the parent domain. If the cookie contains sensitive data (such as a session token) then this data may be accessible by less trusted or less secure applications residing at those domains, leading to a security compromise.

Issue remediation

By default, cookies are scoped to the issuing domain and all subdomains. If you remove the explicit domain attribute from your Set-cookie directive, then the cookie will have this default scope, which is safe and appropriate in most situations. If you particularly need a cookie to be accessible by a parent domain, then you should thoroughly review the security of the applications residing on that domain and its subdomains, and confirm that you are willing to trust the people and systems which support those applications.


2.1. http://ads.pointroll.com/PortalServe/  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://ads.pointroll.com
Path:   /PortalServe/

Issue detail

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

Request

GET /PortalServe/?pid=1067891K09620100715180154&flash=10&time=0|14:25|-6&redir=http://ads.cnn.com/event.ng/Type%3dclick%26FlightID%3d340502%26AdID%3d465353%26TargetID%3d108588%26Values%3d1588%26Redirect%3d$CTURL$&pos=s&r=0.6480230404899324 HTTP/1.1
Accept: */*
Referer: http://ads.cnn.com/html.ng/site=cnn&cnn_pagetype=main&cnn_position=300x250_bot&cnn_rollup=technology&page.allowcompete=yes&params.styles=fs&tile=1570051619821&domId=510316
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: ads.pointroll.com
Proxy-Connection: Keep-Alive

Response

HTTP/1.1 200 OK
Connection: close
Date: Sun, 07 Nov 2010 20:25:04 GMT
Server: Microsoft-IIS/6.0
P3P: CP="NOI DSP COR PSAo PSDo OUR BUS OTC"
Content-type: text/html
Content-length: 12605
Set-Cookie:PRID=0FDACD15-32BA-4CD6-9615-8B62ECE921F6; domain=ads.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;
Set-Cookie:PRbu=ElHxNjtpe;domain=.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;
Set-Cookie:PRgo=BAA;domain=.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;;
Set-Cookie:PRimp=7C940400-8E4D-5EDA-0208-BD90051E0100; domain=ads.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;
Set-Cookie:PRca=|AJT1*79:1|#;domain=ads.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;
Set-Cookie:PRcp=|AJT1AABR:1|#;domain=ads.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;
Set-Cookie:PRpl=|E3oD:1|#;domain=ads.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;
Set-Cookie:PRcr=|Fs4z:1|#;domain=ads.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;
Set-Cookie:PRpc=|E3oDFs4z:1|#;domain=ads.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;

var prpx6461=new Image(1,1);prpx6461.src='http://redacted.net/ad/N3148.CNN.com/B4151346.17;sz=1x1;pc=[TPAS_ID];ord=0.6480230404899324';var prpx21734=new Image(1,1);prpx21734.src='http://pixel.qu
...[SNIP]...

2.2. http://ads.pointroll.com/PortalServe/  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://ads.pointroll.com
Path:   /PortalServe/

Issue detail

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

Request

GET /PortalServe/?pid=1129211H63120101019145718&flash=10&time=0|14:25|-6&redir=http://at.atwola.com/adlink/5113/1401428/0/225/AdId=1176326;BnId=1;itime=161535095;kvcmsid=bsd:19697920;kvpg=engadget%2F2010%2F11%2F04%2Fkinect%2Dfor%2Dxbox%2D360%2Drevie;kvmn=93309291;kvtid=16de2p81ll7gc1;kvseg=99999:60190;nodecode=yes;link=$CTURL$&pos=s&postal=77002&r=0.34765283181398215 HTTP/1.1
Accept: */*
Referer: http://www.engadget.com/_uac/adpage.html
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: ads.pointroll.com
Proxy-Connection: Keep-Alive
Cookie: PRbu=ElHxOK9GG; PRgo=BAA; PRID=8343C47A-E66E-4BA8-994D-0934AC16F636; PRimp=7C940400-2B4E-86D1-0208-CB9001DC0100; PRca=|AJXD*18456:1|#; PRcp=|AJXDAEng:1|#; PRpl=|E5y5:1|#; PRcr=|FmqB:1|#; PRpc=|E5y5FmqB:1|#

Response

HTTP/1.1 200 OK
Connection: close
Date: Sun, 07 Nov 2010 20:25:36 GMT
Server: Microsoft-IIS/6.0
P3P: CP="NOI DSP COR PSAo PSDo OUR BUS OTC"
Content-type: text/html
Content-length: 15547
Set-Cookie:PRvt=CBI-MElHxPbz7SAQaBBe;domain=ads.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;;
Set-Cookie:PRgo=BBBAAsJqBBVBF3FQ;domain=.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;;
Set-Cookie:PRimp=7C940400-6F4F-D23E-0308-FCC0041A0101; domain=ads.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;
Set-Cookie:PRca=|AJ9k*130:1|AJXD*18456:1|#;domain=ads.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;
Set-Cookie:PRcp=|AJ9kAACG:1|AJXDAEng:1|#;domain=ads.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;
Set-Cookie:PRpl=|EjlF:1|E5y5:1|#;domain=ads.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;
Set-Cookie:PRcr=|FthU:1|FmqB:1|#;domain=ads.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;
Set-Cookie:PRpc=|EjlFFthU:1|E5y5FmqB:1|#;domain=ads.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;

var prpx22660=new Image(1,1);prpx22660.src='http://redacted.net/imp;v1;f;232096024;0-0;0;55137069;1|1;38657831|38675588|1;;cs=a%3fhttp://ad.doubleclick.net/dot.gif?0.34765283181398215';var prdf,
...[SNIP]...

3. Cross-domain Referer leakage  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://ads.pointroll.com
Path:   /PortalServe/

Issue detail

The page was loaded from a URL containing a query string:The response contains the following link to another domain:

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 /PortalServe/?pid=1067891K09620100715180154&flash=10&time=0|14:25|-6&redir=http://ads.cnn.com/event.ng/Type%3dclick%26FlightID%3d340502%26AdID%3d465353%26TargetID%3d108588%26Values%3d1588%26Redirect%3d$CTURL$&pos=s&r=0.6480230404899324 HTTP/1.1
Accept: */*
Referer: http://ads.cnn.com/html.ng/site=cnn&cnn_pagetype=main&cnn_position=300x250_bot&cnn_rollup=technology&page.allowcompete=yes&params.styles=fs&tile=1570051619821&domId=510316
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: ads.pointroll.com
Proxy-Connection: Keep-Alive

Response

HTTP/1.1 200 OK
Connection: close
Date: Sun, 07 Nov 2010 20:25:04 GMT
Server: Microsoft-IIS/6.0
P3P: CP="NOI DSP COR PSAo PSDo OUR BUS OTC"
Content-type: text/html
Content-length: 12605
Set-Cookie:PRID=0FDACD15-32BA-4CD6-9615-8B62ECE921F6; domain=ads.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;
Set-Cookie:PRbu=ElHxNjtpe;domain=.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;
Set-Cookie:PRgo=BAA;domain=.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;;
Set-Cookie:PRimp=7C940400-8E4D-5EDA-0208-BD90051E0100; domain=ads.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;
Set-Cookie:PRca=|AJT1*79:1|#;domain=ads.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;
Set-Cookie:PRcp=|AJT1AABR:1|#;domain=ads.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;
Set-Cookie:PRpl=|E3oD:1|#;domain=ads.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;
Set-Cookie:PRcr=|Fs4z:1|#;domain=ads.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;
Set-Cookie:PRpc=|E3oDFs4z:1|#;domain=ads.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;

var prpx6461=new Image(1,1);prpx6461.src='http://redacted.net/ad/N3148.CNN.com/B4151346.17;sz=1x1;pc=[TPAS_ID];ord=0.6480230404899324';var prpx21734=new Image(1,1);prpx21734.src='http://pixel.qu
...[SNIP]...
BD90051E0100' onMouseOver=\"if(typeof(prRoll)=='function')prBOver('7C9404008E4D5EDA0208BD90051E0100');\" onMouseOut=\"if(typeof(prRoll)=='function')prBOut(event);\" style='position:absolute;z-index:1'><object id='prfls7C9404008E4D5EDA0208BD90051E0100' name='prfls7C9404008E4D5EDA0208BD90051E0100' classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0 width='300' height='250' style='width:300px;height:250px'><param name='movie' value='http://speed.pointroll.com/PointRoll/Media/Banners/Pfizer/814422/DontKidYourself_300x250_bnr_Roll_102010_r01_fh.swf?PRCampID=35801&PRPubID=cnn&PRAdSize=300x250&PRFormat=EX&PR
...[SNIP]...

4. Cookie without HttpOnly flag set  previous  next
There are 2 instances of this issue:

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.



4.1. http://ads.pointroll.com/PortalServe/  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://ads.pointroll.com
Path:   /PortalServe/

Issue detail

The following cookies were issued by the application and do not have the HttpOnly flag set:The cookies do not appear to contain session tokens, which may reduce the risk associated with this issue. You should review the contents of the cookies to determine their function.

Request

GET /PortalServe/?pid=1129211H63120101019145718&flash=10&time=0|14:25|-6&redir=http://at.atwola.com/adlink/5113/1401428/0/225/AdId=1176326;BnId=1;itime=161535095;kvcmsid=bsd:19697920;kvpg=engadget%2F2010%2F11%2F04%2Fkinect%2Dfor%2Dxbox%2D360%2Drevie;kvmn=93309291;kvtid=16de2p81ll7gc1;kvseg=99999:60190;nodecode=yes;link=$CTURL$&pos=s&postal=77002&r=0.34765283181398215 HTTP/1.1
Accept: */*
Referer: http://www.engadget.com/_uac/adpage.html
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: ads.pointroll.com
Proxy-Connection: Keep-Alive
Cookie: PRbu=ElHxOK9GG; PRgo=BAA; PRID=8343C47A-E66E-4BA8-994D-0934AC16F636; PRimp=7C940400-2B4E-86D1-0208-CB9001DC0100; PRca=|AJXD*18456:1|#; PRcp=|AJXDAEng:1|#; PRpl=|E5y5:1|#; PRcr=|FmqB:1|#; PRpc=|E5y5FmqB:1|#

Response

HTTP/1.1 200 OK
Connection: close
Date: Sun, 07 Nov 2010 20:25:36 GMT
Server: Microsoft-IIS/6.0
P3P: CP="NOI DSP COR PSAo PSDo OUR BUS OTC"
Content-type: text/html
Content-length: 15547
Set-Cookie:PRvt=CBI-MElHxPbz7SAQaBBe;domain=ads.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;;
Set-Cookie:PRgo=BBBAAsJqBBVBF3FQ;domain=.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;;
Set-Cookie:PRimp=7C940400-6F4F-D23E-0308-FCC0041A0101; domain=ads.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;
Set-Cookie:PRca=|AJ9k*130:1|AJXD*18456:1|#;domain=ads.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;
Set-Cookie:PRcp=|AJ9kAACG:1|AJXDAEng:1|#;domain=ads.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;
Set-Cookie:PRpl=|EjlF:1|E5y5:1|#;domain=ads.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;
Set-Cookie:PRcr=|FthU:1|FmqB:1|#;domain=ads.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;
Set-Cookie:PRpc=|EjlFFthU:1|E5y5FmqB:1|#;domain=ads.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;

var prpx22660=new Image(1,1);prpx22660.src='http://redacted.net/imp;v1;f;232096024;0-0;0;55137069;1|1;38657831|38675588|1;;cs=a%3fhttp://ad.doubleclick.net/dot.gif?0.34765283181398215';var prdf,
...[SNIP]...

4.2. http://ads.pointroll.com/PortalServe/  previous

Summary

Severity:   Information
Confidence:   Certain
Host:   http://ads.pointroll.com
Path:   /PortalServe/

Issue detail

The following cookies were issued by the application and do not have the HttpOnly flag set:The cookies do not appear to contain session tokens, which may reduce the risk associated with this issue. You should review the contents of the cookies to determine their function.

Request

GET /PortalServe/?pid=1067891K09620100715180154&flash=10&time=0|14:25|-6&redir=http://ads.cnn.com/event.ng/Type%3dclick%26FlightID%3d340502%26AdID%3d465353%26TargetID%3d108588%26Values%3d1588%26Redirect%3d$CTURL$&pos=s&r=0.6480230404899324 HTTP/1.1
Accept: */*
Referer: http://ads.cnn.com/html.ng/site=cnn&cnn_pagetype=main&cnn_position=300x250_bot&cnn_rollup=technology&page.allowcompete=yes&params.styles=fs&tile=1570051619821&domId=510316
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: ads.pointroll.com
Proxy-Connection: Keep-Alive

Response

HTTP/1.1 200 OK
Connection: close
Date: Sun, 07 Nov 2010 20:25:04 GMT
Server: Microsoft-IIS/6.0
P3P: CP="NOI DSP COR PSAo PSDo OUR BUS OTC"
Content-type: text/html
Content-length: 12605
Set-Cookie:PRID=0FDACD15-32BA-4CD6-9615-8B62ECE921F6; domain=ads.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;
Set-Cookie:PRbu=ElHxNjtpe;domain=.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;
Set-Cookie:PRgo=BAA;domain=.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;;
Set-Cookie:PRimp=7C940400-8E4D-5EDA-0208-BD90051E0100; domain=ads.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;
Set-Cookie:PRca=|AJT1*79:1|#;domain=ads.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;
Set-Cookie:PRcp=|AJT1AABR:1|#;domain=ads.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;
Set-Cookie:PRpl=|E3oD:1|#;domain=ads.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;
Set-Cookie:PRcr=|Fs4z:1|#;domain=ads.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;
Set-Cookie:PRpc=|E3oDFs4z:1|#;domain=ads.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;

var prpx6461=new Image(1,1);prpx6461.src='http://redacted.net/ad/N3148.CNN.com/B4151346.17;sz=1x1;pc=[TPAS_ID];ord=0.6480230404899324';var prpx21734=new Image(1,1);prpx21734.src='http://pixel.qu
...[SNIP]...

5. HTML does not specify charset  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://ads.pointroll.com
Path:   /PortalServe/

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 /PortalServe/?pid=1067891K09620100715180154&flash=10&time=0|14:25|-6&redir=http://ads.cnn.com/event.ng/Type%3dclick%26FlightID%3d340502%26AdID%3d465353%26TargetID%3d108588%26Values%3d1588%26Redirect%3d$CTURL$&pos=s&r=0.6480230404899324 HTTP/1.1
Accept: */*
Referer: http://ads.cnn.com/html.ng/site=cnn&cnn_pagetype=main&cnn_position=300x250_bot&cnn_rollup=technology&page.allowcompete=yes&params.styles=fs&tile=1570051619821&domId=510316
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: ads.pointroll.com
Proxy-Connection: Keep-Alive

Response

HTTP/1.1 200 OK
Connection: close
Date: Sun, 07 Nov 2010 20:25:04 GMT
Server: Microsoft-IIS/6.0
P3P: CP="NOI DSP COR PSAo PSDo OUR BUS OTC"
Content-type: text/html
Content-length: 12605
Set-Cookie:PRID=0FDACD15-32BA-4CD6-9615-8B62ECE921F6; domain=ads.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;
Set-Cookie:PRbu=ElHxNjtpe;domain=.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;
Set-Cookie:PRgo=BAA;domain=.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;;
Set-Cookie:PRimp=7C940400-8E4D-5EDA-0208-BD90051E0100; domain=ads.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;
Set-Cookie:PRca=|AJT1*79:1|#;domain=ads.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;
Set-Cookie:PRcp=|AJT1AABR:1|#;domain=ads.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;
Set-Cookie:PRpl=|E3oD:1|#;domain=ads.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;
Set-Cookie:PRcr=|Fs4z:1|#;domain=ads.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;
Set-Cookie:PRpc=|E3oDFs4z:1|#;domain=ads.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;

var prpx6461=new Image(1,1);prpx6461.src='http://redacted.net/ad/N3148.CNN.com/B4151346.17;sz=1x1;pc=[TPAS_ID];ord=0.6480230404899324';var prpx21734=new Image(1,1);prpx21734.src='http://pixel.qu
...[SNIP]...

6. Content type incorrectly stated  previous

Summary

Severity:   Information
Confidence:   Firm
Host:   http://ads.pointroll.com
Path:   /PortalServe/

Issue detail

The response contains the following Content-type statement:The response states that it contains HTML. However, it actually appears to contain script.

Issue background

If a web response specifies an incorrect content type, then browsers may process the response in unexpected ways. If the specified content type is a renderable text-based format, then the browser will usually attempt to parse and render the response in that format. If the specified type is an image format, then the browser will usually detect the anomaly and will analyse the actual content and attempt to determine its MIME type. Either case can lead to unexpected results, and if the content contains any user-controllable data may lead to cross-site scripting or other client-side vulnerabilities.

In most cases, the presence of an incorrect content type statement does not constitute a security flaw, particularly if the response contains static content. You should review the contents of the response and the context in which it appears to determine whether any vulnerability exists.

Issue remediation

For every response containing a message body, the application should include a single Content-type header which correctly and unambiguously states the MIME type of the content in the response body.

Request

GET /PortalServe/?pid=1067891K09620100715180154&flash=10&time=0|14:25|-6&redir=http://ads.cnn.com/event.ng/Type%3dclick%26FlightID%3d340502%26AdID%3d465353%26TargetID%3d108588%26Values%3d1588%26Redirect%3d$CTURL$&pos=s&r=0.6480230404899324 HTTP/1.1
Accept: */*
Referer: http://ads.cnn.com/html.ng/site=cnn&cnn_pagetype=main&cnn_position=300x250_bot&cnn_rollup=technology&page.allowcompete=yes&params.styles=fs&tile=1570051619821&domId=510316
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: ads.pointroll.com
Proxy-Connection: Keep-Alive

Response

HTTP/1.1 200 OK
Connection: close
Date: Sun, 07 Nov 2010 20:25:04 GMT
Server: Microsoft-IIS/6.0
P3P: CP="NOI DSP COR PSAo PSDo OUR BUS OTC"
Content-type: text/html
Content-length: 12605
Set-Cookie:PRID=0FDACD15-32BA-4CD6-9615-8B62ECE921F6; domain=ads.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;
Set-Cookie:PRbu=ElHxNjtpe;domain=.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;
Set-Cookie:PRgo=BAA;domain=.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;;
Set-Cookie:PRimp=7C940400-8E4D-5EDA-0208-BD90051E0100; domain=ads.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;
Set-Cookie:PRca=|AJT1*79:1|#;domain=ads.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;
Set-Cookie:PRcp=|AJT1AABR:1|#;domain=ads.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;
Set-Cookie:PRpl=|E3oD:1|#;domain=ads.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;
Set-Cookie:PRcr=|Fs4z:1|#;domain=ads.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;
Set-Cookie:PRpc=|E3oDFs4z:1|#;domain=ads.pointroll.com; path=/; expires=Wed, 01-Jan-2020 00:00:00 GMT;

var prpx6461=new Image(1,1);prpx6461.src='http://redacted.net/ad/N3148.CNN.com/B4151346.17;sz=1x1;pc=[TPAS_ID];ord=0.6480230404899324';var prpx21734=new Image(1,1);prpx21734.src='http://pixel.qu
...[SNIP]...

Report generated by XSS.CX at Sun Nov 07 17:39:43 CST 2010.