Skip to content
Path traversal Disclosed report Beginner CVE-2024-2083

Directory traversal in zenml

The /api/v1/steps endpoint in zenml-io/zenml fails to validate directory traversal patterns in the 'logs' URI path, allowing an attacker to fetch arbitrary file content outside the restricted directory.

zenml-io/zenml

Originally disclosed on huntr

Critical View original

A directory traversal vulnerability exists in the zenml-io/zenml repository, specifically within the /api/v1/steps endpoint. Attackers can exploit this vulnerability by manipulating the 'logs' URI path in the request to fetch arbitrary file content, bypassing intended access restrictions. The vulnerability arises due to the lack of validation for directory traversal patterns, allowing attackers to access files outside of the restricted directory.

From the GitHub Advisory Database (GHSA-6h3f-43vq-53hj, 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 endpoint does not validate or normalise the 'logs' URI path, so directory traversal sequences are accepted and resolved.

Impact

An attacker could read arbitrary files on the server, potentially exposing sensitive data.

What the attacker needed

Access to the /api/v1/steps endpoint

The fix

The endpoint should validate and normalise the 'logs' path to reject directory traversal sequences.

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 directory traversal bug lets someone use special path characters like '../' to escape a folder and read files they should not see. Here, the server takes a file path from the request without checking it, so an attacker can ask for files outside the intended logs folder.

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 zenml-io/zenml

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.