HTTP Header Injection, Location Response Splitting, CWE-113, DORK, GHDB, mynews.apple.com

Report generated by XSS.CX at Wed Jul 20 06:24:26 CDT 2011.


Contents

1. HTTP header injection

2. Cross-domain Referer leakage

3. Cross-domain script include

4. Cookie without HttpOnly flag set

5. Content type incorrectly stated



1. HTTP header injection  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://mynews.apple.com
Path:   /cgi-bin/WebObjects/Subscriptions.woa/27/wo/2b0nLrEPFOLhjUyNTIlzqM/0.1.21.3.3

Issue detail

The value of the CookieURLDescSubs cookie is copied into the location response header. The payload 6b61f%0d%0a9c98044096b was submitted in the CookieURLDescSubs cookie. 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

POST /cgi-bin/WebObjects/Subscriptions.woa/27/wo/2b0nLrEPFOLhjUyNTIlzqM/0.1.21.3.3 HTTP/1.1
Host: mynews.apple.com
Proxy-Connection: keep-alive
Referer: http://mynews.apple.com/cgi-bin/WebObjects/Subscriptions.woa?locale=en_US&pagename=subscribe&subcode=edunews
Content-Length: 234
Cache-Control: max-age=0
Origin: http://mynews.apple.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.122 Safari/534.30
Content-Type: application/x-www-form-urlencoded
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
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: s_vi=[CS]v1|26E72CC1050115FB-600001068002ECF7[CE]; ac_survey=1; dssid2=551d8f7b-875a-4573-a5cf-6a3ef5da7954; s_cvp35b=%5B%5B'burp'%2C'1309456135633'%5D%2C%5B'google%253A%2520organic'%2C'1310087563005'%5D%2C%5B'burp'%2C'1310659144373'%5D%5D; ac_search=%7C%7Cxss; POD=us~en; dslang=US-EN; ccl=UIX9s4hDFhmrn2bE3r6VZqre2tnGAlnsgI+hC4DfYj5UIhOHae40lxjjmUY/DERkwm96F1eIcY6h1kApbtHGlHtI0S0gHrx9iKTEhRPizqe7Xq2oZ/0wuiBRFKZlsZJxgkCsxi6o/rb/JffqqSNXaRv0Rg2fFw988mvITVn3YEBEs8GWR91rAYx14ZIoL1hdA/NwbzZFbYbvkNKa+HJlFx0BnUHF7R2cGsN2w+4s0fEk5QXMzo6xmTxJuw0q/IQYzwy51uBw5dlBO32TXzol+UnRU72FvWDZoYY/UWTICurGeiXoiSozolQXS5RJcpr/El8f/UD/Ec6CCnvmyUd3Ipfu8PUQOulpT6TjXAPTVtqlEMCLccp9j8CeVaXIA6akJVt7pne23tuMA7Ajg86CBGSwDGaDia3/CROp0lEW1baJb53N97VdpLs5a00FVKYIrSEL2io4PR7izWVA2V9ze5UudVdEDvK28Sl7n03CxwOMALzpEMPK10L16jnDB5/8miZJPPmHy6J/btxnK20uiXHjlLOfQaJVac3sBsuk68e28yYETm8v4A+HeNUfr29W; geo=US; s_ria=Flash%2010%7C; dfa_cookie=appleusseminars%2Cappleglobal%2Capplesupport; s_pv=Apple%20Support%20Updates%20-%20email%20subscriptions%20(US); s_orientation=%5B%5BB%5D%5D; s_cc=true; s_pathLength=seminars%3D1%2Csupport%3D1%2C; s_vnum_us=ch%3Dsupport%26vn%3D7%3Bch%3Dipod%26vn%3D3%3Bch%3Dmac%26vn%3D2%3Bch%3Dip%26vn%3D3%3Bch%3Dipad%26vn%3D3%3Bch%3Ditunes%26vn%3D3%3Bch%3Dmacbookpro%26vn%3D1%3Bch%3Dipodnano%26vn%3D3%3Bch%3Dlegal%26vn%3D4%3Bch%3Dretailstore%26vn%3D3%3Bch%3Dbuy%26vn%3D3%3Bch%3Dcontact%26vn%3D1%3Bch%3Dhotnews%26vn%3D1%3Bch%3Dother%26vn%3D1%3Bch%3Dabout%26vn%3D1%3Bch%3Dsafari%26vn%3D1%3Bch%3Deducation%26vn%3D1%3Bch%3Dadvertising%26vn%3D1%3Bch%3Dseminars%26vn%3D1%3B; s_invisit_us=seminars%3Dtrue%3Bsupport%3Dtrue%3B; s_sq=%5B%5BB%5D%5D; CookieURLDescSubs=6b61f%0d%0a9c98044096b; s_ppv=Apple%2520Support%2520Updates%2520-%2520email%2520subscriptions%2520%2528US%2529%2C76%2C76%2C823%2C; s_orientationHeight=823

