Tp-Link Archer AX53 v1.0 tmpServer opcode 0x437 heap-based buffer overflow vulnerability
A heap-based buffer overflow exists in the tmpServer service of the TP-Link Archer AX53 router when processing opcode 0x437 packets. An attacker who can reach the service could send crafted packets to trigger the overflow and potentially execute arbitrary code.
Originally disclosed on Cisco Talos
A heap-based buffer overflow vulnerability exists in the tmpServer opcode 0x437 functionality of Tp-Link Archer 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 a missing bounds check when copying user-supplied data into a fixed-size heap buffer in the opcode 0x437 handler.
What the attacker needed
Access to the tmpServer service; ability to send crafted packets
How it was found
- Send an ASSOCIATION packet to move the connection to the next state.
- Send a second ASSOCIATION packet to reach the data-processing state.
- Send a DATA HELLO packet with opcode 0x5 to initialise the session.
- Send an opcode 0x421 packet with a JSON body to create an owner and read the returned owner_id.
- Send an opcode 0x437 packet with a filter_website_list containing an oversized value to trigger the overflow.
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 router runs a hidden service that the phone app uses to change settings. The service has a bug: if it receives a specially crafted message, it writes more data into a memory buffer than the buffer can hold. That can crash the service or let an attacker run their own code on the router.
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.