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 1541853 - ProfileService: config values with backslashes have backslashes removed
Summary: ProfileService: config values with backslashes have backslashes removed
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: pki-core
Version: 7.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Fraser Tweedale
QA Contact: Asha Akkiangady
Marc Muehlfeld
URL:
Whiteboard:
: 1346433 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-02-05 04:49 UTC by Fraser Tweedale
Modified: 2020-10-04 21:40 UTC (History)
5 users (show)

Fixed In Version: pki-core-10.5.1-7.el7
Doc Type: Bug Fix
Doc Text:
The Certificate System profile configuration update method now correctly handles backslashes Previously, a parser in Certificate System removed backslash characters from the configuration when a user updated a profile. As a consequence, affected profile configurations could not be correctly imported, and issuing certificates failed or the system issued incorrect certificates. Certificate System now uses a parser that handles backslashes correctly. As a result, profile configuration updates import the configuration correctly.
Clone Of:
Environment:
Last Closed: 2018-04-10 17:04:05 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github dogtagpki pki issues 3027 0 None None None 2020-10-04 21:40:03 UTC
Red Hat Product Errata RHBA-2018:0925 0 None None None 2018-04-10 17:04:27 UTC

Description Fraser Tweedale 2018-02-05 04:49:12 UTC
Description of problem:



When writing (importing, updating) RAW profile data, config values that have backslashes in them have the backslashes dropped, leading to issuance failures or issuance of incorrect certificates. For example:

    policyset.serverCertSet.1.default.params.name=CN=$request.req_subject_name.cn$, O=Red Hat\, Inc.

becomes:

    policyset.serverCertSet.1.default.params.name=CN=$request.req_subject_name.cn$, O=Red Hat, Inc.

which causes issuance failures due to parse failure of the resulting DN.



How reproducible: always


Steps to Reproduce:
1. create profile config with SubjectNameDefault configuration with escaped comma (see example above).
   the /raw method must be used
2. attempt to issue a certificate using that profile

Actual results:

Certificate issuance fails because the backslash got removed upon profile
configuration import, resulting in an unparsable DN.


Expected results:

Backslash does not get clobbered on profile import, and certificate issuance
succeeds.

Comment 2 Fraser Tweedale 2018-02-05 05:13:06 UTC
Pushed to upstream master: e634316eb7f2aedc65fe528fb572b15e1bdc1eb2

Comment 3 Matthew Harmsen 2018-02-05 19:04:57 UTC
RHEL 7 JUSTIFICATION

The PKI Team is working on obtaining Common Criteria certification for the RHCS layered product.  Several of the components that comprise this release are now located within RHEL 7.  As such, the following bug has been identified as a worthy candidate for inclusion for this release, and so we are requesting an exception flag ACK so that we may attempt to include this bug within the snapshot phases.

Comment 5 Amol K 2018-02-12 09:24:01 UTC
I tested this Bugzilla on a 10.5.1-7.el7 version.

Steps which I followed to verify the Bugzilla:

- Get profile caServerCert in raw format.

- Change the Id of the profile. Modify the attribute  `default.params.name` to `CN\=$request.req_subject_name.cn$,O\=Red Hat\, Inc.`

- Add the profile to the CA and Enable it.

- Show the profile in raw format. Make sure that `default.params.name` attribute value does not contain the backslash.

- Issued the certificate using the profile, and it is successful.


Verifying this bug.

Comment 6 Fraser Tweedale 2018-02-22 09:07:00 UTC
*** Bug 1346433 has been marked as a duplicate of this bug. ***

Comment 10 errata-xmlrpc 2018-04-10 17:04:05 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, 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-2018:0925


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