teamhanko / hanko

Authentication and user management system with passkey superpowers
https://hanko.io
Other
5.55k stars 792 forks source link

Prevent account enumeration #667

Open FlxMgdnz opened 1 year ago

FlxMgdnz commented 1 year ago

Hanko is currently not protected against account enumeration attacks. The login UI / endpoint can be tried with any username and the response exposes whether an account exists or not.

To have at least certain configurations that prevent account enum, a first idea would be to change the behavior so that when entering an email address, there will always be a passcode request pending.

That means we would not show the "This account does not exist, do you want to create an account for email@mail.com" UI ever. Also, do not trigger WebAuthn based on username / email input anymore.

Account enumeration would still be possible when email verification is disabled, but there is nothing we can do about it.

github-actions[bot] commented 11 months ago

This issue is stale because it has been open for 30 days with no activity.