The devil is in the details — Authentication Bypass
The magic link authentication mechanism used similar URLs for the validation page and the activation link, differing only in the endpoint. By changing the endpoint to 'verifymailbylink', an attacker could access other users' accounts.
Hello, I’m Taha. Today, I’ll go over one of the vulnerabilities I was rewarded for last month.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application used the same activation code in two different endpoints without proper access control, allowing the code from one endpoint to be used on the other to bypass authentication.
Impact
An attacker could gain access to other users' accounts, potentially leading to account takeover.
What the attacker needed
A free account; knowledge of another user's activation code
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 write-up has not been written yet. The Original tab links to the source.
Magic links are a passwordless login method where a user clicks a link sent to their email to sign in. Here, the website's login link and a separate verification page had almost the same web address, and swapping one part let someone else log in as another user.
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.