Cross-site Scripting (XSS) in MLflow
The MLflow server reflected the user-supplied Content-Type header into an error response without sanitisation, allowing an attacker to inject JavaScript. An attacker could execute arbitrary JavaScript in a victim's browser if the victim made a crafted request.
mlflow/mlflow
Originally disclosed on huntr
A reflected Cross-Site Scripting (XSS) vulnerability exists in the mlflow/mlflow repository, specifically within the handling of the Content-Type header in POST requests. An attacker can inject malicious JavaScript code into the Content-Type header, which is then improperly reflected back to the user without adequate sanitization or escaping, leading to arbitrary JavaScript execution in the context of the victim's browser. The vulnerability is present in the mlflow/server/auth/init.py file, where the user-supplied Content-Type header is directly injected into a Python formatted string and returned to the user, facilitating the XSS attack.
From the GitHub Advisory Database (GHSA-vwhf-3v6x-wff8, 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 run arbitrary JavaScript in the context of a victim's browser, though the text does not describe a specific attack scenario or any mitigating factors.
What the attacker needed
Victim loads a crafted response
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.
When a web server echoes back something the user sent without cleaning it, an attacker can send code instead of normal text. Here the server put the Content-Type header straight into a page, so a malicious header could run JavaScript in the browser of anyone who loaded that response. This is called cross-site scripting, or XSS.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.