The “Read-Only” Analytics Role That Could Delete a $40 Billion Cloud Empire
A read-only analytics batch-query endpoint forwarded user-supplied JSON to an internal Redis job queue, where a background worker deserialised reserved keys and executed destructive actions with root cluster privileges. An attacker with a low-privilege auditor account could terminate any server, database or bucket across all tenants.
There’s an old running joke among bug hunters: The safest code is the code that was never written; the second safest code is the feature marked “Read-Only.”
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 background worker trusted any message arriving on the internal Redis queue and deserialised reserved keys from user-controlled JSON without re-checking authorisation or tenant scope.
Impact
An attacker with a read-only analytics login could issue a terminate command against any virtual machine, database or bucket in the entire cloud ecosystem, potentially causing a global outage; the report does not mention any defence that blocked this.
What the attacker needed
A low-privilege Auditor account; access to the analytics batch-query endpoint
The fix
The batch-query endpoint was temporarily disabled, and the underlying issue should be fixed by having the background worker re-validate authorisation and tenant scope for every queued job.
How it was found
- Log in with a low-privilege Auditor account and inspect the batch-query API call used for usage graphs.
- Send a modified batch-query request containing an unexpected reserved key to see how the backend handles it.
- Observe an error revealing the internal handler name ProcessMetricJob, indicating a background job queue.
- Send a request with reserved action and scope keys to test whether the worker enforces permissions.
- Notice that the test server in the staging environment was immediately terminated.
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 low-privilege user could send a special request to a dashboard that was only meant to show charts. The server passed that request to a background worker without checking permissions again, and the worker treated it as a trusted command to delete cloud resources. This is dangerous because the worker had full administrative power over every customer's infrastructure.
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.