
CVE-2023-1874 के लिए Python एक्सप्लॉइट स्क्रिप्ट, जो WP Data Access WordPress प्लगइन में विशेषाधिकार वृद्धि भेद्यता है। प्रमाणित कम-विशेषाधिकार उपयोगकर्ताओं को अपनी भूमिका बढ़ाने में सक्षम बनाता है।
यह स्क्रिप्ट केवल व्हाइट हैट और शैक्षिक उद्देश्यों के लिए डिज़ाइन की गई है। किसी ऐसे डिवाइस के विरुद्ध इसका कोई भी उपयोग, जिसके परीक्षण के लिए आप अधिकृत नहीं हैं या जिसके आप स्वामी नहीं हैं, आपकी अपनी ज़िम्मेदारी है। इस स्क्रिप्ट का लेखक इस स्क्रिप्ट के साथ आपके द्वारा किए जाने वाले किसी भी कार्य के लिए कोई ज़िम्मेदारी नहीं लेता है। आपके कार्य आपके अपने हैं।
CVE-2023-1874, WP Data Access प्लगइन के संस्करण 5.3.7 और उससे पहले के संस्करणों में एक भेद्यता है। एक हमलावर प्रोफ़ाइल को अपडेट करते समय wpda_role[] विकल्प प्रदान करके विशेषाधिकारों को बढ़ा सकता है।
NIST के अनुसार:
The WP Data Access plugin for WordPress is vulnerable to privilege escalation in versions up to, and including, 5.3.7. This is due to a lack of authorization checks on the multiple_roles_update function. This makes it possible for authenticated attackers, with minimal permissions such as a subscriber, to modify their user role by supplying the 'wpda_role[]' parameter during a profile update. This requires the 'Enable role management' setting to be enabled for the site.
# not necessary.
#
# these can be manually input as arguments to the script.
#
# theses exports are for ease-of-use.
export TARGETIP=localhost
export TARGETPORT=80
export WPPATH=wordpress
export WPUSERNAME=myuser
export WPPASSWORD=mypass
python3 cve20231874.py $TARGETIP $TARGETPORT -u $WPUSERNAME -p $WPPASSWORD --path $WPPATH