| Titel | TRENDnet TEW-824DRU 1.00b18 OS Command Injection (CWE-78) |
|---|
| Beschreibung | TRENDnet TEW-824DRU 1.00b18: the configuration CGI /www/cgi/ssi (page adm_syslog.asp) reads the UCI option cameo.cameo.syslog_server, copies it into a 24-byte stack buffer with strcpy() and splits it on '/'. When the first segment is '1', the second segment is formatted unfiltered into system("syslogd -C%d -L -R %s:514 &"). With syslog_server set to '1/;echo PWNED_SYSLOG>pwned_syslog;' the CGI executes sh -c "syslogd -C20 -L -R ;echo PWNED_SYSLOG>pwned_syslog;:514 &" and the injected command runs as root (13-byte marker file created). The same option overflows the stack buffer: 22-byte values are accepted, 24 bytes and above kill the CGI with SIGSEGV/SIGBUS. Requires administrator (or configuration-write) access; reproduced with the extracted firmware under qemu-user with PATH_TRANSLATED=/www/adm_syslog.asp. The TEW-827DRU image gates this path behind cameo.feature_change_review=1, the TEW-824DRU does not. |
|---|
| Quelle | ⚠️ https://gist.github.com/qwq-nm/b3027508114354faa37384f9262a5891 |
|---|
| Benutzer | zeroxf (UID 101992) |
|---|
| Einreichung | 31.10.2026 03:38 (vor 30 Tagen) |
|---|
| Moderieren | 29.11.2026 20:50 (30 days later) |
|---|
| Status | Akzeptiert |
|---|
| VulDB Eintrag | 445260 [TRENDnet TEW-824DRU 1.00b18 /cgi/ssi syslog_server erweiterte Rechte] |
|---|
| Punkte | 20 |
|---|