mlflow: FastAPI job endpoints under `/ajax-api/3.0/jobs/*` are not protected by authentication or authorization
The FastAPI job endpoints under /ajax-api/3.0/jobs/* lack authentication and authorization when basic-auth is enabled. Any network client can submit, read, search, and cancel jobs without credentials, potentially leading to unauthenticated remote code execution if allowed jobs perform privileged actions.
mlflow
Originally disclosed on huntr
In mlflow/mlflow, the FastAPI job endpoints under /ajax-api/3.0/jobs/* are not protected by authentication or authorization when the basic-auth app is enabled. This vulnerability affects the latest version of the repository. If job execution is enabled (MLFLOW_SERVER_ENABLE_JOB_EXECUTION=true) and any job function is allowlisted, any network client can submit, read, search, and cancel jobs without credentials, bypassing basic-auth entirely. This can lead to unauthenticated remote code execution if allowed jobs perform privileged actions such as shell execution or filesystem changes. Even if jobs are deemed safe, this still constitutes an authentication bypass, potentially resulting in job spam, denial of service (DoS), or data exposure in job results.
From the GitHub Advisory Database (GHSA-7qhf-v65m-g5f3, 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 FastAPI job routes were added without applying the same authentication middleware or dependency that protects other endpoints when basic-auth is enabled.
Impact
An unauthenticated attacker could submit, read, search, and cancel jobs, potentially leading to remote code execution if allowed jobs perform privileged actions, or to job spam, denial of service, or data exposure.
What the attacker needed
Basic-auth app enabled; job execution enabled; at least one job function allowlisted; network access to the server
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.
This is a security flaw in a tool called MLflow, which helps manage machine learning projects. Normally, a login system (basic-auth) protects the tool, but certain job-related web addresses (endpoints) skip that check entirely. That means anyone on the network can use those endpoints without logging in, and if jobs can run commands, an attacker could take over the server.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.