I Walked Into an Admin Panel -Without Being an Admin
A WordPress/WooCommerce site allowed any logged-in user to access the admin dashboard by directly visiting the admin URL, without checking their role. An attacker could view order data, customer records, and product settings, and potentially modify listings or pricing.
medium.com
Published on medium.com
A real-world authorization flaw hiding in plain sight, and what it tells us about the silent gap between “who you are” and “what you can access.”
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 failed to enforce role-based access control on admin routes, only checking that a user was logged in rather than verifying their privileges.
Impact
A regular user could view sensitive data such as order and customer records, and could potentially modify product listings or pricing, though full administrative actions were not possible.
What the attacker needed
A free user account; victim visits the admin URL directly
The fix
The vulnerability was fixed by ensuring that access to admin routes explicitly checks user roles and capabilities, not just login state.
How it was found
- Register as a regular user on the WordPress/WooCommerce site.
- Log in and browse to the account page.
- Change the URL from the account page to the WordPress admin path.
- Observe that the admin dashboard loads without any role check.
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.
When you log in to a website, the site checks who you are (authentication). It should also check what you are allowed to do (authorization). Here, the site only checked that you were logged in, not that you were an admin, so any normal user could open the admin pages by typing the address directly.
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.