| عنوان | Panabit Panabit Smart Application Gateway TANGr7p10 OS Command Injection |
|---|
| الوصف | In Panabit Smart Application Gateway firmware TANGr7p10, the "channel rate-limit policy" shell CGI admin/cgi-bin/flowcontrol/ajax_data_pie concatenates the request parameter "name" into a string handed to eval for a SECOND shell parse (edit_data_pie() line 137, repeated verbatim in copy_data_pie() line 177):
eval cmdargs="\"name=${CGI_name} pri=${num} maxrate=\$CGI_maxrate_${num} ...\""
The only input validation is a non-empty check (line 126). The outer double-quote expansion is safe, but eval re-runs full lexical/syntactic analysis: an injected " closes the cmdargs=" quote early, turning the following ";" into a genuine command separator:
POST /cgi-bin/flowcontrol/ajax_data_pie?action=edit_data_pie&name=x"; id > /tmp/RPT_C1; #
Because eval parses the whole fragment, full shell syntax (; | > $() backticks &&) works WITHOUT an sh -c wrapper. The CGI runs as root (spawned by ipe_httpd); a single valid management session yields root RCE. The response still returns {"code":0,"msg":"操作成功"}, making exploitation stealthy.
Two practical notes: (1) the injection sits inside a while loop bounded by pri_max_num (from floweye policy stat MAX_PRIORITY, default 4) — if it is 0/empty the loop body never runs; probe with the read-only action=get_policy_stat first. (2) action must be edit_data_pie or copy_data_pie, otherwise UNKNOW_ACTION.
Factory credentials are admin/panabit. Verified against the real ipe_httpd (HTTPS 18443): cat /tmp/RPT_C1 -> uid=0(root) gid=0(root). Only non-destructive commands were used. |
|---|
| المصدر | ⚠️ https://github.com/nenghun/IoT/blob/main/Panabit/rce2/RCE2.md |
|---|
| المستخدم | nenghun (UID 102476) |
|---|
| ارسال | 24/10/2026 08:16 PM (1 شهر منذ) |
|---|
| الاعتدال | 24/11/2026 09:40 AM (1 month later) |
|---|
| الحالة | تمت الموافقة |
|---|
| إدخال VulDB | 442754 [Panabit Smart Application Gateway TANGr7p10 ajax_data_pie edit_data_pie name تجاوز الصلاحيات] |
|---|
| النقاط | 20 |
|---|