How Azure Curp Proxy Enables A Nearly Invisible Data Exfiltration Tunnel Including Mi Token Theft
Azure Custom Resource Provider (CuRP) in Proxy mode can be abused as a data exfiltration tunnel because ARM forwards requests to an attacker-controlled endpoint in another tenant. An attacker with a bearer token can send stolen data, including Managed Identity tokens, through legitimate-looking traffic to management.azure.com.
Published on systemweakness.com
Microsoft is retiring Custom Resource Provider (CuRP) soon. What CuRP is and why (probably) you didn’t heard about that?
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 design of CuRP Proxy mode allows ARM to forward requests to an endpoint in any tenant, so an attacker can use their own tenant to receive data without being tied to the victim's subscription.
Impact
An attacker could exfiltrate sensitive data including Managed Identity tokens through traffic that appears to be normal Azure management traffic, making detection difficult.
What the attacker needed
Attacker-controlled Azure tenant; bearer token from attacker tenant; victim malware able to make outbound requests
The fix
Microsoft is retiring CuRP, which should remove this abuse path.
How it was found
- Attacker hosts a CuRP Proxy in their own tenant.
- Attacker delivers a bearer token to victim malware via a DNS TXT record.
- Victim malware sends a POST request to management.azure.com with the token and stolen data.
- ARM authenticates the token in the attacker's tenant and forwards the payload to the attacker's Proxy endpoint.
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.
Azure Custom Resource Provider lets you plug your own web service into Azure's management system. In Proxy mode, Azure forwards requests to that service, even if it's in a different tenant. An attacker can set up such a service and use it to quietly send stolen data out through Azure's own management traffic, which most firewalls trust.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.