Skip to content
Access control Disclosed report Beginner

Drafted Review In Merge Request Still Able To Be Published In Archived Project

A drafted review on a merge request could still be published after the project was archived, even though archived projects are meant to be read-only. An attacker with a draft review could therefore post comments on a merge request in an archived project.

GitLab

Originally disclosed on GitLab

  • Fixed in 3 months
  • Disclosed after 3 months

HackerOne report #713376 by rafiem on 2019-10-14, assigned to @ankelly:

Hi Team,

Similarly from my other report #706044. In this report, i found out that drafted review in merge request change can still be published when the projects get archived. According to GitLab docs, archived project is in read-only state. Comment, notes and changes cannot be performed in any of the content of the project. But, in this issue, drafted review still can be published after project is archived.

Proof of Concept

1.) User A have a project , example :[REDACTED] 2.) User B and then make a draft review on one of the merge request in[REDACTED] 3.) User A then archived the project in settings
4.) User B still able to submit and publish the drafted review that he previously make, that allow User B to comment to part of merge request, which is forbidden when project is archived

<>PoC Video Attached
[REDACTED]

Impact

User still able to comment to merge reqeuest through darft review in changes even if merge request is in read-only state (archived) which souldn't be able to modified by normal user.

Best Regards,
[@]rafiem

Attachments

Warning: Attachments received through HackerOne, please exercise caution!

[REDACTED]

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

Impact

A user could still comment on a merge request through a drafted review even though the project was archived and should be read-only.

What the attacker needed

A project with a merge request; a user able to draft a review; project owner archives the project

How it was found

  1. User A has a project.
  2. User B creates a draft review on one of the merge requests.
  3. User A archives the project in settings.
  4. User B submits and publishes the previously drafted review.

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 a project is archived, it is supposed to become read-only so nobody can add comments or make changes. This report shows that a review draft saved before archiving could still be submitted afterwards, letting a user post comments despite the read-only state.

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.