Skip to main content

wp-login.php attack

Comments

5 comments

  • Tom Risager
    That looks like a distributed attack, originating from many different IP addresses. As far as I know there is no reasonable way to deal with those via Modsecurity.
    0
  • LostNerd
    I recommend a free wordpress plugin called WordFence in addition to your server-side rules. It'll keep an eye for attacks like this and take the predetermined actions dependent on your settings.
    0
  • postcd
    You may also consider allowing only certain IP on wp-login.php page and 403 to rest IPs: add following to your .htaccess file in your WP site root directory (public_html usually) Order deny,allow Deny from All Allow from xxx.xxx.xxx.xxx Allow from yyy.yyy.yyy.yyy
    add your IP instead of xxx.xxx***** Im also using config server firewall, it is capable of blocking many bulk IP tries and also IPs that getting too many 403 or 401 errors.., even "Network class C 1*.*.*.0/24 has been blocked", CSF can block also /24 subnet maybe (not your case probably) Im also using this mod security rule to deny 401 accesses without referer: SecRule REQUEST_METHOD "POST" "deny,status:401,id:5000130,nolog,chain,msg:'wp-login request blocked, no referer'" SecRule &HTTP_REFERER "@eq 0" "chain" SecRule REQUEST_URI "wp-login.php"
    PS: Doesnt mean code "200" in your access log you shown, that this visit is not denied (by mod security or by htaccess rule) ?
    0
  • sahostking
    Did all that already. Got CSF and already have a rule like that. But still because it's constantly different IPs I guess there is nothing can be done unless it hits the file with the same IP in a certain number of times. Thanks though.
    0
  • cPanelMichael
    Did all that already. Got CSF and already have a rule like that. But still because it's constantly different IPs I guess there is nothing can be done unless it hits the file with the same IP in a certain number of times.

    Hello, You may also want to consult with your provider to see if there are any steps they can take to help prevent this type of attack from the network level. Thank you.
    0

Please sign in to leave a comment.