Skip to content
Access control Disclosed report Beginner

Public Group owners/Maintainers can not delete comments posted on epics

Comments on epics in public groups cannot be deleted or edited by group owners or maintainers, unlike comments on issues and merge requests. This allows any user to spam epic comment sections without the group owners being able to remove the comments.

GitLab

Originally disclosed on GitLab

  • Fixed in 3 months
  • Disclosed after 3 months

HackerOne report #538101 by ashish_r_padelkar on 2019-04-14, assigned to estrike:

Summary

Hello,

I havent found any documentation as such but looks like comments posted on Epics in any public group can not be deleted by even Group owners/maintainers. This looks like a bug as comments posted on issues/merge requests are editable and deletable by Admins.

Steps to reproduce

  1. Create a public group and then create an epic inside it (Use GOLD membership).

  2. As it is public epic, anyone can comment on it by navigating on epic like https://gitlab.com/groups/PrivateGroupofGuest/-/epics/1. So just post a comment as any user.

  3. When, group owners/maintainer visits this epic, they see the comment which is posted by random user from gitlab. They dont find an option to EDIT/DELETE the comment!.

  4. This way any random users may spam the epic comment box and Group Owners/Maintainers cant even delete those comments!.

What is the current bug behavior?

Group owners/Maintainers can not delete comments posted on EPIC

What is the expected correct behavior?

Group owner/Maintainers should be able to delete/edit anyones comment like it is in issues and merge requests

Output of checks

This bug happens on GitLab.com and probably on omnibus installations too

Regards,
Ashish

Impact

Anyone can spam the comments on EPIC from public groups and then group owners/maintainers can not even edit/delete the comments posted by others

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 a missing permission check or UI control for epic comments, so the delete/edit options are not available to group owners and maintainers.

Impact

Any user can spam comments on epics in public groups, and group owners or maintainers cannot edit or delete those comments.

What the attacker needed

A public group with an epic; any user can comment on the epic; group owner or maintainer role

The fix

Group owners and maintainers should be able to edit and delete any comment on epics, as they can on issues and merge requests.

How it was found

  1. Create a public group and an epic inside it.
  2. As any user, post a comment on the public epic.
  3. As a group owner or maintainer, visit the epic and observe that no edit or delete option is available for the comment.

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 public group is a workspace that anyone can see. An epic is a large work item inside that group. Normally, group owners can remove inappropriate comments, but here they cannot remove comments on epics, so anyone can post spam and it stays there.

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.