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

CVE-2026-111906: phpMyFAQ CSRF Vulnerability

CVE-2026-111906 is a CSRF flaw in phpMyFAQ affecting Elasticsearch and OpenSearch admin endpoints. Attackers can trick authorized users into deleting indexes or exhausting resources. This article covers technical details, affected versions, and mitigation.

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-111906 Overview

CVE-2026-111906 is a cross-site request forgery (CSRF) vulnerability in phpMyFAQ versions before 4.1.9 and 4.2.0-alpha before 4.2.0-beta. The flaw affects the Elasticsearch and OpenSearch administration API endpoints, which fail to validate CSRF tokens for create, drop, and import actions. An attacker can lure a user holding the CONFIGURATION_EDIT permission to a malicious page that triggers these state-changing operations. Successful exploitation deletes search indexes, forces full re-indexing, or exhausts backend resources. The weakness is tracked under CWE-352.

Critical Impact

Attackers can destroy search indexes, trigger resource-intensive re-indexing, or cause denial of service against the search backend without authenticating directly.

Affected Products

  • phpMyFAQ versions prior to 4.1.9
  • phpMyFAQ 4.2.0-alpha releases prior to 4.2.0-beta
  • Deployments using Elasticsearch or OpenSearch integration

Discovery Timeline

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

Technical Details for CVE-2026-111906

Vulnerability Analysis

phpMyFAQ exposes administrative API endpoints that manage search indexes for Elasticsearch and OpenSearch backends. These endpoints accept create, drop, and import operations but do not require a valid anti-CSRF token on the incoming request. Any authenticated session with the CONFIGURATION_EDIT permission can trigger these operations through a forged request.

An attacker crafts a webpage containing an auto-submitting form or image tag targeting the vulnerable endpoint. When a privileged administrator loads the attacker-controlled page in a browser session with an active phpMyFAQ cookie, the browser attaches credentials automatically and the server executes the request. The impact ranges from loss of search availability to sustained resource consumption on the search cluster.

Root Cause

The root cause is a missing CSRF token check on index management endpoints. Standard anti-CSRF middleware present on other administrative actions was not applied to the Elasticsearch and OpenSearch index routes. This gap allows cross-origin requests from a logged-in administrator's browser to succeed without any proof the request originated from the application.

Attack Vector

Exploitation requires user interaction. The attacker delivers a malicious link through phishing, forum posts, or a watering-hole page. The targeted administrator must be authenticated to phpMyFAQ with CONFIGURATION_EDIT rights. Loading the malicious page issues a cross-site request that invokes drop to delete an index, create to force recreation, or import to launch re-indexing. Repeated calls can exhaust CPU, memory, or disk I/O on the search backend.

No verified public proof-of-concept code is available. Refer to the GitHub Security Advisory GHSA-cmvh-fpmf-8gfx and the VulnCheck advisory for additional technical context.

Detection Methods for CVE-2026-111906

Indicators of Compromise

  • Unexpected POST or DELETE requests to phpMyFAQ Elasticsearch or OpenSearch admin endpoints with an HTTP Referer header pointing to an external domain
  • Search index deletion or recreation events in Elasticsearch or OpenSearch logs without matching administrator activity in phpMyFAQ audit trails
  • Spikes in search cluster CPU, memory, or disk I/O correlated with inbound requests to index management routes

Detection Strategies

  • Inspect web server access logs for requests to Elasticsearch and OpenSearch admin paths originating from off-site referrers or missing the expected CSRF token parameter
  • Correlate phpMyFAQ administrator session activity with search backend index lifecycle events to flag mismatches
  • Alert on repeated create, drop, or import actions issued within short time windows from a single session

Monitoring Recommendations

  • Enable verbose audit logging on phpMyFAQ administrative actions and forward events to a centralized SIEM
  • Monitor Elasticsearch and OpenSearch cluster health metrics for sudden index count changes or resource saturation
  • Track browser referrer headers and Origin headers on administrative endpoints to detect cross-origin exploitation attempts

How to Mitigate CVE-2026-111906

Immediate Actions Required

  • Upgrade phpMyFAQ to version 4.1.9 or 4.2.0-beta or later as soon as possible
  • Audit accounts holding the CONFIGURATION_EDIT permission and reduce privilege where unnecessary
  • Review search backend logs for unexpected index drop or import operations prior to patching

Patch Information

The maintainers released fixes in phpMyFAQ 4.1.9 and 4.2.0-beta. The patch adds CSRF token validation to the Elasticsearch and OpenSearch index administration endpoints. Full details are documented in the GitHub Security Advisory GHSA-cmvh-fpmf-8gfx.

Workarounds

  • Instruct administrators to log out of phpMyFAQ when not actively using it, limiting the window for CSRF exploitation
  • Restrict access to the phpMyFAQ administrative interface to trusted network ranges using a web application firewall or reverse proxy ACL
  • Block requests to the Elasticsearch and OpenSearch admin endpoints that lack a same-origin Referer or Origin header
bash
# Example nginx rule to enforce same-origin on admin index routes
location ~ ^/admin/api/(elasticsearch|opensearch)/ {
    if ($http_origin !~* ^https://phpmyfaq\.example\.com$) {
        return 403;
    }
    proxy_pass http://phpmyfaq_backend;
}

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.