Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify target user numeric link ID
-
DeliveryRequest unauthenticated init endpoint with ?dologin=id.hash
-
ExploitBrute-force ~10^6 mt_srand seed space offline
-
ExecutionReconstruct valid 32-char magic-link token
-
PersistSubmit forged token, receive auth cookie
-
ImpactAuthenticate as administrator without password
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V11 - Cryptography Cryptographic PRNG selection
|
| Exploitation Conditions | Exploitation requires that a valid, unexpired DoLogin passwordless login link exists for the target account at the time of attack - such links remain active for up to 7 days after being generated - and that the account's auto-increment numeric link ID is known or guessable (low integer IDs for early/administrator accounts make this easy). Given those preconditions, no authentication is needed because Pswdless::try_login() runs on the unauthenticated 'init' hook and the plugin's brute-force lockout is bypassed entirely. Limiting factors: if no live magic link is currently issued for the target, the token cannot be forged; the attacker must correctly identify the numeric ID; and the entire attack hinges on the finite ~20-bit seed space, which is what makes brute-forcing feasible within the link's validity window. |
| Impact | This is a genuine high-priority issue: it yields full administrator account takeover with no password, and the attack surface (unauthenticated 'init' hook) is reachable by any anonymous visitor. The provided CVSS is 8.8 with vector AV:N/AC:L/PR:L/UI:N/C:H/I:H/A:H, but the PR:L (authenticated) metric conflicts directly with the description, which repeatedly states the attacker is unauthenticated and reaches the code via an unauthenticated hook - this discrepancy should be verified with the vendor; an unauthenticated rating (PR:N) would push severity higher. The realistic limiter is not privilege but a precondition beyond the attacker's control: a valid, unexpired magic link (up to 7 days) must already exist for the target and its numeric link ID must be known or guessable - a condition that argues for higher attack complexity than the AC:L in the supplied vector. EPSS and KEV data were not provided, so exploitation probability and active-exploitation status are unknown; the absence of a KEV listing means this should be treated as a serious but not confirmed-in-the-wild threat. The bypass of the plugin's lockout and the finite ~10^6 seed space make offline brute-forcing highly automatable once a live link exists. |
| Exploit ScenarioDerived | An attacker triggers a passwordless login request for a known administrator (or waits for one to exist), then makes a request to the site's unauthenticated 'init' entry point with ?dologin=<admin_id>.<hash>, iterating the numeric admin ID from the low auto-increment primary key. Offline, they enumerate the ~10^6 possible mt_srand seeds, regenerate each candidate 32-character token, and submit the matching hash to have wp_set_auth_cookie() issue a valid admin session - no password and no lockout. No public exploit is identified at time of analysis, but the finite seed space and documented code paths make a working exploit straightforward to build. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 08, 2026
Authentication bypass in the DoLogin Security plugin for WordPress (all versions through 4.3) lets remote attackers forge passwordless magic-link tokens and log in as any user, including administrators. The 32-character token is generated by seeding the Mersenne Twister PRNG (mt_srand) with a value derived from microtime() that carries only ~20 bits of entropy, so the entire token is a deterministic function of a ~10^6-value seed space that can be brute-forced offline. No public exploit identified at time of analysis, but the flaw was reported by Wordfence and the vulnerable code paths are cited directly in the WordPress plugin repository.
RemediationAI
No vendor-released patch version is identified in the available data, so a fixed release cannot be cited; monitor the Wordfence advisory (https://www.wordfence.com/threat-intel/vulnerabilities/id/16bce371-b524-48eb-8537-3f9df802abd3?source=cve) and the WordPress.org plugin page for a release above 4.3 and upgrade as soon as it ships. As immediate compensating controls, disable the passwordless/magic-link login feature of DoLogin Security so no forgeable tokens are ever issued (trade-off: users lose passwordless login and must use standard credentials), and shorten the magic-link validity window well below the 7-day default to reduce the exposure window in which a live token can be brute-forced (trade-off: legitimate links expire sooner and may inconvenience users). Additionally restrict access to the login/init entry point with a WAF rule or rate-limit on requests carrying the ?dologin= parameter to blunt automated seed brute-forcing (trade-off: may block legitimate magic-link redemptions if tuned too tightly), and consider temporarily deactivating the plugin entirely if passwordless login is not business-critical.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability is a classic weak-PRNG failure (CWE-338, Use of Cryptographically Weak PRNG). The plugin's dologin\s::rrand() token generator calls mt_srand((double) microtime() * 1000000), which discards the integer-seconds portion of microtime() and collapses the seed to roughly one million possible values (~20 bits). Every one of the 32 token characters is then drawn sequentially with mt_rand(), so knowledge of the seed fully reconstructs the token. Pswdless::try_login() compounds the flaw: it is bound to the unauthenticated WordPress 'init' hook, identifies the target account from the auto-increment numeric ID in the ?dologin=<id>.<hash> parameter, compares the hash with a non-constant-time '!=' operator (timing-side-channel exposure), and calls wp_set_auth_cookie() directly - bypassing wp_authenticate() and the plugin's own Auth::_has_login_err() brute-force lockout. Per the CPE (cpe:2.3:a:wpdo5ea:dologin_security), only the DoLogin Security plugin is affected; the underlying PHP mt_rand/mt_srand functions are not cryptographically secure and should never be used for security tokens.
Know when Dologin Security gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Unauthenticated 'init' hook means PR:N, but a live unexpired magic link must exist and the ID be known - a condition beyond attacker control - so AC:H; full account takeover gives C/I/A High.
Primary rating from Vendor (Wordfence).
CVSS VectorVendor: Wordfence
DescriptionCVE.org
The DoLogin Security plugin for WordPress is vulnerable to Authentication Bypass via Insufficient Randomness in all versions up to, and including, 4.3. The vulnerability exists because dologin\s::rrand() seeds the Mersenne Twister with mt_srand((double) microtime() * 1000000) - discarding the integer-seconds component of microtime() and constraining the seed to a range of approximately 10^6 values (~20 bits of entropy) - after which every character of the 32-character magic-link token is drawn sequentially with mt_rand(), making the entire token a deterministic function of that seed. Because Pswdless::try_login() is registered on the unauthenticated init hook, resolves the target account by the auto-increment numeric ID embedded in the ?dologin=<id>.<hash> parameter, performs the hash comparison using a non-constant-time != operator, and then calls wp_set_auth_cookie() directly - never passing through wp_authenticate() and therefore never triggering the plugin's own Auth::_has_login_err() lockout - an unauthenticated attacker can brute-force the ~10^6-candidate seed space to reconstruct an active passwordless login token and authenticate as any targeted user, including administrators, without a password. Exploitation requires that a valid, unexpired passwordless login link (active for up to 7 days) exists for the target account at the time of the attack, and that the numeric link ID is known or guessable from the auto-increment primary key.
Executive ViewAI
The DoLogin Security WordPress plugin (versions through 4.3) contains an authentication bypass vulnerability that allows remote attackers to forge login tokens and gain unauthorized administrative access to affected WordPress installations. No vendor patch is currently available, creating immediate risk for organizations dependent on this plugin. Successful exploitation could result in complete compromise of WordPress sites, including unauthorized data access, malware deployment, and privilege escalation.
No vendor-released patch identified at time of analysis. Interim controls: (1) Disable DoLogin Security plugin and implement alternative passwordless authentication mechanism; (2) Deploy Web Application Firewall (WAF) rules to detect and block forged token patterns and anomalous authentication sequences; (3) Enforce multi-factor authentication (MFA) for all WordPress administrator and privileged accounts; (4) Enable comprehensive authentication logging with real-time alerting for failed login attempts; (5) Restrict WordPress admin interface access via IP allowlist where operationally feasible; (6) Conduct daily audit of authentication logs for indicators of unauthorized access or token forgery attempts.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
More in Dologin Security
View allThe DoLogin Security WordPress plugin before 3.7 does not properly sanitize IP addresses coming from the X-Forwarded-For
The DoLogin Security WordPress plugin before 3.7 uses headers such as the X-Forwarded-For to retrieve the IP address of
The DoLogin Security WordPress plugin before 3.7.1 does not restrict the access of a widget that shows the IPs of failed
EUVD-2026-42167
GHSA-3585-g468-xfc2
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB