Skip to content
XSS Advisory Intermediate CVE-2021-41372

Power BI Report Server Spoofing Vulnerability (CVE-2021-41372)

Power BI Report Server did not properly sanitise uploaded template files that contained HTML, so an attacker could upload a malicious template using the victim's session and then run scripts in the victim's security context when the victim opened one of the HTML files. If the victim had admin privileges, this could lead to privilege escalation.

Emanuele Barbeno Follow

Originally disclosed on Microsoft

High 7.6 View original

Description

A Cross-Site Scripting (XSS) and Cross-Site Request Forgery (CSRF) vulnerability exists when Power BI Report Server Template file (pbix) containing HTML files is uploaded to the server and HTML files are accessed directly by the victim. Combining these 2 vulnerabilities together, an attacker is able to upload malicious Power BI templates files to the server using the victim's session and run scripts in the security context of the user and perform privilege escalation in case the victim has admin privileges when the victim access one of the HTML files present in the malicious Power BI template uploaded. The security update addresses the vulnerability by helping to ensure that Power BI Report Server properly sanitize file uploads.

Power BI

Power BI

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by Emanuele Barbeno with Compass Security. 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 failed to sanitise HTML content inside uploaded Power BI template files and lacked CSRF protection on the upload action.

Impact

An attacker could run scripts in the victim's security context and escalate privileges if the victim is an administrator.

What the attacker needed

Victim has a Power BI Report Server session; victim opens an HTML file from the template; victim may need admin rights for escalation

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.

Power BI Report Server is a Microsoft product for sharing reports. It let people upload template files that could contain web pages (HTML). The server did not clean these files properly, so a malicious template could carry a script that runs in the browser of whoever opens it, and the upload itself could be triggered without the victim meaning to. That script then acts with the victim's 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.