Bug 1357559 (CVE-2016-5402) - CVE-2016-5402 cfme: RCE via Capacity & Utilization feature
Summary: CVE-2016-5402 cfme: RCE via Capacity & Utilization feature
Status: NEW
Alias: CVE-2016-5402
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard: impact=important,public=20161130,repo...
Keywords: Security
Depends On: 1376876 1376877 1397501
Blocks: 1357565
TreeView+ depends on / blocked
 
Reported: 2016-07-18 13:53 UTC by Adam Mariš
Modified: 2019-01-02 22:42 UTC (History)
16 users (show)

(edit)
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.
Clone Of:
(edit)
Last Closed:


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2016:2839 normal SHIPPED_LIVE Important: CFME 5.6.3 security, bug fix, and enhancement update 2016-12-01 00:51:49 UTC

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


Note You need to log in before you can comment on or make changes to this bug.