AstrBot, Directory Traversal, CVE-2025-XXXX (High)

Listen to this Post

The CVE-2025-XXXX vulnerability in AstrBot v3.5.22 stems from an insecure file upload mechanism. The `install_plugin_upload` function, handling the ‘/plugin/install-upload’ endpoint, extracts a filename directly from the user-supplied request body without performing any sanitization. This user-controlled filename is then assigned to the `file_path` variable. Consequently, when `file.save(file_path)` is executed, the provided filename is used as the destination path. An attacker can exploit this by crafting a malicious filename containing directory traversal sequences, such as ‘../../../../etc/passwd’. This allows the attacker to break out of the intended plugin directory and write the uploaded file to any arbitrary location on the server’s filesystem, potentially leading to remote code execution or system compromise.
Platform: AstrBot Project
Version: v3.5.22
Vulnerability: Directory Traversal
Severity: High
date: 2025-11-07

Prediction: 2025-11-21

What Undercode Say:

curl -X POST http://target/plugin/install-upload -F "[email protected];filename=../../../path/to/overwrite"
import requests
files = {'file': ('../../../etc/cron.d/exploit', open('payload.txt', 'rb'))}
response = requests.post('http://target/plugin/install-upload', files=files)

How Exploit:

Craft malicious filename.

Send POST request.

Traverse directories.

Overwrite critical files.

Protection from this CVE

Input sanitization filename.

Restrict file save path.

Use absolute paths.

Web Application Firewall.

Update to patched version.

Impact:

Arbitrary file upload.

Remote code execution.

System compromise.

Data manipulation.

🎯Let’s Practice Exploiting & Learn Patching For Free:

Sources:

Reported By: github.com
Extra Source Hub:
Undercode

🔐JOIN OUR CYBER WORLD [ CVE News • HackMonitor • UndercodeNews ]

💬 Whatsapp | 💬 Telegram

📢 Follow DailyCVE & Stay Tuned:

𝕏 formerly Twitter 🐦 | @ Threads | 🔗 Linkedin Featured Image

Scroll to Top