| 제목 | TRENDnet TEW-657BRM 1.00.1 Out-of-bounds Read |
|---|
| 설명 | An out-of-bounds read vulnerability was identified in TRENDnet TEW-657BRM firmware 1.00.1 (hardware revision v1.0R).
The vulnerability exists in the configuration restoration handler /usr/sbin/restore_config.cgi, which processes multipart HTTP upload requests.
The handler reads the incoming multipart request body into a stack buffer and searches for the Content-Disposition marker using strstr.
After locating the marker, the handler uses a manually implemented bytewise loop to search for the multipart header terminator. The scanning loop does not adequately enforce the input buffer boundary.
An authenticated attacker with access to the router's web management interface can submit a malformed multipart body without the expected header terminator, causing the scan to continue beyond the allocated buffer.
Static analysis identified the missing boundary check in the scanning routine.
According to the supplied research records, dynamic testing in a re-hosted QEMU-MIPS environment demonstrated that a malformed request caused the CGI process to terminate with SIGSEGV.
The debugger recorded the following state:
PC = 0x4033a4
RA = 0x403354
v1 = 0x2b2b2000
The faulting instruction was a byte-load operation within the multipart header scanning loop. The recorded pointer had advanced beyond the mapped stack boundary.
Control tests using valid multipart input or requests without the relevant marker returned the normal error response without triggering the same crash.
The demonstrated impact is an authenticated CGI process crash caused by an out-of-bounds memory read.
The supplied evidence does not establish a persistent denial of service affecting the complete web management interface or router. Information disclosure, control-flow hijacking, and arbitrary code execution were not demonstrated.
Affected vendor: TRENDnet
Affected product: TEW-657BRM
Hardware revision: v1.0R
Affected firmware: 1.00.1
Affected component: restore_config.cgi
Vulnerability type: Out-of-bounds Read
CWE: CWE-125, CWE-20
Authentication required: Yes
Attack vector: Authenticated HTTP configuration-restore upload
Testing environment: Re-hosted QEMU-MIPS
Preliminary CVSS v3.1: 3.5 (Low)
CVSS vector: CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
The proposed availability impact requires additional validation. The CVSS score should be reassessed if the crash has no externally meaningful service impact.
Physical hardware verification and vendor notification status have not been independently confirmed.</
|
|---|
| 원천 | ⚠️ https://github.com/ruanyi101/router-firmware-security-advisories/blob/main/router-firmware-GitHub-advisories/advisories/TRENDnet-TEW-657BRM-restore_config-cgi.md |
|---|
| 사용자 | ruanyi (UID 102203) |
|---|
| 제출 | 2026. 10. 22. PM 01:54 (29 날 ago) |
|---|
| 모더레이션 | 2026. 11. 20. PM 08:13 (29 days later) |
|---|
| 상태 | 수락 |
|---|
| VulDB 항목 | 441575 [TRENDnet TEW-657BRM 1.00.1 restore_config.cgi 정보 공개] |
|---|
| 포인트들 | 20 |
|---|