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
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:
- User B - go to
Deploy->Model Registryin 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:
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
- User B, a guest of the private project, navigates to Deploy -> Model Registry.
- 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.