Skip to content
XSS Advisory Beginner CVE-2019-1332

Microsoft SQL Server Reporting Services XSS Vulnerability (CVE-2019-1332)

Microsoft SQL Server Reporting Services did not properly sanitise a specially crafted web request, allowing an attacker to run scripts in the context of a targeted user. An attacker could convince an authenticated user to click a link, then read content, execute malicious code, and take actions as the victim.

Matei "Mal" Badanoiu Follow

Originally disclosed on Microsoft

Description

A cross-site scripting (XSS) vulnerability exists when Microsoft SQL Server Reporting Services (SSRS) does not properly sanitize a specially-crafted web request to an affected SSRS server. An attacker who successfully exploited the vulnerability could run scripts in the context of the targeted user. The attacks could allow the attacker to read content that the attacker is not authorized to read, execute malicious code, and use the victim's identity to take actions on the site on behalf of the user, such as change permissions and delete content. To exploit the vulnerability, an attacker would need to convince an authenticated user to click a specially-crafted link to an affected SSRS server. The update addresses the vulnerability by correcting SSRS URL sanitization.

FAQ

There are GDR and/or CU (Cumulative Update) updates offered for my version of SQL Server. How do I know which update to use? First, determine your SQL Server version number. For more information on determining your SQL Server version number, see Microsoft Knowledge Base Article 321185 - How to determine the version, edition, and update level of SQL Server and its components. Second, in the table below, locate your version number or the version range that your version number falls within. The corresponding update is the one you need to install. Note If your SQL Server version number is not represented in the table below, your SQL Server version is no longer supported. Please upgrade to the latest Service Pack or SQL Server product in order to apply this and future security updates. Update number Title Apply if current product version is… This security update also includes servicing releases up through… 4532097 Security update for SQL Server 2016 Service Pack 2 (GDR): Feb 11, 2020 13.0.5026.0 - 13.0.5101.9 KB4505220 - Previous SQL16 SP2 GDR 4535706 Security update for SQL Server 2016 Service Pack 2 CU11: Feb 11, 2020 13.0.5149.0 - 13.0.5598.27 KB4527378 – SQL16 SP2 CU11 What are the GDR and CU update designations and how do they differ? The General Distribution Release (GDR) and Cumulative Update (CU) designations correspond to the two different servicing options in place for SQL Server baseline releases. A baseline can be either an RTM release or a Service Pack release. GDR updates – cumulatively only contain security updates for the given baseline. CU updates – cumulatively contain all functional fixes and security updates for the given baseline. For any given baseline, either the GDR or CU updates could be options (see below). If SQL Server installation is at a baseline version, you can choose either the GDR or CU update. If SQL Server installation has intentionally only installed past GDR updates, then choose to install the GDR update package. If SQL Server installation has intentionally installed previous CU updates, then chose to install the CU security update package. NOTE: You are allowed to make a change from GDR updates to CU updates ONE TIME. Once a SQL Server CU update is applied to a SQL Server installation, there is NO way to go back to the GDR update path. Can the security updates be applied to SQL Server instances on Windows Azure (IaaS)? Yes. SQL Server instances on Windows Azure (IaaS) can be offered the security updates through Microsoft Update, or customers can download the security updates from Microsoft Download Center and apply them manually.

SQL Server

SQL Server

The original report as published on the Microsoft Security Response Center, by Matei "Mal" Badanoiu. 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, SSRS failed to properly sanitise a URL parameter, allowing script injection into a page.

Impact

An attacker could read content they are not authorised to read, execute malicious code, and use the victim's identity to change permissions and delete content, but only if an authenticated user clicks a crafted link.

What the attacker needed

Victim is authenticated; victim clicks a crafted link

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.

This is a cross-site scripting (XSS) bug: a website fails to clean up user input, so an attacker can sneak their own script into a page that another person views. The script runs as if it came from the trusted site, letting the attacker read data or act as the victim. The victim only has to click a crafted link while logged in.

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.