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
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).
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.