Skip to content
Access control Disclosed report Beginner

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

bandicam_2021-07-12_23-51-36-596.jpg
bandicam_2021-07-12_23-51-36-596.jpg From the original on GitLab
Steps to reproduce
  1. Create a project with account A
  2. Create a wiki page
  3. Invite account B and give him a developer role
  4. Go to the wiki page with account B, click the edit button
  5. 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!

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 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

  1. Create a project with account A
  2. Create a wiki page
  3. Invite account B and give them a developer role
  4. Go to the wiki page with account B, click the edit button
  5. 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.

More from GitLab

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.