H2O Vulnerable to Arbitrary File Overwrite
The exportModelDetails function in ModelsHandler.java uses a user-controllable parameter to specify the file path for writing model details, allowing an attacker to overwrite arbitrary files on the server.
h2oai/h2o-3
Originally disclosed on huntr
In h2oai/h2o-3 version 3.46.0, the /99/Models/{name}/json endpoint allows for arbitrary file overwrite on the target server. The vulnerability arises from the exportModelDetails function in ModelsHandler.java, where the user-controllable mexport.dir parameter is used to specify the file path for writing model details. This can lead to overwriting files at arbitrary locations on the host system.
From the GitHub Advisory Database (GHSA-g48v-3p35-88jr, 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
Impact
An attacker could overwrite files at arbitrary locations on the host system, potentially disrupting the service or altering critical files.
What the attacker needed
Access to the /99/Models/{name}/json endpoint
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.
A web endpoint lets a user choose where a file is saved on the server. Because the server does not check that the chosen location is safe, an attacker can make it write over important files anywhere on the machine.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.