Edimax BR-6208AC `/goform/mp` Pre-Auth Command Injection (CVE-2026-122051)
Published: 2026-11-25 • Researcher: Carter LaSalle (carterlasalle, PoC and firmware emulation); Edimax (vendor; did not respond per NVD)
- Severity
- Critical
- CVE
- CVE-2026-122051
- Category
- network
- Affected product
- Edimax BR-6208AC wireless router — Boa 0.94.14rc21 web server (bin/webs), RF-test handler /goform/mp
- Affected versions
- Firmware ≤ 1.32 (NVD lists Edimax BR-6208AC 1.32; upstream also field-tested 1.03, 1.08, 1.10, 1.18 and 1.20 builds)
- Disclosed
- 2026-11-25
- Patch status
- Unpatched
Tags
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-122051
- https://github.com/carterlasalle/CVE-2026-122051
- https://vuldb.com/cve/CVE-2026-122051
- https://vuldb.com/vuln/431135
- https://vuldb.com/vuln/431135/cti
- https://vuldb.com/submit/1025459
- https://github.com/fizz-is-on-the-way/Iot_vuls/tree/main/BR-6208AC/RCE_mp
- https://download.edimax.com/mw/cufiles/files/download/Firmware/BR-6208AC_1.32.zip
Archive entry
intelseclab/poc-archiveOn this page
Metadata
| Field | Value |
|---|---|
| Date Added | 2026-11-25 |
| Last Updated | 2026-11-05 |
| Author / Researcher | Carter LaSalle (carterlasalle, PoC and firmware emulation); Edimax (vendor; did not respond per NVD) |
| CVE / Advisory | CVE-2026-122051 |
| Category | network |
| Severity | Critical |
| CVSS Score | 10.0 (per NVD / VulDB; full vector not supplied in the worklist — See references) |
| Status | Weaponized |
| Tags | command-injection, RCE, Edimax, BR-6208AC, router, IoT, MIPS, Boa-webserver, unauthenticated, firmware |
| Related | N/A |
Affected Target
| Field | Value |
|---|---|
| Software / System | Edimax BR-6208AC wireless router — Boa 0.94.14rc21 web server (bin/webs), RF-test handler /goform/mp |
| Versions Affected | Firmware ≤ 1.32 (NVD lists Edimax BR-6208AC 1.32; upstream also field-tested 1.03, 1.08, 1.10, 1.18 and 1.20 builds) |
| Language / Platform | Python 3.9+ driver (stdlib only); target is 32-bit big-endian MIPS embedded Linux (Realtek platform) running the stripped webs binary |
| Authentication Required | No — unauthenticated when web auth is disabled; otherwise gated by HTTP Basic with the factory credential admin:1234 |
| Network Access Required | Yes |
Summary
CVE-2026-122051 is a command-injection flaw in the RF diagnostic handler /goform/mp of the Edimax BR-6208AC wireless router, affecting firmware 1.32 and earlier. The handler takes the command parameter, truncates it at the first semicolon, formats it into the string /bin/rftest.sh with output redirected to /tmp/rftest.out, and hands the result to system() as root. Because pipe characters, ampersands, backticks and command substitutions all survive that single filter, anyone who can reach the administration interface can execute arbitrary commands with root privileges. Where the device still ships the factory credentials admin:1234, or has web authentication disabled entirely, no credentials are needed at all.
Vulnerability Details
Root Cause
The vulnerability is in the mp() handler of the stripped Boa 0.94.14rc21 binary bin/webs (handler at 0x0044f9cc in the 1.32 build, dispatch entry /goform/mp at 0x0049b2c8). Decompilation shows the handler calls websGetVar(a1, "command", ""), then applies exactly one sanitisation step — strchr for 0x3b (;) and truncation of the string at that byte. The filtered value is then formatted with sprintf into a 504-byte stack buffer as /bin/rftest.sh %s > /tmp/rftest.out and passed to system(). At that point the shell has already interpreted |, &, backticks and $(), so the surviving metacharacters are sufficient for arbitrary command execution. The handler then reads /tmp/rftest.out back into the HTTP response, which conveniently returns the command output to the attacker.
Two additional design weaknesses compound the issue. First, the handler runs as root, so injected commands run with full device privileges. Second, auth_authorize() contains a /proc/uptime check intended to retire the RF-test page ten minutes after boot; in 1.32 the parsed value comes from an uninitialised register and is effectively always zero, so the page stays reachable indefinitely (verified at 93,398 s uptime). Authentication only falls through to HTTP Basic when the apmib “auth disabled” field is clear.
Attack Vector
An unauthenticated (or default-credential) attacker sends POST /goform/mp with a form body command=aa | <command>. The injected command must be the last element of the pipeline because the trailing > /tmp/rftest.out binds to it; multi-command input is split client-side into one request per command. The request must be sent without a Content-Type header — on live hardware and in the reference emulation, a Content-Type: application/x-www-form-urlencoded header causes Boa 0.94 to hang without answering, which is why naive probes report the fleet as dead. The endpoint answers on whatever port the admin UI uses (80, 8080, 8000 and 443 are tried by default). GET /goform/mp returns 404; only POST reaches the handler.
Impact
Remote code execution as root on the internet gateway. The upstream field notes list the practical post-exploitation surface: rewriting /etc/resolv.conf and the dnrd configuration to hijack DNS for every LAN client, adding iptables DNAT rules to expose internal hosts, steering traffic with tc, reading the apmib store for Wi-Fi PSK and ISP/PPPoE credentials, and persisting through flash set. In short, a compromised device yields the whole home or small-office network — traffic interception, credential theft and a durable foothold.
Environment / Lab Setup
OS: Linux amd64 host with Docker (any host with qemu-user for MIPS
big-endian also works); firmware unpacking can be done natively
Target: Edimax BR-6208AC firmware 1.32, bin/webs run under
qemu-mips-static in a chroot, listening on 127.0.0.1:8098
Attacker: Python 3.9+ (stdlib only), same host or LAN
Tools: curl, unzip, squashfs-tools (unsquashfs), qemu-user-static,
binfmt-support, Docker, Ghidra (optional, for the decompilation)Setup Steps
| |
Without binfmt_misc the Boa server starts but every system() call fails silently, because the MIPS /bin/sh cannot be exec’d — this is the most common reason a lab reproduction shows no command output.
Proof of Concept
Step-by-Step Reproduction
- Stand up the emulated target — unpack firmware 1.32, carve the SquashFS, synthesise
/dev/mtdblock0frometc/config.bin, and runbin/websunderqemu-mips-static -don port 8098 (see Setup Steps above). - Confirm the handler answers — POST the marker command
aa|echo BR6208MK4417with noContent-Typeheader. A 200 response containing the marker between</font><br>and</body>means the handler is reachable and the injected pipeline executed. - Inject the command —
aa | <cmd>. Theaais discarded by the pipeline, the trailing> /tmp/rftest.outapplies to<cmd>, and the handler echoes the captured file back in the response. - Read the privilege context — run
idandcat /etc/versionto confirm root execution and the firmware build. - Run the driver end to end — point
br6208.pyat the emulated service; it negotiates port/TLS/credentials, executes the command set, optionally writes and verifies the marker file, and can drop into an interactive shell.
| |
Exploit Code
See
br6208.pyin this folder — the upstream single-file driver (transport, credential negotiation, execution, discovery). The firmware-lab recipe is inemulation.mdand the decompilation/auth analysis infield-notes.md.
| |
Expected Output
| |
| |
Detection & Indicators of Compromise
- HTTP requests to
/goform/mp— a page that normally only receives POST and returns 404 to GET; any occurrence in a reverse-proxy or router access log is suspicious. - A
commandparameter containing shell metacharacters (|,&, backtick,$(), the literal prefixaa |, or the marker strings the driver uses (for exampleBR6208MK4417). - POST bodies to
/goform/mpcarrying noContent-Typeheader — legitimate vendor tooling is rare, and this exact quirk is the driver’s signature. - Creation or reading of
/tmp/rftest.outoutside a genuine RF test, and the appearance of/tmp/PLEASE_UPDATE_EDIMAX_WAS_HACKED.txt. - Post-exploitation artifacts: modified
/etc/resolv.confordnrdconfiguration, unexpectediptablesDNAT rules,tcqdisc changes,flash setpersistence writes. - Outbound connections from the router to unfamiliar hosts, or DNS answers for LAN clients pointing at infrastructure the operator does not own.
| |
SIEM / IDS rule (example):
| |
Remediation
| Action | Detail |
|---|---|
| Patch | No fixed firmware has been published: NVD records that the vendor was contacted early and did not respond, and firmware 1.32 is the last known affected release. Treat the device as unpatchable and replace it or retire it from the network — See references. |
| Workaround | Change the factory admin:1234 password (auth-enabled devices with a changed password were not reachable via this handler in upstream testing), and never run the unit with web authentication disabled. Disable remote/WAN management of the web UI. |
| Config Hardening | Restrict the administration interface to a trusted management VLAN or specific source hosts, block /goform/mp at any fronting proxy or WAF, place IoT/gateway devices on a segmented network with no path to management planes, and monitor router logs and DNS behaviour for tampering. |
References
Notes
Auto-ingested from https://github.com/carterlasalle/CVE-2026-122051 on 2026-11-25.
Review verdict: this is a working exploit driver, not a detector. br6208.py performs the command injection end to end (aa | <cmd> into /goform/mp), reads the command output back out of the handler’s echo block, supports one-shot --exec and an interactive --shell, and can write and verify a marker file on the device. The repository also bundles bulk discovery (--check, --cidr, --discover) and marker-echo probing, but those are convenience wrappers around a genuine RCE primitive, so the entry is recorded as Weaponized rather than skipped. Status is Weaponized because the upstream lab proof is root command execution against the shipping 1.32 firmware binary under qemu, with the decompilation and the exact request shape documented.
License: MIT, Copyright (c) 2026 Carter LaSalle; LICENSE is included with the archived files.
Limitations and cautions: the exploit requires network reachability to the administration interface and, on auth-enabled units that have had their password changed, is not reachable at all. Requests must be sent without a Content-Type header or Boa 0.94 may hang without answering, and the sprintf target is a 504-byte stack buffer, so injected command lines must stay short. The reproduction here is the emulation path only; the upstream README also documents field results against live third-party devices, which this archive does not endorse or reproduce — use the emulation recipe, or your own hardware, under written authorization. No exploit code was executed during ingestion. Files emulation.md and field-notes.md are the upstream docs/ pages, flattened to this directory; the repository’s CI lint workflow and .gitignore were not copied as they are not exploit-relevant.
| |