RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1870624 - RHDS - allow more than 1 empty AttributeDescription for ldapsearch, without the risk of denial of service
Summary: RHDS - allow more than 1 empty AttributeDescription for ldapsearch, without t...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: 389-ds-base
Version: 7.9
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: 7.9
Assignee: mreynolds
QA Contact: RHDS QE
URL:
Whiteboard: sync-to-jira
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-08-20 13:34 UTC by Rainer Beyel
Modified: 2024-03-25 16:20 UTC (History)
11 users (show)

Fixed In Version: 389-ds-base-1.3.10.2-7.1.el7_9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-10 13:14:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Proposed patch for spec and source. (2.22 KB, patch)
2020-09-08 13:38 UTC, Oliver Falk
ofalk: review?
Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Github 389ds 389-ds-base issues 4379 0 None closed allow more than 1 empty AttributeDescription for ldapsearch, without the risk of denial of service 2021-02-03 11:15:52 UTC
Red Hat Product Errata RHBA-2020:5041 0 None None None 2020-11-10 13:14:18 UTC

Description Rainer Beyel 2020-08-20 13:34:34 UTC
Description of problem:
  With RHSA-2018:3127 applied on RHDS, "Cisco Web Security" (Ironport) is no longer able to use RHDS for authentication. The "Cisco Web Security" ldap query contains 3 empty ("") AttributeDescription - with RHSA-2018:3127 applied (from my understanding) only 1 empty AttributeDescription is allowed.

Version-Release number of selected component:
  RHDS 10 with RHSA-2018:3127 applied

How reproducible:
  Configure "Cisco Web Security" to authenticate against RHDS 10

Actual results:
  "Cisco Web Security" is not able to use RHDS for authentication

Expected results:
  "Cisco Web Security" is able to use RHDS for authentication
  Allow multiple (e.g. 3) empty ("") AttributeDescription with ldapsearch on RHDS - without the risk of denial of service

Additional info:
  - https://access.redhat.com/security/cve/CVE-2018-14648
  - https://access.redhat.com/errata/RHSA-2018:3127
  - https://bugzilla.redhat.com/show_bug.cgi?id=1630668

  - ldap error
    "conn=12345678 op=0 SRCH base="dc=xxx,dc=xxx,dc=xxx" scope=2 filter="(&(objectClass=posixAccount)(uid=xxx))", invalid attribute request"

  - Excerpt from tcpdump:
      ...
      protocolOp: searchRequest (3)
      ...
      attributes: 7 items
        AttributeDescription: gecos
        AttributeDescription:
        AttributeDescription:
        AttributeDescription:
        AttributeDescription: memberOf
        AttributeDescription: DN
        AttributeDescription: CN
      ...

Comment 2 Oliver Falk 2020-09-08 13:38:36 UTC
Created attachment 1714123 [details]
Proposed patch for spec and source.

Comment 13 mreynolds 2020-10-21 22:58:50 UTC
Reproducer:

Requesting more than 10 empty attributes will result in an error 2 (protocol error)

# ldapsearch -xLLL -b "" -s base cn "" "" "" "" "" "" "" "" "" "" ""
Protocol error (2)

This should succeed:

# ldapsearch -xLLL -b "" -s base cn "" "" "" "" "" "" "" "" "" ""
dn:

Comment 14 Akshay Adhikari 2020-10-23 15:34:47 UTC
Build tested: 389-ds-base-1.3.10.2-7.1.el7_9.x86_64

# ldapsearch -xLLL -b "" -s base cn "" "" "" "" "" "" "" "" "" "" (max accepted empty value)
dn:

# ldapsearch -xLLL -b "" -s base cn "" "" 
dn:

LDAP server is allowing more than 1 empty AttributeDescription for ldapsearch, marking as VERIFIED.

Comment 16 Akshay Adhikari 2020-10-23 16:14:06 UTC
Build tested: 389-ds-base-1.3.10.2-7.1.el7_9.x86_64

Requesting more than 10 empty attributes is resulting in error 2 (protocol error)

#ldapsearch -xLLL -b "" -s base cn "" "" "" "" "" "" "" "" "" "" ""
Protocol error (2)

Comment 20 errata-xmlrpc 2020-11-10 13:14:10 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (389-ds-base bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:5041


Note You need to log in before you can comment on or make changes to this bug.