إرسال #1055813: Panabit Panabit Smart Application Gateway TANGr7p10 OS Command Injectionالمعلومات

عنوانPanabit Panabit Smart Application Gateway TANGr7p10 OS Command Injection
الوصف​x In Panabit Smart Application Gateway firmware TANGr7p10, the login-page script admin/login/user.cgi implements a "send e-mail verification code" action (send_email_authcode) under the httpd's UNAUTHENTICATED /login/** prefix. A three-link chain leads to pre-auth root RCE:​(1) Path traversal (CWE-22): the raw request parameter "username" is concatenated into /usr/ramdisk/etc/webuser/<username> with no str_decode, no allowlist, no metacharacter blacklist (the local_login/edit_password actions in the SAME file do perform a lowercase-hex allowlist check — this one was missed). Only access(path, F_OK) is required.​(2) Arbitrary file -> environment variables: load_config() reads the file line by line and calls setenv(KEY, VALUE, overwrite=1) for every KEY=VALUE line, with no key or value validation.​(3) Unquoted insertion into system() (CWE-78): the environment variable "email" is inserted UNQUOTED at the receiver=%s position of a system() command line (ipe_msgpush send_email ... receiver=%s).​The chain is closed by pointing username at /proc/self/environ (always exists, no writable file needed) and injecting a newline via the unused parameter "e" (httpd URL-decodes before exporting env vars, so %0A becomes a real LF, hard-breaking a line into "email=<payload>"):​ POST /login/user.cgi action=send_email_authcode&palang=ch&username=../../../../../../../proc/self/environ&e=%0Aemail%3D%3Bid%3E%2Ftmp%2FRPT_E%3B​One request, NO cookie, NO credentials -> arbitrary command execution as root. Verified end-to-end against the real ipe_httpd (HTTPS 18443): cat /tmp/RPT_E -> uid=0(root) gid=0(root). Only non-destructive commands were used.​Note: a per-source-IP 180-second rate limit applies (EMAIL_CODE_<REMOTE_ADDR>); the first request is exploitable.
المصدر⚠️ https://github.com/nenghun/IoT/blob/main/Panabit/rce3/Unauthenticated%20OS%20Command%20Injection.md
المستخدم
 nenghun (UID 102476)
ارسال24/10/2026 08:17 PM (1 شهر منذ)
الاعتدال24/11/2026 09:40 AM (1 month later)
الحالةتمت الموافقة
إدخال VulDB442755 [Panabit Smart Application Gateway TANGr7p10 Email Auth Code Sender user.cgi send_email_authcode username تجاوز الصلاحيات]
النقاط20

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!