Tp-Link Archer AX53 v1.0 dnsmasq configuration restore TFTP server enable vulnerability
A crafted router configuration backup can set dnsmasq options that start a TFTP server rooted at the filesystem root. An attacker who can upload such a configuration can then read most files on the device by fetching them over TFTP.
Originally disclosed on Cisco Talos
An external config control vulnerability exists in the Openvpn configuration restore routeup functionality of Tp-Link Archer AX53 v1.0 1.3.1 Build 20241120 rel.54901(5553). A specially crafted configuration value can lead to arbitrary file reading.
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 configuration restore process passes user-controlled dnsmasq settings, including the TFTP enable flag and TFTP root path, straight into the dnsmasq startup script without restricting them.
Impact
An attacker with high privileges could read most files on the router, but only if they know the exact path, and the TFTP server offers no write access.
What the attacker needed
Authenticated admin access to the router; ability to upload a modified config backup
The fix
The vendor released a patch, and the configuration restore path should also stop accepting dnsmasq options such as the TFTP root from user-supplied backups.
How it was found
- Back up the router configuration from the web interface.
- Decrypt and unpack the backup to obtain the readable configuration file.
- Add dnsmasq settings that enable TFTP and set the TFTP root to the filesystem root.
- Repack and re-upload the modified configuration so the device reboots.
- Use TFTP GET requests to download files from the router's filesystem.
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.
Routers let you save their settings to a file and load them back later. This report shows that a tampered settings file can switch on a simple file-sharing service on the router, pointed at the whole disk, so anyone who can reach it can download files they should not see. The catch is the attacker must already be able to log in and upload a settings file.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.