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

AgentScope path traversal vulnerability

The /delete-workflow endpoint in modelscope/agentscope fails to validate file paths, allowing an attacker to delete arbitrary files on the filesystem. This could lead to deletion of sensitive files outside the intended directory.

modelscope/agentscope

Originally disclosed on huntr

Critical View original

A path traversal vulnerability exists in the modelscope/agentscope application, affecting all versions. The vulnerability is present in the /delete-workflow endpoint, allowing an attacker to delete arbitrary files from the filesystem. This issue arises due to improper input validation, enabling the attacker to manipulate file paths and delete sensitive files outside of the intended directory.

From the GitHub Advisory Database (GHSA-c4cc-w454-4634, 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 properly validate or sanitise the file path supplied by the user before deleting the file.

What the attacker needed

Access to the /delete-workflow endpoint

The fix

The endpoint should validate that the requested file path is within the intended directory before deletion.

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.

This is a path traversal bug: a web endpoint that deletes files does not check that the requested file is inside the allowed folder. An attacker can use special characters like '../' to point to files elsewhere on the server and delete them.

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 modelscope/agentscope

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.