Access control - Guest user can delete snippets at https://gitlab.com
A Guest user on GitLab.com could delete snippets they had created, even though the permissions documentation does not list this ability. An attacker with a Guest account could remove their own snippets, which should not be allowed.
GitLab
Originally disclosed on GitLab
- Fixed in 3 months
- Disclosed after 3 months
HackerOne report #691746 by brdoors3 on 2019-09-10, assigned to akelly:
Hi team,
I found one possible access control/privilege issue related to Guest users on snippets area at https://gitlab.com
POC
I checked with [email protected] if the Guest member can delete Snippets and receive this reponse


I also take a look for documentation area at https://docs.gitlab.com/ee/user/permissions.html#project-members-permissions and don't found any permission for it
1 access user one Guest member https://gitlab.com find a snippet that the Guest himself created > click to edit> Delete> Confirm
Snippet deleted
Impact
In this scenario although it should not be possible a Guest member can delete Snippets created by himself at /snippets
Attachments
Warning: Attachments received through HackerOne, please exercise caution!
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 application did not enforce the documented permission restriction for Guest users on snippet deletion.
Impact
A Guest user could delete snippets they created, which should not be possible according to the permissions documentation.
What the attacker needed
A Guest account on GitLab.com; the Guest must have created a snippet
How it was found
- Log in as a Guest user on GitLab.com.
- Find a snippet that the Guest created.
- Click to edit the snippet.
- Click Delete and confirm.
- The snippet is deleted.
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.
In GitLab, a Guest is a low-privilege user who normally cannot delete things. The report shows that a Guest could still delete their own snippets, which goes against the documented permissions. This is a problem because it lets a user do something they are not supposed to.
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.