mlflow vulnerable to Path Traversal
The is_local_uri function in MLflow misclassifies URIs with empty or 'file' schemes as non-local, allowing attackers to bypass checks and read arbitrary files. Attackers can craft malicious model versions with specially crafted 'source' parameters to read sensitive files within at least two directory levels from the server's root.
mlflow/mlflow
Originally disclosed on huntr
mlflow/mlflow is vulnerable to Local File Inclusion (LFI) due to improper parsing of URIs, allowing attackers to bypass checks and read arbitrary files on the system. The issue arises from the 'is_local_uri' function's failure to properly handle URIs with empty or 'file' schemes, leading to the misclassification of URIs as non-local. Attackers can exploit this by crafting malicious model versions with specially crafted 'source' parameters, enabling the reading of sensitive files within at least two directory levels from the server's root.
From the GitHub Advisory Database (GHSA-hq88-wg7q-gp4g, 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
Impact
An attacker could read sensitive files within at least two directory levels from the server's root, potentially exposing credentials or configuration data.
What the attacker needed
Ability to create a model version with a crafted source…
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 models. A function that decides whether a file path is local or remote made a mistake: it treated some local paths as remote, so security checks were skipped. An attacker could then make the server read files it should not, like configuration or password files.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.