Trial licenses can be used to create project access tokens on gitlab.com
A trial licence group could be used to create project access tokens, which are meant to be available only to paid groups on gitlab.com. An attacker could therefore obtain a project access token without paying.
GitLab
Originally disclosed on GitLab
- Fixed in 8 days
- Disclosed after 8 days
HackerOne report #1325209 by ashish_r_padelkar on 2021-08-31, assigned to @ankelly:
Report | Attachments | How To Reproduce
Report
Summary
Hello,
As per this document https://docs.gitlab.com/ee/user/project/settings/project_access_tokens.html, project access tokens are available on gitlab.com but only for paid groups and not for trail licenses.
This issue also says the same https://gitlab.com/gitlab-org/gitlab/-/merge_requests/43190
We're now expanding the feature to paid accounts (to prevent abuse) in GitLab.com.- which means not for trial licenses!
However, i found a way to create project access tokens using trial licenses too on gitlab.com!
Steps to reproduce
- Create 2 groups on gitlab.com . Example
Group1&Group2. - Create a project within
Group2asProject1 - Now transfer the
Group2withinGroup1by going inGroup2settings athttps://gitlab.com/groups/Group2/-/edit-->Transfer group. - Now that
Group2and its projectProject1are insideGroup1, we can now apply trial license toGroup1athttps://gitlab.com/groups/Group1/-/billings. - Once you apply trial license to
Group1, go toProject1-->https://gitlab.com/Group1/Group2/Project1and click on setting menu. You should seeAccess Tokensin options!

What is the current bug behavior?
Trail license groups can be used to create project access tokens which are actually available for only paid users as of now on gitlab.com
What is the expected correct behavior?
Feature should be limited to only paid users on gitlab.com as of now!
Output of checks
This bug happens on GitLab.com
Regards,
Ashish
Impact
Trial License groups can create project access tokens which are supposed to be available only for paid users on gitlab.com.
Attachments
Warning: Attachments received through HackerOne, please exercise caution!
How To Reproduce
Please add reproducibility information to this section:
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
Trial licence groups could create project access tokens that should be limited to paid users on gitlab.com.
What the attacker needed
A gitlab.com account; ability to create groups and projects; ability to start a trial licence
How it was found
- Create two groups on gitlab.com.
- Create a project inside the second group.
- Transfer the second group into the first group using the group settings.
- Apply a trial licence to the first group through its billing page.
- Open the project and check the settings menu; the Access Tokens option is visible.
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.
Project access tokens are like passwords that let tools or scripts act on a project. GitLab intended to give them only to paying customers, but a trial licence could also unlock them. This means someone could get that access without paying.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.