Tp-Link AX53 v1.0 SSH Hostkey misconfiguration vulnerability
The router regenerates its SSH host key on every reboot because the key lives in a non-persistent overlay, so the fingerprint changes each time. An attacker who can position themselves on the network path after a reboot could impersonate the device during SSH connections and capture credentials.
Originally disclosed on Cisco Talos
A misconfiguration vulnerability exists in the SSH Hostkey functionality of Tp-Link AX53 v1.0 1.3.1 Build 20241120 rel.54901(5553). A specially crafted man-in-the-middle attack can lead to credentials leak.
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
The SSH host key is stored in a non-persistent overlay filesystem and regenerated at each boot, so the device's identity changes and clients cannot pin it.
Impact
After a reboot, an attacker in the network path could man-in-the-middle SSH connections to the device and steal credentials, though the attack requires the timing of a reboot and a position on the network path.
What the attacker needed
Attacker on the network path; device reboots (forced or natural); user connects via the phone app
The fix
The vendor released a patch; the underlying fix is to keep a stable host key in persistent storage rather than regenerating it each boot.
How it was found
- Check the mount output to see that /etc sits on a non-persistent overlay.
- Write a file to /etc, reboot, and confirm the file is gone.
- Compare the host key checksums before and after reboots and observe they differ.
- Read the dropbear init script and see the key is generated fresh when missing.
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.
When you connect to a server over SSH, your client checks a fingerprint to make sure it is talking to the real machine. This router throws away its fingerprint on every reboot and makes a new one, so a client has no reliable way to tell the real router from an impostor. Someone sitting between the user and the router could pretend to be the router and collect the login details.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.