Aim path traversal in LockManager.release_locks
The LockManager.release_locks function concatenates the user-controllable run_hash parameter into a file path without normalisation, allowing relative path traversal. An attacker can use this via the tracking server instruction API to delete arbitrary files on the server.
aimhubio/aim
Originally disclosed on huntr
A vulnerability in the LockManager.release_locks function in aimhubio/aim (commit bb76afe) allows for arbitrary file deletion through relative path traversal. The run_hash parameter, which is user-controllable, is concatenated without normalization as part of a path used to specify file deletion. This vulnerability is exposed through the Repo._close_run() method, which is accessible via the tracking server instruction API. As a result, an attacker can exploit this to delete any arbitrary file on the machine running the tracking server.
From the GitHub Advisory Database (GHSA-4qcx-jx49-6qrh, 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 delete any arbitrary file on the machine running the tracking server.
What the attacker needed
Access to the tracking server instruction 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.
A program builds a file path using a value supplied by the user, but it does not clean up that value first. By putting special path segments in that value, an attacker can make the program point outside the intended folder and delete any file 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.