Reflective Cross Site Scripting (XSS) on ███████/Pages
A reflected cross-site scripting vulnerability exists in Microsoft SharePoint Server 2013 when it does not properly sanitize a crafted web request. An authenticated attacker could send a specially crafted request to execute script in a victim's browser, potentially reading content, performing actions as the victim, or injecting malicious content.
Originally disclosed on HackerOne
- Triaged in 5 hours
- Fixed in 35 days
- Disclosed after 16 months
Reflective Cross-Site Scripting (XSS)
An elevation of privilege vulnerability exists when Microsoft SharePoint Server does not properly sanitize a specially crafted web request to an affected SharePoint server. An authenticated attacker could exploit the vulnerability by sending a specially crafted request to an affected SharePoint server. The attacker to read content that the attacker is not authorized to read, use the victim's identity to take actions on the SharePoint site on behalf of the user, such as change permissions and delete content, and inject malicious content in the browser of the user.
System Host(s)
https://██████████/Pages
Affected URLs in Scope
https://█████████/Pages/default.aspx?FollowSite=0&SiteName=%27-confirm(%27XSSALERT%27)-%27
Affected Product(s) and Version(s)
Microsoft SharePoint Foundation 2013 Service Pack 1
██████
References https://msrc.microsoft.com/update-guide/vulnerability/CVE-2017-0255
CVE Numbers
CVE-2017-0255
Steps to Reproduce
Injecting this XSS payload containing allows a window to pop up as a result of the payload being executed.
- Go to-
https://████████/Pages/default.aspx?FollowSite=0&SiteName=%27-confirm(%27XSSALERT%27)-%27
Suggested Mitigation/Remediation Actions
Sanitize data input (to make sure the URL input does not contain any code) is loaded from well-defined endpoints.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the SiteName parameter is reflected into the page without proper output encoding or sanitisation.
Impact
An attacker could read content they are not authorised to read, use the victim's identity to take actions such as changing permissions and deleting content, and inject malicious content in the victim's browser.
What the attacker needed
Authenticated attacker
The fix
Input should be sanitised so that URL parameters do not contain code, and data should be loaded from well-defined endpoints.
How it was found
- Visit the affected SharePoint page with a crafted SiteName parameter containing a script payload.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Cross-site scripting (XSS) is a flaw where a website takes input from a URL and puts it into the page without cleaning it first. Here, a parameter called SiteName is not sanitised, so an attacker can craft a link that makes the victim's browser run a small script. That script can then act as the victim on the SharePoint site.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.