Spring-security: SEC-3187: LdapUserDetailsManager password change with LDAP operation (RFC 3062)

Created on 3 Jan 2016  路  16Comments  路  Source: spring-projects/spring-security

Mark Janssen (Migrated from SEC-3187) said:

Currently the LdapUserDetailsManager changePassword method modifies the password attribute directly. It would be better to (optionally) use the LDAP Password Modify Extended Operation as described in RFC 3062. This way, any associated attributes (e.g. Samba NTLM hashed passwords) will also be updated by the LDAP server.

ldap enhancement jira

Most helpful comment

Hi,

Is there any update on this?

All 16 comments

This is a security issue, not just an improvement. By doing a direct modify on the userPassword attribute, the security configuration for userPassword is bypassed.

I have noticed some clear password stored in my test LDAP database because of that. Any update on this?

We use a bcrypt module on the Ldap and the BCryptPasswordEncoder hash is not compatible with the bcrypt hash. Only the SSHA password and weak password encryption are available.

It's clearly a security issue.

Hi,

Is there any update on this?

+1

+1

@monowai,
Why the downvotes?

+1

This is raised when analyzing code through vulnerability analysis tools like Snyk:

https://snyk.io/vuln/SNYK-JAVA-ORGSPRINGFRAMEWORK-31644

Yeah, we're getting it in our snyk.io reports as well!

Could we have an update on this, please?

+1. This needs to be fixed.

Are there any updates on this? @tekul, @rwinch, @jgrandja ping?

Is there any update on this? It's been around for a while now and it's causing our snyk.io checks to fail, (which is, of course the least of our concerns, given the seriousness of the issue). Could we get some sort of update, please?

Thanks for fixing this @jzheaux ! In which version do you think this will be released and any idea when that will be? :)

@carlspring Looks like I failed to add the milestone earlier.

It's available in 4.2.9, 5.0.9, and 5.1.1, which are in Maven Central now.

Is there any plan to get a CVE for this issue?

@ddillard No. This was not a feature that was supported, so users would have been expected to hash it themselves.

Was this page helpful?
0 / 5 - 0 ratings