提交 #1074223: TRENDnet TEW-821DAP 1.12B01 OS Command Injection (CWE-78)信息

标题TRENDnet TEW-821DAP 1.12B01 OS Command Injection (CWE-78)
描述An OS command injection vulnerability was discovered in TRENDnet TEW-821DAP firmware v1.12B01. The configuration backup encryption password set via the adm_set_encrypt_pass action is stored in the UCI key cameo.cameo.encrypt_pass with no character filtering (verified: double quotes and $(...) are stored verbatim). When a configuration backup is exported (GET /save_configure.sh, triggerable by any authenticated session), the CGI backend executes the pipeline cli sys param tar | openssl enc -aes-256-cbc -pass pass:"<password>" | openssl enc -base64 (template at 0x4751B0, call site 0x4247b8). A byte-by-byte escaping loop (0x4246f0-0x424768) escapes only double-quote, backslash and backtick but forgets the dollar sign, so a $(...) sequence in the stored password is expanded by the shell inside the double-quoted pass argument and executes as root. Reproduction (authenticated): POST /apply.cgi with action=adm_set_encrypt_pass and cameo.cameo.encrypt_pass=x$(id > /tmp/ENC_PWNED)y, then GET /save_configure.sh; the export completes normally (HTTP 200, openssl salted base64 output, stealthy) while /tmp/ENC_PWNED appears on the target containing uid=0(root) gid=0(root). The password persists in UCI, so every subsequent export re-executes the payload. The import direction (upload_configure.cgi decryption pipeline) shares the same password source and sanitizer gap and is inferred, not verified, to be injectable as well. 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.
用户
 yegege (UID 102736)
提交2026-11-04 08時52分 (29 日前)
管理2026-12-03 00時45分 (29 days later)
状态已接受
VulDB条目448236 [TRENDnet TEW-821DAP 1.12B01 Configuration Backup Export /www/cgi/ssi encrypt_pass 权限提升]
积分20

Do you need the next level of professionalism?

Upgrade your account now!