1.21.3.3.1=Subscribe&1.21.3.3.11.3=&1.21.3.3.11.9=&1.21.3.3.15.1=0&1.21.3.3.15.3=&1.21.3.3.15.5=&checkedCountry=1.21.3.3.15.7.0.1&1.21.3.3.15.11=&subscribe=1.21.3.3.23.1&1.21.3.3.23.7.0.1=1.21.3.3.23.
...[SNIP]...

Response

HTTP/1.1 302 Apple
Date: Sat, 16 Jul 2011 14:25:31 GMT
Server: Apache
location: 6b61f
9c98044096b
: config = f!
connection: close
content-length: 0
Content-Type: text/html; charset=UTF-8


2. Cross-domain Referer leakage  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://mynews.apple.com
Path:   /cgi-bin/WebObjects/Subscriptions.woa

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 /cgi-bin/WebObjects/Subscriptions.woa?locale=en_US&pagename=subscribe&subcode=edunews HTTP/1.1
Host: mynews.apple.com
Proxy-Connection: keep-alive
Referer: http://www.apple.com/enews/education/subscribe.html
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.122 Safari/534.30
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
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: s_vi=[CS]v1|26E72CC1050115FB-600001068002ECF7[CE]; ac_survey=1; dssid2=551d8f7b-875a-4573-a5cf-6a3ef5da7954; s_cvp35b=%5B%5B'burp'%2C'1309456135633'%5D%2C%5B'google%253A%2520organic'%2C'1310087563005'%5D%2C%5B'burp'%2C'1310659144373'%5D%5D; ac_search=%7C%7Cxss; POD=us~en; dslang=US-EN; ccl=UIX9s4hDFhmrn2bE3r6VZqre2tnGAlnsgI+hC4DfYj5UIhOHae40lxjjmUY/DERkwm96F1eIcY6h1kApbtHGlHtI0S0gHrx9iKTEhRPizqe7Xq2oZ/0wuiBRFKZlsZJxgkCsxi6o/rb/JffqqSNXaRv0Rg2fFw988mvITVn3YEBEs8GWR91rAYx14ZIoL1hdA/NwbzZFbYbvkNKa+HJlFx0BnUHF7R2cGsN2w+4s0fEk5QXMzo6xmTxJuw0q/IQYzwy51uBw5dlBO32TXzol+UnRU72FvWDZoYY/UWTICurGeiXoiSozolQXS5RJcpr/El8f/UD/Ec6CCnvmyUd3Ipfu8PUQOulpT6TjXAPTVtqlEMCLccp9j8CeVaXIA6akJVt7pne23tuMA7Ajg86CBGSwDGaDia3/CROp0lEW1baJb53N97VdpLs5a00FVKYIrSEL2io4PR7izWVA2V9ze5UudVdEDvK28Sl7n03CxwOMALzpEMPK10L16jnDB5/8miZJPPmHy6J/btxnK20uiXHjlLOfQaJVac3sBsuk68e28yYETm8v4A+HeNUfr29W; geo=US; s_ria=Flash%2010%7C; s_orientationHeight=823; dfa_cookie=appleusseminars%2Cappleglobal%2Capplesupport; s_pv=Apple%20Support%20Updates%20-%20email%20subscriptions%20(US); s_ppv=Apple%2520Support%2520Updates%2520-%2520email%2520subscriptions%2520%2528US%2529; s_orientation=%5B%5BB%5D%5D; s_cc=true; s_pathLength=seminars%3D1%2Csupport%3D1%2C; s_vnum_us=ch%3Dsupport%26vn%3D7%3Bch%3Dipod%26vn%3D3%3Bch%3Dmac%26vn%3D2%3Bch%3Dip%26vn%3D3%3Bch%3Dipad%26vn%3D3%3Bch%3Ditunes%26vn%3D3%3Bch%3Dmacbookpro%26vn%3D1%3Bch%3Dipodnano%26vn%3D3%3Bch%3Dlegal%26vn%3D4%3Bch%3Dretailstore%26vn%3D3%3Bch%3Dbuy%26vn%3D3%3Bch%3Dcontact%26vn%3D1%3Bch%3Dhotnews%26vn%3D1%3Bch%3Dother%26vn%3D1%3Bch%3Dabout%26vn%3D1%3Bch%3Dsafari%26vn%3D1%3Bch%3Deducation%26vn%3D1%3Bch%3Dadvertising%26vn%3D1%3Bch%3Dseminars%26vn%3D1%3B; s_invisit_us=seminars%3Dtrue%3Bsupport%3Dtrue%3B; s_sq=%5B%5BB%5D%5D

