Skip to content
Business logic Disclosed report Intermediate

Able to use paid features for free such as Pipeline subscription, Pipeline test cases, Project Access Tokens

When a project was transferred from a paid group plan to a free plan, some paid features (pipeline subscriptions, pipeline test cases, and project access tokens) remained active. An attacker with access to a previously created project access token could still use it to access private project data in the new free group.

GitLab

Originally disclosed on GitLab

  • Fixed in 9 months
  • Disclosed after 9 months

HackerOne report #1034957 by vaib25vicky on 2020-11-15, assigned to @dcouture:

Report | Attachments | How To Reproduce

Report

Summary

Project transfer from group having gold plan to free plan than paid features such as Pipeline subscription, Pipeline test cases and Project Access Tokens are still working in the new group having free plan

Usually all other paid features of the project get revoked when project is transfer from group having higher plan to free plan. But some features still are not revoked

Steps to reproduce
  • Create a group and opt for gold plan/trial-version
  • Create a subgroup since project access token are only available to projects inside subgroup
  • Create a project inside the subgroup
  • Now, we'll use & setup paid features in the project
  • For creating project access token. Go over project settings>access_token
  • For pipeline subscription. Go over project settings>ci_cd
pf1.png
pf1.png From the original on GitLab
  • For pipeline test cases feature, create a test case by going over project /-/quality/test_cases
  • Now, we'll transfer the project from gold group plan to the free group plan
  • Project now is the part of the free group plan and you will be able to use all the above paid features here too. Although they are not visible but still working.

For testing pipeline subscription, creates a new tag in the project that you've configured previously.
For testing project access token, use the token that you've created previously. It is still working.
For testing pipeline test cases, you wont be able to view them but go directly to the endpoint https://gitlab.com/<owner>/<project>/-/issues/<test_case_id> to view test case.

Let me know if you need more info.

Impact

  • Able to use paid features for free such as Pipeline subscription, Pipeline test cases, Project Access Tokens.

  • Since the new owner can't revoked project access token and Gitlab didn't revoked the token when project moved from gold plan to free plan.

So anyone with access to previously created project access tokens can access the private information such as project api, repository files etc. in the new private group

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 plan downgrade process did not revoke or disable certain paid features and associated credentials when a project was transferred to a free group.

Impact

An attacker with access to a previously created project access token could access private information such as project API and repository files in the new private group, and paid features could be used for free.

What the attacker needed

A paid plan (gold trial); ability to create subgroups and projects; access to a previously created project access token

How it was found

  1. Create a group and opt for gold plan/trial-version
  2. Create a subgroup since project access token are only available to projects inside subgroup
  3. Create a project inside the subgroup
  4. Set up paid features: create a project access token, enable pipeline subscription, and create a test case
  5. Transfer the project from the gold group plan to a free group plan
  6. Verify that the paid features still work: create a new tag for pipeline subscription, use the old token, and access the test case endpoint directly

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.

A company offers paid plans with extra features. When a project moves to a free plan, those features should stop working. Here, some features kept working, and an old access token could still be used to read private project information.

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.