Tp-Link AX53 v1.0 tmpServer opcode 0x436 stack-based buffer overflow vulnerability
A stack-based buffer overflow exists in the tmpServer service of the TP-Link Archer AX53 router when handling opcode 0x436, which processes a JSON request to retrieve filtered websites. An attacker who can reach the service (via the cloud SSH tunnel) could send a crafted packet to overwrite the stack and potentially execute arbitrary code.
Originally disclosed on Cisco Talos
A stack-based buffer overflow vulnerability exists in the tmpServer opcode 0x436 functionality of Tp-Link AX53 v1.0 1.3.1 Build 20241120 rel.54901(5553). A specially crafted set of network packets can lead to arbitrary code execution.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the code copies a website name from a parsed JSON field into a fixed-size stack buffer without validating its length, leading to a stack buffer overflow.
Impact
An attacker could potentially execute arbitrary code on the router, but the service is only reachable through an authenticated cloud SSH tunnel, limiting exposure.
What the attacker needed
Access to the tmpServer service via cloud tunnel; authentication to the HomeShield app
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
This report describes a memory corruption bug in a router's internal service. The service copies data from a network packet into a fixed-size memory area on the stack without checking the length, so a long input can overflow that area and overwrite nearby memory. An attacker who can send packets to the service could crash the router or possibly run their own code.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.