MediaWiki OATHAuth Extension Flaw Enables 2FA Bypass via Recovery Code Switch

2 min read
Source: CVEs | Zero Wire | Cloudflare Radar
MediaWiki OATHAuth Extension Flaw Enables 2FA Bypass via Recovery Code Switch
Photo: CVEs | Zero Wire | Cloudflare Radar
TL;DR

The Wikimedia Foundation has disclosed CVE-2026-132735, a high-severity vulnerability in the MediaWiki OATHAuth extension version 1.47. This flaw allows attackers to bypass two-factor authentication by switching to recovery codes during the re-authentication process. The issue stems from improper access control in specific authentication provider files and carries a CVSS 4.0 score of 7.6.

Key points

  • The vulnerability affects MediaWiki OATHAuth Extension version 1.47, specifically within the ReauthPrimaryAuthenticationProvider and SecondaryAuthenticationProvider source files.
  • Attackers can exploit this flaw to bypass two-factor authentication by triggering a re-authentication request and switching to recovery codes during the login process.
  • The issue is classified as CWE-284, Improper Access Control, where the system fails to correctly restrict access to resources from unauthorized actors.
  • The CVSS 4.0 score is 7.6 (High), with high impact on confidentiality and integrity but no impact on availability or other systems.
  • The attack vector is network-based, requires low privileges, and has high complexity, but does not require user interaction.

Background

Recent cybersecurity reports have highlighted a trend in authentication bypass vulnerabilities across various platforms. For instance, Devolutions Server was found to allow replay of emergency admin codes, while MISP versions prior to 2.5.52 exposed login lockout bypasses via Unicode and NUL-byte flaws. Similarly, Cribl Stream and AutoGPT faced authentication bypass issues due to prototype pollution and security hook bypasses, respectively. These cases underscore the ongoing risks associated with improper access control and authentication mechanisms in software systems.

Why it matters

This vulnerability poses a significant risk to organizations using MediaWiki with the OATHAuth extension, as it allows attackers to bypass critical two-factor authentication controls. Successful exploitation could lead to unauthorized access to sensitive data and system integrity, potentially compromising the security of wiki-based platforms. The high CVSS score and the ease of exploitation via network access highlight the urgency for affected users to apply patches or mitigate the risk.

What to watch

The Wikimedia Foundation has released a patch for this vulnerability, as indicated by the Gerrit change reference. Users of MediaWiki OATHAuth Extension version 1.47 should update to a patched version immediately to mitigate the risk. Additionally, organizations should review their authentication configurations and ensure that recovery code mechanisms are not exposed during re-authentication processes.

Share this article

Want the full story? Read the original reporting

Read on CVEs | Zero Wire | Cloudflare Radar