CVE-2023-6038
published 2023-11-16CVE-2023-6038: A Local File Inclusion (LFI) vulnerability exists in the h2o-3 REST API, allowing unauthenticated remote attackers to read arbitrary files on the server with…
PriorityP178high7.5CVSS 3.1
AVNACLPRNUINSUCHINAN
ITWEXPLOITVulnCheck KEV
Exploited in the wild
EPSS
4.34%
90.0th percentile
A Local File Inclusion (LFI) vulnerability exists in the h2o-3 REST API, allowing unauthenticated remote attackers to read arbitrary files on the server with the permissions of the user running the h2o-3 instance. This issue affects the default installation and does not require user interaction. The vulnerability can be exploited by making specific GET or POST requests to the ImportFiles and ParseSetup endpoints, respectively. This issue was identified in version 3.40.0.4 of h2o-3.
Affected
1 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| h2oai | h2oai_h2o-3 | unspecified – latest | — |
Detection & IOCsextracted from sources · hover to see the quote
yara↗
rule CVE_2023_6038_H2O_LFI { strings: $req1 = "/3/ImportFiles?path=" $req2 = "/3/ParseSetup" $payload1 = "%2Fetc%2Fpasswd" $payload2 = "nfs%3A%2F%2Fetc%2Fpasswd" $resp = "ImportFilesV3" condition: ($req1 and $payload1) or ($req2 and $payload2) or $resp }- →Detect exploitation attempts via GET requests to /3/ImportFiles with a 'path' parameter containing URL-encoded file paths (e.g., %2Fetc%2Fpasswd). No authentication is required, so any such unauthenticated request is suspicious. ↗
- →Detect exploitation attempts via POST requests to /3/ParseSetup with a body containing 'source_frames' referencing local paths via the nfs:// scheme (e.g., nfs%3A%2F%2Fetc%2Fpasswd). ↗
- →Successful exploitation of the ImportFiles endpoint returns a response body containing 'ImportFilesV3'. Monitor HTTP responses for this string in conjunction with path traversal indicators. ↗
- →Successful exploitation of the ParseSetup endpoint returns a response body matching the pattern 'root:.*:0:0:' (i.e., /etc/passwd content). Monitor HTTP responses for this regex pattern. ↗
- →Use Shodan/FOFA/Google dorks to identify exposed H2O Flow dashboards that may be vulnerable: Shodan 'title:"H2O Flow"', FOFA 'title="h2o flow"', Google 'intitle:"h2o flow"'. ↗
- ·The vulnerability affects the default installation of h2o-3 and does not require authentication or user interaction, meaning any exposed H2O Flow instance is at risk without additional network controls. ↗
- ·Files are read with the OS-level permissions of the user running the h2o-3 process. If running as root or a privileged user, all files on the system are accessible to an attacker. ↗
- ·The vulnerability was specifically identified in version 3.40.0.4 of h2o-3; detections and mitigations should be scoped to this and potentially earlier versions. ↗
CVSS provenance
nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
nvdv3.09.3CRITICALCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N
vulncheck7.5HIGH
CVEs like this are exactly what “Exploited This Week” covers.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
H2O local file inclusion vulnerability
ghsa·2023-11-16
CVE-2023-6038 [CRITICAL] CWE-29 H2O local file inclusion vulnerability
H2O local file inclusion vulnerability
A Local File Inclusion (LFI) vulnerability exists in the h2o-3 REST API, allowing unauthenticated remote attackers to read arbitrary files on the server with the permissions of the user running the h2o-3 instance. This issue affects the default installation and does not require user interaction. The vulnerability can be exploited by making specific GET or POST requests to the ImportFiles and ParseSetup endpoints, respectively. This issue was identified in version 3.40.0.4 of h2o-3.
OSV
H2O local file inclusion vulnerability
osv·2023-11-16
CVE-2023-6038 [CRITICAL] H2O local file inclusion vulnerability
H2O local file inclusion vulnerability
A Local File Inclusion (LFI) vulnerability exists in the h2o-3 REST API, allowing unauthenticated remote attackers to read arbitrary files on the server with the permissions of the user running the h2o-3 instance. This issue affects the default installation and does not require user interaction. The vulnerability can be exploited by making specific GET or POST requests to the ImportFiles and ParseSetup endpoints, respectively. This issue was identified in version 3.40.0.4 of h2o-3.
VulnCheck
h2o h2o Missing Authorization
vulncheck·2023·CVSS 7.5
CVE-2023-6038 [HIGH] h2o h2o Missing Authorization
h2o h2o Missing Authorization
A Local File Inclusion (LFI) vulnerability exists in the h2o-3 REST API, allowing unauthenticated remote attackers to read arbitrary files on the server with the permissions of the user running the h2o-3 instance. This issue affects the default installation and does not require user interaction. The vulnerability can be exploited by making specific GET or POST requests to the ImportFiles and ParseSetup endpoints, respectively. This issue was identified in version 3.40.0.4 of h2o-3.
Affected: h2o h2o
Required Action: Apply remediations or mitigations per vendor instructions or discontinue use of the product if remediation or mitigations are unavailable.
Exploitation References: https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=20
No detection rules found.
Nuclei
H2O ImportFiles - Local File Inclusion
nuclei·CVSS 7.5
CVE-2023-6038 [HIGH] H2O ImportFiles - Local File Inclusion
H2O ImportFiles - Local File Inclusion
An attacker is able to read any file on the server hosting the H2O dashboard without any authentication.
Template:
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.
impact: |
Unauthenticated attackers can read any file on the server via the ImportFiles endpoint, potentially exposing sensitive data including database contents and application code.
remediation: |
Update H2O to a version that implements proper authentication and authorization controls for the ImportFiles endpoint.
reference:
- https://huntr.com/bounties/380fce33-fec5-49d9-a101-12c972125d8c/
- https:/
No writeups or analysis indexed.
2023-11-16
Published
Exploited in the wild