Insecure Account Removal
The account deletion feature did not require the user to re-enter their password, so anyone with access to an already logged-in session could permanently delete the account. An attacker using a shared or unattended computer could remove the victim's account without knowing their credentials.
Published on medium.com
The removal of account is one of the sensitive part of a web application that needs to protect, therefor removing an account should validate the authenticity of the legitimate user, however i have found that when removing an account, the system did not require the user to input the account password.
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 account deletion endpoint relied only on the existing session cookie and did not perform a re-authentication check (such as confirming the current password) before carrying out the irreversible action.
Impact
An unauthorised person with access to an open session could permanently delete the user's account and data, causing loss of information and inconvenience; the report does not claim remote exploitation without such access.
What the attacker needed
Victim logged in on a shared computer; attacker has physical access to the session
The fix
The account deletion flow should require the user to re-enter their password (or another strong re-authentication factor) before the deletion is processed.
How it was found
- The user logs in to the application on a shared computer.
- The user leaves the account open and unattended.
- An intruder accesses the open session and attempts to delete the account.
- The intruder completes the deletion because no password confirmation is requested.
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, a safe website should ask you to type your password again to prove it is really you. This report says that step was missing, so someone who found a logged-in computer could delete the account with just a click. That means a person who does not know the password can still cause permanent loss of data.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.