Skip to content
Access control Disclosed report Beginner

An attacker can view the internal notes of project issues added in resolved thread without having any role in the project

A user with no role in a public project could read internal notes on issues by calling the notes API endpoint directly. Internal notes are meant to be visible only to project members with at least the Reporter role.

GitLab

Originally disclosed on GitLab

  • Fixed in 10 months
  • Disclosed after 10 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 #2950406 by iamgk808 on 2025-01-20, assigned to @ngeorge1:

Report | Attachments | How To Reproduce

Report

Summary

Only project members with at least the Reporter role can view internal notes; however, a user with no permissions is able to view internal note\

image.png
image.png From the original on GitLab
Steps to reproduce

As Owner

  1. Create a public group called group-1 and create a public project called project-1 in that group.
image.png
image.png From the original on GitLab

As an attacker

  1. Go to the public project called project-1.
  2. Create a new issue called sample issue.
image.png
image.png From the original on GitLab

\

image.png
image.png From the original on GitLab

As Owner

  1. Go to the "sample issue" and add an internal note called "secret note".
image.png
image.png From the original on GitLab

\

image.png
image.png From the original on GitLab

As an attacker

  1. Edit the issue title of the issue called "sample issue" and capture the request. In the response, you will get the issue ID.
image.png
image.png From the original on GitLab
  1. Use the request below to view the internal note:
    • Replace <redactedID> with your issue ID.
    • Replace <redactedGN> with your group name.
    • Replace <redactedPN> with your project name.
    • Replace cookie and X-Csrf-Token values
GET /<redactedGN>/<redactedPN>/noteable/issue/<redactedID>/notes HTTP/2  
Host: gitlab.com  
Cookie:   
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:134.0) Gecko/20100101 Firefox/134.0  
Accept: application/json, text/plain, */*  
Accept-Language: en-US,en;q=0.5  
Accept-Encoding: gzip, deflate, br  
Referer: https://gitlab.com/group-2025/node2/-/issues/5  
X-Csrf-Token: <redacted>  
X-Requested-With: XMLHttpRequest  
X-Last-Fetched-At: 1737379255714533  
Sentry-Trace: 20d3a84960e5434bbce8f559a882fde8-ab11f279887efaf9-0  
Baggage: sentry-environment=gprd,sentry-release=05027ce0c0f,sentry-public_key=f5573e26de8f4293b285e556c35dfd6e,sentry-trace_id=20d3a84960e5434bbce8f559a882fde8,sentry-sample_rate=0.05,sentry-transaction=projects%3Aissues%3Ashow,sentry-sampled=false  
Sec-Fetch-Dest: empty  
Sec-Fetch-Mode: cors  
Sec-Fetch-Site: same-origin  
If-None-Match: W/"4b4b9231fb29d5d764c467d19293ded9"  
Te: trailers

Impact

An attacker can view the internal notes of project issues without having any role in the project

Examples

<redacted>

What is the current bug behavior?

An attacker can view the internal notes of project issues without having any role in the project

What is the expected correct behavior?

Only project members with at least the Planner or Reporter role can see the internal note

Relevant logs and/or screenshots
Output of checks

Impact

An attacker can view the internal notes of project issues without having any role in the project

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

Root cause

Likely the notes API endpoint did not check the caller's project role before returning internal notes.

Impact

An attacker with no project role could view internal notes on issues, exposing information meant only for project members.

What the attacker needed

Public project; attacker has an account; attacker knows the issue ID

How it was found

  1. As owner, create a public group and a public project in it.
  2. As attacker, open the public project and create a new issue.
  3. As owner, add an internal note to that issue.
  4. As attacker, edit the issue title and capture the request to learn the issue ID.
  5. Send a GET request to the noteable issue notes endpoint with the issue ID, group name, project name, cookie and CSRF token.

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.

Internal notes are comments only project members should see. The server returned them when requested directly through its API by a user with no project role.

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.