Skip to content
Access control Disclosed report Beginner

Privileges escalation to read models / Model registry & experiments by Guest users

A user with the Guest role could access the Model Registry module and read its data, which should be restricted to higher roles. This allowed a guest to view models and experiments they were not authorised to see.

GitLab

Originally disclosed on GitLab

  • Fixed in 2 months
  • Disclosed after 2 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 #2769879 by mateuszek on 2024-10-09, assigned to GitLab Team:

Report | Attachments | How To Reproduce

Report

1. Description:
As I can understand the Gitlab documentation:
https://docs.gitlab.com/ee/user/permissions.html#machine-learning-model-registry-and-experiment
Users with Guest role shouldn't read models / Model registry

I found that the user with Guest role has access to Model registry module of Deploy - video1.mp4

video1.mp4 From the original on GitLab

2. Scenario:

2.1. Acotrs:
User A - owner of the private group A and owner of the private project A_PROJ (project inside group A)
User B - guest of the private group A and guest of the private project A_PROJ - added by Direct member

2.2. Steps:

  1. User B - go to Deploy -> Model Registry in the PoC project A_PROJ and notice that you have access to this module and its data.

Best regards,
Mateusz

Impact

  • Privileges escalation to read models / Model registry by Guest users

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 a missing permission check on the Model Registry feature, allowing users with the Guest role to access it despite documentation stating they should not.

Impact

A guest user could read models and model registry data that should be restricted, leading to a privilege escalation.

What the attacker needed

Attacker has Guest role in a private project

How it was found

  1. User B, a guest of the private project, navigates to Deploy -> Model Registry.
  2. User B observes that they have access to the module and its data.

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, users can have different roles like Guest or Owner. A Guest is supposed to have very limited access, but here a Guest could see a feature called Model Registry that should be hidden from them. This means they could look at machine learning models and experiments that were meant to be private.

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.