Super FabriXss: From XSS to an RCE in Azure Service Fabric Explorer by Abusing an Event Tab Cluster Toggle (CVE-2023-23383)
A reflected XSS vulnerability in Azure Service Fabric Explorer's Node Name parameter could be triggered when a user toggled the 'Cluster' event type, allowing an attacker to execute JavaScript in the victim's context. This could then be escalated to remote code execution on a container by using the XSS to send a request that overwrites a Compose deployment with a malicious Docker image.
Published on orca.security
Today, at BlueHat IL 2023, we proudly announced our discovery of a new vulnerability in Azure, which we’ve dubbed ‘Super FabriXss.’ In our presentation, we demonstrated how we were able to escalate a reflected XSS vulnerability in Azure Service Fabric Explorer to an unauthenticated Remote Code Execution by abusing the…
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the Node Name parameter was reflected into the page without proper output encoding, and the 'Cluster' event type toggle caused the injected markup to be rendered as HTML, allowing script execution.
Impact
An unauthenticated attacker could execute code on a container hosted on a Service Fabric node, potentially taking control of the cluster node, but the attack requires the victim to click a crafted URL and enable the Cluster event type.
What the attacker needed
Victim clicks a crafted URL; victim enables Cluster event type; Windows cluster; SFX version 9.1.1436.9590 or earlier
The fix
Microsoft released a fix for the vulnerability, which was included in the March 2023 Patch Tuesday; organisations should apply updates.
How it was found
- Create an Azure Service Fabric cluster with Windows Server 2016 and containers.
- Modify the Node name in the UI and observe that it is reflected in the Node dashboard.
- Insert an HTML injection or XSS payload into the Node name and refresh; the payload is not rendered initially.
- Click the Events tab and then the 'Cluster' event type option; the injected payload is rendered and executes.
- Use the XSS to embed an iframe that sends a POST request to the Start Compose Deployment Upgrade API with a malicious ComposeFileContent.
- The malicious Docker image runs a CMD instruction that downloads and executes a reverse shell, giving code execution on the container.
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 write-up has not been written yet. The Original tab links to the source.
Cross-site scripting (XSS) is a flaw where a website shows user-supplied text without properly cleaning it, so an attacker can sneak in code that runs in a victim's browser. Here, a crafted link could make a logged-in user's browser run the attacker's script, and that script could then ask the Service Fabric platform to replace a running application with a malicious one, giving the attacker control of a container.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.