mirror of https://github.com/ansible/ansible.git
[2.9] Fix nxos_file_copy option value path validation (#65846)
* Fix nxos_file_copy option value path validation (#65423)
* Fix nxos_file_copy option value path validation
* Modify `local_file`, `local_file_directory` and
`remote_file` option type from `str` to `path`
so that the option value is validated in Ansible
for a legitimate path value
* Fix review comments
(cherry picked from commit 88008badb1
)
* Fix review comments
pull/66377/head
parent
a1b0f72c98
commit
1257448636
@ -0,0 +1,6 @@
|
||||
bugfixes:
|
||||
- "CVE-2019-14905 - nxos_file_copy module accepts remote_file parameter which is used for destination name
|
||||
and performs actions related to that on the device using the value of remote_file which is of string type
|
||||
However, there is no user input validation done while performing actions. A malicious code could crafts
|
||||
the filename parameter to take advantage by performing an OS command injection. This fix validates the
|
||||
option value if it is legitimate file path or not."
|
Loading…
Reference in New Issue