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

TRUNK-3933: added list of fake security question to confuse the cracker #273

Closed
wants to merge 1 commit into from

Conversation

harshadura
Copy link
Member

Forgotten Password Form Leaks Valid Usernames

https://tickets.openmrs.org/browse/TRUNK-3933

@@ -125,8 +128,16 @@ protected ModelAndView onSubmit(HttpServletRequest request, HttpServletResponse
Context.removeProxyPrivilege(PrivilegeConstants.VIEW_USERS);
}

if (user == null || user.getSecretQuestion() == null || user.getSecretQuestion().equals("")) {
if (username.equals("") || username.equals(null)) {
Copy link
Member

Choose a reason for hiding this comment

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

Use StringUtils.isBlank so that you catch whitespaces

@dkayiwa
Copy link
Member

dkayiwa commented Jan 23, 2014

Closing because author abandoned it.

@dkayiwa dkayiwa closed this Jan 23, 2014
RandilaP pushed a commit to RandilaP/openmrs-core that referenced this pull request Jul 31, 2023
…e login card (openmrs#273)

Co-authored-by: grace potma <67400059+gracepotma@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants