Skip to content
Info disclosure Disclosed report Beginner

Know whether release tags exists or not as a guest in private projects

A guest user in a private project could tell whether a given tag was associated with a release by comparing API responses, which differed between an existing tag and a non-existent one. This allowed guessing valid release tags that should have been hidden from guests.

GitLab

Originally disclosed on GitLab

  • Fixed in 14 months
  • Disclosed after 14 months

HackerOne report #587938 by ashish_r_padelkar on 2019-05-22, assigned to jritchey:

Summary

Hello,

While #478569 is fixed for public projects and gets 403 in both cases i.e tag exists or not with releases

However, with introduction to https://about.gitlab.com/2019/05/22/gitlab-11-11-released/#guest-access-to-releases , Its possible for a guests users to know wether a release contains the tags or not using API response

Steps to reproduce

  1. As a guest user in private project, navigate to releases. You wont see TAGS associated with releases.

  2. Now just hit below url in browser

https://gitlab.com/api/v4/projects/<ProjectID>/releases/ThisIsValidTAG/assets/links  
  1. If you get response as [] , then TAG ThisIsValidTAG is associated with the releases

  2. If you get response as {"message":"404 Not found"}, then TAG is NOT associated with any releases within the project.

Impact

(Summarize the impact on users)

What is the current bug behavior?

Guest might be able to guess correct TAGS of the releases based on response from API

What is the expected correct behavior?

Responses should be same irrespective of whether TAG is associated with release or not.

Output of checks

This bug happens on GitLab.com and might be on omnibus installations too!

Regards,
Ashish

Impact

Guest can guess the correct TAGS associated with the releases by using API responses in private projects!

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 API returned different responses for an existing release tag versus a missing one, instead of a uniform response.

Impact

A guest could guess correct tags associated with releases in private projects, leaking information that should be hidden.

What the attacker needed

Guest access to a private project

How it was found

  1. As a guest user in a private project, navigate to releases and note that tags are not shown.
  2. Request the releases assets links API endpoint for a specific tag.
  3. Observe that an empty array response means the tag is associated with a release.
  4. Observe that a 404 not found response means the tag is not associated with any release.

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 a private project, guests are not supposed to see which tags belong to releases. The API gave different answers depending on whether a tag existed, so a guest could try tags and learn which ones were real. This is an information leak.

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.