MLFlow is vulnerable to DNS rebinding attacks due to a lack of Origin header validation
MLFlow's REST server did not validate the Origin header, allowing a malicious website to bypass Same-Origin Policy and make unauthorised calls to REST endpoints. An attacker could query, update, and delete experiments, leading to data exfiltration, destruction, or manipulation.
mlflow/mlflow
Originally disclosed on huntr
MLFlow versions up to and including 3.4.0 are vulnerable to DNS rebinding attacks due to a lack of Origin header validation in the MLFlow REST server. This vulnerability allows malicious websites to bypass Same-Origin Policy protections and execute unauthorized calls against REST endpoints. An attacker can query, update, and delete experiments via the affected endpoints, leading to potential data exfiltration, destruction, or manipulation. The issue is resolved in version 3.5.0.
From the GitHub Advisory Database (GHSA-pgqp-8h46-6x4j, 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 MLFlow REST server did not validate the Origin header, so it accepted cross-origin requests that DNS rebinding made appear same-origin.
Impact
An attacker could query, update, and delete experiments, potentially exfiltrating, destroying, or manipulating data.
What the attacker needed
Victim visits a malicious website; MLFlow server reachable from browser
The fix
The issue was fixed in version 3.5.0.
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.
Websites are normally stopped from reading data from other websites by a browser rule called the Same-Origin Policy. DNS rebinding is a trick where an attacker's domain name is made to point at a server on your local network, so the browser thinks the request is same-origin. Because MLFlow did not check the Origin header, a malicious page could talk to the local MLFlow server and read or change experiments.
What is CORS?
A permissive cross-origin policy lets another site read responses with the user's credentials.