
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