Account Takeover Via Poising Forget Password Port In Asda
The password reset link was built from the Host header, including the port, without validation. An attacker could inject a crafted port containing an @ symbol so the reset link pointed to an attacker-controlled domain, and when the victim clicked it the unused reset token was sent to the attacker, allowing account takeover.
Hi amazing researcher, Welcome to another review of the vulnerability discovery on ASDA. Today I want to discuss Host Header Poisoning leading to a one-click-to-account takeover BUT that wasn’t a normal one. technically I used open redirect and Port Poisoning to exploit this vulnerability.
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 constructed the password reset URL from the user-controlled Host header, including its port, without validating or escaping it, so an @ character in the port could redirect the link to another domain.
Impact
An attacker could steal a victim's unused password reset token and take over their account, but the attack requires the victim to click the poisoned link.
What the attacker needed
Victim clicks a poisoned reset link; attacker can send a reset request with a modified Host…
The fix
The password reset link should be built from a fixed, trusted hostname rather than from user-controlled header values, and any port should be validated.
How it was found
- Send a password reset request with a custom port in the Host header and observe the reset email.
- Try to break out of the link with a quote character in the port and note a character limit prevents opening a tag.
- Use an @ symbol in the port to make the reset link point to an attacker-controlled domain.
- The victim clicks the poisoned reset link and is redirected to the attacker's server, leaking the unused token.
- Use the leaked token to take over the victim's account.
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 site emails you a special link with a secret code (a token) that lets you set a new password. This site built that link using a value the attacker could change (the port part of the Host header), so the attacker could make the link point to their own server. If the victim clicked the poisoned link, the secret code went to the attacker, who could then reset the victim's password and 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.