Skip to content
Info disclosure Disclosed report Beginner CVE-2019-15576

Private System Note Disclosure using GraphQL

The GraphQL API exposed private system notes on issues that were hidden in the REST API and UI, such as notes about moving an issue to a private project or marking it as a duplicate of a confidential issue. An unauthenticated attacker could read these notes and learn sensitive information about private projects and issues.

ngalog Follow

Originally disclosed on HackerOne

  • Triaged in 4 days
  • Fixed in 3 months
  • Paid in 3 months
  • Disclosed after 5 months

Summary

When you use the REST API or UI to view an issue's discussion/notes, private system note is hidden to member's only.

Such as moving an issue to a private project, making issue as duplicate of a confidential issue, someone mentioned this issue in a confidential issue.

They are properly hidden in REST and UI, but you can still see them in graphql

Steps to reproduce

query {
  project(fullPath:"username16/ci-test"){
    issue(iid:"1"){
      descriptionHtml

      notes{
        edges{
          node{
            bodyHtml
            system
            author{
              username
            }
            body
          }
        }
      }
    }}
  }
  • You should notice it has moved to dynamic#1, which is not visible from UI
  • also you should be able to see it was marked as duplicate of #2, which is not visible from UI cause #2 is confidential
  • also you can see someone mentioned this issue in #2, which is not visible from UI cause #2 is confidentail

Impact

Disclosure of all system note of an issue/MR/designs that should be private

Reproduced on gitlab.com

Impact

Disclosure of all system note of an issue/MR/designs that should be private

The original report as published on HackerOne, by ngalog. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

An unauthenticated attacker could read private system notes on issues, merge requests, and designs, revealing information about private projects and confidential issues.

What the attacker needed

No authentication needed; target public project with public issue

How it was found

  1. Open a new private browser without an authenticated session.
  2. Visit the GraphQL explorer at https://gitlab.com/-/graphql-explorer.
  3. Paste a query that requests an issue's notes, including bodyHtml, system, author, and body fields.
  4. Compare the GraphQL response with the issue page in the UI to see private system notes that are not shown in the UI.

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.

GitLab has two ways to get data: a normal web interface (REST API and UI) and a newer query language called GraphQL. The normal interface correctly hid certain automatic notes that reveal private actions, but the GraphQL interface did not apply the same hiding rules. So anyone could use GraphQL to read notes that were meant to be secret.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by ngalog

View all

21 more disclosed reports, best first.

More from GitLab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.