Skip to content
Access control Disclosed report Beginner

Non member can view unresolved threads marked as internal notes

A non-member of a public project could view unresolved threads marked as internal notes by accessing a specific URL. This allowed an attacker to see information intended only for project members with at least Reporter access.

GitLab

Originally disclosed on GitLab

  • Fixed in 3 months
  • Disclosed after 3 months

⚠️ Please read the process on how to fix security issues before starting to work on the issue. Vulnerabilities must be fixed in a security mirror.

HackerOne report #2705909 by salh4ckr on 2024-09-07, assigned to GitLab Team:

Report | Attachments | How To Reproduce

Report

Summary

Hello,
When user starts a unresolved thread on merge request it is possible to be visible for project members with at least Reporter access. but i found that on public project iti is possible non member to view unresolved threads via url.

Steps to reproduce

As Owner

  1. Create public group A and create public project A in that group
  2. Create Merge request 1 in project A
  3. Start unresolved thread in merge request
1.png
1.png From the original on GitLab

As Attacker

  1. Go to project A and click merge request 1
  2. Here you can see that unresolved threads are not visible for you.
  3. Now go to https://gitlab.com/groupA/projectA/-/issues/new?merge_request_to_resolve_discussions_of=1

replace group A and project A with you group and project name, also change 1 with your mr id

2.png
2.png From the original on GitLab

Video POC

thrds_poc.mp4 From the original on GitLab

Impact

Non member (Attacker) can view unresolved threads marked as internal notes, which is intended to be visible to only members with atleast reporter access

Attachments

Warning: Attachments received through HackerOne, please exercise caution!

How To Reproduce

Please add reproducibility information to this section:

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

What the attacker needed

Public project; non-member (account status not specified)

How it was found

  1. Create a public group and a public project within it.
  2. Create a merge request in that project.
  3. Start an unresolved thread in the merge request.
  4. As an attacker, go to the project and click the merge request; note that unresolved threads are not visible.
  5. Visit the issue creation URL with the merge_request_to_resolve_discussions_of parameter set to the merge request ID.
  6. Observe that the unresolved threads are displayed.

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, merge request discussion threads marked as internal notes should only be visible to project members with at least Reporter access. The report found that a non-member could view these threads on a public project by visiting a special issue-creation link that references the merge request.

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.