Descrizione
The Pie Register – User Registration, Profiles & Content Restriction plugin for WordPress is vulnerable to authorization bypass in all versions up to, and including, 3.8.4.17 This is due to the plugin not properly verifying that a user is authorized to perform an action. This makes it possible for unauthenticated attackers to overwrite the role of the site's primary administrator account (user ID 1) with the registration form's configured role, demoting the administrator to a lower-privileged role and locking them out of wp-admin. This vulnerability is exploitable only on PHP 8+, where casting a WP_Error object to int yields 1, causing the role modification to target user ID 1.
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: CVSS 5.3.
Versioni da aggiornare
Il record non riporta ancora i prodotti e le versioni corrette (analisi NVD in corso). Consultare l'advisory del vendor nei riferimenti.
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Restringere l'accesso al componente, applicare il principio del minimo privilegio e controllare i log per operazioni non autorizzate.
Verifica
- Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
- Confrontare la versione installata con quelle indicate sopra.
- Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
- Ripetere la scansione per confermare la correzione.
Riferimenti
- Riferimentohttps://plugins.trac.wordpress.org/browser/pie-register/tags/3.8.4.17/classes/registration_form.php#L206
- Riferimentohttps://plugins.trac.wordpress.org/browser/pie-register/tags/3.8.4.17/pie-register.php#L3890
- Riferimentohttps://plugins.trac.wordpress.org/browser/pie-register/tags/3.8.4.17/pie-register.php#L3975
- Riferimentohttps://plugins.trac.wordpress.org/browser/pie-register/tags/3.8.4.17/pie-register.php#L443
- Riferimentohttps://plugins.trac.wordpress.org/changeset/3793719/pie-register
- Riferimentohttps://plugins.trac.wordpress.org/changeset/3793719/pie-register/trunk/pie-register.php
- Riferimentohttps://www.wordfence.com/threat-intel/vulnerabilities/id/e8562337-e54d-45a9-9114-7f80d07bcac1?source=cve