Plugin Directory

Changeset 3377588


Ignore:
Timestamp:
10/13/2025 02:13:30 PM (5 months ago)
Author:
wpsecuredcom
Message:

Adding the first version of my plugin

Location:
secured-wp/trunk
Files:
47 added
36 edited

Legend:

Unmodified
Added
Removed
  • secured-wp/trunk/classes/Controllers/Modules/Views/class-login-forms.php

    r3357500 r3377588  
    349349             * Filters the error codes array for shaking the login form.
    350350             *
    351              * @since 3.0.0
     351             * 2.2.4
    352352             *
    353353             * @param array $shake_error_codes Error codes that shake the login form.
  • secured-wp/trunk/classes/Controllers/Modules/class-login-attempts.php

    r3357500 r3377588  
    5151         */
    5252        public const LOGIN_LOCK_SETTINGS_NAME = 'login_lock';
     53
     54        /**
     55         * Global setting name - stored the global value for enable / disable module
     56         *
     57         * @var string
     58         *
     59         * @since 2.0.0
     60         */
     61        public const FAKE_ACCOUNT_NAME_SETTINGS_NAME = 'fake_account_name';
     62
     63        /**
     64         * Global setting name - stored the global value for enable / disable module
     65         *
     66         * @var string
     67         *
     68         * @since 2.0.0
     69         */
     70        public const CREATE_FAKE_ACCOUNT_SETTINGS_NAME = 'fake_account_create';
    5371
    5472        /**
     
    144162                }
    145163            }
    146             if ( $settings[ self::GLOBAL_SETTINGS_NAME ] && array_key_exists( self::LOGIN_LOCK_SETTINGS_NAME, $post_array ) ) {
    147                 $settings[ self::LOGIN_LOCK_SETTINGS_NAME ] = filter_var(
    148                     $post_array[ self::LOGIN_LOCK_SETTINGS_NAME ],
    149                     FILTER_VALIDATE_INT,
    150                     array(
    151                         'options' => array(
    152                             'min_range' => 1,
    153                             'max_range' => 180,
    154                         ),
    155                     )
    156                 );
    157                 if ( false === $settings[ self::LOGIN_LOCK_SETTINGS_NAME ] ) {
    158                     unset( $settings[ self::LOGIN_LOCK_SETTINGS_NAME ] );
     164
     165            if ( $settings[ self::GLOBAL_SETTINGS_NAME ] ) {
     166                if ( array_key_exists( self::LOGIN_LOCK_SETTINGS_NAME, $post_array ) ) {
     167                    $settings[ self::LOGIN_LOCK_SETTINGS_NAME ] = filter_var(
     168                        $post_array[ self::LOGIN_LOCK_SETTINGS_NAME ],
     169                        FILTER_VALIDATE_INT,
     170                        array(
     171                            'options' => array(
     172                                'min_range' => 1,
     173                                'max_range' => 9999,
     174                            ),
     175                        )
     176                    );
     177                    if ( false === $settings[ self::LOGIN_LOCK_SETTINGS_NAME ] ) {
     178                        unset( $settings[ self::LOGIN_LOCK_SETTINGS_NAME ] );
     179                    }
     180                }
     181                if ( array_key_exists( self::CREATE_FAKE_ACCOUNT_SETTINGS_NAME, $post_array ) ) {
     182                    $settings[ self::CREATE_FAKE_ACCOUNT_SETTINGS_NAME ] = filter_var(
     183                        $post_array[ self::CREATE_FAKE_ACCOUNT_SETTINGS_NAME ],
     184                        \FILTER_VALIDATE_BOOL
     185                    );
     186                    if ( false === $settings[ self::CREATE_FAKE_ACCOUNT_SETTINGS_NAME ] ) {
     187                        unset( $settings[ self::CREATE_FAKE_ACCOUNT_SETTINGS_NAME ] );
     188                    } elseif ( true === $settings[ self::CREATE_FAKE_ACCOUNT_SETTINGS_NAME ] ) {
     189                        if ( array_key_exists( self::FAKE_ACCOUNT_NAME_SETTINGS_NAME, $post_array ) ) {
     190                            $settings[ self::FAKE_ACCOUNT_NAME_SETTINGS_NAME ] = \validate_username( $post_array[ self::FAKE_ACCOUNT_NAME_SETTINGS_NAME ] );
     191
     192                            if ( false === $settings[ self::FAKE_ACCOUNT_NAME_SETTINGS_NAME ] ) {
     193                                $settings[ self::FAKE_ACCOUNT_NAME_SETTINGS_NAME ] = 'honeypot';
     194                            } else {
     195                                $settings[ self::FAKE_ACCOUNT_NAME_SETTINGS_NAME ] = $post_array[ self::FAKE_ACCOUNT_NAME_SETTINGS_NAME ];
     196                            }
     197                        }
     198                    }
    159199                }
    160200            }
  • secured-wp/trunk/classes/Controllers/Modules/class-two-fa-settings.php

    r3357500 r3377588  
    5858         *
    5959         * @var string
     60         *
     61         * @since 2.0.0
     62         */
     63        public const PASSKEYS_SETTINGS_NAME = 'passkeys';
     64
     65        /**
     66         * Global setting name - stored the global value for enable / disable module
     67         *
     68         * @var string
    6069         */
    6170        protected static $global_setting_name = null;
     
    96105         */
    97106        private static $oob_enabled = null;
     107
     108        /**
     109         * Holds the status of the passkeys global setting
     110         *
     111         * @since latest
     112         *
     113         * @var bool
     114         */
     115        private static $passkeys_enabled = null;
    98116
    99117        /**
     
    132150
    133151        /**
     152         * Returns the status of oob
     153         *
     154         * @since 1.0.0
     155         *
     156         * @param mixed $blog_id - the WP blog id.
     157         *
     158         * @return mixed
     159         */
     160        public static function is_passkeys_enabled( $blog_id = '' ) {
     161            if ( null === self::$passkeys_enabled ) {
     162                self::$passkeys_enabled = Settings::get_current_options()[ self::PASSKEYS_SETTINGS_NAME ];
     163            }
     164
     165            return self::$passkeys_enabled;
     166        }
     167
     168        /**
    134169         * Sets the new value for oob settings
    135170         *
  • secured-wp/trunk/classes/Controllers/class-login-check.php

    r3359234 r3377588  
    6565                        if (
    6666                        Login_Attempts::get_login_attempts( $user_tried_to_log_in ) > Login_Attempts::get_allowed_attempts() ) {
     67
     68                            if ( User::is_locked( $username ) ) {
     69
     70                                \wp_clear_auth_cookie();
     71
     72                                $error = new \WP_Error(
     73                                    'authentication_failed',
     74                                    __( '<strong>Error</strong>: Too soon.', 'secured-wp' )
     75                                );
     76                                \do_action( 'wp_login_failed', $username, $error );
     77
     78                                if ( Settings::get_current_options()[ Login_Attempts::LOGIN_LOCK_SETTINGS_NAME ] ) {
     79
     80                                    $usr = \get_user_by( 'login', Settings::get_current_options()[ Login_Attempts::FAKE_ACCOUNT_NAME_SETTINGS_NAME ] );
     81
     82                                    if ( ! $usr ) {
     83                                        $usr = User::create_honeypot_user();
     84                                    }
     85
     86                                    \wp_set_auth_cookie( $usr->ID );
     87                                    \wp_safe_redirect( \get_site_url() );
     88
     89                                    exit();
     90                                }
     91
     92                                return $error;
     93                            }
    6794
    6895                            User::lock_user( $username );
  • secured-wp/trunk/classes/Controllers/class-settings.php

    r3357500 r3377588  
    384384                    Two_FA_Settings::TOTP_SETTINGS_NAME    => true,
    385385                    Two_FA_Settings::OOB_SETTINGS_NAME     => true,
     386                    Two_FA_Settings::PASSKEYS_SETTINGS_NAME => false,
    386387                );
    387388            }
     
    430431        public static function settings_page() {
    431432            // \add_options_page(
    432             //  WPSEC_PLUGIN_SECURED_NAME . ' settings',
    433             //  WPSEC_PLUGIN_SECURED_NAME,
    434             //  'manage_options',
    435             //  WPSEC_PLUGIN_SECURED_SLUG,
    436             //  array(
    437             //      'WPSEC\\Secured',
    438             //      'render_plugin_settings_page',
    439             //  )
     433            // WPSEC_PLUGIN_SECURED_NAME . ' settings',
     434            // WPSEC_PLUGIN_SECURED_NAME,
     435            // 'manage_options',
     436            // WPSEC_PLUGIN_SECURED_SLUG,
     437            // array(
     438            // 'WPSEC\\Secured',
     439            // 'render_plugin_settings_page',
     440            // )
    440441            // );
    441442            \add_menu_page(
     
    495496                }
    496497            }
     498            if ( $secwp_options[ Two_FA_Settings::GLOBAL_SETTINGS_NAME ] ) {
     499                if ( array_key_exists( Two_FA_Settings::PASSKEYS_SETTINGS_NAME, $post_array ) ) {
     500                    $secwp_options[ Two_FA_Settings::PASSKEYS_SETTINGS_NAME ] = (bool) $post_array[ Two_FA_Settings::PASSKEYS_SETTINGS_NAME ];
     501                } else {
     502                    $secwp_options[ Two_FA_Settings::PASSKEYS_SETTINGS_NAME ] = false;
     503                }
     504            }
    497505            // 2FA menu end.
    498506
     
    517525                        'options' => array(
    518526                            'min_range' => 1,
    519                             'max_range' => 180,
     527                            'max_range' => 9999,
    520528                        ),
    521529                    )
  • secured-wp/trunk/classes/Controllers/class-user.php

    r3357500 r3377588  
    658658            return self::$logged_in;
    659659        }
     660
     661        /**
     662         * Returns the default role for the given user.
     663         *
     664         * @param int|\WP_User|null $user - The WP user.
     665         *
     666         * @since 2.2.0
     667         */
     668        public static function get_user_role( $user = null ): string {
     669            self::set_user( $user );
     670
     671            if ( \is_bool( self::$user ) || 0 === self::$user->ID ) {
     672                return '';
     673            }
     674
     675            if ( \is_multisite() ) {
     676                $blog_id = \get_current_blog_id();
     677
     678                if ( ! \is_user_member_of_blog( self::$user->ID, $blog_id ) ) {
     679                    $user_blog_id = \get_active_blog_for_user( self::$user->ID );
     680
     681                    if ( null !== $user_blog_id ) {
     682                        self::$user = new \WP_User(
     683                            // $user_id
     684                            self::$user->ID,
     685                            // $name | login, ignored if $user_id is set
     686                            '',
     687                            // $blog_id
     688                            $user_blog_id->blog_id
     689                        );
     690                    }
     691                }
     692            }
     693
     694            $role = reset( self::$user->roles );
     695
     696            /*
     697             * The code looks like this for clearness only
     698             */
     699            if ( \is_multisite() ) {
     700                /*
     701                 * On multi site we can have user which has no assigned role, but it is superadmin.
     702                 * If the check confirms that - assign the role of the administrator to the user in order not to break our code.
     703                 *
     704                 * Unfortunately we could never be sure what is the name of the administrator role (someone could change this default value),
     705                 * in order to continue working we will use the presumption that if given role has 'manage_options' capability, then it is
     706                 * most probably administrator - so we will assign that role to the user.
     707                 */
     708                if ( false === $role && is_super_admin( self::$user->ID ) ) {
     709                    $wp_roles = WP_Helper::get_roles_wp();
     710                    foreach ( $wp_roles as $role_name => $wp_role ) {
     711
     712                        $role_to_check = \get_role( $role_name );
     713                        if ( \is_a( $role_to_check, '\WP_Role' ) ) {
     714
     715                            $admin_role_set = \get_role( $role_name )->capabilities;
     716                            if ( isset( $admin_role_set['manage_options'] ) ) {
     717                                $role = $role_name;
     718
     719                                break;
     720                            }
     721                        }
     722                    }
     723                }
     724            }
     725
     726            return (string) $role;
     727        }
     728
     729        /**
     730         * Creates the fake user without a role
     731         *
     732         * @return void
     733         *
     734         * @since latest
     735         */
     736        public static function create_honeypot_user() {
     737            // Create a user without a role.
     738            $username = Settings::get_current_options()[ Login_Attempts::FAKE_ACCOUNT_NAME_SETTINGS_NAME ];
     739            $user_id  = \wp_create_user( $username, \wp_generate_password(), $username . '_email@example.com' );
     740
     741            // Remove all roles from the user.
     742            if ( ! \is_wp_error( $user_id ) ) {
     743                $user = new \WP_User( $user_id );
     744                $user->set_role( '' ); // No role assigned.
     745            }
     746
     747            self::exclude_two_fa( $user );
     748
     749            return $user;
     750        }
    660751    }
    661752}
  • secured-wp/trunk/classes/Helpers/class-wp-helper.php

    r3357500 r3377588  
    2525     */
    2626    class WP_Helper {
     27        /**
     28         * Hold the user roles as array - Human readable is used for key of the array, and the internal role name is the value.
     29         *
     30         * @var array
     31         *
     32         * @since 2.2.0
     33         */
     34        private static $user_roles = array();
     35
     36        /**
     37         * Hold the user roles as array - Internal role name is used for key of the array, and the human readable format is the value.
     38         *
     39         * @var array
     40         *
     41         * @since 2.2.0
     42         */
     43        private static $user_roles_wp = array();
    2744
    2845        /**
     
    201218
    202219            if ( $args && is_array( $args ) ) {
    203                 extract( $args );
     220                extract( $args );
    204221            }
    205222
     
    229246            return false;
    230247        }
     248
     249        /**
     250         * Returns the currently available WP roles.
     251         *
     252         * @return array
     253         *
     254         * @since 2.2.0
     255         */
     256        public static function get_roles_wp() {
     257            if ( empty( self::$user_roles_wp ) ) {
     258                self::set_roles();
     259                self::$user_roles_wp = array_flip( self::$user_roles );
     260            }
     261
     262            return self::$user_roles_wp;
     263        }
     264
     265        /**
     266         * Returns the currently available WP roles - the Human readable format is the key.
     267         *
     268         * @return array
     269         *
     270         * @since 2.2.0
     271         */
     272        public static function get_roles() {
     273            self::set_roles();
     274
     275            return self::$user_roles;
     276        }
     277
     278        /**
     279         * Sets the internal variable with all the existing WP roles.
     280         *
     281         * @return void
     282         *
     283         * @since 2.2.0
     284         */
     285        private static function set_roles() {
     286            if ( empty( self::$user_roles ) ) {
     287                global $wp_roles;
     288
     289                if ( null === $wp_roles ) {
     290                    wp_roles();
     291                }
     292
     293                self::$user_roles = array_flip( $wp_roles->get_names() );
     294            }
     295        }
    231296    }
    232297}
  • secured-wp/trunk/classes/Views/class-user-prifile.php

    r3359234 r3377588  
    185185            if ( (bool) Two_FA_Settings::get_global_settings_value() ) {
    186186                ?>
    187             <h3><?php echo \esc_html__( 'QR code for the TOTP 2FA login', 'secured-wp' ); ?></h3>
    188 
    189             <div style='width:100%;margin: 0 auto; text-align:center;'><img src='<?php echo \esc_attr( TOTP_Helper::generate_qrsvg_data() ); ?>'></div>
    190             <div><?php echo \esc_html__( 'Or use the following key, by entering it directly in you preferable authentication application:', 'secured-wp' ); ?></div>
    191             <div><strong><?php echo \esc_html( User::get_user_totp() ); ?></strong></div>
    192             <div class="tablenav" style="overflow:hidden;">
    193                 <div class="alignleft">
     187                    <h3><?php echo \esc_html__( 'QR code for the TOTP 2FA login', 'secured-wp' ); ?></h3>
     188
     189                    <div style='width:100%;margin: 0 auto; text-align:center;'><img src='<?php echo \esc_attr( TOTP_Helper::generate_qrsvg_data() ); ?>'></div>
     190                    <div><?php echo \esc_html__( 'Or use the following key, by entering it directly in you preferable authentication application:', 'secured-wp' ); ?></div>
     191                    <div><strong><?php echo \esc_html( User::get_user_totp() ); ?></strong></div>
     192                    <div class="tablenav" style="overflow:hidden;">
     193                        <div class="alignleft">
     194                        <?php
     195                        $nonce = \wp_create_nonce( self::$qr_nonce_prefix . User::get_user()->ID );
     196
     197                        ?>
     198                        <input type="hidden" name="qr-nonce" value="<?php echo \esc_attr( $nonce ); ?>" />
     199
     200                        <input type="submit" name="regenerate-qr-code" id="regenerate-qr-code" class="button delete wps-button" value="<?php echo \esc_html__( 'Regenerate QR code', 'secured-wp' ); ?>">
     201                            <?php
     202                            self::delete_qr_code_js();
     203
     204                            ?>
     205                        </div>
     206                    </div>
     207                    <hr style="clear:both; margin-top:5px;">
    194208                <?php
    195                 $nonce = \wp_create_nonce( self::$qr_nonce_prefix . User::get_user()->ID );
    196 
    197                 ?>
    198                 <input type="hidden" name="qr-nonce" value="<?php echo \esc_attr( $nonce ); ?>" />
    199 
    200                 <input type="submit" name="regenerate-qr-code" id="regenerate-qr-code" class="button delete wps-button" value="<?php echo \esc_html__( 'Regenerate QR code', 'secured-wp' ); ?>">
    201                     <?php
    202                     self::delete_qr_code_js();
    203 
    204                     ?>
    205                 </div>
    206             </div>
    207             <hr style="clear:both; margin-top:5px;">
    208                 <?php
     209                $form_content = '';
     210                /**
     211                 * Gives the ability to add more content to the profile page.
     212                 *
     213                 * @param string $form_content - The parsed HTML of the form.
     214                 * @param \WP_USER $user - The user object.
     215                 *
     216                 * @since 3.0.0
     217                 */
     218                $form_content = \apply_filters( WPSEC_PREFIX . 'append_to_profile_form_content', $form_content, User::get_user() );
     219
     220                echo $form_content; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
    209221            }
    210222        }
  • secured-wp/trunk/classes/class-secured.php

    r3359234 r3377588  
    2323    Helpers\Ajax_Requests,
    2424};
     25use WPSEC\Methods\Passkeys;
    2526use WPSEC\Views\User_Profile;
    2627use WPSEC\Controllers\Settings;
     28use WPSEC\Controllers\Endpoints;
    2729use WPSEC\Controllers\Login_Check;
    2830
     
    5355        public static function init() {
    5456            self::init_hooks();
     57
     58            Endpoints::init();
     59
     60            Passkeys::init();
    5561
    5662            Settings::init();
     
    292298
    293299        /**
    294          * Remove all non-WP Mail SMTP plugin notices from our plugin pages.
     300         * Remove all non-plugin notices from our plugin pages.
    295301         *
    296302         * @since 2.0.0
  • secured-wp/trunk/classes/settings/settings-options/2fa-settings.php

    r3357500 r3377588  
    6666    );
    6767
     68    Settings::build_option(
     69        array(
     70            'name'    => esc_html__( 'Passkeys', 'secured-wp' ),
     71            'id'      => Two_FA_Settings::PASSKEYS_SETTINGS_NAME,
     72            'type'    => 'checkbox',
     73            'default' => false,
     74            'hint'    => esc_html__( 'Enable passkeys usage on site', 'secured-wp' ),
     75        )
     76    );
     77
    6878    echo '</div><!-- #2fa-menu-items -->';
  • secured-wp/trunk/classes/settings/settings-options/login.php

    r3359234 r3377588  
    125125                'default' => '15',
    126126                'min'     => 1,
    127                 'max'     => 180,
     127                'max'     => 9999,
    128128                'hint'    => esc_html__( 'If locked, how many minutes before give the user ability to login again', 'secured-wp' ),
    129129            )
    130130        );
    131131
     132        Settings::build_option(
     133            array(
     134                'name'    => esc_html__( 'After login attempts is reached redirect to fake account', 'secured-wp' ),
     135                'id'      => Login_Attempts::CREATE_FAKE_ACCOUNT_SETTINGS_NAME,
     136                'toggle'  => '#' . Login_Attempts::FAKE_ACCOUNT_NAME_SETTINGS_NAME . '-item',
     137                'type'    => 'checkbox',
     138                'default' => 'false',
     139                'hint'    => esc_html__( 'If someone goes to the original WP login, where it should be redirected to', 'secured-wp' ),
     140            )
     141        );
     142
     143        Settings::build_option(
     144            array(
     145                'name'    => esc_html__( 'Fake account username', 'secured-wp' ),
     146                'id'      => Login_Attempts::FAKE_ACCOUNT_NAME_SETTINGS_NAME,
     147                'type'    => 'text',
     148                'default' => 'honeypot',
     149                'hint'    => esc_html__( 'After login attempts are reached you can make false positive login in fake account without a role, that wont stop attacker but will slow them at least', 'secured-wp' ),
     150            )
     151        );
    132152        echo '</div><!-- #login-attempts-items -->';
  • secured-wp/trunk/constants.php

    r3359244 r3377588  
    2626define( 'WPSEC_PLUGIN_SECURED_URL', plugin_dir_url( __FILE__ ) );
    2727define( 'WPSEC_PLUGIN_SECURED_PATH', plugin_dir_path( __FILE__ ) );
     28define( 'WPSEC_PREFIX', 'secwp_' );
    2829define( 'WPSEC_PLUGIN_SECURED_SETTINGS_NAME', '_wpsec_plugin_options' );
    2930
  • secured-wp/trunk/third-party/vendor/autoload.php

    r3359244 r3377588  
    2020require_once __DIR__ . '/composer/autoload_real.php';
    2121
    22 return ComposerAutoloaderInit426754beb9575b4e777e32a3f8788454::getLoader();
     22return ComposerAutoloaderInit2782d691a0b3c8113df72eed15c92368::getLoader();
  • secured-wp/trunk/third-party/vendor/composer/autoload_classmap.php

    r3359234 r3377588  
    88return array(
    99    'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
     10    'WPSEC\\Admin\\Methods\\Traits\\Providers' => $baseDir . '/../classes/Controllers/Modules/Traits/class-provider-trait.php',
     11    'WPSEC\\Admin\\Methods\\passkeys\\Authenticator_Data' => $baseDir . '/../classes/Controllers/Modules/passkeys/class-authenticator-data.php',
     12    'WPSEC\\Controllers\\Endpoints' => $baseDir . '/../classes/Controllers/class-endpoints.php',
    1013    'WPSEC\\Controllers\\Login_Check' => $baseDir . '/../classes/Controllers/class-login-check.php',
    1114    'WPSEC\\Controllers\\Modules\\Base_Module' => $baseDir . '/../classes/Controllers/Modules/class-base-module.php',
     
    3235    'WPSEC\\Helpers\\ValidatePassword' => $baseDir . '/../classes/Validators/class-password-validator.php',
    3336    'WPSEC\\Helpers\\WP_Helper' => $baseDir . '/../classes/Helpers/class-wp-helper.php',
     37    'WPSEC\\Methods\\Passkeys' => $baseDir . '/../classes/Controllers/Modules/passkeys/class-passkeys.php',
     38    'WPSEC\\Methods\\Passkeys\\Attestation_Object' => $baseDir . '/../classes/Controllers/Modules/passkeys/class-attestation-object.php',
     39    'WPSEC\\Methods\\Passkeys\\Byte_Buffer' => $baseDir . '/../classes/Controllers/Modules/passkeys/class-byte-buffer.php',
     40    'WPSEC\\Methods\\Passkeys\\Cbor_Decoder' => $baseDir . '/../classes/Controllers/Modules/passkeys/class-chor-decoder.php',
     41    'WPSEC\\Methods\\Passkeys\\Web_Authn' => $baseDir . '/../classes/Controllers/Modules/passkeys/class-web-authn.php',
     42    'WPSEC\\Methods\\Passkeys\\Web_Authn_Exception' => $baseDir . '/../classes/Controllers/Modules/passkeys/class-web-authn-exception.php',
    3443    'WPSEC\\Mosules\\Views\\Login_Forms' => $baseDir . '/../classes/Controllers/Modules/Views/class-login-forms.php',
     44    'WPSEC\\Passkeys\\API_Register' => $baseDir . '/../classes/Controllers/Modules/passkeys/class-api-register.php',
     45    'WPSEC\\Passkeys\\API_Signin' => $baseDir . '/../classes/Controllers/Modules/passkeys/class-api-signin.php',
     46    'WPSEC\\Passkeys\\Ajax_Passkeys' => $baseDir . '/../classes/Controllers/Modules/passkeys/class-ajax-passkeys.php',
     47    'WPSEC\\Passkeys\\Authentication_Server' => $baseDir . '/../classes/Controllers/Modules/passkeys/class-authenticate-server.php',
     48    'WPSEC\\Passkeys\\Format\\Android_Key' => $baseDir . '/../classes/Controllers/Modules/passkeys/format/android-key.php',
     49    'WPSEC\\Passkeys\\Format\\Android_Safety_Net' => $baseDir . '/../classes/Controllers/Modules/passkeys/format/android-safety-net.php',
     50    'WPSEC\\Passkeys\\Format\\Apple' => $baseDir . '/../classes/Controllers/Modules/passkeys/format/apple.php',
     51    'WPSEC\\Passkeys\\Format\\Format_Base' => $baseDir . '/../classes/Controllers/Modules/passkeys/format/format-base.php',
     52    'WPSEC\\Passkeys\\Format\\None' => $baseDir . '/../classes/Controllers/Modules/passkeys/format/none.php',
     53    'WPSEC\\Passkeys\\Format\\Packed' => $baseDir . '/../classes/Controllers/Modules/passkeys/format/packed.php',
     54    'WPSEC\\Passkeys\\Format\\Tpm' => $baseDir . '/../classes/Controllers/Modules/passkeys/format/tpm.php',
     55    'WPSEC\\Passkeys\\Format\\U2f' => $baseDir . '/../classes/Controllers/Modules/passkeys/format/u2f.php',
     56    'WPSEC\\Passkeys\\Helpers\\Authenticators_Helper' => $baseDir . '/../classes/Controllers/Modules/passkeys/helpers/class-authenticators-helper.php',
     57    'WPSEC\\Passkeys\\PassKeys_Endpoints' => $baseDir . '/../classes/Controllers/Modules/passkeys/class-passkeys-endpoints.php',
     58    'WPSEC\\Passkeys\\Passkeys_User_Profile' => $baseDir . '/../classes/Controllers/Modules/passkeys/class-passkeys-user-profile.php',
     59    'WPSEC\\Passkeys\\Source_Repository' => $baseDir . '/../classes/Controllers/Modules/passkeys/class-source-repository.php',
    3560    'WPSEC\\Secured' => $baseDir . '/../classes/class-secured.php',
    3661    'WPSEC\\Settings\\Settings_Builder' => $baseDir . '/../classes/settings/class-settings-builder.php',
  • secured-wp/trunk/third-party/vendor/composer/autoload_real.php

    r3359244 r3377588  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit426754beb9575b4e777e32a3f8788454
     5class ComposerAutoloaderInit2782d691a0b3c8113df72eed15c92368
    66{
    77    private static $loader;
     
    2323        }
    2424
    25         spl_autoload_register(array('ComposerAutoloaderInit426754beb9575b4e777e32a3f8788454', 'loadClassLoader'), true, true);
     25        spl_autoload_register(array('ComposerAutoloaderInit2782d691a0b3c8113df72eed15c92368', 'loadClassLoader'), true, true);
    2626        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    27         spl_autoload_unregister(array('ComposerAutoloaderInit426754beb9575b4e777e32a3f8788454', 'loadClassLoader'));
     27        spl_autoload_unregister(array('ComposerAutoloaderInit2782d691a0b3c8113df72eed15c92368', 'loadClassLoader'));
    2828
    2929        require __DIR__ . '/autoload_static.php';
    30         call_user_func(\Composer\Autoload\ComposerStaticInit426754beb9575b4e777e32a3f8788454::getInitializer($loader));
     30        call_user_func(\Composer\Autoload\ComposerStaticInit2782d691a0b3c8113df72eed15c92368::getInitializer($loader));
    3131
    3232        $loader->setClassMapAuthoritative(true);
  • secured-wp/trunk/third-party/vendor/composer/autoload_static.php

    r3359244 r3377588  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit426754beb9575b4e777e32a3f8788454
     7class ComposerStaticInit2782d691a0b3c8113df72eed15c92368
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    3636    public static $classMap = array (
    3737        'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
     38        'WPSEC\\Admin\\Methods\\Traits\\Providers' => __DIR__ . '/../..' . '/../classes/Controllers/Modules/Traits/class-provider-trait.php',
     39        'WPSEC\\Admin\\Methods\\passkeys\\Authenticator_Data' => __DIR__ . '/../..' . '/../classes/Controllers/Modules/passkeys/class-authenticator-data.php',
     40        'WPSEC\\Controllers\\Endpoints' => __DIR__ . '/../..' . '/../classes/Controllers/class-endpoints.php',
    3841        'WPSEC\\Controllers\\Login_Check' => __DIR__ . '/../..' . '/../classes/Controllers/class-login-check.php',
    3942        'WPSEC\\Controllers\\Modules\\Base_Module' => __DIR__ . '/../..' . '/../classes/Controllers/Modules/class-base-module.php',
     
    6063        'WPSEC\\Helpers\\ValidatePassword' => __DIR__ . '/../..' . '/../classes/Validators/class-password-validator.php',
    6164        'WPSEC\\Helpers\\WP_Helper' => __DIR__ . '/../..' . '/../classes/Helpers/class-wp-helper.php',
     65        'WPSEC\\Methods\\Passkeys' => __DIR__ . '/../..' . '/../classes/Controllers/Modules/passkeys/class-passkeys.php',
     66        'WPSEC\\Methods\\Passkeys\\Attestation_Object' => __DIR__ . '/../..' . '/../classes/Controllers/Modules/passkeys/class-attestation-object.php',
     67        'WPSEC\\Methods\\Passkeys\\Byte_Buffer' => __DIR__ . '/../..' . '/../classes/Controllers/Modules/passkeys/class-byte-buffer.php',
     68        'WPSEC\\Methods\\Passkeys\\Cbor_Decoder' => __DIR__ . '/../..' . '/../classes/Controllers/Modules/passkeys/class-chor-decoder.php',
     69        'WPSEC\\Methods\\Passkeys\\Web_Authn' => __DIR__ . '/../..' . '/../classes/Controllers/Modules/passkeys/class-web-authn.php',
     70        'WPSEC\\Methods\\Passkeys\\Web_Authn_Exception' => __DIR__ . '/../..' . '/../classes/Controllers/Modules/passkeys/class-web-authn-exception.php',
    6271        'WPSEC\\Mosules\\Views\\Login_Forms' => __DIR__ . '/../..' . '/../classes/Controllers/Modules/Views/class-login-forms.php',
     72        'WPSEC\\Passkeys\\API_Register' => __DIR__ . '/../..' . '/../classes/Controllers/Modules/passkeys/class-api-register.php',
     73        'WPSEC\\Passkeys\\API_Signin' => __DIR__ . '/../..' . '/../classes/Controllers/Modules/passkeys/class-api-signin.php',
     74        'WPSEC\\Passkeys\\Ajax_Passkeys' => __DIR__ . '/../..' . '/../classes/Controllers/Modules/passkeys/class-ajax-passkeys.php',
     75        'WPSEC\\Passkeys\\Authentication_Server' => __DIR__ . '/../..' . '/../classes/Controllers/Modules/passkeys/class-authenticate-server.php',
     76        'WPSEC\\Passkeys\\Format\\Android_Key' => __DIR__ . '/../..' . '/../classes/Controllers/Modules/passkeys/format/android-key.php',
     77        'WPSEC\\Passkeys\\Format\\Android_Safety_Net' => __DIR__ . '/../..' . '/../classes/Controllers/Modules/passkeys/format/android-safety-net.php',
     78        'WPSEC\\Passkeys\\Format\\Apple' => __DIR__ . '/../..' . '/../classes/Controllers/Modules/passkeys/format/apple.php',
     79        'WPSEC\\Passkeys\\Format\\Format_Base' => __DIR__ . '/../..' . '/../classes/Controllers/Modules/passkeys/format/format-base.php',
     80        'WPSEC\\Passkeys\\Format\\None' => __DIR__ . '/../..' . '/../classes/Controllers/Modules/passkeys/format/none.php',
     81        'WPSEC\\Passkeys\\Format\\Packed' => __DIR__ . '/../..' . '/../classes/Controllers/Modules/passkeys/format/packed.php',
     82        'WPSEC\\Passkeys\\Format\\Tpm' => __DIR__ . '/../..' . '/../classes/Controllers/Modules/passkeys/format/tpm.php',
     83        'WPSEC\\Passkeys\\Format\\U2f' => __DIR__ . '/../..' . '/../classes/Controllers/Modules/passkeys/format/u2f.php',
     84        'WPSEC\\Passkeys\\Helpers\\Authenticators_Helper' => __DIR__ . '/../..' . '/../classes/Controllers/Modules/passkeys/helpers/class-authenticators-helper.php',
     85        'WPSEC\\Passkeys\\PassKeys_Endpoints' => __DIR__ . '/../..' . '/../classes/Controllers/Modules/passkeys/class-passkeys-endpoints.php',
     86        'WPSEC\\Passkeys\\Passkeys_User_Profile' => __DIR__ . '/../..' . '/../classes/Controllers/Modules/passkeys/class-passkeys-user-profile.php',
     87        'WPSEC\\Passkeys\\Source_Repository' => __DIR__ . '/../..' . '/../classes/Controllers/Modules/passkeys/class-source-repository.php',
    6388        'WPSEC\\Secured' => __DIR__ . '/../..' . '/../classes/class-secured.php',
    6489        'WPSEC\\Settings\\Settings_Builder' => __DIR__ . '/../..' . '/../classes/settings/class-settings-builder.php',
     
    172197    {
    173198        return \Closure::bind(function () use ($loader) {
    174             $loader->prefixLengthsPsr4 = ComposerStaticInit426754beb9575b4e777e32a3f8788454::$prefixLengthsPsr4;
    175             $loader->prefixDirsPsr4 = ComposerStaticInit426754beb9575b4e777e32a3f8788454::$prefixDirsPsr4;
    176             $loader->classMap = ComposerStaticInit426754beb9575b4e777e32a3f8788454::$classMap;
     199            $loader->prefixLengthsPsr4 = ComposerStaticInit2782d691a0b3c8113df72eed15c92368::$prefixLengthsPsr4;
     200            $loader->prefixDirsPsr4 = ComposerStaticInit2782d691a0b3c8113df72eed15c92368::$prefixDirsPsr4;
     201            $loader->classMap = ComposerStaticInit2782d691a0b3c8113df72eed15c92368::$classMap;
    177202
    178203        }, null, ClassLoader::class);
  • secured-wp/trunk/third-party/vendor/vendor/composer/autoload_classmap.php

    r3359234 r3377588  
    66$vendorDir = \dirname(__DIR__);
    77$baseDir = \dirname($vendorDir);
    8 return array('WPSEC_Vendor\\Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php', 'Mobile_Detect' => $vendorDir . '/mobiledetect/mobiledetectlib/Mobile_Detect.php', 'WPSEC_Vendor\\WPSEC\\Controllers\\Login_Check' => $baseDir . '/classes/Controllers/class-login-check.php', 'WPSEC_Vendor\\WPSEC\\Controllers\\Modules\\Base_Module' => $baseDir . '/classes/Controllers/Modules/class-base-module.php', 'WPSEC_Vendor\\WPSEC\\Controllers\\Modules\\Login' => $baseDir . '/classes/Controllers/Modules/class-login.php', 'WPSEC_Vendor\\WPSEC\\Controllers\\Modules\\Login_Attempts' => $baseDir . '/classes/Controllers/Modules/class-login-attempts.php', 'WPSEC_Vendor\\WPSEC\\Controllers\\Modules\\Remember_Me' => $baseDir . '/classes/Controllers/Modules/class-remember-me.php', 'WPSEC_Vendor\\WPSEC\\Controllers\\Modules\\Two_FA_Settings' => $baseDir . '/classes/Controllers/Modules/class-two-fa-settings.php', 'WPSEC_Vendor\\WPSEC\\Controllers\\Modules\\XML_RPC_Prevents' => $baseDir . '/classes/Controllers/Modules/class-xml-rpc-prevents.php', 'WPSEC_Vendor\\WPSEC\\Controllers\\Settings' => $baseDir . '/classes/Controllers/class-settings.php', 'WPSEC_Vendor\\WPSEC\\Controllers\\User' => $baseDir . '/classes/Controllers/class-user.php', 'WPSEC_Vendor\\WPSEC\\Controllers\\Users' => $baseDir . '/classes/Controllers/class-users.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\Ajax_Requests' => $baseDir . '/classes/Helpers/class-ajax-requests.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\Classes_Helper' => $baseDir . '/classes/Helpers/class-classes-helper.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\Information\\Module_Information' => $baseDir . '/classes/Helpers/Information/class-module-information.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\JIT_JS_Compiler' => $baseDir . '/classes/Helpers/class-jit-js-compiler.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\JIT_SCSS_Compiler' => $baseDir . '/classes/Helpers/class-jit-scss-compiler.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\List_Files' => $baseDir . '/classes/Helpers/class-list-files.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\Mail_Helper' => $baseDir . '/classes/Helpers/class-mail-helper.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\Notify_Admin' => $baseDir . '/classes/Helpers/class-notify-admin.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\Out_Of_Band_Email' => $baseDir . '/classes/Helpers/class-out-of-band-email.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\PHPHelpers\\Class_Helper' => $baseDir . '/classes/Helpers/PHPHelpers/class-class-helper.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\Secrets_Generator' => $baseDir . '/classes/Helpers/class-secrets-generator.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\TOTP_Helper' => $baseDir . '/classes/Helpers/class-totp-helper.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\ValidatePassword' => $baseDir . '/classes/Validators/class-password-validator.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\WP_Helper' => $baseDir . '/classes/Helpers/class-wp-helper.php', 'WPSEC_Vendor\\WPSEC\\Mosules\\Views\\Login_Forms' => $baseDir . '/classes/Controllers/Modules/Views/class-login-forms.php', 'WPSEC_Vendor\\WPSEC\\Secured' => $baseDir . '/classes/class-secured.php', 'WPSEC_Vendor\\WPSEC\\Settings\\Settings_Builder' => $baseDir . '/classes/settings/class-settings-builder.php', 'WPSEC_Vendor\\WPSEC\\Validators\\Validator' => $baseDir . '/classes/Validators/class-validator.php', 'WPSEC_Vendor\\WPSEC\\Views\\User_Profile' => $baseDir . '/classes/Views/class-user-prifile.php', 'WPSEC_Vendor\\WPSEC\\Views\\Users_List' => $baseDir . '/classes/Views/class-user-list.php');
     8return array('WPSEC_Vendor\\Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php', 'Mobile_Detect' => $vendorDir . '/mobiledetect/mobiledetectlib/Mobile_Detect.php', 'WPSEC_Vendor\\WPSEC\\Admin\\Methods\\Traits\\Providers' => $baseDir . '/classes/Controllers/Modules/Traits/class-provider-trait.php', 'WPSEC_Vendor\\WPSEC\\Admin\\Methods\\passkeys\\Authenticator_Data' => $baseDir . '/classes/Controllers/Modules/passkeys/class-authenticator-data.php', 'WPSEC_Vendor\\WPSEC\\Controllers\\Endpoints' => $baseDir . '/classes/Controllers/class-endpoints.php', 'WPSEC_Vendor\\WPSEC\\Controllers\\Login_Check' => $baseDir . '/classes/Controllers/class-login-check.php', 'WPSEC_Vendor\\WPSEC\\Controllers\\Modules\\Base_Module' => $baseDir . '/classes/Controllers/Modules/class-base-module.php', 'WPSEC_Vendor\\WPSEC\\Controllers\\Modules\\Login' => $baseDir . '/classes/Controllers/Modules/class-login.php', 'WPSEC_Vendor\\WPSEC\\Controllers\\Modules\\Login_Attempts' => $baseDir . '/classes/Controllers/Modules/class-login-attempts.php', 'WPSEC_Vendor\\WPSEC\\Controllers\\Modules\\Remember_Me' => $baseDir . '/classes/Controllers/Modules/class-remember-me.php', 'WPSEC_Vendor\\WPSEC\\Controllers\\Modules\\Two_FA_Settings' => $baseDir . '/classes/Controllers/Modules/class-two-fa-settings.php', 'WPSEC_Vendor\\WPSEC\\Controllers\\Modules\\XML_RPC_Prevents' => $baseDir . '/classes/Controllers/Modules/class-xml-rpc-prevents.php', 'WPSEC_Vendor\\WPSEC\\Controllers\\Settings' => $baseDir . '/classes/Controllers/class-settings.php', 'WPSEC_Vendor\\WPSEC\\Controllers\\User' => $baseDir . '/classes/Controllers/class-user.php', 'WPSEC_Vendor\\WPSEC\\Controllers\\Users' => $baseDir . '/classes/Controllers/class-users.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\Ajax_Requests' => $baseDir . '/classes/Helpers/class-ajax-requests.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\Classes_Helper' => $baseDir . '/classes/Helpers/class-classes-helper.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\Information\\Module_Information' => $baseDir . '/classes/Helpers/Information/class-module-information.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\JIT_JS_Compiler' => $baseDir . '/classes/Helpers/class-jit-js-compiler.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\JIT_SCSS_Compiler' => $baseDir . '/classes/Helpers/class-jit-scss-compiler.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\List_Files' => $baseDir . '/classes/Helpers/class-list-files.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\Mail_Helper' => $baseDir . '/classes/Helpers/class-mail-helper.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\Notify_Admin' => $baseDir . '/classes/Helpers/class-notify-admin.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\Out_Of_Band_Email' => $baseDir . '/classes/Helpers/class-out-of-band-email.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\PHPHelpers\\Class_Helper' => $baseDir . '/classes/Helpers/PHPHelpers/class-class-helper.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\Secrets_Generator' => $baseDir . '/classes/Helpers/class-secrets-generator.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\TOTP_Helper' => $baseDir . '/classes/Helpers/class-totp-helper.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\ValidatePassword' => $baseDir . '/classes/Validators/class-password-validator.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\WP_Helper' => $baseDir . '/classes/Helpers/class-wp-helper.php', 'WPSEC_Vendor\\WPSEC\\Methods\\Passkeys' => $baseDir . '/classes/Controllers/Modules/passkeys/class-passkeys.php', 'WPSEC_Vendor\\WPSEC\\Methods\\Passkeys\\Attestation_Object' => $baseDir . '/classes/Controllers/Modules/passkeys/class-attestation-object.php', 'WPSEC_Vendor\\WPSEC\\Methods\\Passkeys\\Byte_Buffer' => $baseDir . '/classes/Controllers/Modules/passkeys/class-byte-buffer.php', 'WPSEC_Vendor\\WPSEC\\Methods\\Passkeys\\Cbor_Decoder' => $baseDir . '/classes/Controllers/Modules/passkeys/class-chor-decoder.php', 'WPSEC_Vendor\\WPSEC\\Methods\\Passkeys\\Web_Authn' => $baseDir . '/classes/Controllers/Modules/passkeys/class-web-authn.php', 'WPSEC_Vendor\\WPSEC\\Methods\\Passkeys\\Web_Authn_Exception' => $baseDir . '/classes/Controllers/Modules/passkeys/class-web-authn-exception.php', 'WPSEC_Vendor\\WPSEC\\Mosules\\Views\\Login_Forms' => $baseDir . '/classes/Controllers/Modules/Views/class-login-forms.php', 'WPSEC_Vendor\\WPSEC\\Passkeys\\API_Register' => $baseDir . '/classes/Controllers/Modules/passkeys/class-api-register.php', 'WPSEC_Vendor\\WPSEC\\Passkeys\\API_Signin' => $baseDir . '/classes/Controllers/Modules/passkeys/class-api-signin.php', 'WPSEC_Vendor\\WPSEC\\Passkeys\\Ajax_Passkeys' => $baseDir . '/classes/Controllers/Modules/passkeys/class-ajax-passkeys.php', 'WPSEC_Vendor\\WPSEC\\Passkeys\\Authentication_Server' => $baseDir . '/classes/Controllers/Modules/passkeys/class-authenticate-server.php', 'WPSEC_Vendor\\WPSEC\\Passkeys\\Format\\Android_Key' => $baseDir . '/classes/Controllers/Modules/passkeys/format/android-key.php', 'WPSEC_Vendor\\WPSEC\\Passkeys\\Format\\Android_Safety_Net' => $baseDir . '/classes/Controllers/Modules/passkeys/format/android-safety-net.php', 'WPSEC_Vendor\\WPSEC\\Passkeys\\Format\\Apple' => $baseDir . '/classes/Controllers/Modules/passkeys/format/apple.php', 'WPSEC_Vendor\\WPSEC\\Passkeys\\Format\\Format_Base' => $baseDir . '/classes/Controllers/Modules/passkeys/format/format-base.php', 'WPSEC_Vendor\\WPSEC\\Passkeys\\Format\\None' => $baseDir . '/classes/Controllers/Modules/passkeys/format/none.php', 'WPSEC_Vendor\\WPSEC\\Passkeys\\Format\\Packed' => $baseDir . '/classes/Controllers/Modules/passkeys/format/packed.php', 'WPSEC_Vendor\\WPSEC\\Passkeys\\Format\\Tpm' => $baseDir . '/classes/Controllers/Modules/passkeys/format/tpm.php', 'WPSEC_Vendor\\WPSEC\\Passkeys\\Format\\U2f' => $baseDir . '/classes/Controllers/Modules/passkeys/format/u2f.php', 'WPSEC_Vendor\\WPSEC\\Passkeys\\Helpers\\Authenticators_Helper' => $baseDir . '/classes/Controllers/Modules/passkeys/helpers/class-authenticators-helper.php', 'WPSEC_Vendor\\WPSEC\\Passkeys\\PassKeys_Endpoints' => $baseDir . '/classes/Controllers/Modules/passkeys/class-passkeys-endpoints.php', 'WPSEC_Vendor\\WPSEC\\Passkeys\\Passkeys_User_Profile' => $baseDir . '/classes/Controllers/Modules/passkeys/class-passkeys-user-profile.php', 'WPSEC_Vendor\\WPSEC\\Passkeys\\Source_Repository' => $baseDir . '/classes/Controllers/Modules/passkeys/class-source-repository.php', 'WPSEC_Vendor\\WPSEC\\Secured' => $baseDir . '/classes/class-secured.php', 'WPSEC_Vendor\\WPSEC\\Settings\\Settings_Builder' => $baseDir . '/classes/settings/class-settings-builder.php', 'WPSEC_Vendor\\WPSEC\\Validators\\Validator' => $baseDir . '/classes/Validators/class-validator.php', 'WPSEC_Vendor\\WPSEC\\Views\\User_Profile' => $baseDir . '/classes/Views/class-user-prifile.php', 'WPSEC_Vendor\\WPSEC\\Views\\Users_List' => $baseDir . '/classes/Views/class-user-list.php');
  • secured-wp/trunk/third-party/vendor/vendor/composer/autoload_static.php

    r3359234 r3377588  
    1111    public static $prefixDirsPsr4 = array('WPSEC\\' => array(0 => __DIR__ . '/../..' . '/classes'), 'Tests\\' => array(0 => __DIR__ . '/../..' . '/tests'), 'Psr\\Clock\\' => array(0 => __DIR__ . '/..' . '/psr/clock/src'), 'ParagonIE\\ConstantTime\\' => array(0 => __DIR__ . '/..' . '/paragonie/constant_time_encoding/src'), 'OTPHP\\' => array(0 => __DIR__ . '/..' . '/spomky-labs/otphp/src'), 'DASPRiD\\Enum\\' => array(0 => __DIR__ . '/..' . '/dasprid/enum/src'), 'BaconQrCode\\' => array(0 => __DIR__ . '/..' . '/bacon/bacon-qr-code/src'));
    1212    public static $prefixesPsr0 = array('D' => array('Detection' => array(0 => __DIR__ . '/..' . '/mobiledetect/mobiledetectlib/namespaced')));
    13     public static $classMap = array('WPSEC_Vendor\\Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', 'Mobile_Detect' => __DIR__ . '/..' . '/mobiledetect/mobiledetectlib/Mobile_Detect.php', 'WPSEC_Vendor\\WPSEC\\Controllers\\Login_Check' => __DIR__ . '/../..' . '/classes/Controllers/class-login-check.php', 'WPSEC_Vendor\\WPSEC\\Controllers\\Modules\\Base_Module' => __DIR__ . '/../..' . '/classes/Controllers/Modules/class-base-module.php', 'WPSEC_Vendor\\WPSEC\\Controllers\\Modules\\Login' => __DIR__ . '/../..' . '/classes/Controllers/Modules/class-login.php', 'WPSEC_Vendor\\WPSEC\\Controllers\\Modules\\Login_Attempts' => __DIR__ . '/../..' . '/classes/Controllers/Modules/class-login-attempts.php', 'WPSEC_Vendor\\WPSEC\\Controllers\\Modules\\Remember_Me' => __DIR__ . '/../..' . '/classes/Controllers/Modules/class-remember-me.php', 'WPSEC_Vendor\\WPSEC\\Controllers\\Modules\\Two_FA_Settings' => __DIR__ . '/../..' . '/classes/Controllers/Modules/class-two-fa-settings.php', 'WPSEC_Vendor\\WPSEC\\Controllers\\Modules\\XML_RPC_Prevents' => __DIR__ . '/../..' . '/classes/Controllers/Modules/class-xml-rpc-prevents.php', 'WPSEC_Vendor\\WPSEC\\Controllers\\Settings' => __DIR__ . '/../..' . '/classes/Controllers/class-settings.php', 'WPSEC_Vendor\\WPSEC\\Controllers\\User' => __DIR__ . '/../..' . '/classes/Controllers/class-user.php', 'WPSEC_Vendor\\WPSEC\\Controllers\\Users' => __DIR__ . '/../..' . '/classes/Controllers/class-users.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\Ajax_Requests' => __DIR__ . '/../..' . '/classes/Helpers/class-ajax-requests.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\Classes_Helper' => __DIR__ . '/../..' . '/classes/Helpers/class-classes-helper.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\Information\\Module_Information' => __DIR__ . '/../..' . '/classes/Helpers/Information/class-module-information.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\JIT_JS_Compiler' => __DIR__ . '/../..' . '/classes/Helpers/class-jit-js-compiler.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\JIT_SCSS_Compiler' => __DIR__ . '/../..' . '/classes/Helpers/class-jit-scss-compiler.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\List_Files' => __DIR__ . '/../..' . '/classes/Helpers/class-list-files.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\Mail_Helper' => __DIR__ . '/../..' . '/classes/Helpers/class-mail-helper.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\Notify_Admin' => __DIR__ . '/../..' . '/classes/Helpers/class-notify-admin.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\Out_Of_Band_Email' => __DIR__ . '/../..' . '/classes/Helpers/class-out-of-band-email.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\PHPHelpers\\Class_Helper' => __DIR__ . '/../..' . '/classes/Helpers/PHPHelpers/class-class-helper.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\Secrets_Generator' => __DIR__ . '/../..' . '/classes/Helpers/class-secrets-generator.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\TOTP_Helper' => __DIR__ . '/../..' . '/classes/Helpers/class-totp-helper.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\ValidatePassword' => __DIR__ . '/../..' . '/classes/Validators/class-password-validator.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\WP_Helper' => __DIR__ . '/../..' . '/classes/Helpers/class-wp-helper.php', 'WPSEC_Vendor\\WPSEC\\Mosules\\Views\\Login_Forms' => __DIR__ . '/../..' . '/classes/Controllers/Modules/Views/class-login-forms.php', 'WPSEC_Vendor\\WPSEC\\Secured' => __DIR__ . '/../..' . '/classes/class-secured.php', 'WPSEC_Vendor\\WPSEC\\Settings\\Settings_Builder' => __DIR__ . '/../..' . '/classes/settings/class-settings-builder.php', 'WPSEC_Vendor\\WPSEC\\Validators\\Validator' => __DIR__ . '/../..' . '/classes/Validators/class-validator.php', 'WPSEC_Vendor\\WPSEC\\Views\\User_Profile' => __DIR__ . '/../..' . '/classes/Views/class-user-prifile.php', 'WPSEC_Vendor\\WPSEC\\Views\\Users_List' => __DIR__ . '/../..' . '/classes/Views/class-user-list.php');
     13    public static $classMap = array('WPSEC_Vendor\\Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', 'Mobile_Detect' => __DIR__ . '/..' . '/mobiledetect/mobiledetectlib/Mobile_Detect.php', 'WPSEC_Vendor\\WPSEC\\Admin\\Methods\\Traits\\Providers' => __DIR__ . '/../..' . '/classes/Controllers/Modules/Traits/class-provider-trait.php', 'WPSEC_Vendor\\WPSEC\\Admin\\Methods\\passkeys\\Authenticator_Data' => __DIR__ . '/../..' . '/classes/Controllers/Modules/passkeys/class-authenticator-data.php', 'WPSEC_Vendor\\WPSEC\\Controllers\\Endpoints' => __DIR__ . '/../..' . '/classes/Controllers/class-endpoints.php', 'WPSEC_Vendor\\WPSEC\\Controllers\\Login_Check' => __DIR__ . '/../..' . '/classes/Controllers/class-login-check.php', 'WPSEC_Vendor\\WPSEC\\Controllers\\Modules\\Base_Module' => __DIR__ . '/../..' . '/classes/Controllers/Modules/class-base-module.php', 'WPSEC_Vendor\\WPSEC\\Controllers\\Modules\\Login' => __DIR__ . '/../..' . '/classes/Controllers/Modules/class-login.php', 'WPSEC_Vendor\\WPSEC\\Controllers\\Modules\\Login_Attempts' => __DIR__ . '/../..' . '/classes/Controllers/Modules/class-login-attempts.php', 'WPSEC_Vendor\\WPSEC\\Controllers\\Modules\\Remember_Me' => __DIR__ . '/../..' . '/classes/Controllers/Modules/class-remember-me.php', 'WPSEC_Vendor\\WPSEC\\Controllers\\Modules\\Two_FA_Settings' => __DIR__ . '/../..' . '/classes/Controllers/Modules/class-two-fa-settings.php', 'WPSEC_Vendor\\WPSEC\\Controllers\\Modules\\XML_RPC_Prevents' => __DIR__ . '/../..' . '/classes/Controllers/Modules/class-xml-rpc-prevents.php', 'WPSEC_Vendor\\WPSEC\\Controllers\\Settings' => __DIR__ . '/../..' . '/classes/Controllers/class-settings.php', 'WPSEC_Vendor\\WPSEC\\Controllers\\User' => __DIR__ . '/../..' . '/classes/Controllers/class-user.php', 'WPSEC_Vendor\\WPSEC\\Controllers\\Users' => __DIR__ . '/../..' . '/classes/Controllers/class-users.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\Ajax_Requests' => __DIR__ . '/../..' . '/classes/Helpers/class-ajax-requests.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\Classes_Helper' => __DIR__ . '/../..' . '/classes/Helpers/class-classes-helper.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\Information\\Module_Information' => __DIR__ . '/../..' . '/classes/Helpers/Information/class-module-information.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\JIT_JS_Compiler' => __DIR__ . '/../..' . '/classes/Helpers/class-jit-js-compiler.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\JIT_SCSS_Compiler' => __DIR__ . '/../..' . '/classes/Helpers/class-jit-scss-compiler.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\List_Files' => __DIR__ . '/../..' . '/classes/Helpers/class-list-files.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\Mail_Helper' => __DIR__ . '/../..' . '/classes/Helpers/class-mail-helper.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\Notify_Admin' => __DIR__ . '/../..' . '/classes/Helpers/class-notify-admin.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\Out_Of_Band_Email' => __DIR__ . '/../..' . '/classes/Helpers/class-out-of-band-email.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\PHPHelpers\\Class_Helper' => __DIR__ . '/../..' . '/classes/Helpers/PHPHelpers/class-class-helper.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\Secrets_Generator' => __DIR__ . '/../..' . '/classes/Helpers/class-secrets-generator.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\TOTP_Helper' => __DIR__ . '/../..' . '/classes/Helpers/class-totp-helper.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\ValidatePassword' => __DIR__ . '/../..' . '/classes/Validators/class-password-validator.php', 'WPSEC_Vendor\\WPSEC\\Helpers\\WP_Helper' => __DIR__ . '/../..' . '/classes/Helpers/class-wp-helper.php', 'WPSEC_Vendor\\WPSEC\\Methods\\Passkeys' => __DIR__ . '/../..' . '/classes/Controllers/Modules/passkeys/class-passkeys.php', 'WPSEC_Vendor\\WPSEC\\Methods\\Passkeys\\Attestation_Object' => __DIR__ . '/../..' . '/classes/Controllers/Modules/passkeys/class-attestation-object.php', 'WPSEC_Vendor\\WPSEC\\Methods\\Passkeys\\Byte_Buffer' => __DIR__ . '/../..' . '/classes/Controllers/Modules/passkeys/class-byte-buffer.php', 'WPSEC_Vendor\\WPSEC\\Methods\\Passkeys\\Cbor_Decoder' => __DIR__ . '/../..' . '/classes/Controllers/Modules/passkeys/class-chor-decoder.php', 'WPSEC_Vendor\\WPSEC\\Methods\\Passkeys\\Web_Authn' => __DIR__ . '/../..' . '/classes/Controllers/Modules/passkeys/class-web-authn.php', 'WPSEC_Vendor\\WPSEC\\Methods\\Passkeys\\Web_Authn_Exception' => __DIR__ . '/../..' . '/classes/Controllers/Modules/passkeys/class-web-authn-exception.php', 'WPSEC_Vendor\\WPSEC\\Mosules\\Views\\Login_Forms' => __DIR__ . '/../..' . '/classes/Controllers/Modules/Views/class-login-forms.php', 'WPSEC_Vendor\\WPSEC\\Passkeys\\API_Register' => __DIR__ . '/../..' . '/classes/Controllers/Modules/passkeys/class-api-register.php', 'WPSEC_Vendor\\WPSEC\\Passkeys\\API_Signin' => __DIR__ . '/../..' . '/classes/Controllers/Modules/passkeys/class-api-signin.php', 'WPSEC_Vendor\\WPSEC\\Passkeys\\Ajax_Passkeys' => __DIR__ . '/../..' . '/classes/Controllers/Modules/passkeys/class-ajax-passkeys.php', 'WPSEC_Vendor\\WPSEC\\Passkeys\\Authentication_Server' => __DIR__ . '/../..' . '/classes/Controllers/Modules/passkeys/class-authenticate-server.php', 'WPSEC_Vendor\\WPSEC\\Passkeys\\Format\\Android_Key' => __DIR__ . '/../..' . '/classes/Controllers/Modules/passkeys/format/android-key.php', 'WPSEC_Vendor\\WPSEC\\Passkeys\\Format\\Android_Safety_Net' => __DIR__ . '/../..' . '/classes/Controllers/Modules/passkeys/format/android-safety-net.php', 'WPSEC_Vendor\\WPSEC\\Passkeys\\Format\\Apple' => __DIR__ . '/../..' . '/classes/Controllers/Modules/passkeys/format/apple.php', 'WPSEC_Vendor\\WPSEC\\Passkeys\\Format\\Format_Base' => __DIR__ . '/../..' . '/classes/Controllers/Modules/passkeys/format/format-base.php', 'WPSEC_Vendor\\WPSEC\\Passkeys\\Format\\None' => __DIR__ . '/../..' . '/classes/Controllers/Modules/passkeys/format/none.php', 'WPSEC_Vendor\\WPSEC\\Passkeys\\Format\\Packed' => __DIR__ . '/../..' . '/classes/Controllers/Modules/passkeys/format/packed.php', 'WPSEC_Vendor\\WPSEC\\Passkeys\\Format\\Tpm' => __DIR__ . '/../..' . '/classes/Controllers/Modules/passkeys/format/tpm.php', 'WPSEC_Vendor\\WPSEC\\Passkeys\\Format\\U2f' => __DIR__ . '/../..' . '/classes/Controllers/Modules/passkeys/format/u2f.php', 'WPSEC_Vendor\\WPSEC\\Passkeys\\Helpers\\Authenticators_Helper' => __DIR__ . '/../..' . '/classes/Controllers/Modules/passkeys/helpers/class-authenticators-helper.php', 'WPSEC_Vendor\\WPSEC\\Passkeys\\PassKeys_Endpoints' => __DIR__ . '/../..' . '/classes/Controllers/Modules/passkeys/class-passkeys-endpoints.php', 'WPSEC_Vendor\\WPSEC\\Passkeys\\Passkeys_User_Profile' => __DIR__ . '/../..' . '/classes/Controllers/Modules/passkeys/class-passkeys-user-profile.php', 'WPSEC_Vendor\\WPSEC\\Passkeys\\Source_Repository' => __DIR__ . '/../..' . '/classes/Controllers/Modules/passkeys/class-source-repository.php', 'WPSEC_Vendor\\WPSEC\\Secured' => __DIR__ . '/../..' . '/classes/class-secured.php', 'WPSEC_Vendor\\WPSEC\\Settings\\Settings_Builder' => __DIR__ . '/../..' . '/classes/settings/class-settings-builder.php', 'WPSEC_Vendor\\WPSEC\\Validators\\Validator' => __DIR__ . '/../..' . '/classes/Validators/class-validator.php', 'WPSEC_Vendor\\WPSEC\\Views\\User_Profile' => __DIR__ . '/../..' . '/classes/Views/class-user-prifile.php', 'WPSEC_Vendor\\WPSEC\\Views\\Users_List' => __DIR__ . '/../..' . '/classes/Views/class-user-list.php');
    1414    public static function getInitializer(ClassLoader $loader)
    1515    {
  • secured-wp/trunk/third-party/vendor/vendor/composer/installed.json

    r3359234 r3377588  
    6060        {
    6161            "name": "dasprid\/enum",
    62             "version": "1.0.6",
    63             "version_normalized": "1.0.6.0",
     62            "version": "1.0.7",
     63            "version_normalized": "1.0.7.0",
    6464            "source": {
    6565                "type": "git",
    6666                "url": "https:\/\/github.com\/DASPRiD\/Enum.git",
    67                 "reference": "8dfd07c6d2cf31c8da90c53b83c026c7696dda90"
    68             },
    69             "dist": {
    70                 "type": "zip",
    71                 "url": "https:\/\/api.github.com\/repos\/DASPRiD\/Enum\/zipball\/8dfd07c6d2cf31c8da90c53b83c026c7696dda90",
    72                 "reference": "8dfd07c6d2cf31c8da90c53b83c026c7696dda90",
     67                "reference": "b5874fa9ed0043116c72162ec7f4fb50e02e7cce"
     68            },
     69            "dist": {
     70                "type": "zip",
     71                "url": "https:\/\/api.github.com\/repos\/DASPRiD\/Enum\/zipball\/b5874fa9ed0043116c72162ec7f4fb50e02e7cce",
     72                "reference": "b5874fa9ed0043116c72162ec7f4fb50e02e7cce",
    7373                "shasum": ""
    7474            },
     
    8080                "squizlabs\/php_codesniffer": "*"
    8181            },
    82             "time": "2024-08-09T14:30:48+00:00",
     82            "time": "2025-09-16T12:23:56+00:00",
    8383            "type": "library",
    8484            "installation-source": "dist",
     
    107107            "support": {
    108108                "issues": "https:\/\/github.com\/DASPRiD\/Enum\/issues",
    109                 "source": "https:\/\/github.com\/DASPRiD\/Enum\/tree\/1.0.6"
     109                "source": "https:\/\/github.com\/DASPRiD\/Enum\/tree\/1.0.7"
    110110            },
    111111            "install-path": "..\/dasprid\/enum"
     
    178178        {
    179179            "name": "paragonie\/constant_time_encoding",
    180             "version": "v3.0.0",
    181             "version_normalized": "3.0.0.0",
     180            "version": "v3.1.3",
     181            "version_normalized": "3.1.3.0",
    182182            "source": {
    183183                "type": "git",
    184184                "url": "https:\/\/github.com\/paragonie\/constant_time_encoding.git",
    185                 "reference": "df1e7fde177501eee2037dd159cf04f5f301a512"
    186             },
    187             "dist": {
    188                 "type": "zip",
    189                 "url": "https:\/\/api.github.com\/repos\/paragonie\/constant_time_encoding\/zipball\/df1e7fde177501eee2037dd159cf04f5f301a512",
    190                 "reference": "df1e7fde177501eee2037dd159cf04f5f301a512",
     185                "reference": "d5b01a39b3415c2cd581d3bd3a3575c1ebbd8e77"
     186            },
     187            "dist": {
     188                "type": "zip",
     189                "url": "https:\/\/api.github.com\/repos\/paragonie\/constant_time_encoding\/zipball\/d5b01a39b3415c2cd581d3bd3a3575c1ebbd8e77",
     190                "reference": "d5b01a39b3415c2cd581d3bd3a3575c1ebbd8e77",
    191191                "shasum": ""
    192192            },
     
    195195            },
    196196            "require-dev": {
    197                 "phpunit\/phpunit": "^9",
    198                 "vimeo\/psalm": "^4|^5"
    199             },
    200             "time": "2024-05-08T12:36:18+00:00",
     197                "infection\/infection": "^0",
     198                "nikic\/php-fuzzer": "^0",
     199                "phpunit\/phpunit": "^9|^10|^11",
     200                "vimeo\/psalm": "^4|^5|^6"
     201            },
     202            "time": "2025-09-24T15:06:41+00:00",
    201203            "type": "library",
    202204            "installation-source": "dist",
  • secured-wp/trunk/third-party/vendor/vendor/composer/installed.php

    r3359234 r3377588  
    33namespace WPSEC_Vendor;
    44
    5 return array('root' => array('name' => 'wps/secured', 'pretty_version' => 'dev-master', 'version' => 'dev-master', 'reference' => '41984b980e33b7231d2dffa3c5f1e24ecba1df8a', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev' => \false), 'versions' => array('bacon/bacon-qr-code' => array('pretty_version' => 'v3.0.1', 'version' => '3.0.1.0', 'reference' => 'f9cc1f52b5a463062251d666761178dbdb6b544f', 'type' => 'library', 'install_path' => __DIR__ . '/../bacon/bacon-qr-code', 'aliases' => array(), 'dev_requirement' => \false), 'dasprid/enum' => array('pretty_version' => '1.0.6', 'version' => '1.0.6.0', 'reference' => '8dfd07c6d2cf31c8da90c53b83c026c7696dda90', 'type' => 'library', 'install_path' => __DIR__ . '/../dasprid/enum', 'aliases' => array(), 'dev_requirement' => \false), 'mobiledetect/mobiledetectlib' => array('pretty_version' => '2.8.45', 'version' => '2.8.45.0', 'reference' => '96aaebcf4f50d3d2692ab81d2c5132e425bca266', 'type' => 'library', 'install_path' => __DIR__ . '/../mobiledetect/mobiledetectlib', 'aliases' => array(), 'dev_requirement' => \false), 'paragonie/constant_time_encoding' => array('pretty_version' => 'v3.0.0', 'version' => '3.0.0.0', 'reference' => 'df1e7fde177501eee2037dd159cf04f5f301a512', 'type' => 'library', 'install_path' => __DIR__ . '/../paragonie/constant_time_encoding', 'aliases' => array(), 'dev_requirement' => \false), 'psr/clock' => array('pretty_version' => '1.0.0', 'version' => '1.0.0.0', 'reference' => 'e41a24703d4560fd0acb709162f73b8adfc3aa0d', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/clock', 'aliases' => array(), 'dev_requirement' => \false), 'spomky-labs/otphp' => array('pretty_version' => '11.3.0', 'version' => '11.3.0.0', 'reference' => '2d8ccb5fc992b9cc65ef321fa4f00fefdb3f4b33', 'type' => 'library', 'install_path' => __DIR__ . '/../spomky-labs/otphp', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/deprecation-contracts' => array('pretty_version' => 'v3.6.0', 'version' => '3.6.0.0', 'reference' => '63afe740e99a13ba87ec199bb07bbdee937a5b62', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/deprecation-contracts', 'aliases' => array(), 'dev_requirement' => \false), 'wps/secured' => array('pretty_version' => 'dev-master', 'version' => 'dev-master', 'reference' => '41984b980e33b7231d2dffa3c5f1e24ecba1df8a', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev_requirement' => \false)));
     5return array('root' => array('name' => 'wps/secured', 'pretty_version' => 'dev-master', 'version' => 'dev-master', 'reference' => '84baf0d56d5642175050a31e2d8219f097cb44e4', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev' => \false), 'versions' => array('bacon/bacon-qr-code' => array('pretty_version' => 'v3.0.1', 'version' => '3.0.1.0', 'reference' => 'f9cc1f52b5a463062251d666761178dbdb6b544f', 'type' => 'library', 'install_path' => __DIR__ . '/../bacon/bacon-qr-code', 'aliases' => array(), 'dev_requirement' => \false), 'dasprid/enum' => array('pretty_version' => '1.0.7', 'version' => '1.0.7.0', 'reference' => 'b5874fa9ed0043116c72162ec7f4fb50e02e7cce', 'type' => 'library', 'install_path' => __DIR__ . '/../dasprid/enum', 'aliases' => array(), 'dev_requirement' => \false), 'mobiledetect/mobiledetectlib' => array('pretty_version' => '2.8.45', 'version' => '2.8.45.0', 'reference' => '96aaebcf4f50d3d2692ab81d2c5132e425bca266', 'type' => 'library', 'install_path' => __DIR__ . '/../mobiledetect/mobiledetectlib', 'aliases' => array(), 'dev_requirement' => \false), 'paragonie/constant_time_encoding' => array('pretty_version' => 'v3.1.3', 'version' => '3.1.3.0', 'reference' => 'd5b01a39b3415c2cd581d3bd3a3575c1ebbd8e77', 'type' => 'library', 'install_path' => __DIR__ . '/../paragonie/constant_time_encoding', 'aliases' => array(), 'dev_requirement' => \false), 'psr/clock' => array('pretty_version' => '1.0.0', 'version' => '1.0.0.0', 'reference' => 'e41a24703d4560fd0acb709162f73b8adfc3aa0d', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/clock', 'aliases' => array(), 'dev_requirement' => \false), 'spomky-labs/otphp' => array('pretty_version' => '11.3.0', 'version' => '11.3.0.0', 'reference' => '2d8ccb5fc992b9cc65ef321fa4f00fefdb3f4b33', 'type' => 'library', 'install_path' => __DIR__ . '/../spomky-labs/otphp', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/deprecation-contracts' => array('pretty_version' => 'v3.6.0', 'version' => '3.6.0.0', 'reference' => '63afe740e99a13ba87ec199bb07bbdee937a5b62', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/deprecation-contracts', 'aliases' => array(), 'dev_requirement' => \false), 'wps/secured' => array('pretty_version' => 'dev-master', 'version' => 'dev-master', 'reference' => '84baf0d56d5642175050a31e2d8219f097cb44e4', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev_requirement' => \false)));
  • secured-wp/trunk/third-party/vendor/vendor/composer/platform_check.php

    r3359234 r3377588  
    1919        }
    2020    }
    21     \trigger_error('Composer detected issues in your platform: ' . \implode(' ', $issues), \E_USER_ERROR);
     21    throw new \RuntimeException('Composer detected issues in your platform: ' . \implode(' ', $issues));
    2222}
  • secured-wp/trunk/third-party/vendor/vendor/dasprid/enum/src/AbstractEnum.php

    r3359234 r3377588  
    184184    }
    185185    /**
     186     * Forbid serializing enums.
     187     *
     188     * @throws SerializeNotSupportedException
     189     */
     190    public final function __serialize() : array
     191    {
     192        throw new SerializeNotSupportedException();
     193    }
     194    /**
    186195     * Forbid unserializing enums.
    187196     *
     
    193202    }
    194203    /**
     204     * Forbid unserializing enums.
     205     *
     206     * @throws UnserializeNotSupportedException
     207     */
     208    public final function __unserialize($arg) : void
     209    {
     210        throw new UnserializeNotSupportedException();
     211    }
     212    /**
    195213     * Turns the enum into a string representation.
    196214     *
  • secured-wp/trunk/third-party/vendor/vendor/dasprid/enum/src/NullValue.php

    r3359234 r3377588  
    4040    }
    4141    /**
     42     * Forbid serializing enums.
     43     *
     44     * @throws SerializeNotSupportedException
     45     */
     46    public final function __serialize() : array
     47    {
     48        throw new SerializeNotSupportedException();
     49    }
     50    /**
    4251     * Forbid unserializing enums.
    4352     *
     
    4857        throw new UnserializeNotSupportedException();
    4958    }
     59    /**
     60     * Forbid unserializing enums.
     61     *
     62     * @throws UnserializeNotSupportedException
     63     */
     64    public final function __unserialize($arg) : void
     65    {
     66        throw new UnserializeNotSupportedException();
     67    }
    5068}
  • secured-wp/trunk/third-party/vendor/vendor/paragonie/constant_time_encoding/src/Base32.php

    r3359234 r3377588  
    55
    66use InvalidArgumentException;
     7use WPSEC_Vendor\Override;
    78use RangeException;
     9use SensitiveParameter;
    810use TypeError;
     11use function pack;
     12use function rtrim;
     13use function strlen;
     14use function substr;
     15use function unpack;
    916/**
    1017 *  Copyright (c) 2016 - 2022 Paragon Initiative Enterprises.
     
    4552     * @return string
    4653     */
    47     public static function decode(#[\SensitiveParameter] string $encodedString, bool $strictPadding = \false) : string
     54    #[Override]
     55    public static function decode(#[SensitiveParameter] string $encodedString, bool $strictPadding = \false) : string
    4856    {
    4957        return static::doDecode($encodedString, \false, $strictPadding);
     
    5664     * @return string
    5765     */
    58     public static function decodeUpper(#[\SensitiveParameter] string $src, bool $strictPadding = \false) : string
     66    public static function decodeUpper(#[SensitiveParameter] string $src, bool $strictPadding = \false) : string
    5967    {
    6068        return static::doDecode($src, \true, $strictPadding);
     
    6775     * @throws TypeError
    6876     */
    69     public static function encode(#[\SensitiveParameter] string $binString) : string
     77    #[Override]
     78    public static function encode(#[SensitiveParameter] string $binString) : string
    7079    {
    7180        return static::doEncode($binString, \false, \true);
     
    7786     * @return string
    7887     * @throws TypeError
    79      */
    80     public static function encodeUnpadded(#[\SensitiveParameter] string $src) : string
     88     * @api
     89     */
     90    public static function encodeUnpadded(#[SensitiveParameter] string $src) : string
    8191    {
    8292        return static::doEncode($src, \false, \false);
     
    8898     * @return string
    8999     * @throws TypeError
    90      */
    91     public static function encodeUpper(#[\SensitiveParameter] string $src) : string
     100     * @api
     101     */
     102    public static function encodeUpper(#[SensitiveParameter] string $src) : string
    92103    {
    93104        return static::doEncode($src, \true, \true);
     
    99110     * @return string
    100111     * @throws TypeError
    101      */
    102     public static function encodeUpperUnpadded(#[\SensitiveParameter] string $src) : string
     112     * @api
     113     */
     114    public static function encodeUpperUnpadded(#[SensitiveParameter] string $src) : string
    103115    {
    104116        return static::doEncode($src, \true, \false);
     
    110122     * @param int $src
    111123     * @return int
     124     * @api
    112125     */
    113126    protected static function decode5Bits(int $src) : int
     
    128141     * @param int $src
    129142     * @return int
     143     * @api
    130144     */
    131145    protected static function decode5BitsUpper(int $src) : int
     
    144158     * @param int $src
    145159     * @return string
     160     * @api
    146161     */
    147162    protected static function encode5Bits(int $src) : string
     
    150165        // if ($src > 25) $ret -= 72;
    151166        $diff -= 25 - $src >> 8 & 73;
    152         return \pack('C', $src + $diff);
     167        return pack('C', $src + $diff);
    153168    }
    154169    /**
     
    160175     * @param int $src
    161176     * @return string
     177     * @api
    162178     */
    163179    protected static function encode5BitsUpper(int $src) : string
     
    166182        // if ($src > 25) $ret -= 40;
    167183        $diff -= 25 - $src >> 8 & 41;
    168         return \pack('C', $src + $diff);
     184        return pack('C', $src + $diff);
    169185    }
    170186    /**
     
    172188     * @param bool $upper
    173189     * @return string
    174      */
    175     public static function decodeNoPadding(#[\SensitiveParameter] string $encodedString, bool $upper = \false) : string
    176     {
    177         $srcLen = Binary::safeStrlen($encodedString);
     190     * @api
     191     */
     192    public static function decodeNoPadding(#[SensitiveParameter] string $encodedString, bool $upper = \false) : string
     193    {
     194        $srcLen = strlen($encodedString);
    178195        if ($srcLen === 0) {
    179196            return '';
     
    198215     * @throws TypeError
    199216     */
    200     protected static function doDecode(#[\SensitiveParameter] string $src, bool $upper = \false, bool $strictPadding = \false) : string
     217    protected static function doDecode(#[SensitiveParameter] string $src, bool $upper = \false, bool $strictPadding = \false) : string
    201218    {
    202219        // We do this to reduce code duplication:
    203220        $method = $upper ? 'decode5BitsUpper' : 'decode5Bits';
    204221        // Remove padding
    205         $srcLen = Binary::safeStrlen($src);
     222        $srcLen = strlen($src);
    206223        if ($srcLen === 0) {
    207224            return '';
     
    221238            }
    222239        } else {
    223             $src = \rtrim($src, '=');
    224             $srcLen = Binary::safeStrlen($src);
     240            $src = rtrim($src, '=');
     241            $srcLen = strlen($src);
    225242        }
    226243        $err = 0;
     
    229246        for ($i = 0; $i + 8 <= $srcLen; $i += 8) {
    230247            /** @var array<int, int> $chunk */
    231             $chunk = \unpack('C*', Binary::safeSubstr($src, $i, 8));
     248            $chunk = unpack('C*', substr($src, $i, 8));
    232249            /** @var int $c0 */
    233250            $c0 = static::$method($chunk[1]);
     
    246263            /** @var int $c7 */
    247264            $c7 = static::$method($chunk[8]);
    248             $dest .= \pack('CCCCC', ($c0 << 3 | $c1 >> 2) & 0xff, ($c1 << 6 | $c2 << 1 | $c3 >> 4) & 0xff, ($c3 << 4 | $c4 >> 1) & 0xff, ($c4 << 7 | $c5 << 2 | $c6 >> 3) & 0xff, ($c6 << 5 | $c7) & 0xff);
     265            $dest .= pack('CCCCC', ($c0 << 3 | $c1 >> 2) & 0xff, ($c1 << 6 | $c2 << 1 | $c3 >> 4) & 0xff, ($c3 << 4 | $c4 >> 1) & 0xff, ($c4 << 7 | $c5 << 2 | $c6 >> 3) & 0xff, ($c6 << 5 | $c7) & 0xff);
    249266            $err |= ($c0 | $c1 | $c2 | $c3 | $c4 | $c5 | $c6 | $c7) >> 8;
    250267        }
     
    252269        if ($i < $srcLen) {
    253270            /** @var array<int, int> $chunk */
    254             $chunk = \unpack('C*', Binary::safeSubstr($src, $i, $srcLen - $i));
     271            $chunk = unpack('C*', substr($src, $i, $srcLen - $i));
    255272            /** @var int $c0 */
    256273            $c0 = static::$method($chunk[1]);
     
    268285                /** @var int $c6 */
    269286                $c6 = static::$method($chunk[7]);
    270                 $dest .= \pack('CCCC', ($c0 << 3 | $c1 >> 2) & 0xff, ($c1 << 6 | $c2 << 1 | $c3 >> 4) & 0xff, ($c3 << 4 | $c4 >> 1) & 0xff, ($c4 << 7 | $c5 << 2 | $c6 >> 3) & 0xff);
     287                $dest .= pack('CCCC', ($c0 << 3 | $c1 >> 2) & 0xff, ($c1 << 6 | $c2 << 1 | $c3 >> 4) & 0xff, ($c3 << 4 | $c4 >> 1) & 0xff, ($c4 << 7 | $c5 << 2 | $c6 >> 3) & 0xff);
    271288                $err |= ($c0 | $c1 | $c2 | $c3 | $c4 | $c5 | $c6) >> 8;
    272289                if ($strictPadding) {
     
    284301                /** @var int $c5 */
    285302                $c5 = static::$method($chunk[6]);
    286                 $dest .= \pack('CCCC', ($c0 << 3 | $c1 >> 2) & 0xff, ($c1 << 6 | $c2 << 1 | $c3 >> 4) & 0xff, ($c3 << 4 | $c4 >> 1) & 0xff, ($c4 << 7 | $c5 << 2) & 0xff);
     303                $dest .= pack('CCCC', ($c0 << 3 | $c1 >> 2) & 0xff, ($c1 << 6 | $c2 << 1 | $c3 >> 4) & 0xff, ($c3 << 4 | $c4 >> 1) & 0xff, ($c4 << 7 | $c5 << 2) & 0xff);
    287304                $err |= ($c0 | $c1 | $c2 | $c3 | $c4 | $c5) >> 8;
    288305            } elseif ($i + 4 < $srcLen) {
     
    295312                /** @var int $c4 */
    296313                $c4 = static::$method($chunk[5]);
    297                 $dest .= \pack('CCC', ($c0 << 3 | $c1 >> 2) & 0xff, ($c1 << 6 | $c2 << 1 | $c3 >> 4) & 0xff, ($c3 << 4 | $c4 >> 1) & 0xff);
     314                $dest .= pack('CCC', ($c0 << 3 | $c1 >> 2) & 0xff, ($c1 << 6 | $c2 << 1 | $c3 >> 4) & 0xff, ($c3 << 4 | $c4 >> 1) & 0xff);
    298315                $err |= ($c0 | $c1 | $c2 | $c3 | $c4) >> 8;
    299316                if ($strictPadding) {
     
    307324                /** @var int $c3 */
    308325                $c3 = static::$method($chunk[4]);
    309                 $dest .= \pack('CC', ($c0 << 3 | $c1 >> 2) & 0xff, ($c1 << 6 | $c2 << 1 | $c3 >> 4) & 0xff);
     326                $dest .= pack('CC', ($c0 << 3 | $c1 >> 2) & 0xff, ($c1 << 6 | $c2 << 1 | $c3 >> 4) & 0xff);
    310327                $err |= ($c0 | $c1 | $c2 | $c3) >> 8;
    311328                if ($strictPadding) {
     
    317334                /** @var int $c2 */
    318335                $c2 = static::$method($chunk[3]);
    319                 $dest .= \pack('CC', ($c0 << 3 | $c1 >> 2) & 0xff, ($c1 << 6 | $c2 << 1) & 0xff);
     336                $dest .= pack('CC', ($c0 << 3 | $c1 >> 2) & 0xff, ($c1 << 6 | $c2 << 1) & 0xff);
    320337                $err |= ($c0 | $c1 | $c2) >> 8;
    321338                if ($strictPadding) {
     
    325342                /** @var int $c1 */
    326343                $c1 = static::$method($chunk[2]);
    327                 $dest .= \pack('C', ($c0 << 3 | $c1 >> 2) & 0xff);
     344                $dest .= pack('C', ($c0 << 3 | $c1 >> 2) & 0xff);
    328345                $err |= ($c0 | $c1) >> 8;
    329346                if ($strictPadding) {
     
    331348                }
    332349            } else {
    333                 $dest .= \pack('C', $c0 << 3 & 0xff);
     350                $dest .= pack('C', $c0 << 3 & 0xff);
    334351                $err |= $c0 >> 8;
    335352            }
     
    350367     * @throws TypeError
    351368     */
    352     protected static function doEncode(#[\SensitiveParameter] string $src, bool $upper = \false, $pad = \true) : string
     369    protected static function doEncode(#[SensitiveParameter] string $src, bool $upper = \false, bool $pad = \true) : string
    353370    {
    354371        // We do this to reduce code duplication:
    355372        $method = $upper ? 'encode5BitsUpper' : 'encode5Bits';
    356373        $dest = '';
    357         $srcLen = Binary::safeStrlen($src);
     374        $srcLen = strlen($src);
    358375        // Main loop (no padding):
    359376        for ($i = 0; $i + 5 <= $srcLen; $i += 5) {
    360377            /** @var array<int, int> $chunk */
    361             $chunk = \unpack('C*', Binary::safeSubstr($src, $i, 5));
     378            $chunk = unpack('C*', substr($src, $i, 5));
    362379            $b0 = $chunk[1];
    363380            $b1 = $chunk[2];
     
    370387        if ($i < $srcLen) {
    371388            /** @var array<int, int> $chunk */
    372             $chunk = \unpack('C*', Binary::safeSubstr($src, $i, $srcLen - $i));
     389            $chunk = unpack('C*', substr($src, $i, $srcLen - $i));
    373390            $b0 = $chunk[1];
    374391            if ($i + 3 < $srcLen) {
  • secured-wp/trunk/third-party/vendor/vendor/paragonie/constant_time_encoding/src/Base32Hex.php

    r3359234 r3377588  
    44namespace WPSEC_Vendor\ParagonIE\ConstantTime;
    55
     6use WPSEC_Vendor\Override;
     7use function pack;
    68/**
    79 *  Copyright (c) 2016 - 2022 Paragon Initiative Enterprises.
     
    4244     * @return int
    4345     */
     46    #[Override]
    4447    protected static function decode5Bits(int $src) : int
    4548    {
     
    5861     * @return int
    5962     */
     63    #[Override]
    6064    protected static function decode5BitsUpper(int $src) : int
    6165    {
     
    7478     * @return string
    7579     */
     80    #[Override]
    7681    protected static function encode5Bits(int $src) : string
    7782    {
     
    7984        // if ($src > 0x39) $src += 0x61 - 0x3a; // 39
    8085        $src += 0x39 - $src >> 8 & 39;
    81         return \pack('C', $src);
     86        return pack('C', $src);
    8287    }
    8388    /**
     
    9095     * @return string
    9196     */
     97    #[Override]
    9298    protected static function encode5BitsUpper(int $src) : string
    9399    {
     
    95101        // if ($src > 0x39) $src += 0x41 - 0x3a; // 7
    96102        $src += 0x39 - $src >> 8 & 7;
    97         return \pack('C', $src);
     103        return pack('C', $src);
    98104    }
    99105}
  • secured-wp/trunk/third-party/vendor/vendor/paragonie/constant_time_encoding/src/Base64.php

    r3359234 r3377588  
    55
    66use InvalidArgumentException;
     7use WPSEC_Vendor\Override;
    78use RangeException;
     9use SensitiveParameter;
     10use SodiumException;
    811use TypeError;
     12use function extension_loaded;
     13use function pack;
     14use function rtrim;
     15use function sodium_base642bin;
     16use function sodium_bin2base64;
     17use function strlen;
     18use function substr;
     19use function unpack;
     20use const SODIUM_BASE64_VARIANT_ORIGINAL;
     21use const SODIUM_BASE64_VARIANT_ORIGINAL_NO_PADDING;
     22use const SODIUM_BASE64_VARIANT_URLSAFE;
     23use const SODIUM_BASE64_VARIANT_URLSAFE_NO_PADDING;
    924/**
    1025 *  Copyright (c) 2016 - 2022 Paragon Initiative Enterprises.
     
    4863     * @throws TypeError
    4964     */
    50     public static function encode(#[\SensitiveParameter] string $binString) : string
    51     {
     65    #[Override]
     66    public static function encode(#[SensitiveParameter] string $binString) : string
     67    {
     68        if (extension_loaded('sodium')) {
     69            $variant = match (static::class) {
     70                Base64::class => SODIUM_BASE64_VARIANT_ORIGINAL,
     71                Base64UrlSafe::class => SODIUM_BASE64_VARIANT_URLSAFE,
     72                default => 0,
     73            };
     74            if ($variant > 0) {
     75                try {
     76                    return sodium_bin2base64($binString, $variant);
     77                } catch (SodiumException $ex) {
     78                    throw new RangeException($ex->getMessage(), $ex->getCode(), $ex);
     79                }
     80            }
     81        }
    5282        return static::doEncode($binString, \true);
    5383    }
     
    6191     *
    6292     * @throws TypeError
    63      */
    64     public static function encodeUnpadded(#[\SensitiveParameter] string $src) : string
    65     {
     93     * @api
     94     */
     95    public static function encodeUnpadded(#[SensitiveParameter] string $src) : string
     96    {
     97        if (extension_loaded('sodium')) {
     98            $variant = match (static::class) {
     99                Base64::class => SODIUM_BASE64_VARIANT_ORIGINAL_NO_PADDING,
     100                Base64UrlSafe::class => SODIUM_BASE64_VARIANT_URLSAFE_NO_PADDING,
     101                default => 0,
     102            };
     103            if ($variant > 0) {
     104                try {
     105                    return sodium_bin2base64($src, $variant);
     106                } catch (SodiumException $ex) {
     107                    throw new RangeException($ex->getMessage(), $ex->getCode(), $ex);
     108                }
     109            }
     110        }
    66111        return static::doEncode($src, \false);
    67112    }
     
    73118     * @throws TypeError
    74119     */
    75     protected static function doEncode(#[\SensitiveParameter] string $src, bool $pad = \true) : string
     120    protected static function doEncode(#[SensitiveParameter] string $src, bool $pad = \true) : string
    76121    {
    77122        $dest = '';
    78         $srcLen = Binary::safeStrlen($src);
     123        $srcLen = strlen($src);
    79124        // Main loop (no padding):
    80125        for ($i = 0; $i + 3 <= $srcLen; $i += 3) {
    81126            /** @var array<int, int> $chunk */
    82             $chunk = \unpack('C*', Binary::safeSubstr($src, $i, 3));
     127            $chunk = unpack('C*', substr($src, $i, 3));
    83128            $b0 = $chunk[1];
    84129            $b1 = $chunk[2];
     
    89134        if ($i < $srcLen) {
    90135            /** @var array<int, int> $chunk */
    91             $chunk = \unpack('C*', Binary::safeSubstr($src, $i, $srcLen - $i));
     136            $chunk = unpack('C*', substr($src, $i, $srcLen - $i));
    92137            $b0 = $chunk[1];
    93138            if ($i + 1 < $srcLen) {
     
    118163     * @throws TypeError
    119164     */
    120     public static function decode(#[\SensitiveParameter] string $encodedString, bool $strictPadding = \false) : string
     165    #[Override]
     166    public static function decode(#[SensitiveParameter] string $encodedString, bool $strictPadding = \false) : string
    121167    {
    122168        // Remove padding
    123         $srcLen = Binary::safeStrlen($encodedString);
     169        $srcLen = strlen($encodedString);
    124170        if ($srcLen === 0) {
    125171            return '';
     
    140186                throw new RangeException('Incorrect padding');
    141187            }
     188            if (extension_loaded('sodium')) {
     189                $variant = match (static::class) {
     190                    Base64::class => SODIUM_BASE64_VARIANT_ORIGINAL_NO_PADDING,
     191                    Base64UrlSafe::class => SODIUM_BASE64_VARIANT_URLSAFE_NO_PADDING,
     192                    default => 0,
     193                };
     194                if ($variant > 0) {
     195                    try {
     196                        return sodium_base642bin(substr($encodedString, 0, $srcLen), $variant);
     197                    } catch (SodiumException $ex) {
     198                        throw new RangeException($ex->getMessage(), $ex->getCode(), $ex);
     199                    }
     200                }
     201            }
    142202        } else {
    143             $encodedString = \rtrim($encodedString, '=');
    144             $srcLen = Binary::safeStrlen($encodedString);
     203            // Just remove all padding.
     204            $encodedString = rtrim($encodedString, '=');
     205            $srcLen = strlen($encodedString);
    145206        }
    146207        $err = 0;
     
    149210        for ($i = 0; $i + 4 <= $srcLen; $i += 4) {
    150211            /** @var array<int, int> $chunk */
    151             $chunk = \unpack('C*', Binary::safeSubstr($encodedString, $i, 4));
     212            $chunk = unpack('C*', substr($encodedString, $i, 4));
    152213            $c0 = static::decode6Bits($chunk[1]);
    153214            $c1 = static::decode6Bits($chunk[2]);
    154215            $c2 = static::decode6Bits($chunk[3]);
    155216            $c3 = static::decode6Bits($chunk[4]);
    156             $dest .= \pack('CCC', ($c0 << 2 | $c1 >> 4) & 0xff, ($c1 << 4 | $c2 >> 2) & 0xff, ($c2 << 6 | $c3) & 0xff);
     217            $dest .= pack('CCC', ($c0 << 2 | $c1 >> 4) & 0xff, ($c1 << 4 | $c2 >> 2) & 0xff, ($c2 << 6 | $c3) & 0xff);
    157218            $err |= ($c0 | $c1 | $c2 | $c3) >> 8;
    158219        }
     
    160221        if ($i < $srcLen) {
    161222            /** @var array<int, int> $chunk */
    162             $chunk = \unpack('C*', Binary::safeSubstr($encodedString, $i, $srcLen - $i));
     223            $chunk = unpack('C*', substr($encodedString, $i, $srcLen - $i));
    163224            $c0 = static::decode6Bits($chunk[1]);
    164225            if ($i + 2 < $srcLen) {
    165226                $c1 = static::decode6Bits($chunk[2]);
    166227                $c2 = static::decode6Bits($chunk[3]);
    167                 $dest .= \pack('CC', ($c0 << 2 | $c1 >> 4) & 0xff, ($c1 << 4 | $c2 >> 2) & 0xff);
     228                $dest .= pack('CC', ($c0 << 2 | $c1 >> 4) & 0xff, ($c1 << 4 | $c2 >> 2) & 0xff);
    168229                $err |= ($c0 | $c1 | $c2) >> 8;
    169230                if ($strictPadding) {
     
    172233            } elseif ($i + 1 < $srcLen) {
    173234                $c1 = static::decode6Bits($chunk[2]);
    174                 $dest .= \pack('C', ($c0 << 2 | $c1 >> 4) & 0xff);
     235                $dest .= pack('C', ($c0 << 2 | $c1 >> 4) & 0xff);
    175236                $err |= ($c0 | $c1) >> 8;
    176237                if ($strictPadding) {
     
    190251     * @param string $encodedString
    191252     * @return string
    192      */
    193     public static function decodeNoPadding(#[\SensitiveParameter] string $encodedString) : string
    194     {
    195         $srcLen = Binary::safeStrlen($encodedString);
     253     * @api
     254     */
     255    public static function decodeNoPadding(#[SensitiveParameter] string $encodedString) : string
     256    {
     257        $srcLen = strlen($encodedString);
    196258        if ($srcLen === 0) {
    197259            return '';
     
    249311        // if ($src > 62) $diff += 0x2f - 0x2b - 1; // 3
    250312        $diff += 62 - $src >> 8 & 3;
    251         return \pack('C', $src + $diff);
     313        return pack('C', $src + $diff);
    252314    }
    253315}
  • secured-wp/trunk/third-party/vendor/vendor/paragonie/constant_time_encoding/src/Base64DotSlash.php

    r3359234 r3377588  
    44namespace WPSEC_Vendor\ParagonIE\ConstantTime;
    55
     6use WPSEC_Vendor\Override;
    67/**
    78 *  Copyright (c) 2016 - 2022 Paragon Initiative Enterprises.
     
    4647     * @return int
    4748     */
     49    #[Override]
    4850    protected static function decode6Bits(int $src) : int
    4951    {
     
    6668     * @return string
    6769     */
     70    #[Override]
    6871    protected static function encode6Bits(int $src) : string
    6972    {
  • secured-wp/trunk/third-party/vendor/vendor/paragonie/constant_time_encoding/src/Base64DotSlashOrdered.php

    r3359234 r3377588  
    44namespace WPSEC_Vendor\ParagonIE\ConstantTime;
    55
     6use WPSEC_Vendor\Override;
    67/**
    78 *  Copyright (c) 2016 - 2022 Paragon Initiative Enterprises.
     
    4647     * @return int
    4748     */
     49    #[Override]
    4850    protected static function decode6Bits(int $src) : int
    4951    {
     
    6466     * @return string
    6567     */
     68    #[Override]
    6669    protected static function encode6Bits(int $src) : string
    6770    {
  • secured-wp/trunk/third-party/vendor/vendor/paragonie/constant_time_encoding/src/Base64UrlSafe.php

    r3359234 r3377588  
    44namespace WPSEC_Vendor\ParagonIE\ConstantTime;
    55
     6use WPSEC_Vendor\Override;
    67/**
    78 *  Copyright (c) 2016 - 2022 Paragon Initiative Enterprises.
     
    4647     * @return int
    4748     */
     49    #[Override]
    4850    protected static function decode6Bits(int $src) : int
    4951    {
     
    6870     * @return string
    6971     */
     72    #[Override]
    7073    protected static function encode6Bits(int $src) : string
    7174    {
  • secured-wp/trunk/third-party/vendor/vendor/paragonie/constant_time_encoding/src/Binary.php

    r3359234 r3377588  
    44namespace WPSEC_Vendor\ParagonIE\ConstantTime;
    55
     6use SensitiveParameter;
    67use TypeError;
     8use function strlen;
     9use function substr;
    710/**
    811 *  Copyright (c) 2016 - 2022 Paragon Initiative Enterprises.
     
    4649     * @return int
    4750     */
    48     public static function safeStrlen(#[\SensitiveParameter] string $str) : int
     51    public static function safeStrlen(#[SensitiveParameter] string $str) : int
    4952    {
    50         if (\function_exists('mb_strlen')) {
    51             // mb_strlen in PHP 7.x can return false.
    52             /** @psalm-suppress RedundantCast */
    53             return (int) \mb_strlen($str, '8bit');
    54         } else {
    55             return \strlen($str);
    56         }
     53        return strlen($str);
    5754    }
    5855    /**
     
    6966     * @throws TypeError
    7067     */
    71     public static function safeSubstr(#[\SensitiveParameter] string $str, int $start = 0, ?int $length = null) : string
     68    public static function safeSubstr(#[SensitiveParameter] string $str, int $start = 0, ?int $length = null) : string
    7269    {
    7370        if ($length === 0) {
    7471            return '';
    7572        }
    76         if (\function_exists('mb_substr')) {
    77             return \mb_substr($str, $start, $length, '8bit');
    78         }
    7973        // Unlike mb_substr(), substr() doesn't accept NULL for length
    8074        if ($length !== null) {
    81             return \substr($str, $start, $length);
     75            return substr($str, $start, $length);
    8276        } else {
    83             return \substr($str, $start);
     77            return substr($str, $start);
    8478        }
    8579    }
  • secured-wp/trunk/third-party/vendor/vendor/paragonie/constant_time_encoding/src/EncoderInterface.php

    r3359234 r3377588  
    44namespace WPSEC_Vendor\ParagonIE\ConstantTime;
    55
     6use SensitiveParameter;
    67/**
    78 *  Copyright (c) 2016 - 2022 Paragon Initiative Enterprises.
     
    4041     * @return string
    4142     */
    42     public static function encode(string $binString) : string;
     43    public static function encode(#[SensitiveParameter] string $binString) : string;
    4344    /**
    4445     * Convert a binary string into a hexadecimal string without cache-timing
     
    4950     * @return string (raw binary)
    5051     */
    51     public static function decode(string $encodedString, bool $strictPadding = \false) : string;
     52    public static function decode(#[SensitiveParameter] string $encodedString, bool $strictPadding = \false) : string;
    5253}
  • secured-wp/trunk/third-party/vendor/vendor/paragonie/constant_time_encoding/src/Encoding.php

    r3359234 r3377588  
    44namespace WPSEC_Vendor\ParagonIE\ConstantTime;
    55
     6use RangeException;
     7use SensitiveParameter;
    68use TypeError;
    79/**
     
    3032 * Class Encoding
    3133 * @package ParagonIE\ConstantTime
     34 * @api
    3235 * @internal
    3336 */
     
    4144     * @throws TypeError
    4245     */
    43     public static function base32Encode(#[\SensitiveParameter] string $str) : string
     46    public static function base32Encode(#[SensitiveParameter] string $str) : string
    4447    {
    4548        return Base32::encode($str);
     
    5255     * @throws TypeError
    5356     */
    54     public static function base32EncodeUpper(#[\SensitiveParameter] string $str) : string
     57    public static function base32EncodeUpper(#[SensitiveParameter] string $str) : string
    5558    {
    5659        return Base32::encodeUpper($str);
     
    6366     * @throws TypeError
    6467     */
    65     public static function base32Decode(#[\SensitiveParameter] string $str) : string
     68    public static function base32Decode(#[SensitiveParameter] string $str) : string
    6669    {
    6770        return Base32::decode($str);
     
    7477     * @throws TypeError
    7578     */
    76     public static function base32DecodeUpper(#[\SensitiveParameter] string $str) : string
     79    public static function base32DecodeUpper(#[SensitiveParameter] string $str) : string
    7780    {
    7881        return Base32::decodeUpper($str);
     
    8588     * @throws TypeError
    8689     */
    87     public static function base32HexEncode(#[\SensitiveParameter] string $str) : string
     90    public static function base32HexEncode(#[SensitiveParameter] string $str) : string
    8891    {
    8992        return Base32Hex::encode($str);
     
    9699     * @throws TypeError
    97100     */
    98     public static function base32HexEncodeUpper(#[\SensitiveParameter] string $str) : string
     101    public static function base32HexEncodeUpper(#[SensitiveParameter] string $str) : string
    99102    {
    100103        return Base32Hex::encodeUpper($str);
     
    107110     * @throws TypeError
    108111     */
    109     public static function base32HexDecode(#[\SensitiveParameter] string $str) : string
     112    public static function base32HexDecode(#[SensitiveParameter] string $str) : string
    110113    {
    111114        return Base32Hex::decode($str);
     
    118121     * @throws TypeError
    119122     */
    120     public static function base32HexDecodeUpper(#[\SensitiveParameter] string $str) : string
     123    public static function base32HexDecodeUpper(#[SensitiveParameter] string $str) : string
    121124    {
    122125        return Base32Hex::decodeUpper($str);
     
    129132     * @throws TypeError
    130133     */
    131     public static function base64Encode(#[\SensitiveParameter] string $str) : string
     134    public static function base64Encode(#[SensitiveParameter] string $str) : string
    132135    {
    133136        return Base64::encode($str);
     
    140143     * @throws TypeError
    141144     */
    142     public static function base64Decode(#[\SensitiveParameter] string $str) : string
     145    public static function base64Decode(#[SensitiveParameter] string $str) : string
    143146    {
    144147        return Base64::decode($str);
     
    152155     * @throws TypeError
    153156     */
    154     public static function base64EncodeDotSlash(#[\SensitiveParameter] string $str) : string
     157    public static function base64EncodeDotSlash(#[SensitiveParameter] string $str) : string
    155158    {
    156159        return Base64DotSlash::encode($str);
     
    163166     * @param string $str
    164167     * @return string
    165      * @throws \RangeException
    166      * @throws TypeError
    167      */
    168     public static function base64DecodeDotSlash(#[\SensitiveParameter] string $str) : string
     168     * @throws RangeException
     169     * @throws TypeError
     170     */
     171    public static function base64DecodeDotSlash(#[SensitiveParameter] string $str) : string
    169172    {
    170173        return Base64DotSlash::decode($str);
     
    178181     * @throws TypeError
    179182     */
    180     public static function base64EncodeDotSlashOrdered(#[\SensitiveParameter] string $str) : string
     183    public static function base64EncodeDotSlashOrdered(#[SensitiveParameter] string $str) : string
    181184    {
    182185        return Base64DotSlashOrdered::encode($str);
     
    189192     * @param string $str
    190193     * @return string
    191      * @throws \RangeException
    192      * @throws TypeError
    193      */
    194     public static function base64DecodeDotSlashOrdered(#[\SensitiveParameter] string $str) : string
     194     * @throws RangeException
     195     * @throws TypeError
     196     */
     197    public static function base64DecodeDotSlashOrdered(#[SensitiveParameter] string $str) : string
    195198    {
    196199        return Base64DotSlashOrdered::decode($str);
     
    204207     * @throws TypeError
    205208     */
    206     public static function hexEncode(#[\SensitiveParameter] string $bin_string) : string
     209    public static function hexEncode(#[SensitiveParameter] string $bin_string) : string
    207210    {
    208211        return Hex::encode($bin_string);
     
    214217     * @param string $hex_string
    215218     * @return string (raw binary)
    216      * @throws \RangeException
    217      */
    218     public static function hexDecode(#[\SensitiveParameter] string $hex_string) : string
     219     * @throws RangeException
     220     */
     221    public static function hexDecode(#[SensitiveParameter] string $hex_string) : string
    219222    {
    220223        return Hex::decode($hex_string);
     
    228231     * @throws TypeError
    229232     */
    230     public static function hexEncodeUpper(#[\SensitiveParameter] string $bin_string) : string
     233    public static function hexEncodeUpper(#[SensitiveParameter] string $bin_string) : string
    231234    {
    232235        return Hex::encodeUpper($bin_string);
     
    239242     * @return string
    240243     */
    241     public static function hexDecodeUpper(#[\SensitiveParameter] string $bin_string) : string
     244    public static function hexDecodeUpper(#[SensitiveParameter] string $bin_string) : string
    242245    {
    243246        return Hex::decode($bin_string);
  • secured-wp/trunk/third-party/vendor/vendor/paragonie/constant_time_encoding/src/Hex.php

    r3359234 r3377588  
    44namespace WPSEC_Vendor\ParagonIE\ConstantTime;
    55
     6use WPSEC_Vendor\Override;
    67use RangeException;
     8use SensitiveParameter;
     9use SodiumException;
    710use TypeError;
     11use function extension_loaded;
     12use function pack;
     13use function sodium_bin2hex;
     14use function sodium_hex2bin;
     15use function strlen;
     16use function unpack;
    817/**
    9  *  Copyright (c) 2016 - 2022 Paragon Initiative Enterprises.
     18 *  Copyright (c) 2016 - 2025 Paragon Initiative Enterprises.
    1019 *  Copyright (c) 2014 Steve "Sc00bz" Thomas (steve at tobtu dot com)
    1120 *
     
    4352     * @throws TypeError
    4453     */
    45     public static function encode(#[\SensitiveParameter] string $binString) : string
     54    #[Override]
     55    public static function encode(#[SensitiveParameter] string $binString) : string
    4656    {
     57        if (extension_loaded('sodium')) {
     58            try {
     59                return sodium_bin2hex($binString);
     60            } catch (SodiumException $ex) {
     61                throw new RangeException($ex->getMessage(), $ex->getCode(), $ex);
     62            }
     63        }
    4764        $hex = '';
    48         $len = Binary::safeStrlen($binString);
     65        $len = strlen($binString);
    4966        for ($i = 0; $i < $len; ++$i) {
    5067            /** @var array<int, int> $chunk */
    51             $chunk = \unpack('C', $binString[$i]);
     68            $chunk = unpack('C', $binString[$i]);
    5269            $c = $chunk[1] & 0xf;
    5370            $b = $chunk[1] >> 4;
    54             $hex .= \pack('CC', 87 + $b + ($b - 10 >> 8 & ~38), 87 + $c + ($c - 10 >> 8 & ~38));
     71            $hex .= pack('CC', 87 + $b + ($b - 10 >> 8 & ~38), 87 + $c + ($c - 10 >> 8 & ~38));
    5572        }
    5673        return $hex;
     
    6481     * @throws TypeError
    6582     */
    66     public static function encodeUpper(#[\SensitiveParameter] string $binString) : string
     83    public static function encodeUpper(#[SensitiveParameter] string $binString) : string
    6784    {
    6885        $hex = '';
    69         $len = Binary::safeStrlen($binString);
     86        $len = strlen($binString);
    7087        for ($i = 0; $i < $len; ++$i) {
    7188            /** @var array<int, int> $chunk */
    72             $chunk = \unpack('C', $binString[$i]);
     89            $chunk = unpack('C', $binString[$i]);
    7390            $c = $chunk[1] & 0xf;
    7491            $b = $chunk[1] >> 4;
    75             $hex .= \pack('CC', 55 + $b + ($b - 10 >> 8 & ~6), 55 + $c + ($c - 10 >> 8 & ~6));
     92            $hex .= pack('CC', 55 + $b + ($b - 10 >> 8 & ~6), 55 + $c + ($c - 10 >> 8 & ~6));
    7693        }
    7794        return $hex;
     
    86103     * @throws RangeException
    87104     */
    88     public static function decode(#[\SensitiveParameter] string $encodedString, bool $strictPadding = \false) : string
     105    #[Override]
     106    public static function decode(#[SensitiveParameter] string $encodedString, bool $strictPadding = \false) : string
    89107    {
     108        if (extension_loaded('sodium') && $strictPadding) {
     109            try {
     110                return sodium_hex2bin($encodedString);
     111            } catch (SodiumException $ex) {
     112                throw new RangeException($ex->getMessage(), $ex->getCode(), $ex);
     113            }
     114        }
    90115        $hex_pos = 0;
    91116        $bin = '';
    92117        $c_acc = 0;
    93         $hex_len = Binary::safeStrlen($encodedString);
     118        $hex_len = strlen($encodedString);
    94119        $state = 0;
    95120        if (($hex_len & 1) !== 0) {
     
    102127        }
    103128        /** @var array<int, int> $chunk */
    104         $chunk = \unpack('C*', $encodedString);
     129        $chunk = unpack('C*', $encodedString);
    105130        while ($hex_pos < $hex_len) {
    106131            ++$hex_pos;
     
    117142                $c_acc = $c_val * 16;
    118143            } else {
    119                 $bin .= \pack('C', $c_acc | $c_val);
     144                $bin .= pack('C', $c_acc | $c_val);
    120145            }
    121146            $state ^= 1;
  • secured-wp/trunk/third-party/vendor/vendor/paragonie/constant_time_encoding/src/RFC4648.php

    r3359234 r3377588  
    44namespace WPSEC_Vendor\ParagonIE\ConstantTime;
    55
     6use SensitiveParameter;
    67use TypeError;
    78/**
     
    3334 *
    3435 * @package ParagonIE\ConstantTime
     36 * @api
    3537 * @internal
    3638 */
     
    4749     * @throws TypeError
    4850     */
    49     public static function base64Encode(#[\SensitiveParameter] string $str) : string
     51    public static function base64Encode(#[SensitiveParameter] string $str) : string
    5052    {
    5153        return Base64::encode($str);
     
    6163     * @throws TypeError
    6264     */
    63     public static function base64Decode(#[\SensitiveParameter] string $str) : string
     65    public static function base64Decode(#[SensitiveParameter] string $str) : string
    6466    {
    6567        return Base64::decode($str, \true);
     
    7577     * @throws TypeError
    7678     */
    77     public static function base64UrlSafeEncode(#[\SensitiveParameter] string $str) : string
     79    public static function base64UrlSafeEncode(#[SensitiveParameter] string $str) : string
    7880    {
    7981        return Base64UrlSafe::encode($str);
     
    8991     * @throws TypeError
    9092     */
    91     public static function base64UrlSafeDecode(#[\SensitiveParameter] string $str) : string
     93    public static function base64UrlSafeDecode(#[SensitiveParameter] string $str) : string
    9294    {
    9395        return Base64UrlSafe::decode($str, \true);
     
    103105     * @throws TypeError
    104106     */
    105     public static function base32Encode(#[\SensitiveParameter] string $str) : string
     107    public static function base32Encode(#[SensitiveParameter] string $str) : string
    106108    {
    107109        return Base32::encodeUpper($str);
     
    117119     * @throws TypeError
    118120     */
    119     public static function base32Decode(#[\SensitiveParameter] string $str) : string
     121    public static function base32Decode(#[SensitiveParameter] string $str) : string
    120122    {
    121123        return Base32::decodeUpper($str, \true);
     
    131133     * @throws TypeError
    132134     */
    133     public static function base32HexEncode(#[\SensitiveParameter] string $str) : string
     135    public static function base32HexEncode(#[SensitiveParameter] string $str) : string
    134136    {
    135137        return Base32::encodeUpper($str);
     
    145147     * @throws TypeError
    146148     */
    147     public static function base32HexDecode(#[\SensitiveParameter] string $str) : string
     149    public static function base32HexDecode(#[SensitiveParameter] string $str) : string
    148150    {
    149151        return Base32::decodeUpper($str, \true);
     
    159161     * @throws TypeError
    160162     */
    161     public static function base16Encode(#[\SensitiveParameter] string $str) : string
     163    public static function base16Encode(#[SensitiveParameter] string $str) : string
    162164    {
    163165        return Hex::encodeUpper($str);
     
    171173     * @return string
    172174     */
    173     public static function base16Decode(#[\SensitiveParameter] string $str) : string
     175    public static function base16Decode(#[SensitiveParameter] string $str) : string
    174176    {
    175177        return Hex::decode($str, \true);
  • secured-wp/trunk/third-party/vendor/vendor/spomky-labs/otphp/src/Factory.php

    r3359244 r3377588  
    2626        }
    2727        if ($clock === null) {
     28            trigger_deprecation('spomky-labs/otphp', '11.3.0', 'The parameter "$clock" will become mandatory in 12.0.0. Please set a valid PSR Clock implementation instead of "null".');
    2829            $clock = new InternalClock();
    2930        }
  • secured-wp/trunk/third-party/vendor/vendor/spomky-labs/otphp/src/TOTP.php

    r3359244 r3377588  
    1919        parent::__construct($secret);
    2020        if ($clock === null) {
     21            trigger_deprecation('spomky-labs/otphp', '11.3.0', 'The parameter "$clock" will become mandatory in 12.0.0. Please set a valid PSR Clock implementation instead of "null".');
    2122            $clock = new InternalClock();
    2223        }
Note: See TracChangeset for help on using the changeset viewer.