Skip to content
XSS Advisory Beginner CVE-2017-8514

Microsoft SharePoint Reflective XSS Vulnerability (CVE-2017-8514)

SharePoint Server failed to properly sanitise a specially crafted request, allowing an authenticated attacker to perform reflected cross-site scripting. By convincing a victim to click a crafted URL, the attacker could run script in the victim's security context and read or change content on the site as that user.

Ashar Javed 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.

Microsoft Office

Microsoft Office

The original report as published on the Microsoft Security Response Center, by Ashar Javed ( @soaj1664ashar ), Hyundai AutoEver Europe GmbH. 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 user-supplied request data into a page without sanitising it, so script content was reflected back to the browser.

Impact

The attacker could read content they are not authorised to read, act as the victim on the site (such as changing permissions or deleting content), and steal sensitive information such as browser cookies; the victim must click the crafted link.

What the attacker needed

Authenticated attacker; victim clicks a crafted link; victim logged in to SharePoint

The fix

The vulnerability was fixed by a security update that ensures SharePoint Server properly sanitises user web requests.

How it was found

  1. An authenticated attacker crafts a request containing script content aimed at a SharePoint site.
  2. The attacker puts the crafted URL into an email or a website.
  3. The attacker convinces a logged-in user to click the crafted URL.
  4. The script runs in the victim's browser in the context of the SharePoint site.

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 programs called scripts that run in your browser. SharePoint was putting part of a web address into its page without cleaning it first, so an attacker could hide their own 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 by Ashar Javed

View all

2 more disclosed reports, best first.

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.