oss-sec mailing list archives
[CVE-2015-3908] Improper TLS Certificate Validation in Ansible
From: Cory Benfield <cory () lukasa co uk>
Date: Tue, 14 Jul 2015 10:20:17 +0100
Versions of Ansible prior to 1.9.2 fail to adequately validate HTTPS certificates when using the get_url and uri modules, and when using the url and etcd lookup plugins. This allows for man-in-the-middle attacks on those connections. The fix for this problem has been released as part of Ansible 1.9.2. The Ansible playbook below is a proof-of-concept that can be used to safely validate the incorrect behaviour: - name: a playbook demonstrating MITM in ansible hosts: 127.0.0.1 connection: local tasks: - name: this should fail get_url: url=https://kennethreitz.org/ dest="/tmp/shouldnotexist.html” This playbook attempts to download a HTML file from a site presenting a certificate that is valid, but not for the site in question. Versions of Ansible from 1.9.2 onward correctly fail to validate the certificate, but earlier versions will download the file regardless and the playbook will successfully exit. Cory
Attachment:
signature.asc
Description: Message signed with OpenPGP using GPGMail
Current thread:
- [CVE-2015-3908] Improper TLS Certificate Validation in Ansible Cory Benfield (Jul 14)