Skip to content
Access control Write-up Beginner

Lost and Found: How Deleted User Accounts Were Still Alive in th

Deleted user accounts were only soft-deleted, with an isActive flag set to false, but core endpoints like login and dashboard did not check this flag. An attacker could log in with the deleted account's credentials and regain full access, including changing the role to admin.

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

Impact

An attacker could reactivate previously deleted accounts, gain full dashboard access, and even change the account role to admin, bypassing account lifecycle security.

What the attacker needed

Valid credentials of a deleted account; access to the login endpoint

The fix

The application should verify account status on every request, not just at login, and ensure that soft-deleted accounts cannot authenticate or perform actions.

How it was found

  1. Create a user account via the signup endpoint.
  2. Delete the account using the delete endpoint.
  3. Attempt to log in again with the same credentials.
  4. Observe that login succeeds and a session is returned.

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 delete an account, the system should make it unusable. Here, the system only marked the account as inactive but did not stop it from working. So anyone who knew the old username and password could still log in and use the account as if it was never deleted.

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.