Skip to content
Access control Disclosed report Beginner

Non- members can resolve/unresolved discussions from public projects

GitLab

Originally disclosed on GitLab

  • Fixed in 4 months
  • Disclosed after 4 months

HackerOne report #578057 by ashish_r_padelkar on 2019-05-12, assigned to estrike:

Summary

Hello,

As per this article https://docs.gitlab.com/ee/user/discussions/#resolvable-comments-and-discussions ,

They can then be individually resolved by anyone with at least Developer access to the project or by the author of the change being reviewed.

This is true and they can resolve/unresolved all discussions individually. However, the user with no permissions to public projects can resolve/unresolved their own reply too!.

The problem with this is , if all the other comments/replies from the discussion thread is resolved , non members can simply change the whole discussions status to resolve/unresolved by simply posting a reply on discussions!

Steps to reproduce

  1. Create any discussion thread in merge difference on public projects merge requests.
  2. Now mark all the replies from this thread to resolved. This will eventually mark the discussion thread as Resolved too!
Screenshot_2019-05-12_at_18.13.46.png
Screenshot_2019-05-12_at_18.13.46.png From the original on GitLab
  1. Now as any non member, simply post a reply on this thread. The reply will automatically posted as Resolved as discussion is resolved already!

  2. However, he can now just use this resolve/unresolved button to change the status of his own reply. Just click on green check

Screenshot_2019-05-12_at_18.16.09.png
Screenshot_2019-05-12_at_18.16.09.png From the original on GitLab
  1. On changing the status of his own reply, the whole discussion threads status changed as well! and the thread appears like below and resolved by username who is not a member of the project!
Screenshot_2019-05-12_at_18.16.54.png
Screenshot_2019-05-12_at_18.16.54.png From the original on GitLab

What is the current bug behavior?

Non- members can resolve/unresolved discussions from public projects

What is the expected correct behavior?

Only developer or author of the change should be allowed to change the statuses as mentioned in the article

Output of checks

This bug happens on GitLab.com and should also happen on omnibus installations too!

Suggested Fix

Guest/ reporter/non members should-not be allowed to resolve their own replies Also

Regards,
Ashish

Impact

Non members can resolve/unresolved discussions from public projects

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.

What is known

A medium-severity access control bug in gitlab.com. GitLab made it public on 3 October 2019. Fixed in version 12.4.

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

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

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.