目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2023-33538 PoC — TP-Link wireless router 命令注入漏洞

来源
关联漏洞
标题: TP-Link wireless router 命令注入漏洞 (CVE-2023-33538)
Description:TP-LINK TL-WR940N是中国普联(TP-LINK)公司的一款无线路由器。 TP-Link wireless router存在安全漏洞,该漏洞源于通过/userRpm/WlanNetworkRpm组件发现包含命令注入漏洞。受影响的产品和版本:TP-Link TL-WR940N V2版本和V4版本,TL-WR841N V8版本和V10版本, TL-WR740N V1版本和V2版本。
Description
CVE-2023-33538 - TP-Link Command Injection Ruby module for Metasploit Framework 
介绍
# CVE-2023-33538 – TP-Link TL-WR940N/841N Command Injection (Metasploit module)

This Metasploit **auxiliary module** targets an authenticated **command injection vulnerability** in TP-Link TL-WR940N V2/V4 and TL-WR841N V8/V10 routers.  
The issue lies in the vulnerable `ssid1` parameter used in `WlanNetworkRpm.htm`, which allows injection of arbitrary shell commands.

When successful, it allows the attacker to execute arbitrary commands on the device.

More information about the CVE:  
https://nvd.nist.gov/vuln/detail/CVE-2023-33538

---

## How to run this module?

1. Copy the `.rb` file into your Metasploit modules folder, for example:

```bash
cp tplink_ssid1_rce.rb/usr/share/metasploit-framework/modules/auxiliary/admin/http/
```

2. Start Metasploit console:

```bash
msfconsole
```

3. Search and use the module:

```bash
search tplink
use auxiliary/admin/http/tplink_ssid1_rce
```

4. Set required options:

```
set RHOSTS 192.168.0.1
set RPORT 80
set AUTHCOOKIE Basic%20YWRtaW46YWRtaW4%3D
set SESSIONPATH /ABCD1234/
set CMD reboot
run
```

> The module **does not** perform authentication. You must manually extract the `Authorization` cookie and session prefix from a successful login to the router's web interface.

---

## References

- https://nvd.nist.gov/vuln/detail/CVE-2023-33538  
- https://web.archive.org/web/20230609111043/https://github.com/a101e-IoTvul/iotvul/blob/main/tp-link/3/TL-WR940N_TL-WR841N_userRpm_WlanNetworkRpm_Command_Injection.md

---

## Disclaimer

This module is intended **for educational purposes only**.  
**Do not use this code against devices or infrastructure you do not own or have explicit permission to test.**

---

## Issues 

If you find bugs, or have ideas for improvements – feel free to open an issue or leave a comment. 
文件快照

登录后查看神龙缓存的 POC 文件快照

登录查看
备注
    1. 建议优先通过来源进行访问。
    2. 本地 POC 快照面向订阅用户开放;当原始来源失效或无法访问时,本地镜像作为订阅权益的一部分提供。
    3. 持续抓取、验证、维护这份 POC 档案需要不少投入,因此本地快照已纳入付费订阅。您的订阅是让这份资料能继续走下去的关键,由衷感谢。 查看订阅方案 →