WordPress Plugin WPML Multilingual CMS Authentication Bypass via Race Condition in Language-per-Domain SSO (4.9.7)
Description
The WPML Multilingual CMS plugin for WordPress is vulnerable to Authentication Bypass via Race Condition in versions up to, and including, 4.9.7. This is due to the language-per-domain SSO handler in the process_iframe_request function generating the cross-domain sign-in token on the logout landing page, after the browser has discarded its authentication cookies, so the token collapses to the shared anonymous nonce and is stored in a transient mapped to the victim user ID with no binding to the requesting client. An unauthenticated attacker can derive the same token and submit a forged wpml_sso_token_domain parameter with a wpml_user_signed_in status to a secondary language-domain endpoint within the 60 second SSO window, which makes it possible for unauthenticated attackers to gain access to the accounts of users, including administrators, who are in the process of logging out.
Remediation
Update to plugin version 5.0.0 or latest