[ https://issues.apache.org/jira/browse/DERBY-7147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17636844#comment-17636844 ]
Richard N. Hillegas commented on DERBY-7147: -------------------------------------------- Attaching derby-7147-02-aa-escapeLDAPsearchFilter.diff. This patch is the fix. The patch escapes LDAP search filters using a routine cribbed from Apache Tomcat. I ran the full tests (with the classpath) as a sanity check. The tests ran cleanly. The patch is ready for testing with an LDAP server. There's nothing platform-specific in the patch, so testing on Linux should be adequate. Touches the following files: {noformat} M build.xml A tools/release/notices/tomcat.txt Acknowledge the Tomcat debt in Derby's NOTICE file. M java/org.apache.derby.engine/org/apache/derby/impl/jdbc/authentication/LDAPAuthenticationSchemeImpl.java Escape LDAP search filters. {noformat} > LDAP injection vulnerability in LDAPAuthenticationImpl > ------------------------------------------------------ > > Key: DERBY-7147 > URL: https://issues.apache.org/jira/browse/DERBY-7147 > Project: Derby > Issue Type: Bug > Components: JDBC > Affects Versions: 10.16.1.1 > Reporter: Richard N. Hillegas > Assignee: Richard N. Hillegas > Priority: Major > Attachments: derby-7147-01-aa-reformatForReadability.diff, > derby-7147-02-aa-escapeLDAPsearchFilter.diff > > > An LDAP injection vulnerability has been identified in > LDAPAuthenticationSchemeImpl.getDNFromUID(). An exploit has not been > provided, but there is a possibility that an intruder could bypass > authentication checks in Derby-powered applications which rely on external > LDAP servers. > For more information on LDAP injection, see > https://www.synopsys.com/glossary/what-is-ldap-injection.html -- This message was sent by Atlassian Jira (v8.20.10#820010)