Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify phpMyFAQ site mid 3.x upgrade
-
DeliveryConfirm /setup/ returns installer (HTTP 200)
-
ExploitPOST attacker DB and admin credentials to /setup/index.php/install
-
ExecutionInstaller writes content/core/config/database.php, locks itself
-
PersistAttacker super-admin on attacker-controlled database
-
ImpactFull application takeover (optional RCE via SQLite on Apache)
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Authentication required for critical functions
MITRE ATT&CK
1 technique across 1 tactic: Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the target to be in the middle of the documented, default 3.1.x/3.2.x-to-4.x upgrade: the 4.x package deployed with the legacy config/database.php retained, but /update not yet completed - so only the legacy config file exists and System::checkInstallation() (which inspects only content/core/config/database.php) wrongly reports the instance as not installed, exposing /setup/ with no authentication, method restriction, or CSRF check. No configuration change is needed and maintenance mode does not help, since setup/index.php never loads the application config. Limiting factors: the attacker must hit this upgrade window (reflected in AC:H / AT:P); since phpMyFAQ 4.2 the /update wizard also needs a token the admin fetches over FTP/SSH, lengthening but still bounding the window. Optional remote code execution is further gated - it needs the SQLite install variant plus Apache executing PHP in content/user/images/ (not blocked by the stock .htaccess); under the stock nginx configuration impact stays at full takeover without RCE. |
| Impact | This is a genuine priority, not an inflated high-CVSS score. The input assigns a CVSS 4.0 base of 9.2 (AV:N/AC:H/AT:P/PR:N/UI:N with full VC:H/VI:H/VA:H) and a vuln.today Decision label of act_now, reported by VulnCheck, with a vendor patch available. The signals are internally consistent: network vector, no authentication (PR:N), and no user interaction, yielding complete compromise of confidentiality, integrity, and availability. The one tempering factor is AC:H / AT:P, which the advisory explains concretely: exploitation is only possible during the narrow window of a documented 3.1.x/3.2.x-to-4.x upgrade, before /update completes. No EPSS score and no CISA KEV entry were provided, and the vulnerability is NOT listed as actively exploited - so the act_now urgency rests on severity plus a detailed public advisory rather than on observed in-the-wild activity. A public PoC reference exists (the GHSA advisory and VulnCheck writeup), but it is not verified as working end-to-end exploit code: the researcher confirmed the core detection flaw with a standalone harness exercising the real System::checkInstallation() and ConfigDirectoryResolver, but explicitly did not run the full HTTP install chain end to end. Net: high-severity, high-confidence vulnerability class with a real but conditional trigger window - prioritize patching for any instance that is or will be mid-upgrade. |
| Exploit ScenarioDerived | An unauthenticated attacker locates a phpMyFAQ site that administrators have partially upgraded from 3.x to 4.x - new package deployed, legacy config/database.php still in place, /update not yet run - and finds /setup/ returns HTTP 200 instead of 403. They POST their own database and admin credentials to /setup/index.php/install, which writes content/core/config/database.php pointing at an attacker-controlled database and grants them a super-admin account, taking over the live site. A detailed public PoC reference exists in the GHSA advisory, though it was not verified as a full working HTTP exploit; the high attack complexity reflects the need to hit the upgrade window. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 17, 2026
Unauthenticated takeover of phpMyFAQ is possible whenever a live installation sits inside the documented 3.1.x/3.2.x-to-4.x upgrade window: the 4.x package is deployed with the legacy config/database.php retained but /update has not yet run, so the web installer's installed-check wrongly reports the site as not installed and exposes /setup/. An attacker can then POST /setup/index.php/install with their own database settings and administrator credentials, writing content/core/config/database.php, which thereafter takes precedence over the legacy file so every frontend, admin, API and /update request runs against the attacker's database with the attacker as super admin. The flaw is rated 9.2 (CVSS 4.0) / high severity under CVSS 3.1 with AC:H, carries a vuln.today decision of act_now, and is not in CISA KEV; the vendor advisory includes a standalone PoC harness that exercises the real guard, resolver and config-writer on a simulated upgrade layout, but it is not verified as working end-to-end exploit code against a live HTTP instance.
RemediationAI
Vendor-released patches fix the issue: upgrade to phpMyFAQ 4.1.12 (https://github.com/thorsten/phpMyFAQ/releases/tag/4.1.12) or 4.2.0-RC.2 (https://github.com/thorsten/phpMyFAQ/releases/tag/4.2.0-RC.2), which include commit eae6674d64bb6f53caf703d3f38b657f0c16a13c adding System::hasDatabaseConfiguration() so the installer refuses to run when any database configuration the application would boot from exists, and wire ConfigDirectoryResolver::resolve() into setup/index.php. If upgrading immediately is not possible, the effective compensating control is to block the installer at the web server for the whole upgrade window - deny or return 403 for /setup/ and /setup/index.php/install (and preferably remove or rename the setup/ directory after deployment, restoring it only if a reinstall is genuinely needed), which costs nothing functionally because a correctly upgraded instance does not use the installer; note that maintenance mode does not help, since setup/index.php never loads the application configuration. Administrator-side hardening named in the advisory, as defense in depth: restrict /setup/install to POST with a session-bound CSRF token issued by GET /setup/, and reject SQLite paths outside a non-web-served data directory, which also removes the optional code-execution route via content/user/images/. Completing the documented /update promptly shrinks the exposure window, but since 4.2 the update wizard itself requires a token fetched over FTP or SSH, so that window can be long and should not be relied on as the sole mitigation.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Root cause is CWE-306 (missing authentication for a critical function). phpMyFAQ since 4.0.0 stores its database configuration in content/core/config/database.php, but src/Bootstrap/ConfigDirectoryResolver.php still falls back to the legacy 3.x path config/database.php (PMF_LEGACY_CONFIG_DIR) when the new file is absent, and Migration400Alpha only copies the legacy file into content/core/config when /update actually runs. The single install gate, System::checkInstallation() in phpmyfaq/src/phpMyFAQ/System.php, checked only PMF_ROOT_DIR . '/content/core/config/database.php', so a site running correctly from the legacy file was reported as not installed. setup/index.php defines only PMF_ROOT_DIR and never runs the Bootstrapper or ConfigDirectoryResolver, so PMF_LEGACY_CONFIG_DIR is unknown there and the check cannot see the legacy file; the '/' and '/install' routes are registered with no method restriction, no authentication and no CSRF check, and SetupController/Installer rely only on that one gate. InstallationInputValidator takes sql_type, sql_server, sql_user, sql_password, sql_db and sql_sqlitefile straight from INPUT_POST, with sql_sqlitefile accepting an arbitrary filesystem path, and InstallationRunner::createDatabaseFile() writes content/core/config/database.php - which ConfigDirectoryResolver then prefers over the legacy file. The same gap had already been closed for the CLI in commit b3e4d4c9a but not for the web installer. The supplied commit adds System::hasDatabaseConfiguration(), which scans content/core/config, config, PMF_CONFIG_DIR and PMF_LEGACY_CONFIG_DIR for database.php so the installer refuses to run when any bootable configuration exists. The high attack-complexity metric reflects the requirement to hit the upgrade window (or, for the optional code-execution chain, to combine the SQLite install variant with a web server that executes PHP under content/user/images/, which the stock Apache .htaccess does not block while the stock nginx configuration passes only front controllers to PHP and therefore limits impact to takeover); the trigger mechanics for the installer exposure itself are fully described in the advisory.
Know when Phpmyfaq gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Remote, unauthenticated, no user interaction (AV:N/PR:N/UI:N); AC:H because exploitation is confined to the transient documented upgrade window; full C/I/A loss from database and admin takeover.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
phpMyFAQ before 4.1.12 and 4.2.0-alpha before 4.2.0-RC.2 contains an authentication bypass vulnerability because the web installer ignores the legacy config/database.php during 3.x upgrades. Unauthenticated attackers can reinstall the site against an attacker-controlled database and create their own administrator account to take over the application.
Articles & Coverage 1
Technical POC Analysis
CWE-306: Missing Authentication for Critical Function.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
CVE-2026-130371 is a critical vulnerability in phpMyFAQ that allows unauthenticated attackers to take complete control of installations transitioning from version 3.1.x/3.2.x to 4.x if the /update process hasn't been completed. This affects organizations with live phpMyFAQ deployments during this upgrade window, potentially exposing sensitive data, enabling administrative takeover, and undermining service integrity. Leadership should prioritize immediate verification and remediation of any affected systems.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Related Vulnerabilities in phpMyFAQ Authorization Bypass and Info Disclosure
View all 27Duplicate-email registration handling in phpMyFAQ 4.0.7 through 4.0.13 (and 4.0-nightly-2025-10-03 and earlier) lets una
Insufficient Session Expiration in GitHub repository thorsten/phpmyfaq prior to 3.2.2. Rated critical severity (CVSS 9.8
Authentication Bypass by Capture-replay in GitHub repository thorsten/phpmyfaq prior to 3.1.12. Rated critical severity
Weak Password Requirements in GitHub repository thorsten/phpmyfaq prior to 3.1.12. Rated critical severity (CVSS 9.8), t
Weak Password Requirements in GitHub repository thorsten/phpmyfaq prior to 3.1.8. Rated critical severity (CVSS 9.8), th
Unauthenticated SQL injection in phpMyFAQ before 4.1.2 allows remote attackers to extract credentials, admin tokens, and
In phpMyFAQ before 2.9.9, there is Cross-Site Request Forgery (CSRF) in admin/stat.ratings.php. Rated high severity (CVS
In phpMyFaq before 2.9.9, there is CSRF in admin/ajax.config.php. Rated high severity (CVSS 8.8), this vulnerability is
In phpMyFAQ before 2.9.9, there is Cross-Site Request Forgery (CSRF) for modifying a glossary. Rated high severity (CVSS
In phpMyFAQ before 2.9.9, there is Cross-Site Request Forgery (CSRF) in admin/stat.main.php. Rated high severity (CVSS 8
phpMyFAQ is an open source FAQ web application for PHP 8.1+ and MySQL, PostgreSQL and other databases. Rated high severi
phpMyFAQ is an open source FAQ web application for PHP 8.1+ and MySQL, PostgreSQL and other databases. Rated high severi
EUVD-2026-126776
GHSA-8jv7-r3x9-rhmp
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB