Skip to content
Path traversal Disclosed report Intermediate CVE-2024-6851

Aim Path Traversal vulnerability

The LocalFileManager._cleanup function in aimhubio/aim version 3.22.0 accepts a user-supplied glob pattern for file deletion without verifying that matched files are inside the managed directory. An attacker could use a crafted glob pattern to delete arbitrary files on the server.

aimhubio/aim

Originally disclosed on huntr

In version 3.22.0 of aimhubio/aim, the LocalFileManager._cleanup function in the aim tracking server accepts a user-specified glob-pattern for deleting files. The function does not verify that the matched files are within the directory managed by LocalFileManager, allowing a maliciously crafted glob-pattern to lead to arbitrary file deletion.

From the GitHub Advisory Database (GHSA-mrvr-7493-pfq3, 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 cleanup function failed to validate that the user-supplied glob pattern only matched files within the intended directory, allowing path traversal via the pattern.

Impact

An attacker could delete arbitrary files on the server, potentially causing data loss or disrupting the service.

What the attacker needed

Access to the aim tracking server; ability to supply a glob pattern

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 glob pattern is a way to match file names using wildcards, like *.txt. The cleanup function used such a pattern to delete files but did not check that the files were inside the folder it was supposed to manage. So someone could give a pattern that matches files elsewhere on the system and cause them to be deleted.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

More from aimhubio/aim

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.