| عنوان | Volans NGFW Next-Generation Firewall nf51 (r5.1) OS Command Injection |
|---|
| الوصف | The sslvpn/sslvpn_client.php script under the web document root of the Volans NGFW firmware nf51.bin (internal version r5.1) performs NO authentication and interpolates the user-controlled "img" parameter into a shell command WITHOUT quoting (line 54: exec('cp -f /mnt/'.$img.' ...')). A single HTTP GET with no Cookie yields arbitrary command execution:
GET /sslvpn/sslvpn_client.php?client=logoImg&img=x;id|tee%20/usr/local/webui/sslvpn/public/images/PWN.txt;#
GET /sslvpn/public/images/PWN.txt -> command output
The endpoint is by design meant to serve the logo image to unauthenticated SSLVPN portal visitors; the vendor uses it to perform a shell file copy with no escaping.
Why unauthenticated: the /sslvpn/ prefix is NOT among the seven url.access-deny prefixes in the lighttpd webserver.conf; the config has no mod_auth rules; the script itself has no authentication. Reachable on the web management port (80/tcp) with no Cookie/Session/token/Referer.
The only "filter" is formatpost() (webui/include/func.inc:105), which is HTML output escaping (htmlspecialchars ENT_COMPAT) — a category error in a shell context. Measured character survival: ; | backtick $ newline ' space # ( ) all survive; & " < > are escaped (so redirection ">" is unusable — use |tee, |dd of=, cp instead). Verified constructs: five independent shell-metacharacter constructs (;, |tee, backtick, $(), newline %0A) all hit. The executed command line was recovered from the kernel via cp /proc/$$/cmdline:
sh -c cp -f /mnt/client.ovpn;cp /proc/$$/cmdline /tmp/fyxsec/SINK_CMDLINE.bin;# /usr/local/webui/sslvpn/public/images/
The device's lighttpd/php-cgi runs as root (no privilege drop in webserver.conf). Note: the uid=0(root) marker in our reproduction came from starting the PHP service with sudo (a reproduction artifact); device-side root is a configuration inference. |
|---|
| المصدر | ⚠️ https://github.com/nenghun/IoT/blob/main/Volans%20NGFW%20(nf51)/Root_RCE/Volans%20NGFW%20(nf51)_rce.md |
|---|
| المستخدم | nenghun (UID 102476) |
|---|
| ارسال | 24/10/2026 08:23 PM (1 شهر منذ) |
|---|
| الاعتدال | 24/11/2026 09:46 AM (1 month later) |
|---|
| الحالة | تمت الموافقة |
|---|
| إدخال VulDB | 442767 [Volans NGFW Next-Generation Firewall r5.1 SSLVPN Client sslvpn/sslvpn_client.php exec img تجاوز الصلاحيات] |
|---|
| النقاط | 20 |
|---|