Submit #1071896: TRENDnet TEW-751DR 1.03B01 CWE-78info

TitleTRENDnet TEW-751DR 1.03B01 CWE-78
DescriptionTRENDnet TEW-751DR 1.03B01 hosts the UPnP event endpoint /gena.cgi, which requires no authentication: genacgi_main only checks REQUEST_METHOD and dispatches SUBSCRIBE to FUN_0040e740. That function takes the HTTP header CALLBACK, splits it at the first '/' into host and URI, and passes both to run.NOTIFY.php, i.e. to htdocs/upnpinc/gena.php::GENA_notify_init(). That function writes a #!/bin/sh script and concatenates the values without quoting (" -V HDR_URL=".$uri, " -V HDR_HOST=".$host). genacgi_main then schedules the script through xmldbc_timer("NOTIFY:0:sh <script>"), so the injected text becomes part of a shell command line executed by the CGI. With CALLBACK: <http://<host>/aaa;touch /var/tmp/gena/PWNED;bbb> the generated script contains ' -V HDR_URL=aaa;touch /var/tmp/gena/PWNED;bbb' as an unquoted word and the touch runs. Reproduction: the script was generated with the firmware's own gena.php under php-cli and executed with the firmware's busybox sh inside the extracted rootfs (qemu-user chroot); the control URI 'aaa' creates nothing, the payload URI creates /var/tmp/gena/PWNED owned by root. The PHP interpreter and the xmldbc timer of the device were not exercised, so the end-to-end trigger is not claimed.
Source⚠️ https://github.com/qwq-nm/CVE/tree/main/CVE5
User
 zeroxf (UID 101992)
Submission11/03/2026 16:26 (27 days ago)
Moderation11/30/2026 22:43 (27 days later)
StatusDuplicate
VulDB entry444940 [TRENDnet TEW-751DR 1.03B01 UPnP Event htdocs/upnpinc/gena.php GENA_notify_init uri os command injection]
Points0

Want to stay up to date on a daily basis?

Enable the mail alert feature now!