Skip to content
Info disclosure Disclosed report Beginner

comments search leaks system notes

The comments search feature on GitLab leaked information about private issues, projects, and groups to anonymous users. An attacker could discover the existence and names of private projects and groups by searching for specific terms.

GitLab

Originally disclosed on GitLab

  • Fixed in 30 days
  • Disclosed after 30 days

A followup from a previous HackerOne Report:

The comments search seems to still leaks data about private issues.

Go, as an anonymous user, to https://gitlab.com/search?group_id=9970&repository_ref=&scope=notes&search=nextbit&snippets=

You will see a comment on a private issue, of a private project, of a private group.

Therefore, the search is leaking existence of private projects, private groups, and existence of issues.

If you open the returned issue, the information is properly hidden.

Basically, the notes scope search is not properly cleared from private information. I suppose it is the same with notes from MRs or other components, but I don't want to blindly look for private projects.

Please note that the name of projects could reveal the name of customers (in our case, nextbit is the company I work for, but the name of the project should be confidential)

You can reproduce it also through APIs: curl "https://gitlab.com/api/v4/projects/278964/search?scope=notes&search=nextbit" --header "PRIVATE-TOKEN: secret"

This was initially mentioned in https://gitlab.com/gitlab-org/gitlab/issues/33399#note_227673311 and then determined to be a separate issue.

Screenshot:

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 search indexing or query logic for the 'notes' scope did not properly filter out results from private projects and groups for anonymous users.

Impact

The search could reveal the existence and names of private projects and groups, potentially exposing confidential customer information.

What the attacker needed

None

How it was found

  1. As an anonymous user, visit the GitLab search page with a specific group ID and search term for notes.
  2. Observe that a comment from a private issue of a private project in a private group is displayed.
  3. Optionally, use the API with a private token to search notes within a project and see private comments.

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 a search function that lets you look through comments. Normally, private projects and their issues should be hidden from people who aren't members. But this search showed snippets of comments from private issues to anyone, even without logging in. That means someone could find out private project names and see that certain issues exist.

What is Info disclosure?

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

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.