Response

HTTP/1.1 200 Apple
Date: Sat, 16 Jul 2011 02:35:45 GMT
Server: Apache
set-cookie: CookieURLDescSubs=http%3A%2F%2Fmynews.apple.com%2Fcgi-bin%2FWebObjects%2FSubscriptions.woa%3Flocale%3Den_US%26pagename%3Dsubscribe%26subcode%3Dedunews; version=1; expires=Sat, 16-Jul-2011 03:35:46 GMT; path=/
connection: close
Content-Length: 19277
Content-Type: text/html; charset=UTF-8

   
   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
...[SNIP]...
</head>

   <script type="text/javascript" src="http://a248.e.akamai.net/7/248/51/20110301/mynews.apple.com/abientot/yui281/build/yahoo-dom-event/yahoo-dom-event.js"></script>
   <script type="text/javascript" src="http://a248.e.akamai.net/7/248/51/20110301/mynews.apple.com/abientot/yui281/build/animation/animation-min.js"></script>
   <script type="text/javascript" src="http://a248.e.akamai.net/7/248/51/20110301/mynews.apple.com/abientot/yui281/build/datasource/datasource-min.js"></script>
   <script type="text/javascript" src="http://a248.e.akamai.net/7/248/51/20110301/mynews.apple.com/abientot/yui281/build/autocomplete/autocomplete-min.js"></script>
...[SNIP]...
<h1> <img alt="My Apple ID" src="http://a248.e.akamai.net/7/248/51/20110301/mynews.apple.com/abientot/images/en_US/subscribe_title_20100513.png" /></h1>
...[SNIP]...
</script><script type="text/javascript" src="http://yui.yahooapis.com/2.8.0r4/build/yahoo-dom-event/yahoo-dom-event.js"></script>
<script type="text/javascript" src="http://yui.yahooapis.com/2.8.0r4/build/animation/animation-min.js"></script>
<script type="text/javascript" src="http://yui.yahooapis.com/2.8.0r4/build/datasource/datasource-min.js"></script>
<script type="text/javascript" src="http://yui.yahooapis.com/2.8.0r4/build/autocomplete/autocomplete-min.js"></script>
...[SNIP]...

