Insecure Account Deletion
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 close the victim's account without knowing their password.
- Disclosed after 20 hours
Hi Team,
The removal of account is one of the sensitive part of a web application that needs to protect, therefore removing an account should validate the authenticity of the user, however i have found that when removing an account, the system did not require the user to input the account password.
Steps to reproduce:
- go to https://liberapay.com/ and login to your account.
- go to profile/settings.
- you'll see the "close account" button.
- press that button and you'll be successfully deleted your account.
Mitigation: Put reauthentication when anyone/user is deleting an account, ask the user to input password before the completion of the account deletion.
Let me know if you need more information.
Thanks,
Impact
Exploit Scenario:
- The user logins to a shared computer (office, library, cafe)
- Left the account open.
- Intruder came and try to delete the users account
- Intruder can easily delete the account because the system did not protect it by asking the password to validate that the person deleting the account is the real user.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the account deletion endpoint lacked a re-authentication step, relying only on the existing session cookie.
Impact
An attacker with access to a logged-in session could permanently delete the victim's account without knowing the password.
What the attacker needed
Access to a logged-in session; victim leaves session open on shared computer
The fix
The account deletion flow should require the user to re-enter their password before completing the deletion.
How it was found
- Log in to the site.
- Go to profile settings.
- Find the close account button.
- Press it and the account is deleted without a password prompt.
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 report has not been written yet. The Original tab links to the source.
When you delete an account, the website should ask you to type your password again to prove it is really you. Here, it did not ask, so anyone who found a logged-in browser could delete the account with one click. This is dangerous on shared computers because the next person can act as you.
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.