Local File Inclusion in mlflow
The application failed to validate URI fragments for directory traversal sequences, allowing an attacker to read arbitrary local files. This was a bypass of a previous patch that only checked the query string.
mlflow/mlflow
Originally disclosed on huntr
A Local File Inclusion (LFI) vulnerability was identified in mlflow/mlflow, specifically in version 2.9.2, which was fixed in version 2.11.3. This vulnerability arises from the application's failure to properly validate URI fragments for directory traversal sequences such as '../'. An attacker can exploit this flaw by manipulating the fragment part of the URI to read arbitrary files on the local file system, including sensitive files like '/etc/passwd'. The vulnerability is a bypass to a previous patch that only addressed similar manipulation within the URI's query string, highlighting the need for comprehensive validation of all parts of a URI to prevent LFI attacks.
From the GitHub Advisory Database (GHSA-j46q-5pxx-8vmw, 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 the input validation only covered the query string and did not apply the same directory traversal checks to the URI fragment.
What the attacker needed
Access to the vulnerable mlflow version
The fix
The vulnerability was fixed in version 2.11.3 by comprehensively validating all parts of a URI.
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.
A local file inclusion bug lets someone trick a program into opening files on the server that they should not see. Here, the program checked one part of the web address but forgot another part, so a crafted address could still reach sensitive files like the system password file.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.