Tenda AC20 Stack-Based Buffer Overflow Vulnerability in Firewall Configuration Endpoint

Vulnerability

A critical stack-based buffer overflow vulnerability has been identified in the Tenda AC20 router running version 16.03.08.05. The issue arises in the '/goform/SetFirewallCfg' endpoint, where the 'firewallEn' parameter is processed. The vulnerability occurs because the input length is only partially validated, allowing attackers to send oversized payloads that overflow a fixed-size stack buffer. This exploitation could lead to a denial-of-service condition or arbitrary code execution.

Impact

Exploitation of this vulnerability causes a stack-based buffer overflow, which can disrupt normal device operation or allow for arbitrary code execution.

Reproduction

To reproduce this vulnerability, send a POST request to the '/goform/SetFirewallCfg' endpoint. Include a 'firewallEn' parameter with a payload that exceeds the buffer's size limit. The request must be made with a valid 'Cookie' header to simulate an authenticated user.

Remediation

No specific mitigation is known, but it is recommended to add proper length validation for the 'firewallEn' parameter.

Added: Aug 10, 2025, 2:21 PM
Updated: Aug 10, 2025, 2:21 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
7.5
exploitability
6.6
remediation
0.0
relevance
0.3
threat
6.4
urgency
2.9
incentive
0.8

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.