We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When loading LDAP entry, enabling the automatic deserialisation is a risky behavior,
new SearchControls(originalControls.getSearchScope(), originalControls.getCountLimit(), originalControls.getTimeLimit(), originalControls.getReturningAttributes(), true, //<-- originalControls.getDerefLinkFlag());
If the LDAP address can be change or if some entries can be poison by an attacker, RCE could be trigger from the deserialization.
https://github.com/spring-projects/spring-security/blob/ce20cfcb9803a6175f6befc9008cadcc4e3b6d72/ldap/src/main/java/org/springframework/security/ldap/SpringSecurityLdapTemplate.java#L380
White paper from Black Hat USA 2016: https://www.blackhat.com/docs/us-16/materials/us-16-Munoz-A-Journey-From-JNDI-LDAP-Manipulation-To-RCE-wp.pdf (Page 29)
Also add the RCE risk to LDAP injection detector.
http://find-sec-bugs.github.io/bugs.htm#LDAP_INJECTION
The text was updated successfully, but these errors were encountered:
Also look for searchControls.setReturningObjFlag(true)
searchControls.setReturningObjFlag(true)
Sorry, something went wrong.
LDAP Entry Poisoning find-sec-bugs#228
60a12e8
Add signature for LDAP Injection / JNDI injections find-sec-bugs#228
943a784
No branches or pull requests
When loading LDAP entry, enabling the automatic deserialisation is a risky behavior,
If the LDAP address can be change or if some entries can be poison by an attacker, RCE could be trigger from the deserialization.
https://github.com/spring-projects/spring-security/blob/ce20cfcb9803a6175f6befc9008cadcc4e3b6d72/ldap/src/main/java/org/springframework/security/ldap/SpringSecurityLdapTemplate.java#L380
White paper from Black Hat USA 2016: https://www.blackhat.com/docs/us-16/materials/us-16-Munoz-A-Journey-From-JNDI-LDAP-Manipulation-To-RCE-wp.pdf (Page 29)
Also add the RCE risk to LDAP injection detector.
http://find-sec-bugs.github.io/bugs.htm#LDAP_INJECTION
The text was updated successfully, but these errors were encountered: