Skip to content
Access control Write-up Beginner

How I hacked 74k users of a website.

An unprotected admin directory contained a script that let anyone delete user accounts by entering a username. An attacker could delete any of the 74,000 users, including administrators.

Utkarsh Agrawal Follow

Published on medium.com

I follow this Quote “Sharing is Caring” so I decided to share my vulnerability which I found in a website and the vulnerability I named it is “Admin Panel Pawned”. Now Sounds Interesting.

Utkarsh Agrawal, 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 admin directory and its scripts lacked authentication and authorisation checks, allowing unauthenticated access to account deletion functionality.

What the attacker needed

No account needed; knowledge of the admin directory path

The fix

The website should require authentication and authorisation before allowing access to admin scripts and account deletion actions.

How it was found

  1. Browse the website and notice an admin directory.
  2. Run a directory brute-force tool on the admin directory.
  3. Discover a file named remove_access.php.
  4. Open the file and see a form with a username field and a delete button.
  5. Enter a username and click delete to remove that account.

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 website had a hidden admin page that was not protected by a login. Anyone who found the page could type a username and delete that person's account. This is like leaving the keys to a building on the front door.

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.

More by Utkarsh Agrawal

View all

2 more disclosed reports, best first.

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.