3. Cross-domain script include  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://mynews.apple.com
Path:   /cgi-bin/WebObjects/Subscriptions.woa

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 /cgi-bin/WebObjects/Subscriptions.woa HTTP/1.1
Host: mynews.apple.com
Proxy-Connection: keep-alive
Referer: http://mynews.apple.com/
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.122 Safari/534.30
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
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: s_vi=[CS]v1|26E72CC1050115FB-600001068002ECF7[CE]; ac_survey=1; dssid2=551d8f7b-875a-4573-a5cf-6a3ef5da7954; s_cvp35b=%5B%5B'burp'%2C'1309456135633'%5D%2C%5B'google%253A%2520organic'%2C'1310087563005'%5D%2C%5B'burp'%2C'1310659144373'%5D%5D; ac_search=%7C%7Cxss; POD=us~en; dslang=US-EN; ccl=UIX9s4hDFhmrn2bE3r6VZqre2tnGAlnsgI+hC4DfYj5UIhOHae40lxjjmUY/DERkwm96F1eIcY6h1kApbtHGlHtI0S0gHrx9iKTEhRPizqe7Xq2oZ/0wuiBRFKZlsZJxgkCsxi6o/rb/JffqqSNXaRv0Rg2fFw988mvITVn3YEBEs8GWR91rAYx14ZIoL1hdA/NwbzZFbYbvkNKa+HJlFx0BnUHF7R2cGsN2w+4s0fEk5QXMzo6xmTxJuw0q/IQYzwy51uBw5dlBO32TXzol+UnRU72FvWDZoYY/UWTICurGeiXoiSozolQXS5RJcpr/El8f/UD/Ec6CCnvmyUd3Ipfu8PUQOulpT6TjXAPTVtqlEMCLccp9j8CeVaXIA6akJVt7pne23tuMA7Ajg86CBGSwDGaDia3/CROp0lEW1baJb53N97VdpLs5a00FVKYIrSEL2io4PR7izWVA2V9ze5UudVdEDvK28Sl7n03CxwOMALzpEMPK10L16jnDB5/8miZJPPmHy6J/btxnK20uiXHjlLOfQaJVac3sBsuk68e28yYETm8v4A+HeNUfr29W; geo=US; s_ria=Flash%2010%7C; dfa_cookie=appleusseminars%2Cappleglobal%2Capplesupport; s_pv=Apple%20Support%20Updates%20-%20email%20subscriptions%20(US); s_orientation=%5B%5BB%5D%5D; s_cc=true; s_pathLength=seminars%3D1%2Csupport%3D1%2C; s_vnum_us=ch%3Dsupport%26vn%3D7%3Bch%3Dipod%26vn%3D3%3Bch%3Dmac%26vn%3D2%3Bch%3Dip%26vn%3D3%3Bch%3Dipad%26vn%3D3%3Bch%3Ditunes%26vn%3D3%3Bch%3Dmacbookpro%26vn%3D1%3Bch%3Dipodnano%26vn%3D3%3Bch%3Dlegal%26vn%3D4%3Bch%3Dretailstore%26vn%3D3%3Bch%3Dbuy%26vn%3D3%3Bch%3Dcontact%26vn%3D1%3Bch%3Dhotnews%26vn%3D1%3Bch%3Dother%26vn%3D1%3Bch%3Dabout%26vn%3D1%3Bch%3Dsafari%26vn%3D1%3Bch%3Deducation%26vn%3D1%3Bch%3Dadvertising%26vn%3D1%3Bch%3Dseminars%26vn%3D1%3B; s_invisit_us=seminars%3Dtrue%3Bsupport%3Dtrue%3B; s_sq=%5B%5BB%5D%5D; CookieURLDescSubs=http%3A%2F%2Fmynews.apple.com%2Fcgi-bin%2FWebObjects%2FSubscriptions.woa%3Flocale%3Den_US%26pagename%3Dsubscribe%26subcode%3Dedunews; s_ppv=Apple%2520Support%2520Updates%2520-%2520email%2520subscriptions%2520%2528US%2529%2C76%2C76%2C823%2C; s_orientationHeight=823

