Cloud flare bypass leads to Account Takeover via Password Reset Poisoning
The password reset link was generated using the Origin header instead of the request host, allowing an attacker to poison the link to point to their own domain. By manipulating the Origin header, an attacker could steal the reset token and take over the victim's account.
Published on medium.com
FREE LINK
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
Impact
An attacker could obtain the reset token and take over the victim's account, though the exploit required bypassing Cloudflare and the victim clicking the poisoned link.
What the attacker needed
Victim clicks the poisoned reset link; attacker can send requests with modified Origin header; Cloudflare bypass needed
How it was found
- Send a password reset request with the Origin header changed to the attacker's webhook site.
- The server accepts the request and sends a reset email containing a link to the attacker's site.
- The victim clicks the link and is redirected to the attacker's site with the reset token in the URL.
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.
When you forget your password, a website sends a reset link to your email. This link contains a secret code that lets you set a new password. In this bug, the website built that link using a value that the attacker could control, so the attacker could make the link point to their own site and steal the secret code, then use it to take over the account.
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.