MLflow has a Local File Read/Path Traversal bypass
A path traversal bypass in MLflow 2.11.0 allows an attacker to read arbitrary files by inserting a '#' character into an artifact URL, which skips validation and causes the application to use the fragment as a filesystem path. This enables reading sensitive files such as SSH and cloud keys.
mlflow/mlflow
Originally disclosed on huntr
A path traversal vulnerability exists in mlflow/mlflow version 2.11.0, identified as a bypass for the previously addressed CVE-2023-6909. The vulnerability arises from the application's handling of artifact URLs, where a '#' character can be used to insert a path into the fragment, effectively skipping validation. This allows an attacker to construct a URL that, when processed, ignores the protocol scheme and uses the provided path for filesystem access. As a result, an attacker can read arbitrary files, including sensitive information such as SSH and cloud keys, by exploiting the way the application converts the URL into a filesystem path. The issue stems from insufficient validation of the fragment portion of the URL, leading to arbitrary file read through path traversal.
From the GitHub Advisory Database (GHSA-rfqq-wq6w-72jm, 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
Likely insufficient validation of the fragment portion of the URL, allowing the '#' character to bypass path checks and cause the application to use the fragment as a filesystem path.
What the attacker needed
Access to MLflow artifact URL handling
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.
Path traversal is when an attacker tricks a program into accessing files outside the intended folder, like using '../' to go up directories. Here, the program checks the URL but ignores the part after a '#' symbol, so an attacker can hide a malicious file path there and read any file on the server.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.