Bug 1557366 (CVE-2018-1086)

Summary: CVE-2018-1086 pcs: Debug parameter removal bypass, allowing information disclosure
Product: [Other] Security Response Reporter: Cedric Buissart <cbuissar>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: anprice, apevec, cfeist, chrisw, cluster-maint, idevat, jaruga, jjoyce, jpokorny, jschluet, kbasil, lhh, lpeer, markmc, mburns, omular, rbryant, sclewis, security-response-team, sisharma, slinaber, ssaha, tdecacqu, tojeline, vbellur
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: pcs 0.9.164, pcs 0.10 Doc Type: If docs needed, set a value
Doc Text:
It was found that the REST interface of the pcsd service did not properly remove the pcs debug argument from the /run_pcs query, possibly disclosing sensitive information. A remote attacker with a valid token could use this flaw to elevate their privilege.
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-10 10:17:54 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: 1557252, 1557253, 1557962, 1565090, 1565091    
Bug Blocks: 1550244    

Description Cedric Buissart 2018-03-16 13:41:36 UTC
To prevent some information disclosure, pcsd actively removes '--debug' from command requested over the REST interface, but this can be bypassed:
----8<---
 235   # do not reveal potentialy sensitive information
 236   command_decoded.delete('--debug')
---->8----

The information gained could then be used to gain higher privileges.

Comment 8 Cedric Buissart 2018-03-22 10:54:12 UTC
Acknowledgments:

Name: Cedric Buissart (Red Hat)

Comment 9 Cedric Buissart 2018-04-09 11:19:18 UTC
Created pcs tracking bugs for this issue:

Affects: fedora-all [bug 1565090]

Comment 11 errata-xmlrpc 2018-04-10 09:11:52 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2018:1060 https://access.redhat.com/errata/RHSA-2018:1060

Comment 12 errata-xmlrpc 2018-06-19 04:55:22 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 6

Via RHSA-2018:1927 https://access.redhat.com/errata/RHSA-2018:1927