Tp-Link AX53 v1.0 tmpServer opcode 0xe01 out-of-bounds write vulnerability
An out-of-bounds write exists in the tmpServer service of the TP-Link AX53 router when processing opcode 0xe01 packets. An attacker who can reach the service could send crafted packets to trigger the write and potentially achieve arbitrary code execution.
Originally disclosed on Cisco Talos
An out-of-bounds write vulnerability exists in the tmpServer opcode 0xe01 functionality of Tp-Link AX53 v1.0 1.3.1 Build 20241120 rel.54901(5553). A specially crafted 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 TLV parsing loop for opcode 0xe01 does not properly bound the number of entries written into the fixed-size bigstruct buffer, allowing an out-of-bounds write.
Impact
An attacker could potentially achieve arbitrary code execution on the router, though the service is only reachable via the cloud SSH port forward or from localhost.
What the attacker needed
Access to tmpServer via cloud SSH forward or localhost
How it was found
- Send an ASSOCIATION request packet to move the connection status to 0x2.
- Send an ASSOCIATION accept packet to move the connection status to 0x3.
- Send a DATA HELLO packet with opcode 0x5 to reach the data handling path.
- Send a DATA packet with opcode 0x5 and a service type of 0x01 or 0xf1, then the opcode 0xe01, followed by TLV entries including type 0xe02 to trigger the out-of-bounds write.
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 small network service that listens only on the device itself. A bug in how that service handles a particular type of message lets an attacker write data past the end of a fixed-size memory buffer. That kind of memory corruption can sometimes be turned into running attacker-controlled 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.