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.
The product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize '\..\filename' (leading backslash dot dot) sequences that can resolve to a location that is outside of that directory.
Link | Tags |
---|---|
https://huntr.com/bounties/f24b2216-6a4b-42a1-becb-9b47e6cf117f | third party advisory issue tracking exploit |
https://github.com/zenml-io/zenml/commit/00e934f33a243a554f5f65b80eefd5ea5117367b | third party advisory patch |