Improper access control when an added email address is deleted from authentication
A confirmation link sent to an email address remains valid after that address is removed from the account's authentication settings. An attacker holding the old link can still log in and the removed address is automatically re-added.
Originally disclosed on HackerOne
- Disclosed after 23 days
Hi team,
There is improper access control kind of vulnerability present in your web application.
Steps to reproduce:
- Create an account.
2.You will recevie a link on email about confrimation. 2. Login into it and add another email address in authentication tab and You will recevie a link on the new email about confrimation.
3.Remove the the any email address from it authentication tab. (Suppose your old email address got lost or hacked).
Now suppose I removed old email address from authentication tab because i doubt the my old email id got hacked.
Logically when user click on the link recived in the step 2 the user should not be allowed to enter in the application because we have removed the email from authentication tab.
When attacker click on the old link recieved in the step 2 will be able to login into the application and the old email id will be automatically added to authentication tab in that account even the we have alredy removed that email address from our account.
Please let me know if anything more is required .!
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 confirmation link is not invalidated when the associated email address is removed from the account.
Impact
An attacker who has an old confirmation link could log in to the account and re-add the removed email address.
What the attacker needed
A free account; attacker has the old confirmation link
The fix
The report implies the link should not work after removal, but no fix is stated.
How it was found
- Create an account and receive a confirmation link by email.
- Log in and add another email address in the authentication tab, receiving a confirmation link on the new address.
- Remove an email address from the authentication tab.
- Use the old confirmation link from the added address to log in.
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 add an email address to your account, the site sends a link to prove you own it. This report says that link keeps working even after you remove that email address, so anyone who still has the link can get back into the account.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.