CVE-2026-133951 in Simple Membership Plugin
Summary
by MITRE • 11/26/2026
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.
Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.
Analysis
by VulDB Data Team • 11/28/2026
The Simple Membership plugin for WordPress contains a critical privilege escalation vulnerability in versions up to 4.8.9 that allows unauthenticated attackers to elevate their user roles by exploiting weaknesses in key generation and authorization logic. The root cause lies in the method used to generate the site-wide signing secret, swpm_private_key_one, during installation via SwpmInstallation::installer(). This function utilizes PHP's uniqid with a true parameter, which generates identifiers based on microsecond timestamps rather than cryptographically secure random sources. Consequently, the resulting keyspace is significantly constrained, containing approximately 10^15 candidates or roughly fifty bits of entropy. This limited entropy makes the secret susceptible to offline brute-force attacks when additional contextual information is available to an attacker.
The vulnerability is exacerbated by the availability of public data that aids in narrowing down the possible values for the signing secret. Specifically, the timestamp-derived keyspace can be constrained using the public WordPress REST API date associated with the plugin's auto-created registration page. This temporal anchor allows attackers to significantly reduce the search space required to recover the private key. Once the attacker has a candidate set for the signing secret, they can leverage a single-MD5 oracle provided by the public registration form. The form prints swpm_level_hash as md5(key|level), where key is the recovered or guessed signing secret and level represents the membership identifier. This hash serves as the primary mechanism for validating which membership level a user attempts to register under.
The authorization logic within SwpmFrontRegistration::register_front_end() contains two distinct technical flaws that facilitate exploitation. First, it employs a non-constant-time comparison using the != operator when verifying the swpm_level_hash against expected values. While this timing side-channel may assist in certain attack vectors, its primary impact here is secondary to the structural flaw in validation logic. Second, and more critically, SwpmUtils::get_free_level() honors an attacker-posted level_identifier parameter if it matches md5(level), regardless of whether that membership level is actually configured as a free option for public registration. This bypasses the intended access control restrictions designed to limit which levels users can join without payment or manual approval.
Upon successful validation, prepare_and_create_wp_user_front_end() proceeds to create a new WordPress account using whatever role is associated with the forged membership level. The only exception in this logic is that the administrator role is explicitly refused by design. However, for all other configured roles, including high-privilege levels such as editor or author, the system grants full access based solely on the validity of the MD5 hash rather than verifying actual permissions or payment status. This architectural flaw means that an attacker who successfully recovers the signing secret can self-register into any non-administrator role defined by the site administrator.
Successful exploitation results in a complete privilege escalation for the attacker, granting them full control over their newly created WordPress account with elevated privileges such as those associated with the editor role. From this position, attackers can modify content, manage plugins and themes if permissions allow, or further pivot to gain administrative access through other means depending on site configuration. This vulnerability aligns with CWE-284 Improper Access Control and CWE-330 Use of Insufficiently Random Values in its reliance on predictable key generation and flawed authorization checks. In terms of the MITRE ATT&CK framework, this exploit maps to T1078 Valid Accounts for initial access via forged credentials and potentially T1098 Account Manipulation if used to establish persistent backdoor accounts with elevated privileges.
Mitigation strategies should prioritize immediate updates to version 4.8.9 or later where these issues have been addressed by the vendor. In environments where updating is not immediately feasible, administrators can implement compensating controls such as restricting access to the registration endpoint via IP whitelisting if applicable, although this may impact legitimate user experience. Additionally, reviewing and hardening WordPress role configurations to minimize high-privilege roles available for self-registration can reduce the blast radius of a successful exploit. Security monitoring should also be enhanced to detect unusual patterns in user creation events, particularly those occurring at rapid intervals or from single sources, which may indicate automated exploitation attempts leveraging this vulnerability.