Making WordPress.org

Changeset 10317


Ignore:
Timestamp:
09/29/2020 07:12:30 AM (6 years ago)
Author:
dd32
Message:

SSO: Remote Login: Don't add nonces to the redirect location if the user didn't successfully authenticate yet.

This didn't allow an auth bypass as the modified url wasn't being used/exposed as no redirect was occuring.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/common/includes/wporg-sso/wp-plugin.php

    r10000 r10317  
    442442
    443443                protected function _maybe_add_remote_login_bounce( $redirect, $user = false ) {
     444                        // Authentication failed, don't need to add the login nonces yet.
     445                        if ( is_wp_error( $user ) ) {
     446                                return $redirect;
     447                        }
     448
    444449                        if ( ! $user ) {
    445450                                $user = wp_get_current_user();
Note: See TracChangeset for help on using the changeset viewer.