Closed
Description
Symfony version(s) affected
All currently supported versions
Description
When JsonLoginAuthenticator does its job, among other things, it checks that the username passed in the request is a string and that it is not longer than 4096 characters:
Further down below it makes sure that the supplied password is also a string:
I propose to additionally check that both username and password consist of at least one character each, so that attempts to login with an empty username or password are refused without making attempts to load the user.
How to reproduce
Enable debugging, add a breakpoint in
Possible Solution
No response
Additional Context
No response