Skip to content
Access control Disclosed report Beginner

Insecure Account Removal #2

An account created without a password can be deleted without any reauthentication, because the deletion form has nothing to check against. An attacker with access to an open session on a shared computer could delete the account without knowing a password.

japz Follow

Originally disclosed on HackerOne

  • Triaged in 25 hours
  • Fixed in 5 months
  • Disclosed after 15 months

Hi Team,

This report is the pretty much same of my closed report here: #223355 , the difference is [BUG#2] when a user created an account BUT did not supply the password, therefor there is nothing to reauthenticate when deleting the account, it will successfully delete the account without supplying password because the user not yet set his/her password.

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.

  1. The user create a weblate account to a shared computer (office, library, cafe)
  2. The user not yet set his/her password
  3. Left the account open.
  4. Intruder came and try to delete the users account
  5. 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 legitimate user.

Mitigation:

I am not sure how you are going to handle this one, because reauthentication is the solution for this, but since the user not yet set his/her password, reauthentication will not work and the account can delete successfully, please consider my suggestion below.

Suggestion to mitigate this:

The password creation should be enforced on the registration form, that will resolved many issues regarding the login and password reset mentioned on my other report here: #229528

When the user already have password on account registration, you don't have to touch the code of the account deletion form, you can leave it as it is since the user already have password to reauthenticate.

Let me know if you need more information or if there is anything i can help with.

Regards Japz

The original report as published on HackerOne, by japz. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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 flow only enforces reauthentication when a password exists, so accounts without a password bypass the check.

Impact

An attacker with access to an open session could delete an account that has no password set, without knowing any credentials.

What the attacker needed

Account created without a password; attacker has access to the open session

The fix

The password creation should be enforced on the registration form so that reauthentication is always possible.

How it was found

  1. Create an account on a shared computer.
  2. Do not set a password for the account.
  3. Leave the account session open.
  4. An intruder attempts to delete the account.
  5. The account is deleted without any 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, a website should ask you to prove you are the owner, usually by typing your password again. Here, if the account was made but no password was ever set, the site skips that check entirely. So anyone sitting at the still-logged-in computer can delete the account.

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 japz

View all

43 more disclosed reports, best first.

More from Weblate

View all

The newest disclosed reports for this program.

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.