Skip to content
Access control Disclosed report Beginner CVE-2024-4263

MLflow allows low privilege users to delete any artifact

A low-privilege user with only EDIT permission on an experiment could delete any artifact, despite documentation stating EDIT users can only read and update. An attacker could therefore delete arbitrary artifacts without proper authorisation.

mlflow/mlflow

Originally disclosed on huntr

A broken access control vulnerability exists in mlflow/mlflow versions before 2.10.1, where low privilege users with only EDIT permissions on an experiment can delete any artifacts. This issue arises due to the lack of proper validation for DELETE requests by users with EDIT permissions, allowing them to perform unauthorized deletions of artifacts. The vulnerability specifically affects the handling of artifact deletions within the application, as demonstrated by the ability of a low privilege user to delete a directory inside an artifact using a DELETE request, despite the official documentation stating that users with EDIT permission can only read and update artifacts, not delete them.

From the GitHub Advisory Database (GHSA-p4jx-q62p-x5jr, CC BY 4.0).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

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 server did not check whether the user had DELETE permission before processing artifact deletion requests, only checking for EDIT permission.

Impact

A low-privilege user could delete any artifact, causing data loss, even though they were only supposed to read and update.

What the attacker needed

An MLflow account; EDIT permission on an experiment

The fix

The vulnerability was fixed in version 2.10.1 by adding proper permission checks for DELETE requests.

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 MLflow, users can be given different levels of permission on an experiment. The 'EDIT' level is meant to let someone change things but not delete them. This bug meant that someone with only EDIT permission could still delete files (artifacts), which they should not have been able to do.

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 mlflow/mlflow

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.