Skip to content
Access control Disclosed report Beginner

user with guest role is able to view the subscription details of a group

A user with the guest role could access an API endpoint that returned a group's subscription details, including billable member count, seats in use, maximum seats used, and end date. The documentation states only owners should see this information.

GitLab

Originally disclosed on GitLab

  • Fixed in 7 months
  • Disclosed after 7 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 #2984457 by iamgk808 on 2025-02-09, assigned to @cmaxim:

Report | Attachments | How To Reproduce

Report

Summary

According to the documentation, only users with the owner role can see the subscription details

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

victim steps

  1. Create a public group called group-1.
  2. Go to group-1 billing and apply the GitLab Ultimate trial to it and below you can see the subscription details
Screenshot_2025-02-09_125938.png
Screenshot_2025-02-09_125938.png From the original on GitLab
  1. Go to the Group Members section and add a new user called attacker-1 with a guest role
image.png
image.png From the original on GitLab

Attacker-1 Steps

  1. Log in as attacker-1
  2. open this URL https://gitlab.com/api/v4/namespaces/99955773 where 99955773 is the group id
image.png
image.png From the original on GitLab
  1. it discloses details like billable_members_count, seats_in_use, max_seats_used, end_date (means the subscription end date)
Screenshot_2025-02-09_125354.png
Screenshot_2025-02-09_125354.png From the original on GitLab
Impact

it discloses details like billable_members_count, seats_in_use, max_seats_used, end_date (means the subscription end date)

Examples

https://gitlab.com/groups/group-2025/-/billings

What is the current bug behavior?

user with the guest role is able to view the subscription details of a group

What is the expected correct behavior?

only users with the owner role can see the subscription details

Relevant logs and/or screenshots
Output of checks

This bug happens on GitLab.com

Impact

it discloses details like billable_members_count, seats_in_use, max_seats_used, end_date (means the subscription end date)

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 API endpoint for namespaces did not properly check the user's role before returning subscription details.

Impact

A guest user could view sensitive subscription details of a group, including billable member count, seats in use, maximum seats used, and end date.

What the attacker needed

A GitLab account; membership in the group with guest role; knowledge of the group ID

How it was found

  1. Create a public group and apply a GitLab Ultimate trial to it.
  2. Add a new user to the group with the guest role.
  3. Log in as the guest user.
  4. Request the API endpoint for the group's namespace using the group ID.
  5. Observe that the response includes subscription details such as billable member count, seats in use, maximum seats used, and end date.

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 GitLab, groups have different roles like owner, maintainer, and guest. The guest role is meant to have very limited access. This report shows that a guest could see private billing information about the group's paid subscription, which they should not be able to see.

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.