Skip to main content
Vulnerability Database/CVE-2026-111895

CVE-2026-111895: phpMyFAQ Authentication Bypass Vulnerability

CVE-2026-111895 is an authentication bypass flaw in phpMyFAQ that allows attackers to take over local accounts, including super-admin accounts, via Microsoft Entra ID login flow. This post covers technical details, affected versions, impact, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-111895 Overview

CVE-2026-111895 is an authentication bypass vulnerability in phpMyFAQ, an open-source FAQ management system. The flaw resides in the Microsoft Entra ID login flow, which links users through the mutable preferred_username claim. The AuthEntraId::create() method ignores the duplicate-login exception and proceeds with the existing local account. Attackers who control an Entra identity in the configured tenant with a matching preferred_username can take over any local account, including super-administrator accounts. The issue is tracked as [CWE-287] Improper Authentication.

Critical Impact

An attacker with a tenant-controlled Entra ID identity can hijack arbitrary phpMyFAQ accounts, including super-admin, by matching the preferred_username claim.

Affected Products

  • phpMyFAQ 3.2.0 before 4.0.0
  • phpMyFAQ 4.0.2 before 4.2.0-beta
  • Deployments configured with Microsoft Entra ID authentication

Discovery Timeline

  • 2026-10-17 - CVE-2026-111895 published to NVD
  • 2026-10-19 - Last updated in NVD database

Technical Details for CVE-2026-111895

Vulnerability Analysis

phpMyFAQ supports Microsoft Entra ID as an external identity provider. During the login flow, the application maps the incoming Entra identity to a local user record by matching the preferred_username claim returned by Entra. This claim is mutable and not guaranteed to be unique across identities, so it is unsuitable as a primary identity key.

When the AuthEntraId::create() method encounters a duplicate-login condition for an existing local user, it swallows the exception and continues the authentication process using the pre-existing local account. The result is that the Entra-authenticated session is bound to that local account, regardless of who originally owned it.

An attacker who can create or modify a user in the configured tenant such that preferred_username matches the username of a phpMyFAQ account gains full session access to that account. Because super-admin accounts are indistinguishable from standard users at this matching layer, administrative takeover is possible.

Root Cause

The root cause is twofold: (1) reliance on the mutable preferred_username claim as an account-linking identifier instead of a stable, unique claim such as oid or sub, and (2) silent suppression of the duplicate-login exception in AuthEntraId::create(), which converts a failure signal into successful authentication against an unrelated account.

Attack Vector

Exploitation requires an attacker to control an identity in the Entra ID tenant configured for the target phpMyFAQ instance. The attacker sets or updates preferred_username on their identity to match a target local account name, then initiates the Entra SSO login against phpMyFAQ. The application completes authentication and binds the session to the matched local account. No interaction from the targeted user is required. See the GitHub Security Advisory GHSA-6hhv-gc4g-f4r7 and the VulnCheck Advisory for phpMyFAQ for additional detail.

// No verified exploitation code is published. See upstream advisory for technical details.

Detect Identity Attacks the Moment Authentication Fails

Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.

Stop Identity Attacks

Detection Methods for CVE-2026-111895

Indicators of Compromise

  • Entra ID sign-in logs showing new or recently modified identities whose preferred_username matches existing phpMyFAQ local account names, particularly administrator accounts.
  • phpMyFAQ audit records showing Entra-sourced logins to accounts that previously authenticated only with local credentials.
  • Administrative actions (user creation, privilege changes, FAQ content modification) performed shortly after an Entra SSO login from an unfamiliar object ID.

Detection Strategies

  • Correlate Entra ID signInLogs with phpMyFAQ application logs and flag sessions where the Entra oid for a given local username changes over time.
  • Alert on any directory operation in the tenant that sets preferred_username, mailNickname, or userPrincipalName to a value matching a known phpMyFAQ admin account.
  • Review web server logs for successful requests to the Entra callback endpoint followed by access to administrative routes under /admin.

Monitoring Recommendations

  • Enable detailed audit logging in phpMyFAQ and forward both application and Entra ID logs to a centralized analytics platform.
  • Monitor Entra ID directory audit events for modifications to user identifier attributes within the tenant used by phpMyFAQ.
  • Baseline the set of Entra object IDs that legitimately authenticate to each phpMyFAQ account and alert on deviations.

How to Mitigate CVE-2026-111895

Immediate Actions Required

  • Upgrade phpMyFAQ to version 4.0.0 or later on the 4.0.x branch, or to 4.2.0-beta or later on the 4.2 branch.
  • Audit all phpMyFAQ accounts linked to Entra identities and verify the backing Entra object ID matches the expected owner.
  • Restrict which Entra tenants and users are permitted to sign in to phpMyFAQ, and remove or suspend any unexpected identities.
  • Rotate credentials and invalidate active sessions for all administrative accounts after patching.

Patch Information

The maintainers released fixed versions on the 4.0.x and 4.2 branches. Patched builds (4.0.0 and later on the 4.0.x line, 4.2.0-beta and later on the 4.2 line) replace mutable claim matching and correctly handle the duplicate-login exception in AuthEntraId::create(). Refer to the GitHub Security Advisory GHSA-6hhv-gc4g-f4r7 for the exact commit and release notes.

Workarounds

  • Disable the Entra ID authentication provider in phpMyFAQ until the upgrade is applied.
  • Enforce Conditional Access policies in Entra ID that restrict sign-in to the phpMyFAQ application to a known allowlist of users.
  • Prohibit tenant administrators and account owners from modifying preferred_username on existing identities, and alert on any such change.
bash
# Example: list phpMyFAQ-linked Entra users and their mutable identifier
# Run against your tenant with appropriate Graph permissions
az ad user list --query "[].{id:id, upn:userPrincipalName, preferred:mailNickname, displayName:displayName}" -o table

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.