UUID Injection: 0-Click Superadmin ATO
An API endpoint exposed admin UUIDs, and the password reset flow accepted an extra UUID parameter that was not validated against the user, allowing an attacker to reset an admin's password and log in as superadmin.
medium.com
Published on medium.com
Bug bounty hunting is all about thinking outside the box, and this particular finding was no exception. What started as simple subdomain fuzzing led me to full admin access without ever clicking a verification link.
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 password reset endpoint accepted an unvalidated UUID parameter and used it to determine the account to reset, without checking that the UUID belonged to the requesting user.
Impact
An attacker could reset admin passwords and gain full control over the admin panel, including user management and application settings.
What the attacker needed
Access to /admins.json; knowledge of an admin email; ability to send API requests
The fix
The issue was fixed by removing public access to /admins.json, adding UUID validation on authentication requests, and enforcing proper authentication methods.
How it was found
- Discover the API subdomain and the /doc/api endpoint through subdomain enumeration and directory brute-force.
- Request /admins.json and obtain a list of admin UUIDs and emails.
- Find a uuid parameter in JavaScript files related to authentication.
- Send a password reset request with an admin email, a new password, and the leaked admin UUID.
- Log in to the admin panel with the updated credentials.
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 UUID is a long random-looking identifier. The site accidentally published a list of admin UUIDs and then trusted any UUID supplied during a password reset, so an attacker could use an admin's UUID to reset that admin's password and take over the account.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.