Descrizione
The Simple History – Track, Log, and Audit WordPress Changes plugin for WordPress is vulnerable to authenticated (Subscriber+) account takeover in all versions up to, and including, 5.26.0 via the event reaction endpoints (react_to_event() / unreact_to_event()). The endpoints register get_items_permissions_check() as their permission_callback, which only verifies the requester is logged in and does not enforce the per-logger capability checks normally applied by Log_Query. As a result, a Subscriber-level user can POST to /wp-json/simple-history/v1/events/<id>/react with the _fields=context query parameter and read the full context of any Simple History event — including SimpleUserLogger entries that record the full password-reset email body (reset URL with the reset key) for any user. The attacker triggers a password reset for an administrator via the lost-password form, brute-forces recent event IDs through the reaction endpoint to read the resulting user_requested_password_reset_link event, extracts the reset key from context.message, and completes the password reset to take over the administrator account. Exploitation requires an administrator to have first enabled the experimental features option (simple_history_experimental_features_enabled), which is not the default.
Tipo di vulnerabilità
CWE-640
Weak Password Recovery Mechanism for Forgotten Password
The product contains a mechanism for users to recover or change their passwords without knowing the original password, but the mechanism is weak.
Impatto sui sistemi
| Ambito | Impatto |
| Controllo degli accessi |
Aggirare i meccanismi di protezione, Ottenere privilegi o assumere un’altra identità |
| Disponibilità |
Interruzione del servizio: esaurimento di risorse |
| Integrità, Altro |
Altro |
Come si previene
Architettura e progettazione
Make sure that all input supplied by the user to the password recovery mechanism is thoroughly filtered and validated.
Architettura e progettazione
Do not use standard weak security questions and use several security questions.
Architettura e progettazione
Make sure that there is throttling on the number of incorrect answers to a security question. Disable the password recovery functionality after a certain (small) number of incorrect guesses.
Architettura e progettazione
Require that the user properly answers the security question prior to resetting their password and sending the new password to the e-mail address of record.
Architettura e progettazione
Never allow the user to control what e-mail address the new password will be sent to in the password recovery mechanism.
Architettura e progettazione
Assign a new temporary password rather than revealing the original password.
Tutte le 332 CVE di tipo CWE-640, con andamento e prevenzione