Response

HTTP/1.1 200 Apple
Date: Sat, 16 Jul 2011 02:34:42 GMT
Server: Apache
set-cookie: CookieURLDescSubs=http%3A%2F%2Fmynews.apple.com%2Fcgi-bin%2FWebObjects%2FSubscriptions.woa; version=1; expires=Sat, 16-Jul-2011 03:34:43 GMT; path=/
connection: close
Content-Length: 19277
Content-Type: text/html; charset=UTF-8

   
   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
...[SNIP]...
</head>

   <script type="text/javascript" src="http://a248.e.akamai.net/7/248/51/20110301/mynews.apple.com/abientot/yui281/build/yahoo-dom-event/yahoo-dom-event.js"></script>
   <script type="text/javascript" src="http://a248.e.akamai.net/7/248/51/20110301/mynews.apple.com/abientot/yui281/build/animation/animation-min.js"></script>
   <script type="text/javascript" src="http://a248.e.akamai.net/7/248/51/20110301/mynews.apple.com/abientot/yui281/build/datasource/datasource-min.js"></script>
   <script type="text/javascript" src="http://a248.e.akamai.net/7/248/51/20110301/mynews.apple.com/abientot/yui281/build/autocomplete/autocomplete-min.js"></script>
...[SNIP]...
</script><script type="text/javascript" src="http://yui.yahooapis.com/2.8.0r4/build/yahoo-dom-event/yahoo-dom-event.js"></script>
<script type="text/javascript" src="http://yui.yahooapis.com/2.8.0r4/build/animation/animation-min.js"></script>
<script type="text/javascript" src="http://yui.yahooapis.com/2.8.0r4/build/datasource/datasource-min.js"></script>
<script type="text/javascript" src="http://yui.yahooapis.com/2.8.0r4/build/autocomplete/autocomplete-min.js"></script>
...[SNIP]...

