Skip to content
Business logic Disclosed report Beginner

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
  1. Create 2 groups on gitlab.com . Example Group1 & Group2.
  2. Create a project within Group2 as Project1
  3. Now transfer the Group2 within Group1 by going in Group2 settings at https://gitlab.com/groups/Group2/-/edit -->Transfer group.
  4. Now that Group2 and its project Project1 are inside Group1, we can now apply trial license to Group1 at https://gitlab.com/groups/Group1/-/billings.
  5. Once you apply trial license to Group1, go to Project1 --> https://gitlab.com/Group1/Group2/Project1 and click on setting menu. You should see Access Tokens in options!
Screen_Shot_2021-08-31_at_1.17.03_PM.png
Screen_Shot_2021-08-31_at_1.17.03_PM.png From the original on GitLab
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:

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

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

  1. Create two groups on gitlab.com.
  2. Create a project inside the second group.
  3. Transfer the second group into the first group using the group settings.
  4. Apply a trial licence to the first group through its billing page.
  5. 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.

More from GitLab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.