-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
login_limit_exceeded
on expired sessions
#4746
Comments
This issue has been marked stale because it has been open for 60 days with no activity. If there is no activity within 7 days, it will be closed. This is an automation to keep issues manageable and actionable and is not a comment on the quality of this issue nor on the work done so far. Closed issues are still valuable to the project and are available to be searched. |
Hi, this is still an issue. Can this bug be triaged? |
This issue has been marked stale because it has been open for 60 days with no activity. If there is no activity within 7 days, it will be closed. This is an automation to keep issues manageable and actionable and is not a comment on the quality of this issue nor on the work done so far. Closed issues are still valuable to the project and are available to be searched. |
Hello, still an issue. |
We have a report of another VIP customer likely experiencing this issue resulting in login difficulties while travelling in VIP ticket #189995. |
Expected/Desired Behavior
Expired sessions should not count as failed auth attempts towards the login limit.
Actual Behavior
If a logged in user has multiple browser windows (tabs) open in the admin and their session expires (natural timeout), each window's ajax heartbeat will trigger the
wp_failed_login
action with an error ofexpired_session
which can easily exceed the login limit leading to a temporary block.My objection is that an expired session is not a failed authentication attempt. WordPress core simply checked their login status and prompted a re-auth. security.php only checks for
wp_failed_login
actions without considering the type.On sites where the
wpcom_vip_ip_login_threshold
is filtered, or in FedRAMP environments where theip_login
default is 5, it is easy to unintentionally exceed the threshold.Steps to Reproduce the Problem
Setup
Add to client-mu-plugins:
(Optional) Additional notes
The text was updated successfully, but these errors were encountered: