Bug 1842734

Summary: CVE-2019-10179 pki-core: pki-core/pki-kra: Reflected XSS in recoveryID search field at KRA's DRM agent page in authorize recovery tab [rhel-8]
Product: Red Hat Enterprise Linux 8 Reporter: Matthew Harmsen <mharmsen>
Component: pki-coreAssignee: Alex Scheel <ascheel>
Status: CLOSED ERRATA QA Contact: PKI QE <bugzilla-pkiqe>
Severity: low Docs Contact:
Priority: low    
Version: 8.3CC: aakkiang, alee, ascheel, cbuissar, dpunia, edewata, extras-qa, kwright, mharmsen
Target Milestone: rcKeywords: Security, SecurityTracking
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pki-core-10.6-8030020200806183337.5ff1562f Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: 1797689 Environment:
Last Closed: 2020-11-04 03:15:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1797689    
Bug Blocks: 1695901    

Description Matthew Harmsen 2020-06-02 01:28:16 UTC
+++ This bug was initially created as a clone of Bug #1797689 +++


This is an automatically created tracking bug!  It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.

For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.

For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs

When submitting as an update, use the fedpkg template provided in the next
comment(s).  This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.

Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.

NOTE: this issue affects multiple supported versions of Fedora. While only
one tracking bug has been filed, please correct all affected versions at
the same time.  If you need to fix the versions independent of each other,
you may clone this bug as appropriate.

--- Additional comment from Cedric Buissart 🐶 on 2020-02-03 16:30:59 UTC ---

Use the following template to for the 'fedpkg update' request to submit an
update for this issue as it contains the top-level parent bug(s) as well as
this tracking bug.  This will ensure that all associated bugs get updated
when new packages are pushed to stable.

=====

# bugfix, security, enhancement, newpackage (required)
type=security

# low, medium, high, urgent (required)
severity=low

# testing, stable
request=testing

# Bug numbers: 1234,9876
bugs=1695901,1797689

# Description of your update
notes=Security fix for [PUT CVEs HERE]

# Enable request automation based on the stable/unstable karma thresholds
autokarma=True
stable_karma=3
unstable_karma=-3

# Automatically close bugs when this marked as stable
close_bugs=True

# Suggest that users restart after update
suggest_reboot=False

======

Additionally, you may opt to use the bodhi web interface to submit updates:

https://bodhi.fedoraproject.org/updates/new

Comment 2 Alex Scheel 2020-07-01 16:02:57 UTC
Checked-in upstream:

commit 8884b4344225bd6656876d9e2a58b3268e9a899b (HEAD -> master, upstream/master, origin/master, origin/HEAD)
Author: Alexander Scheel <ascheel>
Date:   Fri Jun 19 12:28:38 2020 -0400

    Replace CMSTemplate custom sanitization with lang2
    
    Signed-off-by: Alexander Scheel <ascheel>

Comment 8 Alex Scheel 2020-07-24 14:32:19 UTC
Checked in upstream:

commit a93a65be0b1bcf94e004ba59c6a0c8a2c086936f
Author: Alexander Scheel <ascheel>
Date:   Tue Jul 21 10:20:47 2020 -0400

    Re-fix sanitization in CMSTemplate
    
    When fixing CVE-2019-10179 originally in
    8884b4344225bd6656876d9e2a58b3268e9a899b,
    I had switched to Apache Commons Lang2's
    sanitization framework. However, I didn't
    enable the HTML sanitization necessary to
    fix this CVE.
    
    Signed-off-by: Alexander Scheel <ascheel>

Comment 12 errata-xmlrpc 2020-11-04 03:15:11 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 (Moderate: pki-core:10.6 and pki-deps:10.6 security, 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/RHSA-2020:4847