Discovering a Critical Vulnerability in application : The Journey of an Accidental Admin
The application allowed any logged-in user to access administrative dashboard pages without approval, because access control checks were missing. An attacker could view sensitive information and perform administrative actions.
Published on adarshkrduaby.medium.com
In the ever-evolving world of cybersecurity, every day brings new challenges and discoveries. As a security researcher, my mission is to uncover vulnerabilities before they can be exploited by malicious actors.
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 did not enforce role-based access checks on administrative pages, only relying on the login step to block unapproved users.
Impact
Unauthorised users could access sensitive information, manipulate data, and perform administrative actions.
What the attacker needed
A free account; victim clicks a link (not required)
The fix
The application should enforce role-based access controls on all administrative pages and restrict sensitive actions to authorised administrators only.
How it was found
- Create a new user account on the application.
- Log in with the new credentials and observe a 403 error requiring administrator approval.
- Read the robots.txt file to find listed URLs.
- Visit the discovered administrative URLs directly and confirm access without approval.
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.
After creating an account, the user was blocked from the main site with an error saying an administrator needed to approve the account. However, the user found that some admin-only web pages could still be opened directly, without any approval. This means the site did not check whether the user was allowed to see those pages.
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.