4. Cookie without HttpOnly flag set  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://mynews.apple.com
Path:   /cgi-bin/WebObjects/Subscriptions.woa

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 /cgi-bin/WebObjects/Subscriptions.woa HTTP/1.1
Host: mynews.apple.com
Proxy-Connection: keep-alive
Referer: http://mynews.apple.com/
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.122 Safari/534.30
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
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: s_vi=[CS]v1|26E72CC1050115FB-600001068002ECF7[CE]; ac_survey=1; dssid2=551d8f7b-875a-4573-a5cf-6a3ef5da7954; s_cvp35b=%5B%5B'burp'%2C'1309456135633'%5D%2C%5B'google%253A%2520organic'%2C'1310087563005'%5D%2C%5B'burp'%2C'1310659144373'%5D%5D; ac_search=%7C%7Cxss; POD=us~en; dslang=US-EN; ccl=UIX9s4hDFhmrn2bE3r6VZqre2tnGAlnsgI+hC4DfYj5UIhOHae40lxjjmUY/DERkwm96F1eIcY6h1kApbtHGlHtI0S0gHrx9iKTEhRPizqe7Xq2oZ/0wuiBRFKZlsZJxgkCsxi6o/rb/JffqqSNXaRv0Rg2fFw988mvITVn3YEBEs8GWR91rAYx14ZIoL1hdA/NwbzZFbYbvkNKa+HJlFx0BnUHF7R2cGsN2w+4s0fEk5QXMzo6xmTxJuw0q/IQYzwy51uBw5dlBO32TXzol+UnRU72FvWDZoYY/UWTICurGeiXoiSozolQXS5RJcpr/El8f/UD/Ec6CCnvmyUd3Ipfu8PUQOulpT6TjXAPTVtqlEMCLccp9j8CeVaXIA6akJVt7pne23tuMA7Ajg86CBGSwDGaDia3/CROp0lEW1baJb53N97VdpLs5a00FVKYIrSEL2io4PR7izWVA2V9ze5UudVdEDvK28Sl7n03CxwOMALzpEMPK10L16jnDB5/8miZJPPmHy6J/btxnK20uiXHjlLOfQaJVac3sBsuk68e28yYETm8v4A+HeNUfr29W; geo=US; s_ria=Flash%2010%7C; dfa_cookie=appleusseminars%2Cappleglobal%2Capplesupport; s_pv=Apple%20Support%20Updates%20-%20email%20subscriptions%20(US); s_orientation=%5B%5BB%5D%5D; s_cc=true; s_pathLength=seminars%3D1%2Csupport%3D1%2C; s_vnum_us=ch%3Dsupport%26vn%3D7%3Bch%3Dipod%26vn%3D3%3Bch%3Dmac%26vn%3D2%3Bch%3Dip%26vn%3D3%3Bch%3Dipad%26vn%3D3%3Bch%3Ditunes%26vn%3D3%3Bch%3Dmacbookpro%26vn%3D1%3Bch%3Dipodnano%26vn%3D3%3Bch%3Dlegal%26vn%3D4%3Bch%3Dretailstore%26vn%3D3%3Bch%3Dbuy%26vn%3D3%3Bch%3Dcontact%26vn%3D1%3Bch%3Dhotnews%26vn%3D1%3Bch%3Dother%26vn%3D1%3Bch%3Dabout%26vn%3D1%3Bch%3Dsafari%26vn%3D1%3Bch%3Deducation%26vn%3D1%3Bch%3Dadvertising%26vn%3D1%3Bch%3Dseminars%26vn%3D1%3B; s_invisit_us=seminars%3Dtrue%3Bsupport%3Dtrue%3B; s_sq=%5B%5BB%5D%5D; CookieURLDescSubs=http%3A%2F%2Fmynews.apple.com%2Fcgi-bin%2FWebObjects%2FSubscriptions.woa%3Flocale%3Den_US%26pagename%3Dsubscribe%26subcode%3Dedunews; s_ppv=Apple%2520Support%2520Updates%2520-%2520email%2520subscriptions%2520%2528US%2529%2C76%2C76%2C823%2C; s_orientationHeight=823

Response

HTTP/1.1 200 Apple
Date: Sat, 16 Jul 2011 02:34:42 GMT
Server: Apache
set-cookie: CookieURLDescSubs=http%3A%2F%2Fmynews.apple.com%2Fcgi-bin%2FWebObjects%2FSubscriptions.woa; version=1; expires=Sat, 16-Jul-2011 03:34:43 GMT; path=/
connection: close
Content-Length: 19277
Content-Type: text/html; charset=UTF-8

   
   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
...[SNIP]...

5. Content type incorrectly stated  previous

Summary

Severity:   Information
Confidence:   Firm
Host:   http://mynews.apple.com
Path:   /abientot/global/nav/scripts/globalnav.js

