• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Nile Flores Media

Helping You Rock Out Your Website Like A Rockstar

  • Home
  • About
  • Blog
  • Portfolio
  • Hire Me
  • Resources
  • Contact
  • Blogging
  • WordPress
  • Social Media
  • SEO
  • Web Design
  • News
  • Podcast
You are here: Home » News » WordPress Login Flawed: Here is Fix

WordPress Login Flawed: Here is Fix

By Nile Flores 2 Comments


This morning, someone tried logging into Blondish.net 4 times. Or well, they reset my password 4 times! This was not big issue as my email account was not compromised. However I found that this was not a singular issue as it was widespread. Also, when I checked my recent visitor stats, they all were directly to my WordPress login page. ProgrammerFish blogged about it in their article WordPress Security Flaw: Reset Admin Password of Any Blog Without Confirmation!

The incident occured at 3AM CST USA. My fix was the same as ProgrammerFish. The issue was that people can just leave the field to retrieve the password and leave the field that asks for username or password blank in their WordPress login page. This fix would require something in the field.

However, here is the fix that you can copy and paste.

To fix:

Go to wp-login.php and scroll to line 190 in WordPress version 2.8.3. I am not going to bother with earlier versions as you SHOULD be using the most current version of WordPress…period! For those not much into counting, and are comfortable with WordPress enough to scan it, it is the part after mentioning $key. In fact, there is a notation the file that says “Handles resetting the user’s password”. WordPress is cool like that making it easy to find each section. 😉

if ( empty($key) )

Replace above code with

if ( empty($key)|| is_array($key) )

Now, your WordPress login should not be accessed unless your admin email is put in. Also, as usual, make sure that your passwords are not easy to guess.

Did you have this problem recently? Have you fixed it?


Filed Under: News Tagged With: wordpress

About Nile Flores

Nile is a 43-year old female from the greater St. Louis (Southern Illinois side) area. Nile is a mother of 1 son. She is also a web designer and developer, a graphic designer, and a public speaker, who exclusively designs and develops using WordPress. She also blogs at GoDaddy's Blog, Verpex Hosting's blog and her very personal sites, Pixelled and Nail Polish Happy.




Related posts:

No related posts.

Reader Interactions

Trackbacks

  1. Nile Flores (blondishnet) 's status on Wednesday, 12-Aug-09 00:25:21 UTC - Identi.ca says:
    August 11, 2009 at 6:25 pm

    […] WordPress Login Flawed: Here is Fix http://blondish.net/wordpress-login-flawed-here-is-fix/ […]

    Reply
  2. blondishnet (Nile Flores) says:
    August 11, 2009 at 7:18 pm

    FriendFeed Comment


    WordPress Login Flawed: Here is Fix – [link to post] http://friendfeed.com/e/a37f70f5-9d25-46fb-8574-c22f7e97ba63

    – Posted using Chat Catcher

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Follow Me On:

  • Facebook
  • Instagram
  • LinkedIn
  • Twitter
  • YouTube

Get The Latest WordPress & Blogging Tips

Sign up for my newsletter, and also get my free ebook on 10 Reasons Why Your Website Isn't Converting, and How to Fix it!




Try to be More Positive on Social Media

Note: You can click on image and view the video in a larger lightbox window.

Footer

The Blog

Lots of free information, tutorials, and more to help you bring your best foot forward with your website.

  • Blogging
  • WordPress
  • Social Media
  • SEO
  • Web Design

Get The Latest WordPress & Blogging Tips

Sign up for my newsletter, and also get my free ebook on 10 Reasons Why Your Website Isn't Converting, and How to Fix it!

Copyright © 2025 · · WordPress