Skip to content

LDAP Injection #5

@QiAnXinCodeSafe

Description

@QiAnXinCodeSafe

String searchGroupFilter = MessageFormat.format(GroupMemberSearchFilter, sr.getNameInNamespace());
NamingEnumeration groupAnswer = ctx.search(baseDn, searchGroupFilter, getGroupSearchControls());
while (groupAnswer.hasMoreElements()) {
SearchResult gsr = (SearchResult) groupAnswer.next();
logger.debug("*** processing nested group *** "+ gsr.getName());
getLdapGroupMembers(ctx, gsr, users);

Constructing a dynamic LDAP filter with user input could allow an attacker to modify the statement's meaning.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions