CVE-2017-12148
Tower: modification of git hooks in SCM repo via upstream playbook execution
Overview
Description
A flaw was found in Ansible Tower's interface before 3.1.5 and 3.2.0 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.
Source: OX vulnerability database
Severity
7.2 · HIGH
CVSS 3.0 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- High
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Weakness: CWE-20
Affected packages · 0
No registry package. This ID affects operating system packages only.
Operating systems · 5 fixes
Red Hat 1 release · 5 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | rh-ruby23-rubygem-nokogiri +1 | 0:1.8.1-2.el7cf | RHSA-2017:3005 |
| 7 | supervisor | 0:3.1.4-1.el7 | RHSA-2017:3005 |
| 7 | ansible-tower-server +1 | 0:3.1.5-1.el7at | RHSA-2017:3005 |
| 7 | rabbitmq-server | 0:3.6.9-1.el7at | RHSA-2017:3005 |
| 7 | cfme +2 | 0:5.8.2.3-1.el7cf | RHSA-2017:3005 |
References
- access.redhat.com https://access.redhat.com/errata/RHSA-2017:3005
- access.redhat.com https://access.redhat.com/security/cve/CVE-2017-12148
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2017-12148
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2017-12148
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2017-12148
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.