Bug 1357559 (CVE-2016-5402)

Summary: CVE-2016-5402 cfme: RCE via Capacity & Utilization feature
Product: [Other] Security Response Reporter: Adam Mariš <amaris>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: cpelland, dajohnso, gblomqui, gmccullo, gtanzill, hhudgeon, jfrey, jhardy, jprause, jrafanie, jrusnack, obarenbo, roliveri, security-response-team, simaishi, slukasik
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A code injection flaw was found in the way capacity and utilization imported control files are processed. A remote, authenticated attacker with access to the capacity and utilization feature could use this flaw to execute arbitrary code as the user CFME runs as.
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-08 02:56:22 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: 1376876, 1376877, 1397501    
Bug Blocks: 1357565    

Description Adam Mariš 2016-07-18 13:53:03 UTC
A vulnerability in CFME and ManageIQ was found allowing users authorized to product feature known as "Control" or "Policies" to run arbitrary code as root.

Vulnerable code:

https://github.com/ManageIQ/manageiq/blob/fb34cad0c44ae453fa4b81ae1c2c964e67ec1053/app/models/bottleneck_event.rb#L75

The `eval` is being run on a property of MiqEventDefinition table. Usually, this table is filled with stock data on product start-up. The default properties of this table are at

https://github.com/ManageIQ/manageiq/blob/fb34cad0c44ae453fa4b81ae1c2c964e67ec1053/db/fixtures/miq_event_definitions.yml#L18

However, attacker can override any of the default stock values and put his code into the MiqEventDefinition table, which is later `eval`ed.

Comment 1 Adam Mariš 2016-07-18 13:53:10 UTC
Acknowledgments:

Name: Simon Lukasik (Red Hat)

Comment 9 errata-xmlrpc 2016-11-30 19:52:27 UTC
This issue has been addressed in the following products:

  CloudForms Management Engine 5.6

Via RHSA-2016:2839 https://rhn.redhat.com/errata/RHSA-2016-2839.html