• Resolved eddyferns

    (@eddyferns)


    Despite enabling all options under “Protect against username enumeration”, the usernames are obtained by the following methods:

    1. RSS Generator

    2. Embeds — When “WordPress REST API” block is not enabled.

    Regards,
    Ed

Viewing 10 replies - 1 through 10 (of 10 total)
  • Just to chime in here, AFAIK if a nickname for the user is set, which is different from the username, then that is the only thing revealed in the RSS feed.

    Thread Starter eddyferns

    (@eddyferns)

    That is true but there are some who set username as nickname inadvertently or unknowingly, which also is usually the case for novices. So it would a given for them that the plugin has it all covered.

    Plugin Author nintechnet

    (@nintechnet)

    It’s almost impossible to hide all usernames. There are also several plugins or themes than can leak them in the page. That’s the reason why we mention in the documentation that it is better to use a strong password along with the brute-force protection, rather than to rely on the user enumeration protection.

    Thread Starter eddyferns

    (@eddyferns)

    Point taken per the circumstances. Will check further how far user enumeration can be hardened.

    Username leak via RSS can be plugged through code.

    Plugin Author nintechnet

    (@nintechnet)

    I’ll check the RSS feed. I guess all I’d need to do is to hook it and remove the <dc:creator> tag.

    Thread Starter eddyferns

    (@eddyferns)

    When successful you could then have it as a feature for your plugin either inclusively or as an option.

    Plugin Author nintechnet

    (@nintechnet)

    It will have to be optional as some users may want to keep the user name in the feed. In the meantime, if you want to block it now you can add this code anywhere inside the ‘ninjafirewall/lib/utils.php’:

    function nfw_check_author( $display_name ) {
        if ( is_feed() ) {
            return '';
        }
        return $display_name;
    }
    add_filter( 'the_author', 'nfw_check_author', 99999, 1 );
    
    Thread Starter eddyferns

    (@eddyferns)

    Thanks for the code. Username no longer displays!

    Alternatively, the same can be achieved by disabling feeds if not needed.

    FYI, there is a pesty slug /?feed, which is not a feed, directing WordPress websites to a Post where the username is showing in the page source code. Unfortunately the .htaccess redirect doesn’t work. Perhaps php again is the way out.

    Plugin Author nintechnet

    (@nintechnet)

    You need to block an existing but empty $_GET['feed'] with the .htninja file:

    if ( isset( $_GET['feed'] ) && $_GET['feed'] == '' ) {
       return 'BLOCK'; // reject it
    }
    
    Thread Starter eddyferns

    (@eddyferns)

    Awesome! Gets the job done.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘User Enumeration issue’ is closed to new replies.