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

AgentScope path traversal vulnerability in save-workflow

A path traversal flaw in the save-workflow and load-workflow features of AgentScope allowed an attacker to read and write arbitrary JSON files on the filesystem. This could expose or modify sensitive data such as configuration files, API keys, and hardcoded passwords.

modelscope/agentscope

Originally disclosed on huntr

Critical View original

A path traversal vulnerability exists in the save-workflow and load-workflow functionality of modelscope/agentscope versions prior to the fix. This vulnerability allows an attacker to read and write arbitrary JSON files on the filesystem, potentially leading to the exposure or modification of sensitive information such as configuration files, API keys, and hardcoded passwords.

From the GitHub Advisory Database (GHSA-j9rw-qm5f-r8xm, 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 application did not validate or sanitise user-supplied file paths in the save-workflow and load-workflow functions, allowing directory traversal.

Impact

An attacker could read and write arbitrary JSON files, potentially exposing or modifying sensitive information such as configuration files, API keys, and hardcoded passwords.

What the attacker needed

Access to save-workflow or load-workflow

The fix

The vulnerability was fixed in a later version of AgentScope.

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.

Path traversal is when a program lets a user supply a file path that can escape the intended folder by using sequences like '../'. Here, the workflow save and load functions did not properly restrict where files could be read or written, so an attacker could access or change any JSON 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.

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.