Issue detail

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

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 /abientot/global/nav/scripts/globalnav.js HTTP/1.1
Host: mynews.apple.com
Proxy-Connection: keep-alive
Referer: http://mynews.apple.com/cgi-bin/WebObjects/Subscriptions.woa?locale=en_US&pagename=subscribe&subcode=edunews
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.122 Safari/534.30
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: s_vi=[CS]v1|26E72CC1050115FB-600001068002ECF7[CE]; ac_survey=1; dssid2=551d8f7b-875a-4573-a5cf-6a3ef5da7954; s_cvp35b=%5B%5B'burp'%2C'1309456135633'%5D%2C%5B'google%253A%2520organic'%2C'1310087563005'%5D%2C%5B'burp'%2C'1310659144373'%5D%5D; ac_search=%7C%7Cxss; POD=us~en; dslang=US-EN; ccl=UIX9s4hDFhmrn2bE3r6VZqre2tnGAlnsgI+hC4DfYj5UIhOHae40lxjjmUY/DERkwm96F1eIcY6h1kApbtHGlHtI0S0gHrx9iKTEhRPizqe7Xq2oZ/0wuiBRFKZlsZJxgkCsxi6o/rb/JffqqSNXaRv0Rg2fFw988mvITVn3YEBEs8GWR91rAYx14ZIoL1hdA/NwbzZFbYbvkNKa+HJlFx0BnUHF7R2cGsN2w+4s0fEk5QXMzo6xmTxJuw0q/IQYzwy51uBw5dlBO32TXzol+UnRU72FvWDZoYY/UWTICurGeiXoiSozolQXS5RJcpr/El8f/UD/Ec6CCnvmyUd3Ipfu8PUQOulpT6TjXAPTVtqlEMCLccp9j8CeVaXIA6akJVt7pne23tuMA7Ajg86CBGSwDGaDia3/CROp0lEW1baJb53N97VdpLs5a00FVKYIrSEL2io4PR7izWVA2V9ze5UudVdEDvK28Sl7n03CxwOMALzpEMPK10L16jnDB5/8miZJPPmHy6J/btxnK20uiXHjlLOfQaJVac3sBsuk68e28yYETm8v4A+HeNUfr29W; geo=US; s_ria=Flash%2010%7C; s_orientationHeight=823; dfa_cookie=appleusseminars%2Cappleglobal%2Capplesupport; s_pv=Apple%20Support%20Updates%20-%20email%20subscriptions%20(US); s_ppv=Apple%2520Support%2520Updates%2520-%2520email%2520subscriptions%2520%2528US%2529; s_orientation=%5B%5BB%5D%5D; s_cc=true; s_pathLength=seminars%3D1%2Csupport%3D1%2C; s_vnum_us=ch%3Dsupport%26vn%3D7%3Bch%3Dipod%26vn%3D3%3Bch%3Dmac%26vn%3D2%3Bch%3Dip%26vn%3D3%3Bch%3Dipad%26vn%3D3%3Bch%3Ditunes%26vn%3D3%3Bch%3Dmacbookpro%26vn%3D1%3Bch%3Dipodnano%26vn%3D3%3Bch%3Dlegal%26vn%3D4%3Bch%3Dretailstore%26vn%3D3%3Bch%3Dbuy%26vn%3D3%3Bch%3Dcontact%26vn%3D1%3Bch%3Dhotnews%26vn%3D1%3Bch%3Dother%26vn%3D1%3Bch%3Dabout%26vn%3D1%3Bch%3Dsafari%26vn%3D1%3Bch%3Deducation%26vn%3D1%3Bch%3Dadvertising%26vn%3D1%3Bch%3Dseminars%26vn%3D1%3B; s_invisit_us=seminars%3Dtrue%3Bsupport%3Dtrue%3B; s_sq=%5B%5BB%5D%5D; CookieURLDescSubs=http%3A%2F%2Fmynews.apple.com%2Fcgi-bin%2FWebObjects%2FSubscriptions.woa%3Flocale%3Den_US%26pagename%3Dsubscribe%26subcode%3Dedunews

Response

HTTP/1.1 200 OK
Date: Sat, 16 Jul 2011 02:35:49 GMT
Server: Apache
Last-Modified: Mon, 31 Jan 2011 08:36:11 GMT
ETag: "12100-c247-49b204ed9d4c0"
Accept-Ranges: bytes
Content-Length: 49735
Content-Type: application/x-javascript

// = AC =
// Apple core helper functions:
if (typeof(AC) == 'undefined'|| typeof(AC) == 'object') { AC = {}; }

// == HTML5 <nav> ==
// Add the HTML5 nav element for future proof-ness.
document.create
...[SNIP]...

Report generated by XSS.CX at Wed Jul 20 06:24:26 CDT 2011.