Skip to content
RCE Write-up Intermediate

Pivot Into A Network Using A Compromised Router

A router had an unauthenticated bind shell listening on a high port, likely from a command injection in an input field. An attacker could connect to this shell and use the router to pivot into the internal network, scanning and accessing other machines.

helich0pper.github.io

Published on helich0pper.github.io

Do not replicate any steps in this blog post on networks/routers that you do not own.

The author, on helich0pper.github.io

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 a command injection vulnerability in a router configuration field allowed an attacker to start an unauthenticated bind shell, or the router shipped with it enabled.

What the attacker needed

Network access to the router's high port; no authentication required

The fix

The bind shell process should be killed, a strong admin password set, remote management disabled, and the command injection vulnerability patched.

How it was found

  1. Scan the router's high port to confirm the bind shell is listening.
  2. Connect to the port with Netcat to get an interactive root shell.
  3. Dump the router's ARP cache to discover internal IP addresses.
  4. Use the router's busybox Netcat to port scan the target internal machine.
  5. Connect to the target's telnet service and log in with default credentials.

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 bind shell is a program that opens a network port and gives anyone who connects a command prompt on the device. Here, the router was running such a shell without any password, so anyone on the internet could control it. The author then used the router as a stepping stone to reach other computers inside the home network.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.