nstarke/netgear-private-key-disclosure.md
Two valid, signed TLS certificates and their private keys were shipped inside a publicly downloadable Netgear firmware image. Anyone could retrieve the keys and impersonate the certificate hostnames, though the text does not demonstrate an actual attack.
gist.github.com
Published on gist.github.com
Clone this repository at <script src="https://gist.github.com/nstarke/a611a19aab433555e91c656fe1f030a9.js"></script> - Save nstarke/a611a19aab433555e91c656fe1f030a9 to your computer and use it in GitHub Desktop.
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 vendor bundled a real, CA-signed server certificate and its private key into firmware images distributed without authentication, instead of generating per-device keys.
Impact
With the leaked keys an attacker could impersonate the certificate hostnames, but the text only asserts the keys were exposed and does not show a working attack; it expects the certificates to be revoked.
What the attacker needed
No account needed to download firmware
The fix
The certificates should be revoked and replaced with per-device keys generated on the device rather than shipped in firmware.
How it was found
- Download the publicly available firmware image for the router model.
- Extract the image and locate the certificate and key files.
- Read the certificate with openssl to confirm it is valid and see which hostnames it covers.
- Note that the matching private key sits next to the certificate.
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.
A TLS certificate is what lets a browser show a padlock and confirm it is talking to the right website. The matching private key is the secret half that proves the site's identity, so if it leaks anyone can pretend to be that site. Here the secret keys were packed into a firmware file that anyone could download from Netgear's support site.
What is Leaked secrets?
Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.