From Fuzzing to Administrator Access: Chaining Multiple Weaknesses into Full Account Takeover
An unauthenticated API endpoint leaked all user details, and the login page revealed valid usernames through differing error codes. After brute-forcing a low-privilege account, the attacker changed a role value stored in the browser's localStorage to gain administrator access.
This is Md Saikat, a cybersecurity enthusiast with industry-recognized certifications including eJPT, eWPTX, and eCPPT. My primary focus is web application security, where I dedicate my time to identifying vulnerabilities, assessing security posture, and ethically uncovering weaknesses that help organizations…
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 application trusted a client-side role value stored in localStorage for authorisation decisions, and exposed user data through an unauthenticated endpoint.
Impact
An attacker could obtain valid credentials and escalate from a low-privilege user to administrator, leading to full account takeover.
What the attacker needed
No authentication for user endpoint; no rate limit on login; victim uses the web app
How it was found
- Fuzz the API base path to discover the /user endpoint.
- Request the /user endpoint without authentication to obtain all usernames.
- Brute-force the login using the harvested usernames with common passwords.
- Log in with a discovered low-privilege account.
- Edit the role value in localStorage from Officer to Admin and reload.
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 website had a public page that listed every user's details, and its login form behaved differently for real and fake usernames, helping attackers guess valid accounts. After logging in as a normal user, the attacker edited a value saved in their browser to pretend to be an administrator, and the site believed it.
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.