Skip to content
XSS Advisory Intermediate CVE-2017-0195

Microsoft Office XSS Elevation of Privilege Vulnerability (CVE-2017-0195)

An Office Web Apps server failed to properly sanitise a specially crafted request, allowing an authenticated attacker to perform cross-site scripting. The attacker could then run script in the victim's security context, reading content, acting as the victim on the SharePoint site, stealing cookies and injecting malicious content.

Ashar Javed Follow

Originally disclosed on Microsoft

Description

An elevation of privilege vulnerability exists when an Office Web Apps server does not properly sanitize a specially crafted request. An authenticated attacker could exploit the vulnerability by sending a specially crafted request to an affected Office Web Apps 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 the vulnerability to be exploited, a user must click a specially crafted URL that takes the user to a targeted Office 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 Office 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 the vulnerability. 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 Office Web AppsServer properly sanitizes web requests.

Microsoft Office

Microsoft Office

The original report as published on the Microsoft Security Response Center, by Ashar Javed ( @soaj1664ashar ) of 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 Office Web Apps server failed to sanitise a crafted request before reflecting it into a page, allowing script injection.

Impact

An attacker could read content they are not authorised to read, act as the victim on the SharePoint site (change permissions, delete content), steal sensitive information such as browser cookies, and inject malicious content into the victim's browser; the victim must click a crafted URL.

What the attacker needed

Authenticated attacker; victim clicks a crafted URL

How it was found

  1. An authenticated attacker sends a specially crafted request to an affected Office Web Apps server.
  2. The attacker sends the victim an email or message containing a specially crafted URL.
  3. The victim clicks the URL and is taken to the targeted Office Web App site.
  4. Script runs in the victim's security context on the affected system.

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.

Office Web Apps is a server product that lets people view and edit Office documents in a browser. The server did not clean up input in a request properly, so an attacker could slip script into a page that the victim's browser would run. That script runs as the victim, so it can do anything the victim could do on the site.

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.