Bug 1696400 (CVE-2019-3893)

Summary: CVE-2019-3893 foreman: Recover of plaintext password or token for the compute resources
Product: [Other] Security Response Reporter: Pedro Sampaio <psampaio>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: bbuckingham, bcourt, bkearney, btotty, chris.snell, hhudgeon, mmccune, rchan, rjerrido, security-response-team, yjog
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: foreman 1.20.3, foreman 1.21.1, foreman 1.22.0 Doc Type: If docs needed, set a value
Doc Text:
It was discovered that the delete compute resource operation, when executed from the Foreman API, leads to the disclosure of the plaintext password or token for the affected compute resource. A malicious user with the "delete_compute_resource" permission can use this flaw to take control over compute resources managed by foreman.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-21 11:54:15 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: 1692644    
Bug Blocks: 1693171    

Description Pedro Sampaio 2019-04-04 18:51:45 UTC
A flaw was found in Foreman. The issue allows an identified user with "delete compute resource" permission to recover plaintext password or token for the compute resource.

Upstream issue:

https://projects.theforeman.org/issues/26450

Upstream patch:

https://github.com/theforeman/foreman/pull/6621

References:

https://bugzilla.redhat.com/show_bug.cgi?id=1692644

Comment 1 Pedro Sampaio 2019-04-04 18:51:48 UTC
Acknowledgments:

Name: Vatsal Parekh (Red Hat)

Comment 5 Richard Maciel Costa 2019-04-09 02:43:04 UTC
Mitigation:

Do not grant the "destroy_compute_resource" permission to users that should not know the password.

Comment 8 Yadnyawalk Tale 2020-04-21 11:54:15 UTC
This issue has been addressed in the following products:

  Red Hat Satellite 6.6 for RHEL 7

Via RHSA-2019:3172 https://access.redhat.com/errata/RHSA-2019:3172