Descrizione
The Simple Membership plugin for WordPress is vulnerable to Privilege Escalation in versions up to, and including, 4.8.9 This is due to the site-wide signing secret `swpm_private_key_one` being generated at install time with PHP's non-cryptographic `uniqid('', true)` function in `SwpmInstallation::installer()`, whose timestamp-derived keyspace (~10^15 candidates / ~50 bits) can be constrained via the public WordPress REST API date of the plugin's auto-created registration page, combined with a single-MD5 oracle (`md5(key|level)`) that the public registration form prints as `swpm_level_hash` and a non-constant-time `!=` comparison in `SwpmFrontRegistration::register_front_end()` as the sole authorization gate on which membership level a visitor may register into; `SwpmUtils::get_free_level()` then honors an attacker-posted `level_identifier=md5(level)` regardless of the configured free-membership setting, and `prepare_and_create_wp_user_front_end()` creates the WordPress account with whatever role the level is configured to grant (only the `administrator` role is refused). This makes it possible for unauthenticated attackers, after an offline brute-force recovery of the install-time secret against the public MD5 oracle, to forge a valid `swpm_level_hash` for any configured membership level and self-register into that level, elevating their newly created WordPress account to the level's assigned role — e. Successful exploitation causes the attacker's own account to receive the complete editor role.
Come correggere
Priorità: Alta — pianificare la correzione entro pochi giorni. Motivazione: CVSS 9.1.
Versioni da aggiornare
- wpinsider-1 Simple Membership: vulnerabili le versioni fino alla
4.8.9inclusa → aggiornare a una release successiva alla4.8.9.
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.
Configurazioni interessate
| Vendor | Prodotto | Versioni vulnerabili | Corretta in |
|---|---|---|---|
| wpinsider-1 | Simple Membership | ≤ 4.8.9 | — |
Riferimenti
- Riferimentohttps://downloads.wordpress.org/plugin/simple-membership.4.9.0.zip
- Riferimentohttps://plugins.trac.wordpress.org/browser/simple-membership/tags/4.8.9/classes/class.swpm-front-registration.php#L187
- Riferimentohttps://plugins.trac.wordpress.org/browser/simple-membership/tags/4.8.9/classes/class.swpm-front-registration.php#L445
- Riferimentohttps://plugins.trac.wordpress.org/browser/simple-membership/tags/4.8.9/classes/class.swpm-installation.php#L383
- Riferimentohttps://plugins.trac.wordpress.org/browser/simple-membership/tags/4.8.9/views/add.php#L62
- Riferimentohttps://www.wordfence.com/threat-intel/vulnerabilities/id/7cc9a47b-904f-421d-9ff1-ea1115146239?source=cve