If rate limit is hit, IP address is leaked to anyone who tries to login
After the login rate limit is hit, Bugzilla blocks the IP address and then displays that IP address to anyone who subsequently tries to log in, regardless of their own IP. An attacker could learn the IP address of a user who triggered the rate limit.
Originally disclosed on HackerOne
- Disclosed after 4 months
Summary:
After the rate limit on https://bugzilla.mozilla.org/home on the login page is hit, bugzilla blocks the ip address. The next time someone logs in from any ip address, mozilla will say that the account has been locked and will list the ip address which broke the rate limit (which could be the user's). This is the message that shows up: █████
Steps To Reproduce:
- Activate the rate limit by getting 30+ wrong passwords. You can do an intruder attack with around 50 wrong passwords and when the attack stops without all the payloads going through, you know that the rate limit has been hit.
- Now, go to another tab from another ip address (using a vpn) and try to login (it doesn' t matter if it is the correct password or not). You will see the previous address you tried to login from as shown in the screenshot above.
Supporting Material/References:
██████████
Remediation Just say that the account has been locked due to excessive attempts. If you want to inform the user that this is happeneng, just email the ip address to them saying that there were too many requests coming in from that address.
Impact
If a user logs in too many times and the rate limit is hit, an attacker who may try to attack the account will see the ip address of the user.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application includes the blocked IP address in the error message shown to all users after a rate limit is triggered, instead of keeping it private.
Impact
An attacker could learn the IP address of a user who triggered the rate limit.
What the attacker needed
Ability to trigger rate limit; access to another IP address
The fix
The error message should not include the IP address; instead, it should simply state that the account is locked due to excessive attempts, and optionally notify the user via email.
How it was found
- Trigger the rate limit by making many failed login attempts (e.g., 30+ wrong passwords).
- From a different IP address (e.g., using a VPN), attempt to log in with any credentials.
- Observe that the error message displays the IP address that triggered the rate limit.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
When you try to log in too many times with wrong passwords, the website temporarily blocks your IP address (the number that identifies your internet connection). The bug is that the website then shows that blocked IP address to anyone who tries to log in next, even if they are on a different network. This means someone else can find out your IP address just by visiting the login page after you have been blocked.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.