提交 #1074222: TRENDnet TEW-821DAP 1.12B01 OS Command Injection (CWE-78) / Path Traversal (CWE-22)信息

标题TRENDnet TEW-821DAP 1.12B01 OS Command Injection (CWE-78) / Path Traversal (CWE-22)
描述An OS command injection vulnerability was discovered in TRENDnet TEW-821DAP firmware v1.12B01. The Internal Captive Portal image upload handler (/icp_upload_img.cgi in /www/cgi/ssi) stores the multipart filename field into the UCI key cameo.captive_portal.upload_img_N with no filtering that stops shell substitution (the parser only truncates at double-quote and semicolon). The upload request itself then executes _system("chmod 744 \"/www/icp/%s\"", filename) at 0x41d850, so a $(...) or backtick sequence in the filename runs as root during the upload. Independently, the delete handler (POST /apply.cgi action=icp_delete_img&del_num=N) executes _system("rm \"/www/%s\"", filename) at 0x41e6c8, giving the same command injection plus arbitrary file deletion as root via ../../ traversal. Reproduction (authenticated, captive portal enabled): upload an image with multipart filename c$(id > /tmp/PWNID)d.jpg; the target then contains /tmp/PWNID with uid=0(root) gid=0(root). Setting the stored filename to ../../tmp/X and calling the delete action removes /tmp/X. Preconditions: admin web session (default credentials admin/admin are widespread) and the captive portal feature enabled (disabled by default, standard in the hospitality/enterprise scenarios this access point is marketed for). Non-duplicate note: the nearest published neighbor CVE-2026-77945 covers a filename injection in /cgi-bin/upload.cgi of the v2.xR firmware line (v2.2.01b05); this report concerns a different firmware line, endpoint, subsystem and sink chain. The same firmware image line is shared by TEW-755AP and TEW-825DAP. The product line is end-of-life. Proposed CVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H (6.8, LAN-side; WAN-reachable when remote management is enabled). Discovered by yegeg via firmware rehosting and static reverse engineering.
来源⚠️ https://github.com/yegeg/TEW-821DAP-cves/tree/main/03-icp-filename-command-injection
用户
 yegege (UID 102736)
提交2026-11-04 08時50分 (29 日前)
管理2026-12-03 00時45分 (29 days later)
状态已接受
VulDB条目448235 [TRENDnet TEW-821DAP 1.12B01 Internal Captive Portal /icp_upload_img.cgi icp_upload_img filename 权限提升]
积分20

Do you need the next level of professionalism?

Upgrade your account now!