phpMyFAQ Authorization Bypass and Info Disclosure
2026-11-17
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.
Cross-tenant WebAuthn passkey overwrite in phpMyFAQ lets an attacker who stages a prepare() call on one multisite tenant replace the passkeys of a same-named account on another tenant or on the master, then authenticate as that account - including a master admin. Affected are 4.1.9 through 4.1.11 and 4.2.0 pre-releases up to 4.2.0-RC.1, in multisite deployments that share one PHP session store with WebAuthn enabled and either open self-registration or an attacker-held client admin account; accounts without TOTP are the practical target. The assessed vector is unauthenticated (PR:N) but high complexity (AC:H/AT:P) and scoped to cross-tenant impact, with no KEV entry and no confirmed public exploit package - though the vendor advisory ships a step-by-step reproduction and an executed harness that demonstrates the key overwrite and subsequent login.
Tenant administrators on multisite phpMyFAQ 4.2.0 pre-releases (alpha through RC.2) can read and overwrite the master instance's effective configuration because the optional Redis configuration store is keyed on the prefix alone and is therefore not tenant-scoped. Exploitation requires an authenticated tenant-admin account (PR:H), the non-default 'Use Redis for configuration' option enabled on the master, and at least one tenant provisioned via /admin/api/instance/add; the attacker can then redirect master SMTP, substitute a known REST API token, or change authentication and maintenance settings. The GitHub advisory (GHSA-6795-wmwp-422x) ships a full reproduction plus a standalone PoC script that executes the real Configuration/Storage classes; there is no CISA KEV entry and active exploitation is not confirmed. A vendor fix is available in 4.2.0-RC.2.
phpMyFAQ 4.2.0-alpha.2 through 4.2.0-RC.1 contains an improper authorization flaw (CWE-863) in the updateUserRights endpoint that lets an authenticated non-SuperAdmin administrator holding the delegable USER_EDIT right convert a category-restricted group right into a global direct user right, then edit, publish, unpublish or delete FAQs in categories that were deliberately withheld. Exploitation is bounded: it requires security.permLevel set to medium (a documented, non-default option), at least one group with a category-restricted right configured, membership in that group, and a valid updateUserRights CSRF token, and it can only widen rights the attacker already holds in some category - it cannot reach SuperAdmin, configuration, or unheld rights. There is no CISA KEV entry and no confirmed working exploit against a live instance; the upstream advisory includes a public PoC reference consisting of an in-memory SQLite model that reproduces the guard and write order, which is not verified as working exploit code against a booted instance. The priority signal is 'this_week': a genuine but bounded authorization issue rather than a top-tier emergency.
Unauthenticated account enumeration in phpMyFAQ lets remote attackers confirm which login names exist - administrators included - by comparing the status codes returned from POST /api/webauthn/prepare, which answers 401 for a taken login and 403 or 400 for an unknown one depending on registration and captcha settings. Affected are 4.1.9 through 4.1.11 and 4.2.0 pre-releases before 4.2.0-RC.2; exposure requires the non-default security.enableWebAuthnSupport toggle, and when registration is disabled no token is needed at all, while the shipped registration default allows a single unconsumed webauthn CSRF token to be reused across an entire wordlist with no rate limiting. The impact is reconnaissance for password spraying, credential stuffing and phishing rather than any direct compromise - no credentials, account data or access are disclosed - and the advisory publishes reproduction requests alongside a logic-level PoC script that runs the extracted branch logic with stubbed dependencies and is not verified as working exploit code.
Unauthenticated visitors to phpMyFAQ 4.1.x before 4.1.12 and 4.2.0-alpha before 4.2.0-RC.2 can enumerate restricted and inactive categories and read their names, descriptions, images and FAQ counts by walking sequential category IDs through /category/{id}/{slug}.html or by querying /api/v4.0/categories. Two code paths share one root cause: the category detail page loads metadata through a raw repository lookup that applies neither the group/user category ACL nor an active check, and the listing/API permission WHERE clause ANDs the user-restricted term with the same group condition it ORs with, so a category restricted to a single user is still listed to everyone under the default permLevel=basic. Only category metadata leaks - FAQ answers remain protected by the FAQ-level ACL - the advisory ships a standalone PoC script that exercises the extracted query paths (a public PoC reference exists; it is not verified as working exploit code), there is no CISA KEV entry, and no EPSS score was provided.
Unauthenticated information disclosure in phpMyFAQ allows any anonymous visitor to read the editor-only "Private Notes" field of every FAQ that the anonymous ACL can see. The public FAQ list endpoints (GET /api/v4.0/faqs on the 4.2.0 pre-releases and GET /api/v3.1/faqs on 4.1.x) return the raw Faq::getAllFaqs() record array, which still contains the notes column that the HTML frontend gates behind the FAQ_EDIT permission; attackers can page through the endpoint without credentials, a token, or user interaction and harvest internal remarks, ticket numbers, and customer references. Affected are phpMyFAQ versions before 4.1.12 and 4.2.0-alpha before 4.2.0-RC.2 (older 4.0.x and 3.2.x releases, including 4.0.19 and 3.2.10, are EOL but also affected); there is no KEV entry and no confirmed in-the-wild exploitation, though the advisory includes a public reproduction script that replays the vulnerable code path rather than a verified working exploit against a live instance. Confidentiality impact is Low because exposure is bounded by the anonymous ACL and by what editors actually write into the notes field.
Unauthenticated information disclosure in phpMyFAQ's public REST API (versions after the 4.0.17 fix through 4.1.11, plus 4.2.0-alpha before 4.2.0-RC.2) lets any remote caller retrieve the author name and e-mail address attached to every published, guest-readable FAQ by querying /api/v4.0/faq/{categoryId}/{faqId} or by paging through /api/v4.0/faqs at up to 100 records per request. The same endpoints also ignore the project's GDPR 'Author visibility' opt-out, so a registered user who set is_visible=0 is shown as 'n/a' in the HTML frontend and PDF export but returned in full, name and address, by the API. Impact is confidentiality-only PII exposure (CVSS 3.1 6.9, C:L, PR:N/UI:N): no credentials, integrity or availability effect, and harvesting is throttled but not stopped by the default 100 requests/hour/IP limit, which still permits roughly 10,000 records per hour per IP; there is no CISA KEV entry, and a public PoC reference exists but is not verified as working exploit code against a booted instance.
An authentication/registration bypass in phpMyFAQ 4.1.0 through 4.1.11 and 4.2.0 pre-releases allows unauthenticated remote attackers to create an immediately active account through the WebAuthn passkey sign-up endpoint (POST /api/webauthn/prepare), skipping the administrator's manual-activation setting and the registration email-domain whitelist. The passkey sign-up path never applies the same policy checks as /api/register, so a visitor can attach a passkey, log in, and reach registered-user-only FAQs, categories and comment/question/chat functions. Exploitation is only possible when the experimental, non-default security.enableWebAuthnSupport setting is turned on; when captcha is enabled (the default) the attacker must solve one captcha per account, with no public working exploit code identified at time of analysis. This is a genuine but moderate-priority access-control flaw rather than a critical one, since the attacker gains only default registered-user rights and no access to existing accounts.
phpMyFAQ's public password-reset flow (PUT /api/user/password/update followed by POST /api/user/password/reset) issues and redeems reset tokens for accounts provisioned by OIDC, Keycloak, Entra ID, LDAP, SSO or WebAuthn, so an unauthenticated attacker who can read the victim's on-file mailbox can set a local password and authenticate against phpMyFAQ directly, skipping the identity provider's password, MFA, conditional access and deprovisioning. The only thing meant to block this is a check in User::getEncryptedPassword() that reads a hard-coded 'database' value instead of the account's real auth_source, so it never fires; the 4.1.x branch performs no auth-source check at all in UnauthorizedUserController::updatePassword(). Exploitability is gated by two real prerequisites - the target account must have been auto-provisioned by an external source, and the attacker must both know the username with its matching on-file email and be able to read mail sent to it - which the vendor's CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:N/UI:N, 6.3 Medium) reflects, and any phpMyFAQ-local TOTP the victim enabled is still enforced at the final login step; there is no CISA KEV listing or other evidence of active exploitation, and a standalone proof-of-concept published with the advisory exercises extracted code rather than a running phpMyFAQ instance.
Category- and language-restricted phpMyFAQ editors can rewrite the visibility ACLs and tags of any FAQ - including FAQs in categories they are not allowed to touch - by POSTing to /admin/api/faq/update with a target faqId and a lang in which that FAQ has no translation. The flaw exists in the pre-release 4.2.0 line (alpha.2 through RC.1 / current main) and only manifests when security.permLevel=medium, which is the setting that introduced the category and language scoping the bypass circumvents; it requires an authenticated editor account holding a scoped FAQ_EDIT right (PR:L), so it is not remotely exploitable without credentials. Impact is limited to FAQ visibility ACLs, tag links and overwriting/re-homing orphaned FAQs rather than system compromise, and the 4.2.0-RC.2 release contains the fix; the advisory ships a standalone PoC script that replays the controller's SQL against in-memory SQLite rather than booting phpMyFAQ, so a public PoC reference exists but it is not verified as working exploit code, and there is no confirmed active exploitation (no CISA KEV listing) - the vuln.today priority decision is this_month.
Language-scoped backend editors in phpMyFAQ 4.2.0 pre-releases can read translations they are not authorized to access by pairing an authorized route language with a different ?lang= UI language. The flaw affects 4.2.0-alpha.2 through the pre-release range fixed by 4.2.0-RC.2 and requires an authenticated backend user whose FAQ_EDIT right is restricted to a specific language; impact is read-only disclosure of drafts, private editor notes, author e-mail addresses and older revisions. No public exploit was identified at the time of analysis, and the issue is bounded to pre-release builds because 4.1.x lacks the language-scoped permission feature.
Authenticated back-office users in phpMyFAQ (4.1.x through 4.1.12 and 4.2.0 pre-releases before RC.2) can read FAQ records they are not authorized to see, because the admin FAQ copy and translate pages gate access only on the global FAQ_ADD or FAQ_TRANSLATE right and then load the target record with the admin flag set. A category- or language-scoped editor, or an add-only author, can therefore open any FAQ ID to view drafts and inactive content, per-record ACL-restricted FAQs, FAQs outside their category/language scope, private editor notes, and author e-mail addresses. The impact is strictly read-only - saving through the create API still enforces category and language scope - and exploitation requires admin-level credentials already carrying add or translate rights; no public exploit code was identified at time of analysis, and this is assessed as a moderate-priority authorization flaw rather than a drive-by emergency.
Contributors restricted to FAQ_ADD can publish unreviewed FAQs in phpMyFAQ 4.2 pre-releases by uploading a CSV through POST /admin/api/faq/import, bypassing the FAQ_PUBLISH right that the 4.2 editorial workflow is supposed to enforce. The flaw is integrity-only (CWE-863): an authenticated backend account with FAQ_ADD for the target category and language, but without FAQ_PUBLISH, can make attacker-supplied questions, answers and URLs immediately visible to logged-out visitors, and can additionally mark them sticky via CSV column 9; question and answer fields pass FILTER_SANITIZE_SPECIAL_CHARS, so there is no XSS and no confidentiality impact. No CISA KEV entry or EPSS score accompanies this CVE, but the vendor advisory publishes a full curl-based reproduction, so a public proof-of-concept reproduction exists (not verified as working exploit code); priority is this_month.
Category- or language-scoped editors in phpMyFAQ 4.2.0-alpha.2 through 4.2.0-RC.2 can escape their assigned scope through the public REST write endpoints PUT /api/v4.0/faq/update, POST /api/v4.0/faq/create and POST /api/v4.0/category, because those routes check only the global userHasPermission() and never the scoped category/language checks the admin API applies. An attacker who already holds a deliberately restricted edit_faq, add_faq or addcateg grant plus the shared API client token can rewrite live published FAQs and create active root categories outside their permitted categories and languages; the same requests through the admin API return 403, and 4.1.x is unaffected because it has no scoped rights. Impact is integrity-only with no public exploit identified at time of analysis, and exploitation requires a specific configuration: security.permLevel set to medium (category and language scoping) or basic (language scoping) with permission scoping actually in use and api.enableAccess left at its default of enabled.
Unpublished and draft FAQ titles in phpMyFAQ (through 4.1.11, and 4.2.0-alpha before 4.2.0-RC.2) can be enumerated by an authenticated, activated low-privilege frontend user through the legacy GET bookmark side-channel on the FAQ detail page. Requesting a detail page with bookmark_action=add writes the bookmark row before loadFaq() and the isFaqRecordVisible() check return a 404, and /user/bookmarks then renders the stored record through BookmarkFormatter::format(), which calls Faq::getFaq() without asking RecordVisibility and therefore keeps the real title of the non-published record. The leak is limited to record id, question text and title slug for drafts or pending submissions (the answer body is replaced by a placeholder) and does not cross record ACLs; no public exploit code was identified at time of analysis, and there is no CISA KEV listing.
Delegated non-SuperAdmin administrators in phpMyFAQ can strip every permission from higher-privileged groups and administrator accounts by submitting an empty rightIds or userRights array to the admin API endpoints group/permissions and user/update-rights. The 'you may only grant rights you hold' validation loops over the submitted list, so an empty list skips the check entirely while the handler still calls refuseAllGroupRights()/refuseAllUserRights() and deletes the target's existing rights. The flaw affects phpMyFAQ up to and including 4.1.11 and the 4.2.0-alpha line before 4.2.0-RC.2, is reachable only by an authenticated administrator holding the delegable GROUP_EDIT right (with security.permLevel = medium) or USER_EDIT right (at any permission level), and is rated CVSS 4.0 base 5.1 (low integrity and availability impact); there is no CISA KEV entry or confirmed active exploitation, and the reproduction procedure published with the advisory was validated by source-code review rather than against a running instance.
Restricted FAQ titles are broadcast to every Web Push subscriber in phpMyFAQ 4.2.0-alpha through 4.2.0-RC.1, so any authenticated frontend user - including a self-registered visitor - receives the question text, FAQ id, first category id, language and slugified URL of records they are not allowed to open. The fan-out in WebPushService::sendToAll() never filters recipients against the FAQ's user/group ACL, so an FAQ created directly as published with restrictions is pushed to all subscribers even though the page itself returns 404 to them. Only title-side metadata leaks (the answer body does not), Web Push must be enabled by an administrator, and no confirmed active exploitation is reported (not in CISA KEV); a public reproduction/PoC reference exists but is not verified as working exploit code.
Stored cross-site scripting in phpMyFAQ's FAQ comment rendering lets any logged-in frontend user plant a link that runs attacker script on the shared frontend/admin origin when a victim clicks it - but only on installations where the opt-in comment editor (main.enableCommentEditor, off by default) has been enabled and comments are allowed on at least one FAQ. The root cause is a transformation applied after sanitization: Utils::parseUrl() strips the https:// prefix from already-sanitized HTML, turning the sanitizer-approved href "https://javascript:443/..." into a live javascript: URL that the template prints with |raw. This is a genuine but conditional, medium-severity issue rather than a drop-everything emergency: the victim must click the attacker-controlled link, and meaningful impact (reading admin pages, harvesting CSRF tokens, calling admin APIs) requires that victim to be an administrator, since the frontend and /admin/ share an origin. Fixed by the vendor in 4.1.12 and 4.2.0-RC.2; a public PoC reference exists but it is not verified as working exploit code, and there is no confirmed active exploitation.
Language-scoped FAQ_DELETE administrators in phpMyFAQ 4.2.0 pre-releases can delete shared ACL, tags, votes, bookmarks, comments and, with a crafted ?lang= parameter, attachment files belonging to FAQ translations outside their permitted language. The DELETE /admin/api/faq/delete endpoint authorizes against the caller-supplied faqLanguage without verifying that a translation exists for that (faqId, faqLanguage) pair, so a request naming an in-scope language with no translation passes the check and the subsequent deletes hit record-id-wide rows shared by every translation. Exploitation requires an authenticated admin with a direct, language-restricted FAQ_DELETE grant and no category restriction plus a valid CSRF token; a public PoC reference exists but is not verified as working exploit code, and there is no confirmed active exploitation (not CISA KEV).
Authenticated editors in phpMyFAQ can tamper with the Elasticsearch/OpenSearch search index by supplying an arbitrary solutionId to the /admin/api/faq/update endpoint, which the vulnerable code passes to Filter::filterVar as an integer and then uses directly as the search index document ID. The flaw affects releases before 4.1.12 and 4.2.0-alpha.2 through 4.2.0-RC.1, but only on installations configured to use Elasticsearch or OpenSearch as the search backend; deployments using the default database search are not exploitable through this vector. A category-restricted editor can therefore remove published FAQs from search results, overwrite other FAQs' search documents, or plant entries that stay searchable after the underlying FAQ is unpublished, with no confidentiality impact and no database writes outside the search index; no public exploit code was identified at time of analysis and the issue is not in CISA KEV.
Category- and language-scoped phpMyFAQ editors can enumerate draft FAQs that lie outside their FAQ_EDIT grant: the admin dashboard's 'unpublished FAQs' widget and the admin FAQ search endpoint check only the global FAQ_EDIT right and never apply the 4.2 scoping model, leaking draft titles, record IDs, languages and edit URLs, and letting an editor confirm whether a chosen word appears in an out-of-scope draft body. Only 4.2.0 pre-releases from alpha.2 through RC.1 are affected, and only on installations at security.permLevel = medium that actually use scoped editor groups; 4.1.x and RC.2+ are not affected. Exploitation requires an authenticated admin-area account (CVSS 3.1 PR:L), writes are not possible and leaked edit links return 403, so impact is limited to confidentiality; no public exploit code has been observed in the wild and there is no KEV entry, with the priority signal classified as 'this_month' rather than immediate action.
Any authenticated frontend user of phpMyFAQ 3.2.5 through 4.1.11, and of the 4.2.0 pre-releases up to 4.2.0-beta/RC.2, can file an account-removal request in another user's name, causing administrators to receive a spoofed 'Remove User Request' email that appears to originate from the victim. The ownership check introduced in 3.2.5 for GHSA-6648-6g96-mg35 first loads the attacker-supplied userId into the session user object, so the subsequent comparisons only prove the submitted id, login name and email are self-consistent rather than that they belong to the caller; a victim's login name and email - with a sequential numeric id - are enough to abuse it. Impact is deliberate rather than automatic: nothing is deleted unless an administrator acts on the email, the Reply-To is the real victim's address, and a public PoC reference exists (extracted logic published with the advisory) that is not verified as working exploit code; no confirmed active exploitation is associated with this CVE.
Password-guessing through phpMyFAQ's admin password-change form (POST /admin/password/update) is not throttled, so an attacker who already holds a hijacked admin-area session can repeatedly submit guesses for the existing password and, on a correct hit, both learn the original plaintext password and replace it with one of their choosing. Affected releases are 4.1.9 through 4.1.11 and 4.2.0 pre-releases before 4.2.0-RC.2, fixed in 4.1.12 and 4.2.0-RC.2; the prerequisite is a live session belonging to a backend user with the passwd (PASSWORD_CHANGE) right, matching the assessed vector CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N (vendor CVSS 4.0 score 2.3). There is no CISA KEV entry and no confirmed exploitation; a public PoC reference exists - it is not verified as working exploit code, and the published standalone harness exercises extracted controller logic rather than a booted instance. Each guess costs one bcrypt verification over HTTP, so the practical risk is concentrated on weak or dictionary passwords, and the priority label is monitor.
phpMyFAQ 4.1.9 through 4.1.11 and 4.2.0-alpha releases before 4.2.0-RC.2 let anyone already holding a logged-in session register a new WebAuthn passkey on that account using only the session cookie and the 'webauthn' CSRF token printed on /user/ucp - no current password, TOTP code or existing passkey proof is required. Because the enrollment ceremony is seeded with an empty key list, the newly written key silently replaces every passkey the owner had registered, and it survives password changes, password resets and remember-me revocation, giving the attacker durable passwordless login on accounts that do not have TOTP enabled (administrators included). Exploitation requires the opt-in security.enableWebAuthnSupport flag (off by default) plus a prior session compromise, which is why the CVSS:3.1 vector rates it AV:N/AC:H/PR:L with only low confidentiality/integrity impact; there is no CISA KEV entry, a public PoC exists only for the related pre-4.1.9 anonymous enrollment advisory that the reporter says can be adapted, and the vendor decision signal is to monitor rather than act urgently. Patches are available in phpMyFAQ 4.1.12 and 4.2.0-RC.2.
Multisite phpMyFAQ installations allow an authenticated editor on one client instance to silently destroy attachment files owned by the master instance or by another client. Unencrypted attachments are stored under a key derived solely from md5(file) in a blob store shared by every instance, while the pre-deletion reference check counts rows only in the local faqattachment table; an editor who uploads a copy of the target bytes and then deletes their own copy causes File::delete() to unlink the shared blob, so the victim's metadata row survives but every download fails and nothing is logged. The flaw is fixed in 4.1.12 and 4.2.0-RC.2, a standalone PoC harness is published with the GHSA (it reproduces the key derivation and reference-count SQL against two table prefixes but was not run on a booted instance), there is no confirmed exploitation in the wild and no CISA KEV listing, and the reported decisions signals - CVSS 2.3, priority label 'monitor' - reflect that standalone single-instance deployments are unaffected and the impact is destruction only, since the file cannot be read or replaced.
Stored cross-site scripting in phpMyFAQ 4.2.0 pre-releases (4.2.0-alpha through 4.2.0-RC.1) lets an authenticated FAQ_EDIT user bypass SvgSanitizer with namespace-prefixed elements such as <x:script> and upload a malicious SVG through the admin image endpoint. Script execution requires a higher-privileged victim to open the stored SVG URL directly and a server that does not send Content-Security-Policy: sandbox for user SVGs, notably IIS with the shipped web.config; the issue is rated 2.1, carries the vuln.today priority label monitor, has no confirmed active exploitation reported, and has a public PoC reference that is not verified as working exploit code.