Plugin Directory

Changeset 1651059


Ignore:
Timestamp:
05/04/2017 02:03:05 PM (9 years ago)
Author:
abjelosevic
Message:

1.40-check for admin and administrator usernames

Location:
ab-wp-security
Files:
6 added
2 edited

Legend:

Unmodified
Added
Removed
  • ab-wp-security/trunk/ab-wp-security-plugin.php

    r1646940 r1651059  
    33   Plugin Name: AB WP Security
    44   Plugin URI: http://aleksandar.bjelosevic.info/abwps
    5    Description: Security plugin that stop User Enumeration in WordPress, Disable XML-RPC and Remove WordPress Version Number
    6    Version: 1.30
     5   Description: Security plugin that stop User Enumeration in WordPress,check for admin and administrator usernames, Disable XML-RPC and Remove WordPress Version Number
     6   Version: 1.40
    77   Author: Aleksandar Bjelosevic
    88   Author URI: http://aleksandar.bjelosevic.info
     
    4040            ?>
    4141         </form>
    42          
     42         <?php 
     43           //check users
     44           abwp_check_users();
     45           ?>
    4346      </div>
    4447   <?php
     
    9194}
    9295
     96//check username for security!
     97function abwp_check_users()
     98{
     99         $username = array("admin","administrator");
     100         
     101         for($x=0;$x<count($username);$x++)
     102  {
     103       if ( username_exists( $username[$x] ) )
     104           echo "Username: <b>".$username[$x]."</b> In Use!<b>THIS IS MAJOR SECURITY RISK!</b><br>";
     105         
     106   }     
     107
     108}
    93109
    94110function ab_wp_security_clean() {
     
    111127    add_filter('redirect_canonical', 'abwp_check_enum', 10, 2);
    112128}         
    113            
     129                   
    114130           
    115131           
  • ab-wp-security/trunk/readme.txt

    r1646941 r1651059  
    55Requires at least: 3.8
    66Tested up to: 4.7.4
    7 Stable tag: 1.30
     7Stable tag: 1.40
    88License: GPLv3
    99License URI: http://www.gnu.org/licenses/gpl.html
     
    2222
    2323== Changelog ==
     24
     25= V1.40 =
     26Check for admin and administrator usernames
    2427
    2528= V1.30 =
Note: See TracChangeset for help on using the changeset viewer.