Make WordPress Core


Ignore:
Timestamp:
04/03/2025 01:51:28 PM (11 months ago)
Author:
johnbillion
Message:

Application Passwords: Correct the fallback behaviour for application passwords that don't use a generic hash.

Application passwords that aren't hashed using BLAKE2b should be checked using wp_check_password() rather than assuming they were hashed with phpass. This provides full back compat support for application passwords that were created via an overridden wp_hash_password() function that uses an alternative hashing algorithm.

Props snicco, debarghyabanerjee, peterwilsoncc, jorbin, johnbillion.

Fixes #63203

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/functions.php

    r60119 r60123  
    91509150 *
    91519151 * The function uses Sodium to hash the message and compare it to the hashed value. If the hash is not a generic hash,
    9152  * the hash is treated as a phpass portable hash in order to provide backward compatibility for application passwords
    9153  * which were hashed using phpass prior to WordPress 6.8.0.
     9152 * the hash is treated as a phpass portable hash in order to provide backward compatibility for passwords and security
     9153 * keys which were hashed using phpass prior to WordPress 6.8.0.
    91549154 *
    91559155 * @since 6.8.0
Note: See TracChangeset for help on using the changeset viewer.