Skip to content

phpMyFAQ wave (27 GHSAs): shared session store lets one tenant replace another tenant admin passkeys


Source: GitHub Security Advisories published 2026-11-17T03:31Z, a coordinated 27-advisory wave against phpMyFAQ before 4.1.12 / 4.2.0-alpha before 4.2.0-RC.2. Two criticals (cross-tenant passkey takeover, web-installer takeover), plus a dense authz/lifecycle/API-disclosure cluster.

Wave in one line: phpMyFAQ multisite runs many sites on one codebase sharing session stores, Redis prefixes, config tables, and content blobs without tenant scoping, so an admin/editor on your tenant reads, overwrites, or destroys the master and sibling tenants' passkeys, configuration, ACLs, and files; the rest of the wave is the classic render-path-vs-API and check-target-vs-load-target field drift.

Advisory table (legs with substantive descriptions)

GHSA CVE Sev. Boundary
GHSA-29w5-2rqq-hh6x CVE-2026-130369 critical Cross-tenant admin takeover: shared PHP session store means a WebAuthn prepare() run on tenant A replays against /api/webauthn/register on tenant B or the master, replacing that user's passkeys and logging in as admin.
GHSA-8jv7-r3x9-rhmp CVE-2026-130371 critical Web installer ignores legacy config/database.php during 3.x upgrades: unauthenticated reinstall against an attacker-controlled database, then self-created admin account = site takeover.
GHSA-vmcw-7j96-cwc5 CVE-2026-130351 high Multisite Redis configuration store not tenant-scoped: tenant admin saves config via /admin/api/configuration, can reset storage.redisPrefix, redirect master SMTP, set a known API token, alter authentication settings.
GHSA-xhmv-xh26-ggcp CVE-2026-130342 low linkedRecords() counts only the local faqattachment table; deleting an attachment whose content md5 is shared with another instance unlinks the shared blob = cross-instance file destruction.
GHSA-ggqr-w2p7-c5g6 CVE-2026-130347 medium Password reset issues local passwords for external-identity accounts (OIDC, Keycloak, Entra ID, LDAP, SSO, WebAuthn): mailbox access to such an account = local login skipping IdP MFA.
GHSA-g2w4-w4v6-jjx8 CVE-2026-130354 medium POST /api/webauthn/prepare creates accounts as active, bypassing manual activation and domain whitelisting; CSRF token is freely issued.
GHSA-9w62-xjj6-58f8 CVE-2026-130370 low Session + webauthn CSRF token alone enrolls passkeys (hijacked session replaces owner's passkeys).
GHSA-vf5p-gqcx-g95v CVE-2026-130362 medium Account enumeration: differing POST /api/webauthn/prepare responses, one unconsumed CSRF token reused across a whole wordlist, no rate limiting.
GHSA-q4mh-222v-3g89 CVE-2026-130368 low Step-up throttle bypass on PasswordChangeController::update(): reusable CSRF token, unlimited faqpassword_old guesses from a low-priv admin-area session.
GHSA-r7gh-2w8p-p7q9 CVE-2026-130357 high updateUserRights lets USER_EDIT admins re-save category-restricted group rights as global direct rights = scope promotion.
GHSA-2f6h-rh8g-h6ph CVE-2026-130356 medium faq/update with target faqId + untranslated lang rewrites visibility ACLs/tags of any FAQ.
GHSA-g6v9-9w5x-p4pv CVE-2026-130377 medium DELETE /admin/api/faq/delete: in-scope faqLanguage lacking a translation passes the scope check, then wipes shared ACL/tags/votes/comments/attachments of other translations.
GHSA-c4c2-fww6-xj3r CVE-2026-130381 medium FAQ_EDIT checked against the route language while the ?lang= UI parameter selects the loaded row: language-scoped editors read other translations' drafts, private notes, author e-mails.
GHSA-r534-7353-hrf9 CVE-2026-130349 medium Public REST write endpoints (PUT faq/update, POST faq/create, POST category) enforce only the shared API token, ignoring category/language scopes.
GHSA-7jvq-w6ph-p3jq CVE-2026-130383 medium Arbitrary solutionId on /admin/api/faq/update lets category-restricted editors rewrite/destroy Elasticsearch/OpenSearch index documents out of scope.
GHSA-9v23-fhgw-h97c CVE-2026-130367 medium Copy/translate pages check only global FAQ_ADD/FAQ_TRANSLATE, not category scope: add-only editors read any FAQ's drafts, ACL-restricted records, private notes.
GHSA-r8vm-2mvr-7fr2 CVE-2026-130363 medium Dashboard unpublished-FAQs widget and admin search ignore category/language-scoped FAQ_EDIT.
GHSA-5m69-5rjh-p755 CVE-2026-130355 medium POST /admin/api/faq/import CSV column 8 = true publishes without the FAQ_PUBLISH right (contributors plant sticky phishing FAQs).
GHSA-hf2c-mfvc-p4rc CVE-2026-130352 medium Public list API (GET /api/v4.0/faqs, /api/v3.1/faqs) returns the editor-only Private Notes field.
GHSA-f7x9-2m36-32jm CVE-2026-130353 medium Public FAQ REST API exposes author names/e-mails en masse, defeating privacy opt-outs.
GHSA-234w-v3h8-xch7 CVE-2026-130345 medium WebPushService::sendToAll() pushes restricted FAQ question/id/category/slug to all frontend subscribers, ACL bypass via notification fan-out.
GHSA-hq3c-rx4p-fmp7 CVE-2026-130339 medium bookmark_action=add across sequential ids then /user/bookmarks reveals unpublished draft titles.
GHSA-qv6r-8g9v-xjc2 CVE-2026-130348 medium Restricted/inactive category metadata readable unauthenticated via /category/{id}/{slug}.html and /api/v4.0/categories.
GHSA-mmjf-pc5j-8xpr CVE-2026-130343 medium Account-removal request: getUserById() called on the session user object with the attacker-supplied userId = file deletion requests as any user.
GHSA-22vj-93m4-g8x7 CVE-2026-130350 medium Delegated group/user admins submit empty rights lists (rightIds/userRights: []) to wipe all rights they do not hold.
GHSA-56cq-9h4v-c7jp CVE-2026-130341 medium Stored XSS via comments: Utils::parseUrl() strips https:// from sanitized hrefs, turning an allowed https://javascript:443/ into a live javascript: scheme.
GHSA-cvqc-pqw6-wfwf CVE-2026-130365 low SvgSanitizer bypasses on namespace-prefixed elements (<x:script>), script runs on-site on IIS.

The multisite shared-store thesis: tenant boundaries live in the backing stores, not the UI

phpMyFAQ multisite is the cleanest single-vendor demonstration of a rule that generalizes to every "many sites, one codebase" product (WordPress multisite, GitLab groups, Frappe sites, Keycloak realms, OJS): the tenant boundary is only as real as the scoping of every shared backing store. This wave found four separate unscoped stores:

  1. Session store shared across tenants (130369): same PHP session namespace, so a WebAuthn ceremony begun on tenant A is valid on tenant B. Prove: two lab tenants, prepare() on A, register() on B with the same session cookie.
  2. Redis config store shared, prefix user-settable (130351): tenant admin can reset storage.redisPrefix and write the master's config, including SMTP redirection and a known API token. The config knob itself is the weapon: save config -> redirect master SMTP -> harvest password resets.
  3. Content-addressed file blobs shared with local-only refcount (130342): linkedRecords() counts local table only, so deleting your copy unlinks the shared md5 blob. Same genealogy as the MISP stale-correlation-snapshot trio (Sept 21 precedence page): derived/local views of shared data create destruction and authorization time bombs.
  4. DB rows keyed by (id, lang) with a global permission check (130377, 130381, 130356): scope checks run against one language/route while the data load follows a different parameter. The delete leg is especially operator-shaped: a scoped right passes when the target language has no translation, an existence-shaped gap in the predicate.

Operator procedure for any multisite/multi-tenant web app in scope:

  • Enumerate shared stores first: session backend (files vs Redis vs DB, and its key prefix), config/settings table (tenant column? who can write it?), cache, search index, and content-addressed storage (uploads, attachments, exports).
  • For each store, run the cross-tenant pair probe: two disposable tenants A/B you both administer, initiate a stateful ceremony on A (login step, WebAuthn, token issuance), complete or replay it on B.
  • For every scoped-permission check, build the parameter-pair decision table: route parameter vs body/query selector vs loaded row (check-target vs load-target, cf. the Sept 21 supplied-scope rule). Vary lang, faqLanguage, solutionId, and absent-translation states.
  • Grep the admin API family for endpoints that authorize a global right while operating on scoped objects (copy/translate pages, import, dashboard widgets, search).

Installer and lifecycle legs: keep the setup route and the reset flow on the checklist

  • The forgotten installer (130371): upgrade paths that leave the web installer reachable, where the installer ignores the existing config file, are unauthenticated takeover: reinstall against your own DB, create admin. Standing recon rule: on any CMS/wiki/ERP fingerprint, probe installer leftovers (/install/, /setup/, setup.php, setup/index.php) and check whether they re-run when config exists. Same family as the Grav install-state drift (Oct 12 page).
  • External-identity accounts still have local passwords (130347): OIDC/Keycloak/Entra/LDAP/WebAuthn users accepted password-reset and received a local password. Whenever a product supports external IdPs, enumerate whether local recovery flows still issue local credentials for federated accounts: request a reset for your own federated lab account and see if mail arrives. If it does, IdP MFA is bypassable with mailbox access, and every federated account becomes a mailbox-takeover target.
  • Registration activation gates can be alternate-route misses (130354): the WebAuthn prepare path creates active accounts bypassing manual activation and domain whitelisting. Test activation/approval gates via every registration-adjacent endpoint, not just the main register form; a freely-issued CSRF token plus an unthrottled prepare endpoint also yields an unauthenticated account-enumeration oracle (130362).
  • CSRF token lifecycle is a rate-limit surface (130362, 130368): unconsumed/reusable CSRF tokens turn any guarded endpoint into an unthrottled guessing oracle. Probe: fetch a token once, replay it 50x against a sensitive endpoint from your own account; if the token survives, throttle-bypass and enumeration findings follow. Step-up re-auth prompts (old-password checks) that reuse the ambient CSRF token are unlimited offline-dictionary-shaped oracles.

Public API vs render path, and notification fan-out: the disclosure axes

Five legs share one defect: fields the rendered HTML hides (drafts, private notes, author e-mails, restricted categories) are still present in list/detail API serializers (/api/v4.0/faqs variants), bookmark side-channels, or push-notification payloads (130352, 130353, 130345, 130339, 130348). This is the wiki's standing field-ACL-in-read-verb rule (Payload Oct 6: field ACL in the read verb only, enumerate every document-returning verb) with two fresh carriers:

  • Notification fan-out is an unfiltered serializer. Subscribe to Web Push with a frontend account, have an editor publish a restricted FAQ in your lab, and diff what your subscriber receives against the anonymous view.
  • Bookmark/sidecar tables echo hidden fields. bookmark_action=add then reading /user/bookmarks exposed draft titles for ids you could never open. Sweep every sidecar feature (bookmarks, subscriptions, history, recently-viewed, share previews) for echo of fields the main view hides.
  • Enumerate API version families (/api/v3.1/ vs /api/v4.0/) independently: an old serializer keeps old leaks after the current version is fixed (also seen in the Keycloak versioned-account-route family).

Input-parsing legs worth a probe battery

  • Scheme-degradation XSS (130341): the sanitizer allows https://javascript:443/ (scheme https, safe), then a later cosmetic pass strips the https:// prefix, promoting the remainder to a javascript: URL. Rule: a sanitizer verdict is valid only for the exact bytes it inspected; any post-sanitize transformation (prefix strip, normalization, URL "pretty" rewrites) re-opens the check. Battery: submit https://javascript:, javascript: double-encoded, and protocol-relative shapes through every link field.
  • Namespace-prefix sanitizer gap (130365): element denylists matched by local name miss <x:script> on parsers that resolve prefixes leniently (IIS noted). Add namespace-prefixed spellings of every denied element/attribute to any SVG/XML upload battery (siblings of the Sept 19 SVG/data-URI sanitizer legs and the Oct 9 MathML mXSS rule).
  • Empty-list semantics (130350): rights-management endpoints treat [] as "set to nothing" without checking the caller holds the rights being removed. Include empty-array and null-array submissions in the standard authorization battery on every bulk-set endpoint (sibling of the empty-value fail-open family).

Validation boundaries

  • Lab phpMyFAQ only, two disposable multisite tenants you administer, your own Redis/Elasticsearch instances, owned mailboxes for reset/SMTP proofs, and a disposable browser subscription for Web Push. Never exercise cross-tenant legs against production SaaS or third-party hosts; the passkey-replacement and config-overwrite legs are destructive, prove on lab tenants and stop.
  • XSS proofs to inert DOM markers in your own privileged test account. E-mail disclosure proofs to your own synthetic author accounts.
  • phpMyFAQ is open source: read WebAuthnController, ConfigurationController, File deletion, Utils::parseUrl(), SvgSanitizer, and the API serializers against the version in scope before touching a customer instance; the fix diff between 4.1.11 and 4.1.12 is the per-leg map.

Related: the June 9 phpMyFAQ batch (captcha-header SQLi, TOTP user-id drift, the product's first advisory wave this year), the Sept 21 auth-precedence page (supplied-scope and MISP stale-snapshot lineage), the Oct 6 Payload page (read-verb field ACL rule), the Sept 19 WordPress sanitizer page (sanitizer scheme gaps, SVG legs), and the Oct 13 Frappe page (same "vendor inventories its own ungated routes" wave shape).