support.mikro.strouter help over vpn
since 2014 Contact us now

Router vulnerability note - TP-Link

TP-Link Archer C7: the login password was encrypted, with a 1024-bit key

What happened

Somewhere in the design of this login page was the reasonable wish not to send a password in cleartext, and the implementation was to encrypt it client-side with a 1024-bit RSA key before posting it. The finding is that an adjacent attacker who can watch the traffic can, with enough patience, undo that — a factorisation or brute-force attack against RSA-1024 recovers the plaintext administrator password, and with it the configuration.

It is a good example of a control that is better than nothing and worse than what people assume. The password is not on the wire in ASCII, so a casual observer learns nothing; the determined one on the same LAN learns everything, because the encryption was not tied to a secret the router kept. TLS would have solved it properly, and on a device whose admin plane is plain HTTP, "we encrypted the password" is a sentence that invites exactly this kind of advisory.

Who is affected

Archer C7 hardware v5 and v5.8, firmware through Build 20220715.

Check it yourself

What the login actually uses

UI: System Tools > Firmware   (look for a build after 20220715)
# open the login page in a browser and look at the address bar:
#   http://tplinkwifi.net   <- plain HTTP, this is the finding
$ curl -s -o /dev/null -w '%{http_code} %{redirect_url}\n' http://192.168.0.1/

Do this

  • Update to a build after 20220715.
  • Prefer the HTTPS form of the admin page where the device offers it, and stop using the discovery hostname over HTTP.
  • Do not reuse the router's admin password anywhere else; that is the mitigation that costs nothing.
  • On a C7 v5, remember the hardware version: the v5 firmware is not the v4 firmware under a different name.

How we handle it

The C7 is one of the most successfully sold home routers of the last decade and half, so this entry is in most of our audits. If yours is a v5 still on 2019 firmware and the Wi-Fi is fine, we will tell you to update the password and leave the box alone.

Sources

Not your thing? We can run these checks for you over an OpenVPN tunnel: €45 fix visit, or just mail us.