Given that I am not logged in and am trying to login as the administrator to a 8.7.6 site,
when I use the correct username but the wrong password, an error message tells me that the username is not correct.
Shouldn't we modify the error message so that the error message reads "either the username or the password is not correct"?

or

Is this the intended behavior because it is thought that this behavior will help defeat hackers ? (deliberately misrouting them)?

Comments

EM-fast1 created an issue. See original summary.

cilefen’s picture

Status: Active » Closed (works as designed)

Hi, the Drupal security team has a writeup on this: https://www.drupal.org/drupal-security-team/security-team-procedures/dis...

cilefen’s picture

Version: 8.7.6 » 8.8.x-dev
Status: Closed (works as designed) » Active

Oh wait, I read this more carefully. Sorry! The point is the messages make no sense...

baysaa’s picture

Cannot reproduce this on clean 8.8.x and 8.7.6 installs. Trying both user 1 and a newly created user account with administrator role both say "Unrecognized username or password" when inputting a wrong password to login.

cilefen’s picture

Status: Active » Postponed (maintainer needs more info)
Issue tags: +Needs steps to reproduce
dpi’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Cannot reproduce either. Current message in core is:

'Unrecognized username or password. Forgot your password?'

I'm guessing this is third party code or localisation/string override.