Hi,
similar to a previous question [1] that was answered by Brian I'm
wondering if the following example gives the remote server remote
command execution privileges on the ansible host (which obviously no one
wants):
local_action: shell cat {{ fact123 }}
Is that a bad idea?
Can the remote server do a 'rm -rf /home' by providing
"/etc/passwd; rm -rf /home"
as the content of fact123
From Brian's previous answer[1]:
> - the fact variables (what ansible_all_ipv4_addresses is) are
> sanitized against template injection but not verified against
> directories,
Does that sanitization also prevent shell cli injection (above example)?
thanks!
[1]
https://groups.google.com/d/msgid/ansible-project/CAJ5XC8mKHaCvD7LOJJZJEMvWJkaij39ani%2BPcd36yFmMoWCeyw%40mail.gmail.com