Skip to content
XSS Advisory Beginner CVE-2020-0795

Microsoft SharePoint Reflective XSS Vulnerability (CVE-2020-0795)

SharePoint Server failed to properly sanitise a specially crafted request, allowing reflected cross-site scripting. An authenticated attacker could send a crafted URL that, once a victim clicked it, ran script in the victim's security context to read content, change permissions, delete content or steal cookies.

Vasileios Daskalakis Follow

Originally disclosed on Microsoft

Description

This vulnerability is caused when SharePoint Server does not properly sanitize a specially crafted request to an affected SharePoint server. An authenticated attacker could exploit this vulnerability by sending a specially crafted request to an affected SharePoint server. The attacker who successfully exploited this vulnerability could then perform cross-site scripting attacks on affected systems and run script in the security context of the current user. These attacks could allow 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 victim, such as change permissions, delete content, steal sensitive information (such as browser cookies) and inject malicious content in the browser of the victim. For this vulnerability to be exploited, a user must click a specially crafted URL that takes the user to a targeted SharePoint Web App site. In an email attack scenario, an attacker could exploit the vulnerability by sending an email message containing the specially crafted URL to the user of the targeted SharePoint Web App site and convincing the user to click the specially crafted URL. In a web-based attack scenario, an attacker would have to host a website that contains a specially crafted URL to the targeted SharePoint Web App site that is used to attempt to exploit these vulnerabilities. In addition, compromised websites and websites that accept or host user-provided content could contain specially crafted content that could exploit the vulnerability. An attacker would have no way to force users to visit a specially crafted website. Instead, an attacker would have to convince them to visit the website, typically by getting them to click a link in an instant messenger or email message that takes them to the attacker's website, and then convince them to click the specially crafted URL. The security update addresses the vulnerability by helping to ensure that SharePoint Server properly sanitizes user web requests.

FAQ

Is the Preview Pane an attack vector for this vulnerability? No, the Preview Pane is not an attack vector.

Microsoft Office SharePoint

Microsoft Office SharePoint

Issuing CNA

Microsoft

The original report as published on the Microsoft Security Response Center, by Vasileios Daskalakis @billdask of UniSystems. Images and videos are our own copies; raw HTML is shown as text. View it on Microsoft Security Response Center.

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 server echoed part of the crafted request back into a page without sanitising it, so script supplied in the request executed in the victim's browser.

Impact

An attacker could run script as the victim to read content they are not authorised to read, change permissions, delete content, steal sensitive information such as browser cookies, or inject malicious content; the victim must click a crafted URL, and the Preview Pane is not an attack vector.

What the attacker needed

Authenticated attacker; victim clicks a crafted URL

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.

A web page can include small scripts that run in your browser. SharePoint was putting part of a user-supplied web address into its page without cleaning it first, so an attacker could hide a script in a link. If you clicked that link while logged in, the script would run as if it were you, letting the attacker act on the site with your permissions.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.