Dev.to Security πŸ” Cybersecurity πŸ‘ 2 πŸ“– 6 min read

How to Find Your ISP Router's Admin Password (the One They Don't Give You)

The login printed on the sticker under your ISP router is a guest account. It lets you change the WiFi name and maybe reboot the thing. The account that actually controls bridge mode, custom DNS, and port forwarding is a

The login printed on the sticker under your ISP router is a guest account. It lets you change the WiFi name and maybe reboot the thing. The account that actually controls bridge mode, custom DNS, and port forwarding is a different login, and your ISP has no intention of handing it over.

If you've ever tried to put your own router behind an ISP box and found that half the settings are greyed out, this is why. The firmware ships with the interesting options disabled, and the one credential that would let you route around all of it (the ISP router's real admin password, or the WAN credential it uses to dial your connection) is the one thing they keep.

There are a few ways to get it back. Most of what you read online is wrong about which one works, so I'll sort them out.

The two "hidden passwords" people confuse

When someone says they want their ISP router's admin password, they usually mean one of two completely different secrets:

  1. The superadmin web login: a second account in the router's web UI, above the sticker user, that re-enables bridge mode, DNS, and port forwarding. Some vendors ship a known default for it; many don't expose it at all.
  2. The PPPoE/WAN credentials: the username and password the router uses to authenticate to the ISP itself. Get these and you don't need the ISP box, you put your own router on the line directly.

The second one is the real prize, and it's the subject of xetera's writeup that kicked off a long Hacker News thread. The first one is what most "how to find your ISP router admin password" posts are chasing, and it's the weaker target. Start there anyway, because sometimes it's trivial.

Method 1: the superadmin web login

Try the obvious before anything clever. Vendor default superadmin pairs leak constantly. The UK is a running joke: virtually every BT/EE line used [email protected] with the password "BT" or just blank, to the point that a commenter asked the reasonable question of how the ISP even tells accounts apart. Search your exact model plus "superadmin" or "telnet" and you'll often find the account.

The catch is that increasingly there is no web superadmin. ISP firmware disables the DNS field, makes the PPPoE password write-only (the UI never sends the plaintext back), and removes the pages entirely. xetera mentions this route only "in passing" because on locked-down firmware it probably won't work.

People reach for TR-069 next, the remote management protocol baked into basically every ISP router, the thing that lets your ISP push config to the box whenever it wants. It won't save you here. Even with access to the TR-069 interface, as the article notes, "you can only get your username out of it and not the password." Good for confirming your PPPoE username, useless for the part you need.

Method 2: capture the PPPoE credentials off the wire

This is the method that actually works. Instead of asking the router nicely for its password, you make it hand the password over by pretending to be the ISP.

The router authenticates over PPPoE. You unplug the ISP router from the real line, connect it to a machine running a fake PPPoE server, and complete enough of the handshake that the router transmits its credentials to you. Whether you get them in plaintext depends on the auth protocol it negotiates:

  • PAP sends the password in the clear. Game over immediately.
  • CHAP sends an MD5 (sometimes DES) challenge-response, so you capture a hash and crack it offline. The salt rules out rainbow tables, but it's still MD5, so modern hardware gets through it. Where the ISP uses a predictable password format it's faster still: Superonline's are [0-9]{10}, Turk Telekom's are [0-9a-z]{10}, and xetera reckons a GPU brute-forces that whole keyspace in under a day.

The one thing people get wrong: you must run an actual PPPoE server on your end. Without it, the router only emits discovery packets and never reaches the authentication stage. The handshake goes PADI (router looks for a server), PADO (your server offers), PADR, PADS, and only then do the PPP LCP packets negotiate auth. No server means no auth stage, which means no password.

His setup was a pfSense box with the ISP router plugged into the igc3 interface, capturing with a remote tcpdump piped into a local Wireshark:

wireshark -k -i <(ssh [email protected] tcpdump -i igc3 -U -w -)

The packet you want is the PPP Authenticate-Request. In his PAP capture it held everything:

Peer-ID:  ak69517242@vodafone
Password: mrJz6vCar3

plus the router's MAC (78:8c:b5:04:cf:02) from the Ethernet frame and the VLAN ID (35) from the 802.1Q tag. Authentication "fails" because your fake server has no real user database, but that doesn't matter: you already have what you came for.

To clone the ISP router with your own hardware you need three things from that capture: the PPPoE username/password, the MAC address, and the VLAN ID. On pfSense you create a VLAN with the captured tag, point WAN PPPoE at the username/password, and spoof the MAC. Watch for the VLAN-0 trap: some ISPs (Superonline, for one) set the tag to 0, which is technically out of range, and the pfSense GUI rejects it, so you have to hand-edit the config files.

If you don't want to assemble this yourself, he open-sourced a tool that handles the PPPoE-server side of the handshake and extracts the fields for you: router-freedom.

The boring alternative that's usually the right answer

Unless you're on fiber with PPPoE and genuinely want to retire the ISP box, capturing credentials is more work than the problem deserves. For most people the faster path is to leave the ISP router in place and put your own behind it.

  • On DOCSIS or cable, set the ISP modem to true bridge mode and let your router dial the connection. Or on Comcast, buy an approved retail modem and skip their box entirely.
  • No real bridge mode? This is where it gets ugly. The AT&T BGW320 is the poster child: no true bridge mode, only "IP Passthrough," which one HN commenter documented as so broken that after a power outage he'd stay offline until he re-submitted the passthrough page by hand, and whose NAT table holds only a few hundred connections (his 2004-era WRT54GS handled tens of thousands). Call that intentional.
  • DMZ and double-NAT is the fallback: stick your router in the ISP box's DMZ. It works, but you're now double-NATed (triple if your ISP runs CGNAT), which breaks some UDP and WebRTC traffic, and you still own the ISP box's flaky protocol stack.

The upside of leaving the ISP box in the path is support. When you call about a speed problem, your setup "looks normal" and they can't immediately blame your gear, though as one commenter noted, they'll blame your router anyway.

Is any of this legal?

Depends entirely on where you live, and I'm not your lawyer. In Germany, "Routerzwang" (router compulsion) was killed on August 1, 2016: the ISP is legally required to hand you the access data so you can use your own router, safety excuse or not. The Netherlands is reportedly similar, and Belgium's Proximus officially lets you connect your own router straight to the ONT (VLAN 20, DHCP). In most other places you're in a grey zone: it's hardware you rent, carrying a credential tied to your own account. xetera's security argument is that capturing PAP needs physical access to a router you already own, so the ISPs' "safety" justification for withholding it is, in his word, "Bullshit."

The checklist

  1. Try known superadmin defaults for your exact model first (model + "superadmin"/"telnet").
  2. If the UI is locked down, check whether your ISP uses DOCSIS. If so, bridge mode or a retail modem is the easy win.
  3. On PPPoE fiber, capture the WAN credentials via a fake PPPoE server (watch PAP vs CHAP, and the VLAN tag).
  4. No bridge mode and no appetite for packet capture? DMZ your own router and accept the double-NAT.
  5. In Germany/NL, just demand the credentials. The law is on your side.

Which ISP router locked you out of a setting you actually needed, and did you get around it or just give up and buy your own? AT&T BGW320 horror stories especially welcome.

Sources

πŸ“° Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.