PT-2023-32696 · Mlflow · Mlflow
Published
2023-12-06
·
Updated
2024-04-16
·
CVE-2023-6568
CVSS v3.1
6.5
Medium
| Vector | AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
Name of the Vulnerable Software and Affected Versions
mlflow versions prior to 2.9.0
Description
A reflected Cross-Site Scripting (XSS) issue exists in 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.
Recommendations
For versions prior to 2.9.0, update to version 2.9.0 or later to resolve the issue. As a temporary workaround, consider restricting access to the mlflow/server/auth/ init .py file or disabling the handling of the Content-Type header in POST requests until a patch is available. Avoid using user-supplied input in the Content-Type header to minimize the risk of exploitation.
Exploit
Fix
XSS
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Mlflow