Descrizione
The Membership Plugin – Kadence Memberships plugin for WordPress (formerly Restrict Content) is vulnerable to password reset link poisoning leading to account takeover in all versions up to, and including, 4.0.0. This is due to the legacy lost-password handler rc_process_lost_password_form() consuming the attacker-controlled rc_redirect POST parameter into two unvalidated sinks in legacy/includes/forms.php: wp_redirect( esc_url( $_POST['rc_redirect'] ) . ... ) at line 243, and add_query_arg( array( 'key' => $key, 'login' => ... ), $_POST['rc_redirect'] ) inside rc_send_password_reset_email() at line 306. The nonce required to reach the handler is broadcast by the public [login_form] shortcode at line 207 to any anonymous visitor. This makes it possible for unauthenticated attackers to issue a password-reset request for any account (including administrators) whose reset email body points the victim at an attacker-controlled host carrying a valid reset key/login. When the victim clicks the link, the reset key leaks to the attacker, who can replay it against the legitimate site to complete account takeover.
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