Simple Membership <= 4.8.9 - Unauthenticated Privilege Escalation to Editor via Forged 'swpm_level_hash'
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.
Improper Privilege Management CWE-269
A user can end up with more power than they were meant to have.
The product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor.
Weakness data: MITRE Common Weakness Enumeration.
New to this? Read how to keep your software updated.
The products and versions NIST lists as vulnerable. If what you run is not listed it is probably not affected, but ask your provider if you are unsure.
| Product | Type | Vulnerable versions | Fixed in |
|---|---|---|---|
| wpinsider-1 Simple Membership | Software | from 0, up to and including 4.8.9 | not recorded |
The 9.1 severity score (critical) from wordfence.com, broken into what it means in practice. Red means it makes the flaw easier or worse.
| How it is reached | Network | Can be attacked from anywhere on the internet, with no need to be near the target. |
| How hard it is | Low | Easy to carry out. No special conditions have to line up. |
| Login needed | None | The attacker does not need an account or password. |
| Someone has to act | None | Nobody has to click or open anything. It can happen on its own. |
| Reaches beyond the program | Unchanged | The damage stays inside the vulnerable program. |
| Data exposed | High | Total loss of confidentiality: the attacker can read all the data the program can reach. |
| Data changed | High | The attacker can change or delete anything the program can reach. |
| Service disrupted | None | The service keeps running. |
| Ease of attack | 3.9 | A score for how easy it is to use the flaw. Higher is easier. |
| Damage | 5.2 | A score for how bad the harm is if it works. Higher is worse. |
NIST lists 6 sources for this flaw, none tagged as a vendor patch.