MLflow: trace API endpoints lack proper authorization validators
Trace API endpoints in MLflow lacked authorization validators, so any authenticated user could read, delete or modify traces on experiments they had no permission to access. This exposed sensitive data, allowed destruction of audit logs and unauthorised modifications.
mlflow/mlflow
Originally disclosed on huntr
In MLflow versions prior to 3.13.0, when running with authentication enabled, the trace API endpoints lack proper authorization validators. This allows any authenticated user to bypass experiment-level authorization controls on all trace operations, including reading, deleting, and modifying traces on experiments they do not have permission to access. The issue arises from the _before_request handler, which does not register authorization validators for trace endpoints, resulting in requests proceeding without validation. This vulnerability can expose sensitive data, destroy audit logs, and allow unauthorized modifications.
From the GitHub Advisory Database (GHSA-2cm6-r77w-6g96, CC BY 4.0).
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
The `_before_request` handler did not register authorization validators for trace endpoints, so requests reached the handlers without any permission check.
Impact
Any authenticated user could read, delete or modify traces on experiments they do not have permission to access, potentially exposing sensitive data and destroying audit logs.
What the attacker needed
Authentication enabled; a valid user account
The fix
It was fixed in version 3.13.0 by registering authorization validators for the trace endpoints.
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.
MLflow is a tool for managing machine learning experiments. It has a login system, but the parts that handle 'traces' (records of model calls) forgot to check whether the logged-in user is allowed to touch a particular experiment. So anyone with an account could read or delete other people's trace data.
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.