Tp-Link AX53 v1.0 tmpServer opcode 0x441 Write-What-Where vulnerability
A write-what-where flaw exists in the tmpServer service of the TP-Link AX53 router, where a user-controlled value from one TLV field determines the destination address of a later write. An attacker able to reach the service could write arbitrary data to arbitrary memory and potentially achieve code execution.
Originally disclosed on Cisco Talos
A write-what-where vulnerability exists in the tmpServer opcode 0x441 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 a missing validation of a user-supplied offset used as a write destination, allowing an attacker-controlled TLV value to become an arbitrary memory address.
Impact
An attacker could write arbitrary data to arbitrary memory, which the text says quickly results in code execution; the service is only reachable through the cloud SSH forward to localhost.
What the attacker needed
Access to tmpServer via cloud SSH forward; authenticated HomeShield app session
How it was found
- Send an association request packet to move the connection status forward.
- Send a second association packet to reach the data-processing state.
- Send a data hello packet to open the data path.
- Send a data packet whose TLV type 0x449 sets the destination value.
- Send a TLV type 0x442 entry to write attacker data to that chosen address.
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 background service that the phone app talks to. The service reads a list of labelled chunks of data, and one chunk is used as an address for where to store another chunk. Because the sender chooses that address, they can make the router write data almost anywhere in its memory, which can let them take over the device.
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.