Gửi #868930: Tenda W20E US_W20EV4.0br_V15.11.0.6(1068_1546_841)_CN_TDC.bin Buffer Overflowthông tin

tiêu đềTenda W20E US_W20EV4.0br_V15.11.0.6(1068_1546_841)_CN_TDC.bin Buffer Overflow
Mô tảA buffer overflow vulnerability was discovered in Tenda W20E V4.0br_V15.11.0.6. Attackers can exploit this vulnerability by specifying the value of portMirrorMirroredPorts. When portMirrorMirroredPorts is passed to formSetPortMirror and written into fixed-size stack buffers through sprintf/sscanf without length validation, it may cause a buffer overflow. Technical details from the advisory: The vulnerable component is the httpd web management interface. The vulnerable endpoint is goform/setPortMirror, registered as: websDefineAction("setPortMirror", formSetPortMirror); In formSetPortMirror, the attacker-controlled portMirrorMirroredPorts parameter is read from the HTTP request: pMirroredPorts = websGetVar((Webs_1 *)wp, "portMirrorMirroredPorts", defaultGetValue__2); The destination buffer is a fixed-size stack buffer: char sMibValue[256]; When portMirrorEn is true, the user-controlled value is formatted into sMibValue without length validation: sprintf(sMibValue, "1;%d;%s", 0, pMirroredPorts); Because sprintf writes the complete portMirrorMirroredPorts string into the fixed-size sMibValue stack buffer, an overly long value can overflow the buffer and corrupt adjacent stack memory. Conceptual proof-of-concept request: POST /goform/setPortMirror HTTP/1.1 Host: <device-ip> Content-Type: application/x-www-form-urlencoded portMirrorEn=true&portMirrorMirroredPorts=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Nguồn⚠️ https://github.com/lipenghai/iot_bug/blob/main/Tenda/W20E/1.md
Người dùng
 stksgg (UID 97520)
Đệ trình25/06/2026 09:12 (cách đây 2 các tháng)
Kiểm duyệt14/08/2026 07:26 (2 months later)
Trạng tháiBản sao
Mục VulDB369142 [Tenda W20E 15.11.0.6 /goform/setPortMirror formSetPortMirror portMirrorMirroredPorts tràn bộ đệm]
điểm0

Do you want to use VulDB in your project?

Use the official API to access entries easily!