Skip to content

Conversation

tametsi
Copy link
Contributor

@tametsi tametsi commented Nov 22, 2024

When authentication fails, the generic error message "Invalid email or password" is returned. Thereby, no information about the existence of the user is given.

This prevents user enumeration attacks because the response for both scenarios is identical.

Fixes #3873

On invalid user/password error the error message "Invalid email or password" is returned.
Thereby, no information about the existence of the user is given.
@niri81
Copy link

niri81 commented Nov 22, 2024

Since this fixes CWE-204: Observable Response Discrepancy, I look forward to this being merged relatively quick as it is only a minor change in the code base directly influencing the security of NPM

@nginxproxymanagerci
Copy link

Docker Image for build 1 is available on
DockerHub
as nginxproxymanager/nginx-proxy-manager-dev:pr-4179

Note: ensure you backup your NPM instance before testing this image! Especially if there are database changes
Note: this is a different docker image namespace than the official image

Copy link

@halotsch halotsch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jc21 jc21 merged commit 07a4e57 into NginxProxyManager:develop Nov 23, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Login: No relevant user found / Invalid password

4 participants