H2O local file inclusion vulnerability
The h2o-3 REST API has a local file inclusion flaw that lets an unauthenticated attacker read arbitrary files on the server. The attacker can exploit this by sending crafted requests to the ImportFiles and ParseSetup endpoints.
ai.h2o:h2o-core
Originally disclosed on huntr
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.
From the GitHub Advisory Database (GHSA-6mv8-95x5-xcq9, CC BY 4.0).
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the ImportFiles and ParseSetup endpoints accept file paths from user input without restricting them to an allowed directory or checking authentication.
Impact
An unauthenticated attacker could read any file the h2o-3 process can access, potentially exposing sensitive data.
What the attacker needed
No authentication needed; network access to the h2o-3 REST API
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Local file inclusion means a web application can be tricked into reading files from the server's own disk, such as configuration or password files, instead of only showing its normal pages. Here, anyone on the internet can ask the h2o-3 service to read a file without logging in, and the file's contents may be returned to them.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.