Rename wp-login Plugin Bypassed & Now Fixed
-
For the standard “wp-login.php” pages and their standard locations in WordPress, your plugin works, but yesterday, someone bypassed your plugin by typing a folder and file location different from the standard and got to the login page.
Standard:
(domain name)/WordPress/wp-login.php or (domain name)/wp-login.php.ByPass method:
(domain name)/wp-includes/wp-login.phpor
(domain name)/wp-content/uploads/2013/12/wp-login.php
(I tested their method and it bypassed the plugin security)
Since there were no “wp-login” pages installed there, WordPress took the viewer to the WordPress login page and bypassed the plugin. This also revealed the coded login page name the plugin allowed us to make. (Not nice).
But I believe I found an answer to this.
Since the plugin addresses any URL attempt to access “wp-login”, so long as the php login file is located in the folder accessed, it will redirect the person to a WordPress 404 page.
Saying this, I did the following:
1. I made a “wp-login.php” page, with basic HTML source coding saying “This is your login page – enjoy”. If that fake login is viewed, that is what they will read. You can use Notepad or Notepad++ for this. Make sure the extension is “.php”2. Uploaded the fake “wp-login.php” to the folders “wp-includes” “wp-admin” and “wp-content”. (***MAKE SURE there is no wp-login.php file already in those folders)
3. Test the plugin, open a new browser (make sure your logged out of WordPress), type the URL location – “domain name/wp-includes (or wp-content, or wp-admin)/wp-login.php” and it works, 404 page appears. Also test “wp-content/uploads/2013/12 (or any date)/wp-login.php” and it will also redirect to a 404 page. Apparently all that was needed was an upload into “wp-content” and not into any of its subfolders.
Now the plugin works, but always remember those fake login.php pages, don’t mistakenly use them (replace or copy over) as replacements for the real login.php file.
- The topic ‘Rename wp-login Plugin Bypassed & Now Fixed’ is closed to new replies.