Bug 1485474 (CVE-2017-12148) - CVE-2017-12148 Ansible Tower:modification of git hooks in SCM repo via upstream playbook execution
Summary: CVE-2017-12148 Ansible Tower:modification of git hooks in SCM repo via upstre...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2017-12148
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:
Depends On: 1485484 1485485 1490002 1490003 1490004
Blocks: 1485482
TreeView+ depends on / blocked
 
Reported: 2017-08-25 20:56 UTC by Kurt Seifried
Modified: 2021-02-17 01:40 UTC (History)
19 users (show)

Fixed In Version: ansible_tower 3.1.5, ansible_tower 3.2.0
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in Tower's interface with SCM repositories. If a Tower project (SCM repository) definition does not have the 'delete before update' flag set, an attacker with commit access to the upstream playbook source repository could create a Trojan playbook that, when executed by Tower, modifies the checked out SCM repository to add git hooks. These git hooks could, in turn, cause arbitrary command and code execution as the user Tower runs as.
Clone Of:
Environment:
Last Closed: 2017-12-11 12:08:47 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2017:3005 0 normal SHIPPED_LIVE Important: Red Hat CloudForms security, bug fix, and enhancement update 2017-10-24 04:15:49 UTC

Description Kurt Seifried 2017-08-25 20:56:48 UTC
If a Tower project (SCM repo) definition does not have the 'delete before update' flag set, a user who has commit access to the upstream playbook source repo could create a trojan playbook that, when executed by Tower, modifies the checked out SCM repository to add git hooks.

On the next SCM update, these git hooks would then run, therefore running arbitrary code as the 'awx' (Tower service) user.

Comment 2 Borja Tarraso 2017-09-07 09:30:19 UTC
Acknowledgments:

Name: Ryan Petrello (Red Hat)

Comment 5 errata-xmlrpc 2017-10-24 00:42:57 UTC
This issue has been addressed in the following products:

  CloudForms Management Engine 5.8

Via RHSA-2017:3005 https://access.redhat.com/errata/RHSA-2017:3005


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