Skip to content
Access control Write-up Beginner

Clean-Up Fail: How a Forgotten Admin Endpoint Let Me Drop All Th

An unauthenticated admin endpoint intended for internal QA was left accessible in a staging environment, allowing anyone to wipe the entire database with a single GET request. The attacker could delete all user data, product listings, and transaction logs, causing a complete outage.

iski Follow

Published on infosecwriteups.com

Free Link 🎈

Iski, on infosecwriteups.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 an internal QA cleanup endpoint was accidentally deployed to a publicly accessible environment without any authentication or access restrictions.

Impact

An attacker could wipe the entire database, causing loss of all user data, product listings, and transaction logs, and potentially leading to a complete service outage.

What the attacker needed

None

The fix

The endpoint should be protected with authentication, rate limiting, and IP or header restrictions, and internal scripts should never be deployed to production.

How it was found

  1. Discover the endpoint via recon scanning for admin patterns.
  2. Send a GET request to the endpoint without any authentication.
  3. Observe a success response indicating all database entries were cleared.
  4. Verify impact by reloading the app and seeing data missing and errors.

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 company left a special web address that was meant only for internal testing, but anyone on the internet could visit it. Visiting that address deleted all the data in their database. This is like leaving a self-destruct button on your website that anyone can press.

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 iski

View all

186 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.