Unauthenticated Command Injection in RaspAP /ajax/networking/get_netcfg.php
CVE-2021-33357 is an unauthenticated OS command injection vulnerability in RaspAP versions 2.6 to 2.6.5. The vulnerability exists in the 'iface' GET parameter of the /ajax/networking/get_netcfg.php endpoint, where improper input sanitization allows an attacker to inject special characters (such as ';') and execute arbitrary OS commands. The endpoint does not require authentication or CSRF protection, making exploitation trivial for remote attackers.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows unauthenticated remote attackers to execute arbitrary OS commands as root, leading to full system compromise. This can result in the attacker gaining persistent root access, exfiltrating sensitive data, or using the device as a pivot point for further attacks on the network.
If you can’t patch tonight, do this now.
If immediate upgrade is not possible, restrict network access to the affected endpoint, implement web application firewall (WAF) rules to block malicious input, and monitor for suspicious activity. However, these are only temporary measures and do not fully address the underlying vulnerability.
Patch, then assume compromise.
Upgrade RaspAP to version 2.6.6 or later, where the vulnerability has been patched. Ensure that all instances are updated promptly to prevent exploitation.
No public exploits tracked yet. Mallory keeps watching.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.