Skip to content
Path traversal Disclosed report Intermediate CVE-2023-6038

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

Critical View original

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).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

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.

More from ai.h2o:h2o-core

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.