CVE-2026-27836: phpMyFAQ Allows Unauthenticated Account Creation via WebAuthn Prepare Endpoint

Published Feb 27, 2026
·
Updated

Summary

The WebAuthn prepare endpoint (/api/webauthn/prepare) creates new active user accounts without any authentication, CSRF protection, CAPTCHA, or configuration checks. This allows unauthenticated attackers to create unlimited user accounts even when registration is disabled.

Details

File: phpmyfaq/src/phpMyFAQ/Controller/Frontend/Api/WebAuthnController.php, lines 63-79

php #[Route(path: 'webauthn/prepare', name: 'api.private.webauthn.prepare', methods: ['POST'])] public function prepare(Request $request): JsonResponse { $data = jsondecode($request->getContent(), ...); $username = Filter::filterVar($data->username, FILTERSANITIZESPECIALCHARS);

if (!$this->user->getUserByLogin($username, raiseError: false)) { try { $this->user->createUser($username); $this->user->setStatus(status: 'active'); $this->user->setAuthSource(AuthenticationSourceType::AUTHWEBAUTHN->value); $this->user->setUserData([ 'displayname' => $username, 'email' => $username, ]);

The endpoint: 1. Accepts any POST request with a JSON username field 2. If the username doesn't exist, creates a new active user account 3. Does NOT check if WebAuthn support is enabled (security.enableWebAuthnSupport) 4. Does NOT check if registration is enabled (security.enableRegistration) 5. Does NOT verify CSRF tokens 6. Does NOT require captcha validation 7. Has no rate limiting

PoC

bash Create an account - no auth needed curl -X POST https://TARGET/api/webauthn/prepare \ -H 'Content-Type: application/json' \ -d '{"username":"attackeraccount"}'

Mass account creation for i in $(seq 1 1000); do curl -s -X POST https://TARGET/api/webauthn/prepare \ -H 'Content-Type: application/json' \ -d "{\"username\":\"spamuser$i"}" & done

Impact

- Registration bypass: Accounts created even when self-registration is disabled - Username squatting: Reserve usernames before legitimate users - Database exhaustion: Create millions of fake active accounts (DoS) - User enumeration: Different responses for existing vs new usernames - Security control bypass: WebAuthn config check is bypassed entirely

All phpMyFAQ installations with the WebAuthn controller routed (default) are affected, regardless of configuration settings.

Other sources

phpMyFAQ is an open source FAQ web application. Prior to version 4.0.18, the WebAuthn prepare endpoint (/api/webauthn/prepare) creates new active user accounts without any authentication, CSRF protection, captcha, or configuration checks. This allows unauthenticated attackers to create unlimited user accounts even when registration is disabled. Version 4.0.18 fixes the issue.

MITRE

Affected Software

3 affected componentsFixes available
PhpMyFaq phpmyfaq<4.0.18
composer/thorsten/phpmyfaq<4.0.18
4.0.18
PhpMyFaq phpmyfaq<4.0.18

Event History

Feb 27, 2026
CVE Published
via MITRE·07:54 PM
Data Sourced
via MITRE·07:54 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:21 PM
RemedyDescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·09:01 PM
Data Sourced
via GitHub·09:01 PM
DescriptionSeverityWeaknessAffected Software
Mar 23, 58145
Event
via FIRST·07:54 AM

Frequently Asked Questions

1

What is the severity of CVE-2026-27836?

The severity of CVE-2026-27836 is considered high due to its potential to allow unauthenticated user account creation.

2

How do I fix CVE-2026-27836?

To fix CVE-2026-27836, upgrade phpMyFAQ to version 4.0.18 or later.

3

What impact does CVE-2026-27836 have on phpMyFAQ users?

CVE-2026-27836 allows attackers to create user accounts without authentication, leading to potential unauthorized access.

4

Is my version of phpMyFAQ affected by CVE-2026-27836?

Any version of phpMyFAQ prior to 4.0.18 is affected by CVE-2026-27836.

5

What should I do if I cannot update phpMyFAQ to mitigate CVE-2026-27836?

If unable to update, implement strict firewall rules and monitor user activities to mitigate the risks of CVE-2026-27836.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203