Skip to content
Access control Write-up Beginner

A User to Admin: How I Went From Nobody to Owning the Admin Panel

A student portal let new users log in immediately after registering without verifying their email, and the user dashboard listed every account, including admins, each with an edit button. Any logged-in user could open an admin's record, set a new password and role, and then log in as that admin.

medium.com

Published on medium.com

Let’s talk about a recent vulnerability I discovered — one that let me bypass email verification, escalate privileges, and take full control of an application’s ADMIN PANEL without touching the original credentials. 🔥

Xh081iX, on medium.com

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 the client-side user interface for authorisation, so the user-management pages and the account update endpoint never checked whether the caller was an administrator or required the old password.

Impact

An unauthenticated attacker could gain full administrative access to the application and potentially view, change or delete other users' data.

What the attacker needed

No account needed; victim does not need to act

The fix

The application should verify email addresses before login, restrict the user list and edit functions to administrators on the server side, and require the old password before any password change.

How it was found

  1. Register a new account with a throwaway email address and get logged in straight away.
  2. Open the Users tab in the dashboard and see the full list of accounts, including admins.
  3. Click Edit on an admin account and change its password and role.
  4. Log out, then log in with the admin's email and the new password to reach the admin panel.

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 sign up on a website, it should check that the email address is really yours before letting you in. Here it did not, so anyone could create an account with a made-up address. Then the page that lists users showed everyone, including administrators, and let any ordinary user change an admin's password, which meant the attacker could simply log in as the admin.

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.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.