Описание
pyLoad CNL Blueprint allows Path Traversal through dlc_path
which leads to Remote Code Execution (RCE)
Summary
Path Traversal in pyLoad-ng CNL Blueprint via package
parameter allows Arbitrary File Write leading to Remote Code Execution (RCE) The addcrypted
endpoint in pyload-ng
suffers from an unsafe path construction vulnerability, allowing unauthenticated attackers to write arbitrary files outside the designated storage directory. This can be abused to overwrite critical system files, including cron jobs and systemd services, leading to privilege escalation and remote code execution as root.
Details
- Endpoint:
POST /addcrypted
- Issue:
src/pyload/webui/app/blueprints/cnl_blueprint.py
Vulnerable Code
PoC
Decoded payload:
Send crafted POST
Impact
The vulnerability allows unauthenticated attackers to write arbitrary files outside the intended directory via a path traversal flaw in the addcrypted
endpoint in pyload-ng
parameter. when exploited, it enables remote code execution as root by injecting malicious cron jobs or system files, turning a simple file upload endpoint into a full system compromise vector.
Пакеты
pyload-ng
<= 0.5.0b3.dev89
0.5.0b3.dev90
Связанные уязвимости
pyLoad is the free and open-source Download Manager written in pure Python. In versions 0.5.0b3.dev89 and below, there is an opportunity for path traversal in pyLoad-ng CNL Blueprint via package parameter, allowing Arbitrary File Write which leads to Remote Code Execution (RCE). The addcrypted endpoint in pyload-ng suffers from an unsafe path construction vulnerability, allowing unauthenticated attackers to write arbitrary files outside the designated storage directory. This can be abused to overwrite critical system files, including cron jobs and systemd services, leading to privilege escalation and remote code execution as root. This issue is fixed in version 0.5.0b3.dev90.
pyLoad is the free and open-source Download Manager written in pure Py ...