إرسال #1055816: Volans NGFW Next-Generation Firewall nf51 (r5.1) OS Command Injectionالمعلومات

عنوانVolans NGFW Next-Generation Firewall nf51 (r5.1) OS Command Injection
الوصفThe web management UI of the Volans NGFW r5.1 (firmware nf51.bin) is driven by the HoverUI legacy PHP framework (requests routed as /webui/?g=<action>, dispatched via indexmods/*.mod to modules/**/*.mds). The framework ships a strict allowlist check_command_injection() (only [A-Za-z_0-9.]) and a blacklist check_command_injection_blacklist() (only 3 tokens), but the guards are used INCONSISTENTLY. Three post-authentication sinks concatenate user input directly into exec()/system() command lines, reachable after login: (1) port_result_export (modules/assets/port_serve_scan.mds:545-579) — severely incomplete blacklist: the entire blacklist is preg_match("/(\|\|\| )|(\s*ping\s-n\s*)|(\s*touch\s*)/i") which blocks only "||| ", "ping -n", "touch "; it does NOT block | ; backticks $() > < & or newlines. $task_name is raw $_GET concatenated into exec("/usr/local/sbin/port_scan_data_export.sh ... $task_name ..."). GET /webui/?g=port_result_export&task_name=x';id>/tmp/PS_RCE;# (2) log_history_export (modules/log/security_domain.mds:424-442) — allowlist applied to the WRONG variable: check_command_injection() is applied to $log_type, but $where (the variable that actually reaches the shell) has no guard. formatget() strips spaces, so the payload uses ${IFS}. GET /webui/?g=log_history_export&log_type=test&where=;id|tee${IFS}/tmp/SD_RCE;# (3) log_uac_file_attachements_check (modules/log/uac_nbc.mds:2240-2275) — NO guard at all: $_POST['file']/$_POST['path'] pass through no formatget/formatpost/check_command_injection*; $path (derived from file) is unquoted at the system() command position. The only barrier is a file_exists() check, which is not a security check. POST /webui/?g=log_uac_file_attachements_check file=;id>UN_RCE;#/a Authentication: a valid web management session is required — none of the three actions matches the checkLoginState() exemption list, and the sink-bearing .mod files are require_once'd after the login check. The device's lighttpd/php-cgi runs as root (no privilege drop in webserver.conf). Dynamic verification (vendor .mds executed via php7.4 CLI with the vendor guard functions copied verbatim): all three sinks produced uid=0(root) gid=0(root) groups=0(root); a negative control with benign parameters produced no artifacts.
المصدر⚠️ https://github.com/nenghun/IoT/blob/main/Volans%20NGFW%20(nf51)/RCE/RCE.md
المستخدم
 nenghun (UID 102476)
ارسال24/10/2026 08:22 PM (1 شهر منذ)
الاعتدال24/11/2026 09:46 AM (1 month later)
الحالةتمت الموافقة
إدخال VulDB442766 [Volans NGFW Next-Generation Firewall r5.1 Web Management UI port_serve_scan.mds exec/system task_name/where/path تجاوز الصلاحيات]
النقاط20

Interested in the pricing of exploits?

See the underground prices here!