Router vulnerability note - Tenda
Tenda AC18: a guest network name long enough to break the router
What happened
The guest SSID field on the AC18 goes to /goform/WifiGuestSet, and the handler does not
like a long guestSsid value. Send oversized data and the device either falls over — which on a
router means nobody is online — or, in the reporter's framing, may end up executing something.
It is worth pointing at this one when a customer asks why we care about a text field. A Wi-Fi name is the single most likely thing in a small office to be edited by a non-technical person, and on this hardware that edit travels a path written in C with a fixed buffer. Somebody typing "Conference Room 2 (5 GHz) - please do not connect" is a plausible Tuesday; the same bytes arriving from a script on a hostile network is a plausible incident.
Who is affected
Tenda AC18 with the v15.03.05.05_multi firmware line.
Check it yourself
Version, and what your SSIDs look like
UI: Wireless settings > 2.4G / 5G > SSID
# keep names under 20 characters on this class of device, and avoid the
# emoji that a phone keyboard inserts without asking
$ curl -s -o /dev/null -w '%{http_code}\n' http://192.168.0.1/goform/WifiGuestSet
Do this
- Update the firmware.
- Keep SSID names short and boring on devices in this price range; the buffer was not written for a marketing name.
- Avoid non-ASCII characters in an SSID on cheap firmware if any client has a mixed fleet of old laptops.
- Do not expose the goform endpoints above the management interface.
How we handle it
We treat a long SSID as a configuration smell rather than a fault, but on a device with a published overflow in the field's handler we will shorten it during the visit and mention it in the report.