Skip to content
XSS Advisory Intermediate CVE-2024-38201

Azure Stack Hub Elevation of Privilege Vulnerability (CVE-2024-38201)

The data widget of the Azure Stack Hub dashboard did not properly sanitise the connection URL, allowing an attacker to craft a malicious URL. An unauthenticated attacker could exfiltrate a user's authentication token by sharing a dashboard publicly and tricking the user into clicking the data widget.

Felix Boulet Follow

Originally disclosed on Microsoft

High 7.0 View original

FAQ

According to the CVSS metric, the attack complexity is high (AC:H) and user interaction is required (UI:R). What does that mean for this vulnerability? An attacker would need to trick the user to transfer a malicious JSON file and hope that user does not open and review it. If the user opens it, the user will see an invalid URL and not import it for his dashboard. But in a scenario where the user does import the malicious JSON file, the portal will not immediately send a token. Only in a corner case that a user configures the dashboard again from the portal will there be a token leak.

FAQ

How could an attacker exploit this vulnerability? An elevation of privilege vulnerability exists when the data widget of the Azure Stack Hub dashboard feature does not properly sanitize the connection URL. An unauthenticated attacker could exploit this vulnerability by sending crafted malicious URL to the user. This can be used to exfiltrate the authentication token of a user by sharing a dashboard publicly and then sending the link of the dashboard to the user. If that user clicks on the data widget, the token will leak and can be used by the attacker. The security update addresses vulnerability by helping to ensure that Azure Stack Hub dashboard properly sanitizes connection URLs.

Azure Stack

Azure Stack

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by Felix Boulet with Centre gouvernemental de cyberdéfense (CGCD). 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

The data widget of the Azure Stack Hub dashboard feature did not properly sanitise the connection URL.

Impact

An attacker could exfiltrate a user's authentication token, but only if the user imports a malicious JSON file and later reconfigures the dashboard from the portal, a corner case.

What the attacker needed

Attacker can share a dashboard publicly; victim clicks the data widget; victim imports a malicious JSON file; victim reconfigures dashboard from portal

The fix

The security update addresses the vulnerability by helping to ensure that Azure Stack Hub dashboard properly sanitises connection URLs.

How it was found

  1. The attacker creates a dashboard with a malicious connection URL in the data widget.
  2. The attacker shares the dashboard publicly and sends the link to the victim.
  3. The victim clicks on the data widget in the shared dashboard.
  4. The victim's authentication token leaks to the attacker.

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 dashboard is a page that shows information from different sources. The data widget is a part of the dashboard that loads content from a web address. Because the portal did not check that address properly, an attacker could make it point somewhere harmful and steal the user's login token, which is like a temporary key that proves who you are.

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 Felix Boulet

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.