Security misconfiguration
A magic login link could be reused multiple times across different browsers, with no limit on its use. If an attacker obtained a victim's magic link, they could log into the victim's account.
Originally disclosed on HackerOne
- Triaged in 2 days
- Fixed in 2 months
- Disclosed after 3 months
Description :
When we request a magic link to login into the application, and use that same link in multiple browsers, it working there isn't any limit on use of link.
Steps to reproduce :
- go to app.lemilist.com
- create a magic link
- use it to login
- now open another browser or incognito window
- use that same magic link
And You'll be logged in in your account.
Impact
If Attacker gets the magic link of user he can login into victim's account. Account takeover.
Mitigation :
- Add a limit to magic link and remove the magic link from database after 1 use.
- only allow the Requester IP to login using the magic link.
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 magic link token was not invalidated after first use and was not bound to the requesting client.
Impact
If an attacker obtains a user's magic link, they could log into the victim's account, leading to account takeover.
What the attacker needed
Attacker obtains the magic link
The fix
The magic link should be limited to a single use and removed from the database after use, and optionally restricted to the requester's IP address.
How it was found
- Go to the application.
- Create a magic link.
- Use it to log in.
- Open another browser or an incognito window.
- Use the same magic link again and you are logged 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.
A magic link is a login URL. Here it kept working after use, so anyone who got it could log in as that user. The fix is to make it single-use and tie it to the requester.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.