Skip to content
Business logic Disclosed report Beginner

Incomplete handling of account deletion

The deletion page blocked deletion when the user owned a group, but after visiting the group and returning the button became available; creating a new group in another tab and confirming the password scheduled the account for removal.

GitLab

Originally disclosed on GitLab

  • Fixed in 19 months
  • Disclosed after 19 months

HackerOne report #503823 by brdoors3 on 2019-03-01, assigned to asaba:

Hi team,

I noticed an access control issue related to deleting an account at https://gitlab.com

POC

1 access https://gitlab.com/profile/account > delete account

When the user owns a group, the following message is displayed:

2 access this group and delete
3 back to https://gitlab.com/profile/account > delete account

The delete account button is now available

4 in another tab access https://gitlab.com/dashboard/groups > create a new group
5 back to the step 3 tab > confirm the account password

Response: Account scheduled to removal

Impact

The message is incorrect for the two possible scenarios:

  • if the account is actually deleted > this should not be possible because there is a group where the user is the owner
  • if the account is not deleted > the message should not be returned

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

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 page only checked group ownership on initial load and did not re-validate before allowing deletion, so navigating away and back reset the check.

Impact

The account could be scheduled for removal even though the user still owned a group, which may lead to unintended deletion of an account with active group ownership.

What the attacker needed

A GitLab account; the account owns at least one group

How it was found

  1. Go to the account deletion page and attempt to delete the account.
  2. Observe the message that the user owns a group and cannot delete.
  3. Visit the group page and then return to the account deletion page.
  4. The delete account button is now available.
  5. In another tab, create a new group.
  6. Return to the deletion tab and confirm the account password.

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 try to delete your account, the website checks if you own any groups and stops you if you do. The reporter found that by visiting the group page and coming back, the website forgot to check again, so the delete button appeared. This means the safety check could be bypassed.

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.

More from GitLab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.