Summary
A tenant authorization bypass in phpMyFAQ multisite deployments can let an attacker replace another tenant's WebAuthn passkeys when tenants share a PHP session store. If the registration endpoint accepts session state without correctly checking the tenant and account, the attacker may be able to take over the affected account.
Affected context
The issue concerns WebAuthn passkey registration in phpMyFAQ multisite deployments. It becomes risky when tenants share a PHP session store and session state prepared in one tenant can be accepted by a registration endpoint on another tenant or the master site without enforcing the correct tenant and account relationship.
Exploit preconditions
- Attack surface: WebAuthn preparation and registration endpoints in a multisite deployment
- Required access: Access to the relevant web endpoints; the description does not specify that an existing authenticated account is required
- Trigger point: Passkey registration using session state associated with a different tenant
- Why exploitation is possible: The registration flow may fail to bind session state and the target account to the tenant handling the request
Why this happens
The underlying issue is an authorization check that does not adequately constrain access to an account by tenant. This maps to CWE-639: Authorization Bypass Through User-Controlled Key, where an operation can act on another user's resource because the relevant identifier or context is not properly authorized. In this case, session state used during WebAuthn registration is not reliably bound to the intended tenant and account.
Potential impact
- An attacker may replace a victim account's registered passkeys
- Affected accounts could be accessed through the attacker-controlled passkey
- A privileged account, including an administrator account, could be taken over if exposed to the same conditions
- Cross-tenant trust boundaries may be undermined
General mitigation guidance
Defensive patterns focus on enforcing tenant-aware authorization throughout the WebAuthn flow.
- Bind registration state to the initiating tenant, account, and intended operation, then verify those bindings at registration.
- Derive the target account from trusted server-side identity rather than accepting client-controlled identifiers as authority.
- Use tenant-scoped session state where practical, and avoid relying on shared session data as proof of authorization across tenants.
- Require an appropriate authenticated and authorized context before allowing passkey changes.
- Apply least privilege to session and application components, and invalidate or narrowly scope transient registration state.
How teams detect issues like this
- Review WebAuthn preparation and registration handlers for authorization checks that compare the active tenant, session, and target account.
- Use static analysis or code review checks to flag resource updates keyed by user-controlled identifiers without an ownership or tenant check.
- Test tenant isolation policies to confirm that registration state created in one tenant is rejected in another.
- Monitor passkey changes for mismatches between the session tenant, request tenant, and account owner, with appropriate privacy controls.

