Description
I noticed that user enumeration is still possible in Gitea version 1.25.1 through the login error messages.
When attempting authentication:
If the username does not exist -> Gitea returns: user does not exist
If the username exists but the password is wrong -> Gitea returns: user's password is invalid
This make it possible to reliably determine whether a username exists.
Gitea Version
1.25.1
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
- Attempt login with a non-existing username
- Attempt login with an existing username but wrong password
Git Version
No response
Operating System
No response
How are you running Gitea?
Locally on my machine
Database
None