Summary
An attacker can initiate a password reset for a victim, and modify the host header of the request to a malicious value. The victim will receive a password reset email, with a link to the malicious host. If the victim clicks this link, their reset token is sent to the attacker's server, allowing the attacker to use it to change the victim's password and takeover their account.
PoC
- Start intercepting with a proxy tool like Burp Suite
- Start the password reset flow for the email address of a victim
- Intercept the request and change the host header, for example from
65.21.3.91:8000 to 65.21.3.91.evil.com:8000 (note that you as the attacker should control the domain (evil.com in this case).
- Forward the request and as a victim, click the link in the received email
- As the attacker, check your logs and find the victim's password reset link
- In the reset link, change the injected domain back to the original domain and continue the password reset flow
Unfortunately our video PoC is too large to upload, so we have uploaded it to our Google drive:
https://drive.google.com/file/d/1I5sJHcpetJbKlwVS2usAD7qmgH37Y4rw/view?usp=drive_link
Impact
Account takeover
Summary
An attacker can initiate a password reset for a victim, and modify the host header of the request to a malicious value. The victim will receive a password reset email, with a link to the malicious host. If the victim clicks this link, their reset token is sent to the attacker's server, allowing the attacker to use it to change the victim's password and takeover their account.
PoC
65.21.3.91:8000to65.21.3.91.evil.com:8000(note that you as the attacker should control the domain (evil.com in this case).Unfortunately our video PoC is too large to upload, so we have uploaded it to our Google drive:
https://drive.google.com/file/d/1I5sJHcpetJbKlwVS2usAD7qmgH37Y4rw/view?usp=drive_link
Impact
Account takeover