Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix paranoid-mode being ignored #138

Merged
merged 2 commits into from Jan 7, 2019

Conversation

Gargron
Copy link
Contributor

@Gargron Gargron commented Nov 29, 2018

Devise's paranoid-mode is meant to hide when a record with an e-mail exists in the system, by always showing the invalid error message instead of conditionally revealing when a record is not found. This gem ignores the setting and reveals existing accounts during an enumeration attack.

Impact: Thankfully in most cases the Devise translations for "invalid" and "not_found_in_database" are identical, however, this is not guaranteed, and can easily slip through in a large project with many languages and volunteer translators.

Devise's paranoid-mode is meant to hide when a record with an e-mail exists in the system, by always showing the invalid error message instead of conditionally revealing when a record is not found. This gem ignores the setting and reveals existing accounts during an enumeration attack.
@QuinnWilton
Copy link
Contributor

Thank you!

@QuinnWilton QuinnWilton merged commit 5549aba into devise-two-factor:master Jan 7, 2019
@Gargron Gargron deleted the patch-1 branch January 8, 2019 21:20
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.

None yet

3 participants