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

AgentScope arbitrary file download vulnerability in rpc_agent_client

The rpc_agent_client component in AgentScope v0.0.4 allows any user to download arbitrary files from the rpc_agent host via the download_file method. An attacker could access sensitive files such as configuration files and credentials, potentially leading to further compromise.

agentscope

Originally disclosed on huntr

An arbitrary file download vulnerability exists in the rpc_agent_client component of modelscope/agentscope version v0.0.4. This vulnerability allows any user to download any file from the rpc_agent's host by exploiting the download_file method. This can lead to unauthorized access to sensitive information, including configuration files, credentials, and potentially system files, which may facilitate further exploitation such as privilege escalation or lateral movement within the network.

From the GitHub Advisory Database (GHSA-p6h7-hfj2-vmcf, 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 download_file method lacks validation or restriction on the file path requested by the client, allowing arbitrary file reads.

Impact

An attacker could read sensitive files such as configuration files and credentials, which may facilitate privilege escalation or lateral movement.

What the attacker needed

Access to rpc_agent_client; network access to rpc_agent

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.

A program that lets one computer ask another for files did not check which files were requested. Anyone could ask for any file on the other machine, including private settings and passwords. This is like a hotel reception that hands out any room key without checking if you are a guest.

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