No single pane of glass: Anatomy of an Azure permission takeover
An attacker who found a leaked service-principal client secret used a Graph API permission the app already held to grant itself Global Administrator, then escalated to root User Access Administrator and harvested storage, Event Hub and Key Vault keys. Because Azure's permission data is split across five systems that do not share identifiers, the full extent of the takeover was hard to reconstruct.
webflow.sysdig.com
Published on webflow.sysdig.com
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 an over-permissioned service principal whose admin-consented Graph permission allowed it to assign any directory role, combined with Azure splitting permissions across five unlinked systems and leaving data-plane logging off by default.
Impact
The attacker gained full directory and resource control of the tenant, planted persistence in dozens of identities, and took the keys to the audit telemetry pipeline; data-plane use of the stolen keys would have left no trace because diagnostics were off by default.
What the attacker needed
Leaked service-principal client secret; app holds RoleManagement.ReadWrite.Directory
The fix
Should be fixed by inventorying all five permission planes together, treating non-human identities and their Graph permissions as first-class, alerting on cross-plane bridge events, disabling shared-key access where possible, and enabling audit, Graph and data-plane logging before exposure.
How it was found
- The attacker signed in as the service principal using the leaked client secret.
- The service principal added itself to the Global Administrator role at the directory root.
- The attacker added their own client secrets to 26 application registrations.
- The attacker called elevateAccess to gain User Access Administrator at root scope.
- The attacker assigned itself an Owner-class role at subscription scope.
- The attacker listed keys on storage accounts and Event Hub namespaces and added itself to Key Vault access policies.
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.
A service principal is a non-human account that apps and automation use to log in to Azure. Here its password (a client secret) leaked, and the app had been given a powerful permission that let it make itself a top-level administrator. From there the attacker could read secrets and keys across the whole cloud tenant.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.