GL-Inet GL-AXT1800 OTA Update firmware downgrade vulnerability
The OTA update process disables TLS certificate verification when fetching firmware metadata, allowing a man-in-the-middle attacker to alter the version list and trick the user into downgrading to an older, vulnerable firmware. The attacker can also falsify the upgrade prompt to show a newer version and fake release notes.
Originally disclosed on Cisco Talos
A firmware downgrade vulnerability exists in the OTA Update functionality of GL-Inet GL-AXT1800 4.7.0. A specially crafted .tar file can lead to a firmware downgrade.
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 Lua script that fetches firmware information sets ssl_verify to false, disabling TLS certificate validation.
Impact
An attacker could downgrade the device to a vulnerable firmware version, potentially enabling further exploitation such as remote code execution via known vulnerabilities.
What the attacker needed
Man-in-the-middle position; user initiates upgrade check; user agrees to upgrade
The fix
The ssl_verify option should be enabled to properly validate TLS certificates.
How it was found
- Intercept the HTTPS request to the firmware list URL.
- Modify the list to include an older firmware file with a higher version number.
- Intercept the metadata request and alter the displayed version and release notes.
- The user sees a fake upgrade prompt and agrees to upgrade.
- The device downloads and installs the older firmware.
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 your router checks for updates, it downloads a list of available versions from the manufacturer's website. This report found that the router does not verify the website's security certificate, so someone who can intercept your internet traffic could change that list. They could make your router install an older, less secure version while showing you a fake message that it is a new update.
What is Crypto?
Encryption, signatures, randomness or certificate checks that do not protect what they claim to.