Bug 1956477 - ansible: race condition in ansible's async code leading to no_log values disclosure
Summary: ansible: race condition in ansible's async code leading to no_log values disc...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On: 1959089 1959095 1959090 1959091 1959092 1959093 1959094 1959096
Blocks: 1887243 1956499
TreeView+ depends on / blocked
 
Reported: 2021-05-03 18:35 UTC by Tapas Jena
Modified: 2024-01-09 11:30 UTC (History)
27 users (show)

Fixed In Version:
Doc Type: ---
Doc Text:
A flaw was found in Ansible if an ansible user sets ANSIBLE_ASYNC_DIR to a subdirectory of a world writable directory . When this occurs, there is a race condition on the managed machine. A malicious, non-privileged account on the remote machine can exploit the race condition to access the async result data.
Clone Of:
Environment:
Last Closed: 2024-01-09 11:29:50 UTC
Embargoed:


Attachments (Terms of Use)

Description Tapas Jena 2021-05-03 18:35:58 UTC
ANSIBLE_ASYNC_DIR defaults to ~/.ansible_async/ but is settable by the user. If the ansible user sets ANSIBLE_ASYNC_DIR to a subdirectory of a World Writable Directory, for instance: ANSIBLE_ASYNC_DIR=/tmp/username-ansible-async/.

When this occurs, there is a race condition on the managed machine.  A malicious, low privileged account on the remote machine can pre-create /tmp/username-ansible-async and then use various attacks to access the async result data.

Comment 2 Tapas Jena 2021-05-10 17:02:10 UTC
Created ansible tracking bugs for this issue:

Affects: epel-all [bug 1959095]
Affects: fedora-all [bug 1959094]
Affects: openstack-rdo [bug 1959096]

Comment 4 Gianluca Gabrielli 2021-05-19 12:35:05 UTC
Hi all,
is there any available patch for that? Thanks


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