Exploiting zero days in abandoned hardware
Two discontinued network devices, a Netgear router and a Bitdefender Box, contained unpatched vulnerabilities that allowed an attacker on the local network to gain a remote root shell. The Netgear router had an authentication bypass and buffer overflows in its UPnP daemon, while the Bitdefender Box had an unauthenticated firmware downgrade combined with command injection.
blog.trailofbits.com
Published on blog.trailofbits.com
We successfully exploited two discontinued network devices at DistrictCon’s inaugural Junkyard competition in February, winning runner-up for Most Innovative Exploitation Technique. Our exploit chains demonstrate why end-of-life (EOL) hardware poses persistent security risks: when manufacturers stop releasing updates…
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 write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the root causes are multiple: an authentication bypass and buffer overflows in the UPnP daemon of the Netgear router, and an unauthenticated firmware downgrade combined with command injection in the Bitdefender Box's firmware validation.
Impact
An attacker on the local network could gain a remote root shell on both devices, giving full control over them.
What the attacker needed
Local network access; end-of-life device
The fix
The devices are end-of-life and no longer receive updates, so they should be replaced or isolated; the text does not state that a fix was applied.
How it was found
- Connect to the Netgear router's UART interface to gain low-level system access during boot.
- Analyse the UPnP daemon and identify an authentication bypass and buffer overflows.
- Develop exploits that chain these vulnerabilities to achieve remote code execution.
- For the Bitdefender Box, extract firmware from the SPI flash chip.
- Use the unauthenticated firmware update endpoints to upload an old, signed firmware image.
- Exploit the command injection in the md5 parameter of the old firmware to add an SSH key and gain persistent access.
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 write-up has not been written yet. The Original tab links to the source.
This is a write-up about finding and exploiting security holes in old routers and home security devices that no longer receive updates. The researchers found ways to take full control of these devices from the local network, meaning anyone connected to the same network could potentially do the same. The lesson is that devices without updates remain vulnerable forever.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.