Submit #665615: Tenda CH22 V1.0.0.1 Stack-based Buffer Overflowinfo

TitleTenda CH22 V1.0.0.1 Stack-based Buffer Overflow
DescriptionDuring a white-box security audit of the Tenda CH22 router, a critical buffer overflow vulnerability was identified in the '/goform/AdvSetWrlsafeset' endpoint. The function 'formWrlsafeset()' associated with this endpoint improperly handles user input, specifically the 'mit_ssid_index' parameter. By submitting an oversized value for this parameter, attackers can cause the 'sprintf' function to overflow the local buffer 'v27', which has a maximum capacity of 448 bytes. This vulnerability affects firmware version V1.0.0.1 and requires no authentication to exploit, significantly increasing its severity. Since the attack vector is exposed via a web-accessible endpoint, it can be easily exploited through automated scripts or specially crafted HTTP requests. Immediate mitigation is necessary, such as input length validation, use of secure string-handling functions like 'snprintf', and firmware updates to patch the vulnerability. Users are strongly advised to update the device firmware or isolate vulnerable devices from untrusted networks.
Source⚠️ https://github.com/Sxxxw/cve/issues/2
User
 Sxxxw (UID 89241)
Submission09/30/2025 12:02 (10 months ago)
Moderation10/07/2025 13:05 (7 days later)
StatusAccepted
VulDB entry327354 [Tenda CH22 up to 1.0.0.1 HTTP Request /goform/AdvSetWrlsafeset formWrlsafeset mit_ssid_index stack-based overflow]
Points20

Might our Artificial Intelligence support you?

Check our Alexa App!