Skip to content
Info disclosure Disclosed report Beginner CVE-2024-5550

Arbitrary system path lookup in h20

The Typeahead API in h2o-3 version 3.40.0.4 allowed any remote user to list directories across the entire filesystem by requesting a lookup of the root path. An attacker could explore the filesystem structure, and the text notes this could be combined with a local file inclusion flaw to make server exploitation trivial.

h2o

Originally disclosed on huntr

In h2oai/h2o-3 version 3.40.0.4, an exposure of sensitive information vulnerability exists due to an arbitrary system path lookup feature. This vulnerability allows any remote user to view full paths in the entire file system where h2o-3 is hosted. Specifically, the issue resides in the Typeahead API call, which when requested with a typeahead lookup of '/', exposes the root filesystem including directories such as /home, /usr, /bin, among others. This vulnerability could allow attackers to explore the entire filesystem, and when combined with a Local File Inclusion (LFI) vulnerability, could make exploitation of the server trivial.

From the GitHub Advisory Database (GHSA-x234-r5fg-x52m, 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 typeahead lookup accepted an absolute root path and enumerated the filesystem without restricting results to an intended directory.

Impact

Any remote user could view full paths across the entire filesystem, and combined with a local file inclusion flaw this could make server exploitation trivial.

What the attacker needed

Network access to the h2o-3 service

How it was found

  1. Send a request to the Typeahead API with a lookup value of the root path.
  2. Observe that the response lists top-level directories such as home, usr and bin.

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.

This software has a search-as-you-type feature that suggests file or folder names. When someone typed the top-level folder symbol, the software returned the names of folders across the whole server instead of limiting itself to its own data. That let anyone on the network map out where things live on the machine, which is useful groundwork for further attacks.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More from h2o

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.