I Know What Azure Did Last Summer
A misconfiguration in the Azure Portal's ExtensionManifest caused telemetry requests containing access tokens to be sent to a non-existent domain. An attacker could exploit this by registering that domain and obtaining a valid certificate, thereby stealing tokens and taking actions on behalf of victims in their Azure environments.
cyberark.com
Published on cyberark.com
More and more companies are deciding to move their infrastructures into cloud environments offered by Microsoft Azure, Google Cloud Computing, Amazon AWS and many more.
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
The ExtensionManifest contained a URI attribute missing the '//' prefix, causing the JavaScript parser to misinterpret it as a local hostname and send requests to that unintended origin.
Impact
An attacker could steal access tokens with user_impersonation scope, allowing them to take actions on behalf of the victim in their Azure environment, potentially compromising virtual machines, storage, and other resources.
What the attacker needed
Attacker controls a server with hostname 'urehubs'; Valid certificate for 'urehubs' from a trusted CA; Victim visits Azure portal from affected network
The fix
Microsoft fixed the issue by adding code to ensure the URL is a full valid URL, so it is treated as a relative path to the current domain instead of a local hostname.
How it was found
- Set up an HTTP server with the hostname 'urehubs'.
- Obtain a signed certificate for that hostname from a root CA or local domain root CA.
- Wait for Azure users in the local domain to visit the Azure portal, which sends their access tokens to the attacker's server.
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.
The Azure Portal is a website used to manage cloud services. A configuration file had a mistake that made the website send sensitive login tokens to a domain that didn't exist. An attacker could buy that domain and trick the website into sending the tokens to them, giving them control over the victim's cloud account.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.