Threat Overview
A critical authentication bypass vulnerability in Wp Social Login and Register Social Counter (wp-social), a social single-sign-on plugin for WordPress, allows unauthenticated attackers to log in as any existing WordPress user—including site Administrators—without a password.
Tracked under CVE-2026-103898 (CVSS 9.8), the flaw combines an unguarded REST API login callback with a type-checking bug in its bundled Hybridauth adapters that causes email verification to fail open. Any site running versions up to and including 3.2.2 with Facebook or Twitter login enabled is exposed to administrative takeover.
| Threat Metric | Technical Details |
|---|---|
| Severity Rating | CRITICAL (CVSS 9.8 / 10.0) |
| Vulnerability Class | Authentication Bypass via Improper OAuth Verification Check (CWE-287) |
| Vulnerable Components | Wp Social Login and Register Social Counter (wp-social, versions up to and including 3.2.2) |
| Attack Vector | Unauthenticated HTTP request to /wp-json/wslu-social-login/type/{provider}/ |
| Exploit Precondition | Facebook or Twitter social login provider enabled on the target site |
| Fixed Versions | Wp Social Login version 3.2.3 or higher (Trac changeset 3752566) |
Our Take in Plain English
“Business owners add a ‘Login with Facebook or X’ button for a good reason: reducing friction for customers. The danger on legacy WordPress is that third-party plugins wire public REST endpoints straight into the same core session-cookie generator that controls your Administrator dashboard—while relying on bundled libraries that treat any non-empty email string as ‘verified.’ From first principles, your public website should have no
/wp-adminlogin surface or user-session database on it at all. In a modern pre-rendered edge architecture, public pages are immutable static files and enterprise authentication is isolated behind zero-trust edge identity gates.”
The Breakdown: How the Exploit Works
To handle social sign-ins, wp-social registers a public REST endpoint at /wp-json/wslu-social-login/type/{provider}/ with permission_callback => __return_true. When an OAuth response arrives, the plugin looks up the existing WordPress user solely by matching the email string returned in the profile payload and immediately calls wp_set_auth_cookie()—bypassing passwords and MFA.
To block account hijacking via unverified emails, the developer placed a single guard inside inc/admin-create-user.php: !empty($getProfile->emailVerified). However, in the bundled Hybridauth Facebook.php and Twitter.php adapters, the code assigns the raw email address string—rather than a boolean flag—to emailVerified.
Because any non-empty email string evaluates to true under PHP’s !empty() check, the verification guard becomes a complete no-op. An attacker presenting an OAuth assertion matching an administrator’s email address immediately receives a valid Administrator session cookie.
The Operational Risk: What an Attacker Gains
- Instant Administrator Takeover: Attackers receive a legitimate WordPress Administrator cookie without knowing the password or solving MFA challenges.
- Full Plugin & Theme Execution: Authenticated as an Administrator, attackers upload malicious plugins or edit theme PHP files for persistent shell access.
- Silent Account Impersonation: Because login occurs via
wp_set_auth_cookie(), security tools monitoring failed password attempts never trigger an alert. - Zero Prior Foothold Required: Attackers only need the administrator’s email address, which is often exposed in author archives or WHOIS records.
The Modern Architectural Remedy
- Legacy Dynamic WordPress: Exposes public
/wp-json/endpoints that mint full administrative session cookies (wp_set_auth_cookie) if a single PHP check fails. - Modern Pre-Rendered Edge Architecture: Eliminates public CMS login surfaces on marketing domains and isolates authentication behind zero-trust edge identity gates.
Immediate Action Items for WordPress Operators
- Update Wp Social Login Immediately: Upgrade
wp-socialto version3.2.3or higher across all installations. - Disable Facebook & Twitter Adapters: Disable social login providers in plugin settings until patched.
- Invalidate Active Admin Sessions: Use Users → Profile → Log Out Everywhere Else on all Administrator accounts to revoke hijacked cookies.
- Audit Administrator Accounts: Verify that no unauthorized admin users, scheduled hooks, or modified theme files were added.
