Make WordPress Core

#63936 closed defect (bug) (duplicate)

wordpress return http200 instead of 401 on login error

Reported by: aqueos Owned by:
Priority: normal Milestone:
Component: Login and Registration Version: 6.8.2
Severity: normal Keywords:
Cc: Focuses: sustainability

Description

hi,

in case of auth error wordpress return a http code of 200 instead of 401 (unauthorised) or 403 but 401 is more fitting.

I guess this is to use "security by obscurity" but the thousands of bots par hour pilling my server's wp-login.php show this has no effect at tall on the obscurity side of things. It also prevent fail2ban filter or home made filter to block abuser ip easely.

So i think this would greatly benefit to return the appropriate http code in case of a bad login/pass or auth result in wordpress.

best regards,
Ghislain.


Change History (1)

#1 @johnbillion
15 months ago

  • Milestone Awaiting Review
  • Resolution → duplicate
  • Status new → closed

Duplicate of #25446.

Note: See TracTickets for help on using tickets.