Skip to content
Info disclosure Disclosed report Beginner

A guest user can see Release Tag from Group Release endpoint

A guest user of a private project could see release tag names through the group-level releases JSON endpoint, even though the project release page hides that information. This exposed repository information that guests are not meant to see.

GitLab

Originally disclosed on GitLab

  • Fixed in 13 months
  • Disclosed after 13 months

HackerOne report #1058315 by ashish_r_padelkar on 2020-12-14, assigned to @ankelly:

Report

Report

Summary

Hello,

As per this https://docs.gitlab.com/ee/user/permissions.html, Guest users can access GitLab Releases for downloading assets but are not allowed to download the source code nor see repository information like tags and commits.

This is true in private project when they directly navigate to release page at /-/releases. They cant see Tag from here. However, the group endpoint of releases https://gitlab.com/groups/<GroupName>/-/releases.json discloses such Tag information.

Steps to reproduce
  1. Create a group and private project underneath.
  2. Create a release in private project at https://gitlab.com/<GroupName>/<ProjectName>/-/releases.
  3. Add Guest user at group level.
  4. Login as Guest user and directly navigate to https://gitlab.com/<GroupName>/<ProjectName>/-/releases. You wont see Tag information of the release.
  5. Now use https://gitlab.com/groups/<GroupName>/-/releases.json and it should show you TAG name of that release.
What is the current bug behavior?

Tag names of releases visible to guest user of private project which should not be possible otherwise

What is the expected correct behavior?

As per documentation, tag names should not be disclosed of releases.

Output of checks

This bug happens on GitLab.com GitLab Enterprise Edition 13.7.0-pre 47b1a8d080e

Regards,
Ashish

Impact

A guest user can see Release Tag (of private project) from Group Release endpoint

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

Impact

A guest could learn release tag names of a private project, which the documentation says they should not see.

What the attacker needed

A group with a private project; guest role at group level

How it was found

  1. Create a group with a private project underneath.
  2. Create a release in that private project.
  3. Add a user as a guest at group level.
  4. Log in as the guest and open the project release page; the tag is not shown.
  5. Request the group releases JSON endpoint, which returns the tag name.

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 lets you give someone a 'guest' role, which should let them download release files but not see things like tag names. A tag is a label pointing at a specific version of the code. The normal release page hid the tag, but a different address that lists releases for the whole group still returned it.

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.