Bug 1425353 (CVE-2017-6062)

Summary: CVE-2017-6062 mod_auth_openidc: OIDCUnAuthAction pass does not scrub request headers
Product: [Other] Security Response Reporter: Andrej Nemec <anemec>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: jdennis, jhrozek, jpazdziora, puiterwijk
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: mod_auth_openidc 2.1.5 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-05 12:33:53 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: 1425356, 1626298    
Bug Blocks: 1425355    

Description Andrej Nemec 2017-02-21 09:31:40 UTC
It was found that when OIDCUnAuthAction is set to pass the OICD_CLAIM_* headers are not being scrubbed. This allows for unauthenticated requests to /content/.

Sending the OIDC_CLAIM_preferred_username header then allows to spoof any existing username. 

Upstream bug:

https://github.com/pingidentity/mod_auth_openidc/issues/222

Upstream patch:

https://github.com/pingidentity/mod_auth_openidc/commit/e81822a7d5f5bdf04ba03ca92680821893303850

Comment 1 Andrej Nemec 2017-02-21 09:34:06 UTC
Created mod_auth_openidc tracking bugs for this issue:

Affects: fedora-all [bug 1425356]

Comment 5 Jakub Hrozek 2019-01-17 10:33:28 UTC
At least as far as RHEL-7 goes, this CVE does not apply because the OIDCUnAuthAction doesn't work because of a mismatch of what the version of the module we ship sets as the REMOTE_USER and what httpd expects a valid value of REMOTE_USER should be. For more details, please see https://bugzilla.redhat.com/show_bug.cgi?id=1626298#c2 and https://bugzilla.redhat.com/show_bug.cgi?id=1626298#c3.

Therefore I'm going to close the RHEL-7 tracker as WONTFIX.