H2O Vulnerable to Execution of Arbitrary Files
An endpoint in H2O exposes a custom EncryptionTool that lets an attacker encrypt any file on the server using a key they choose. The attacker can also overwrite the chosen key, causing ransomware-like behaviour and making recovery difficult.
h2oai/h2o-3
Originally disclosed on huntr
In h2oai/h2o-3 version 3.46.0, an endpoint exposing a custom EncryptionTool allows an attacker to encrypt any files on the target server with a key of their choosing. The chosen key can also be overwritten, resulting in ransomware-like behavior. This vulnerability makes it possible for an attacker to encrypt arbitrary files with keys of their choice, making it exceedingly difficult for the target to recover the keys needed for decryption.
From the GitHub Advisory Database (GHSA-m37h-8r48-2cxj, 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 encrypt arbitrary files with keys of their choice, making it exceedingly difficult for the target to recover the keys needed for decryption.
What the attacker needed
Access to the exposed 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.
H2O is a machine-learning tool that runs on a server. A part of it meant for encryption was reachable by anyone and let them lock files with a password they picked. Because they could also replace that password, the real owner might never unlock the files again.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.