针对CVE-2018-8097的POC。该脚本利用CVE-2018-8097,可通过基于时间盲注的RCE方法获取文件及其内容。
python cve-2018-8097.py [-h] -u URL -c COMMAND -t TIME -id OBJECTID -d FILEPATH
options:
-h, --help show this help message and exit
-u, --url URL Target base URL (e.g., http://127.0.0.1:5000)
-d, --dir DIR Path to the file on the target system (e.g., /etc/passwd)
-id, --objectid OBJECTID
MongoDB ObjectId value for the injection
-t, --time TIME Delay in seconds for time-based check (default: 3)
-v, --verbose Enable verbose output (shows found characters)
-m, --max-length MAX_LENGTH
Maximum file length to read (default: 100)
https://www.cvedetails.com/cve/CVE-2018-8097/
pyeve/eve#1101
https://github.com/pyeve/eve/commit/f8f7019ffdf9b4e05faf95e1f04e204aa4c91f98
https://github.com/SilentVoid13/CVE-2018-8097
此概念验证(PoC)脚本仅用于教育和研究目的。它不提供任何明示或暗示的保证。 使用此脚本即表示您同意: 您不得将其用于未经授权或恶意目的。 您理解利用漏洞可能根据您所在司法管辖区的法律产生法律后果。 本仓库的作者和贡献者不对因使用本脚本而产生的任何滥用或损害负责。 如果您是安全研究人员、道德黑客或开发人员,请确保在测试或使用此脚本之前获得适当授权。