HeimShell 是针对 CVE-2023-51803 的漏洞利用工具,利用了 LinuxServer.io Heimdall(≤ 2.5.6)中的任意文件上传漏洞。它会自动检测目标版本,并提示可利用性,或通过 SHELL_URL 远程获取 PHP shell。
/settings 并解析版本字段,以确认存在任意上传能力。/items/create 并抓取隐藏的 _token 输入框。/items),找到与随机标签匹配的仪表板条目。/items/<id>/edit),查找 icon 或 #appimage img 元素,并打印 shell URL。python heimShell.py <base_url>
detected version: 2.4.13
☠ shell uploaded at: <base_url>/storage/icons/abc123DEF456.php
https://nvd.nist.gov/vuln/detail/CVE-2023-51803
https://rz.my/2024/06/cve-2023-51803-arbitrary-file-upload-in-linuxserverio-heimdall.html
本工具仅用于授权安全测试。对你不拥有或未经明确许可测试的系统进行未经授权的使用是非法且不道德的。