TOTOLINK N350RT: setLanguageCfg applies the lang argument without authentication in /cgi-bin/cstecgi.cgi; exploit is public. No public fix commit; derived guard from lab: bypass on vuln, refused on guard
# CVE-137043 — TOTOLINK N350RT setLanguageCfg authorization bypass
[](LICENSE)
[](#5-expected-results)
| | |
| --- | --- |
| **CVE** | CVE-137043 |
| **Component** | TOTOLINK N350RT — /cgi-bin/cstecgi.cgi |
| **Affected** | 9.3.5u.6468_B20250827; 9.3.5u.6466_B20250825 |
| **Fixed in** | No public fix commit; guard derived from the lab |
| **CWE** | CWE-862 (Missing Authorization) |
| **Impact** | The setLanguageCfg function applied the lang argument from a remote request without an authorization check. The exploit has been disclosed publicly. |
| **Vector** | remote request to /cgi-bin/cstecgi.cgi |
| **Trigger** | setLanguageCfg call without authentication |
The vulnerable path:
```
# pre-fix (model from VulDB 1061323)
attacker input accepted without the required protection
```
The derived guard:
```python
# derived from observed behaviour, not copied from a vendor fix
if not authenticated: reject
```
## 1. Root cause
The CGI handler trusted the lang argument without checking the session. The guard requires authentication before applying it.
## 2. Reproduction environment
| service | image | role |
| --- | --- | --- |
| `tl-vuln` | `cve-2026-137043:vuln` | vulnerable behaviour present |
| `tl-guard` | `cve-2026-137043:guard` | derived guard |
| `poc` | `cve-2026-137043-poc:local` | stdlib-only Python driver |
Both sides are Python 3.12 images. The vulnerable behaviour is modelled from
VulDB 1061323; the guard is derived from the lab observation that
the impact is reproduced. No public vendor fix commit exists.
## 3. Running the environment
```sh
./run-lab.sh build
./run-lab.sh up
./run-lab.sh sweep
./run-lab.sh down
```
The lab uses the isolated `cve137043lab` network and bounded containers.
## 4. The PoC
`poc/poc.py` takes a mode and an optional `--host=...`:
| mode | result |
|