Skip to content
Info disclosure Write-up Advanced

Hacking ISP CPE equipment: FiberHome

The default WiFi password on a FiberHome ISP router is derived by inverting bits of the MAC address, so anyone who can see the broadcast MAC can compute the password. The author also found an unauthenticated endpoint that enables remote management and a stack buffer overflow in the web server's cookie handling.

Gergely Kalman Follow

Published on gergelykalman.com

For those of you who are used to reading about my Apple research, this post is going to be a change of pace. This one is about CPE (Customer Premise Equipment) security, basically the routers your ISP gives you.

Gergely Kalman, on gergelykalman.com

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 generated default WiFi passwords deterministically from the non-secret MAC address, and left an administrative endpoint without authentication checks.

Impact

Anyone within WiFi range could compute the default password and join the network, and the unauthenticated endpoint could enable remote management, though the referrer check and ISP filtering of inbound web ports limited remote abuse.

What the attacker needed

Physical access to the router; UART connection to the device; device within WiFi range for password attack

The fix

End users should change all default WiFi passwords, and the vendor should stop deriving passwords from the MAC address and require authentication on the remote management endpoint.

How it was found

  1. Connect to the router's UART pins and open a serial console at 115200 baud.
  2. Interrupt the boot autoconfig with Ctrl-C to reach a root shell.
  3. Dump the flash partitions for analysis.
  4. Extract the filesystems and inspect the web server binary.
  5. Locate the password generation routine in the WiFi library.
  6. Derive the default password from the MAC address.

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.

Every WiFi router broadcasts a hardware identifier called a MAC address so nearby devices can find it. This router built its default WiFi password directly from that public identifier, so anyone nearby could work out the password without guessing. The author also found a web page on the router that turns on remote access without asking for a login.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by Gergely Kalman

View all

12 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.