Update documentation related to Developers deleting project and group wiki pages
A user with the Developer role could delete wiki pages in a project or group, even though only maintainers or owners should have that permission. An attacker with a Developer account could delete wiki pages created by others or themselves.
GitLab
Originally disclosed on GitLab
- Fixed in 18 hours
- Disclosed after 18 hours
This is a documentation update
As per Eric's comments below, this was done intentionally but we missed some of the documentation updates that correspond with it.
Developers can delete project and group wiki pages
Note that this applies to Developer-level members of both Projects and Groups. The steps to reproduce this found below apply to Projects, but the same result can happen for Developer level members invited to groups -- they can delete Group wikis.
HackerOne report #1258786 by justas_b on 2021-07-12, assigned to @ankelly:
Report | Attachments | How To Reproduce
Report
Summary
Only project maintainers or owners should be able to delete wiki pages

Steps to reproduce
- Create a project with account A
- Create a wiki page
- Invite account B and give him a developer role
- Go to the wiki page with account B, click the edit button
- Click the delete page button
What is the current bug behavior?
Developers can delete project wiki pages
What is the expected correct behavior?
Only project maintainers or owners should be able to delete wiki pages
Output of checks
This bug happens on GitLab.com
Impact
A developer can delete wiki pages that were created by others or himself
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 permission check for deleting wiki pages was not restricted to maintainers and owners, allowing Developers to perform the action.
Impact
A developer could delete wiki pages that were created by others or themselves.
What the attacker needed
A Developer-level account; access to a project or group wiki
How it was found
- Create a project with account A
- Create a wiki page
- Invite account B and give them a developer role
- Go to the wiki page with account B, click the edit button
- Click the delete page button
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 many systems, users have different roles with different permissions. A 'Developer' is a role that should allow editing code but not deleting important content like wiki pages. Here, the system mistakenly let Developers delete wiki pages, which they should not be able to do.
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.