| عنوان | Panabit Panabit Smart Application Gateway TANGr7p10 OS Command Injection |
|---|
| الوصف | In Panabit Smart Application Gateway firmware TANGr7p10 (PanabitFREE_TANGr7p10_20260817_Linux3), the "chart export" shell CGI admin/cgi-bin/dashboard/ajax_chart_dump places the request parameter "isntmeye" UNQUOTED at the command-name position of a backtick command substitution (lines 107-110):
if [ "${CGI_isntmeye}" ]; then
printf "`${CGI_isntmeye} chart dump json=1 hours=${hours} ...`,"
After variable expansion the shell word-splits the result, so the first word of the attacker-controlled value becomes the executable to run. The CGI is spawned by ipe_httpd as root and performs no authorization check of its own (the only gate is httpd's session-cookie check on /cgi-bin/**). A single valid management session is enough for root RCE:
POST /cgi-bin/dashboard/ajax_chart_dump?action=history_chart_dump&isntmeye=sh -c id>/tmp/RPT_B
Note: the expanded ${var} is NOT re-parsed for metacharacters, so "isntmeye=;id" does NOT work; the payload must be wrapped in "sh -c" for redirection/output retrieval. Line 25 of the same file implements the correct pattern (compare first, fixed command name), proving this is an oversight. Dispatch requires action=history_chart_dump (otherwise UNKNOW_ACTION).
Factory credentials are admin/panabit. Verified end-to-end against the real ipe_httpd (HTTPS 18443): cat /tmp/RPT_B -> uid=0(root) gid=0(root). Only non-destructive commands were used. |
|---|
| المصدر | ⚠️ https://github.com/nenghun/IoT/blob/main/Panabit/rce1/RCE1.md |
|---|
| المستخدم | nenghun (UID 102476) |
|---|
| ارسال | 24/10/2026 08:14 PM (1 شهر منذ) |
|---|
| الاعتدال | 24/11/2026 09:40 AM (1 month later) |
|---|
| الحالة | تمت الموافقة |
|---|
| إدخال VulDB | 442753 [Panabit Smart Application Gateway TANGr7p10 ajax_chart_dump isntmeye تجاوز الصلاحيات] |
|---|
| النقاط | 20 |
|---|