Skip to content
Access control Disclosed report Beginner

Model Experiments in public project can be removed by anonymous user

The access control for GitLab's model experiments feature was too permissive: anyone, including non-members in public projects and guests in private projects, could view and delete experiments, despite documentation requiring at least the Developer role. An attacker could delete experiments without authorisation.

GitLab

Originally disclosed on GitLab

  • Fixed in 3 months
  • Disclosed after 3 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 #2037702 by ashish_r_padelkar on 2023-06-25, assigned to @greg:

Report | Attachments | How To Reproduce

Report

Summary

Hello,

As per this document https://docs.gitlab.com/ee/user/project/ml/experiment_tracking/index.html#explore-model-candidates, You must have at least the Developer role to view experiment data.

However, this is not true as of now as anyone including non members in public projects can see the the experiments and even allowed to remove them. Also, in private projects too, guest users (part of the team) can see and delete it too.

Steps to reproduce

1.Go to your public project https://gitlab.com/<groupNamespace>/<projectNamespace>/-/ml/experiments and setup mlflow client as per documentation.
2.Once you set it up correct, they will appear on the same page.
3.Now log in as any guest user (without project membership) and you can still see the and delete these experiments.(Click on the experiment name and then click on 3 dots to delete)

Screen_Shot_2023-06-25_at_5.35.03_PM.png
Screen_Shot_2023-06-25_at_5.35.03_PM.png From the original on GitLab

4.Similarly, in private projects, login as guest user and navigate to https://gitlab.com/<groupNamespace>/<projectNamespace>/-/ml/experiments and you will be able to see them as well as guest user in private project where as document clearly says it needs Developer role. You can delete it too!
5.This way, anyone guest user (without membership ) in public projects can see and remove experiments as well as guest in private project can do the same which is against the documentation.

Examples

You can see my public project experiments here https://gitlab.com/groupjune23/latest_project/-/ml/experiments which you can see and delete without being part of the team.

What is the current bug behavior?

Model Experiments can be removed by non project members in public projects and guest in private projects

What is the expected correct behavior?

Guest users in private projects should not see experiments.
Non project members should not be able to delete experiments from public project.

Output of checks

This bug happens on GitLab.comGitLab Enterprise Edition 16.2.0-pre 2a4d9de2b78

Regards,
Ashish

Impact

Model Experiments can be removed by non project members in public projects and guest in private projects

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 access control check for the model experiments feature was not enforced, allowing users with insufficient permissions to view and delete experiments.

Impact

Non-project members in public projects and guest users in private projects could view and delete model experiments, violating the intended access control.

What the attacker needed

Public project with experiments; private project with experiments; guest user account

How it was found

  1. Set up a public project and configure the MLflow client as per documentation.
  2. Log in as a guest user without project membership.
  3. Navigate to the experiments page and observe that experiments are visible.
  4. Click on an experiment name and use the three-dot menu to delete it.
  5. In a private project, log in as a guest user and navigate to the experiments page to see and delete experiments.

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.

The model experiments feature is meant to require at least the Developer role, but in practice users with lower roles or no role could see and delete experiments.

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.