WordPress Security Flaw – Admin Password Reset
It is possible to reset the admin password in all versions of wordpress up to and including the most recent version 2.8.3.
This information comes from a milw0rm exploit.
So, the jist is you can simply go to:
http://domain.example/wp-login.php?action=rp&key[]=and it’ll reset the admin password. milw0rm didn’t supply a patch, but thankfully the internet is awesome and pzero from reddit pointed me to the fix:
Open wp-login.php and goto line 190 (assuming WP 2.8.3, or for earlier versions line 169) and replace this line:
if (empty( $key ) )
if (empty( $key ) || is_array( $key ) )
UPDATE: wordpress have now released 2.8.4 which fixes this issue. Upgrade now.
Here are some screenshots showing exactly how it works:

Wordpress password reset - malicious URL

Wordpress password reset - attack worked

Wordpress password reset - Patched!
- Annoyance.
- Inconvenience.
- Admin lock-out, if a script was set up to repeatedly generate new passwords.
- Admin lock-out, if admin no longer has access to their “admin” email address.
- Resource consumption.
- Email flood.
0 Response to "WordPress Security Flaw – Admin Password Reset"
Post a Comment