Skip to main content
Vulnerability Database/CVE-2024-30592

CVE-2024-30592: Tenda FH1202 Buffer Overflow Vulnerability

CVE-2024-30592 is a stack overflow vulnerability in Tenda FH1202 Firmware affecting the fromAddressNat function. Attackers can exploit this flaw to crash the device or execute malicious code. This article covers technical details, affected versions, security impact, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2024-30592 Overview

CVE-2024-30592 is a stack-based buffer overflow [CWE-121] in the Tenda FH1202 router firmware version 1.2.0.14(408). The flaw resides in the fromAddressNat function, which fails to validate the length of the page parameter before copying it into a fixed-size stack buffer. An authenticated attacker on an adjacent network can send a crafted HTTP request to overflow the buffer, corrupt the saved return address, and crash the device or execute arbitrary code in the context of the web management service.

Critical Impact

Successful exploitation allows arbitrary code execution on the router, enabling full device takeover, traffic interception, and persistent network foothold.

Affected Products

  • Tenda FH1202 hardware (cpe:2.3:h:tenda:fh1202)
  • Tenda FH1202 firmware version 1.2.0.14(408)
  • Deployments exposing the web management interface to adjacent network segments

Discovery Timeline

  • 2024-03-28 - CVE-2024-30592 published to the National Vulnerability Database
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2024-30592

Vulnerability Analysis

The Tenda FH1202 web management binary (httpd) exposes the fromAddressNat handler to process NAT configuration requests. The handler reads the page HTTP parameter from the request and copies it into a stack-allocated buffer without enforcing a maximum length. Because the destination buffer sits on the stack adjacent to saved registers and the return address, an oversized page value overwrites control-flow data when the function returns.

The vulnerability belongs to a broader class of input validation failures in Tenda consumer and small-office routers, where request parameters are copied with unsafe string routines such as strcpy or sprintf. An attacker with valid credentials on the LAN or an adjacent segment can trigger the overflow by issuing a single HTTP POST request to the vulnerable endpoint.

Root Cause

The root cause is missing bounds checking on attacker-controlled input before a stack copy operation [CWE-121]. The fromAddressNat function trusts the length of the page parameter supplied in the HTTP request body and never truncates or rejects oversized values.

Attack Vector

Exploitation requires network adjacency and low-privilege authentication to the device web interface. The attacker crafts an HTTP request to the NAT configuration endpoint containing a page parameter long enough to overrun the stack frame. On MIPS-based Tenda firmware, attackers typically chain the overflow with return-oriented programming to defeat non-executable stack protections and achieve code execution as the httpd process, which runs as root. Technical write-up and proof-of-concept notes are available in the GitHub IoT Vulnerability Note.

Detection Methods for CVE-2024-30592

Indicators of Compromise

  • HTTP POST requests to NAT configuration endpoints containing abnormally long page parameter values (hundreds to thousands of bytes)
  • Unexpected restarts or crashes of the Tenda httpd process observed in device logs
  • Outbound connections from the router to unknown hosts following a configuration request
  • New or modified firewall and NAT rules that were not initiated by an administrator

Detection Strategies

  • Inspect HTTP request bodies destined for Tenda management interfaces for parameter lengths exceeding reasonable bounds
  • Deploy intrusion detection signatures that flag oversized page values in requests to router administration URLs
  • Baseline normal management traffic volume and alert on bursts of authenticated requests from a single source

Monitoring Recommendations

  • Forward router syslog data to a central collector and alert on repeated httpd crashes or restarts
  • Monitor east-west traffic for unauthenticated or anomalous connections targeting router management ports
  • Track configuration change events on perimeter devices and correlate them with administrator activity

How to Mitigate CVE-2024-30592

Immediate Actions Required

  • Restrict access to the Tenda FH1202 web management interface to a dedicated management VLAN or trusted host
  • Disable remote management from WAN and untrusted internal segments
  • Rotate administrative credentials and enforce strong, unique passwords
  • Audit NAT and firewall configuration for unauthorized changes

Patch Information

No vendor advisory or firmware update has been published for CVE-2024-30592 at the time of writing. Operators should monitor the Tenda support portal for firmware releases addressing the fromAddressNat handler and apply updates as soon as they become available. Where no fix is forthcoming, consider replacing the device with a vendor-supported model.

Workarounds

  • Place the router behind a segmented management network accessible only through a jump host
  • Block HTTP and HTTPS management ports at upstream firewalls for all source addresses except administrator workstations
  • Disable unused services on the device and limit the number of accounts with administrative privileges
bash
# Example firewall rule restricting management access to a single admin host
iptables -A INPUT -p tcp --dport 80 -s 10.0.0.5 -j ACCEPT
iptables -A INPUT -p tcp --dport 80 -j DROP
iptables -A INPUT -p tcp --dport 443 -s 10.0.0.5 -j ACCEPT
iptables -A INPUT -p tcp --dport 443 -j DROP

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.