Heimdall Data Database Proxy uploadJar Directory Traversal Remote Code Execution Vulnerability
The uploadJar method in Heimdall Data Database Proxy fails to validate a user-supplied path before using it in file operations. An authenticated attacker could use this to write files outside the intended directory and execute code as root.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to execute arbitrary code on affected installations of Heimdall Data Database Proxy. Authentication is required to exploit this vulnerability.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
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 uploadJar method accepts a user-controlled path and uses it directly in file operations without normalising or restricting it to an intended directory.
Impact
An authenticated attacker could execute arbitrary code with root privileges on the affected installation.
What the attacker needed
Valid credentials on the proxy
The fix
The vendor fixed the issue in release build 25.03.01.24.
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 path traversal bug lets someone sneak special characters into a file path so the program reads or writes a file somewhere it should not. Here the uploadJar feature takes a path from the user without checking it, so an attacker who is already logged in could place a file in a sensitive location and get the server to run it as the root user, which is the most powerful account 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.