Skip to content
Misconfiguration Write-up Beginner

How i hacked a router (embedded system)

A Huawei router's web login page was reachable on the internet and still used factory default credentials. An attacker who found it could log in and use the router's web panel, including ping, traceroute, logs and port forwarding.

Threat_Intelligence Follow

Published on medium.com

Un saludo muy especial para el publico hispanohablante y para todos en general. Hoy quiero mostrarle como gane acceso a un Router o sistema embebido (enbedded system) de una manera muy trivial.

Detected, on medium.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 router was left with its factory default credentials and its web management interface was exposed to the internet.

Impact

The attacker gained access to the router's web panel and could run ping and traceroute, view logs and set up port forwarding; the author notes luck was involved in finding it.

What the attacker needed

Router reachable on the internet; factory default credentials unchanged; target IP known

The fix

The router's default credentials should be changed and its management interface should not be exposed to the internet.

How it was found

  1. Do a reverse whois lookup on the target IP to find its address range.
  2. Scan the range on port 8081 with zmap and keep live hosts with httpx.
  3. Take screenshots of the live hosts with Aquatone and review them.
  4. Spot a Huawei router login page among the screenshots.
  5. Look up factory credentials for that model and log in.

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.

Many devices ship with a default username and password so they work out of the box. If the owner never changes them and the login page is open to the internet, anyone who finds the page can try the well-known defaults. Here the author found a router login page and got in with the factory credentials.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.