-
Notifications
You must be signed in to change notification settings - Fork 23.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fetch module path traversal #67793
Labels
affects_2.10
This issue/PR affects Ansible v2.10
bug
This issue/PR relates to a bug.
files
Files category
has_pr
This issue has an associated PR.
module
This issue/PR relates to a module.
security
Related to a vulnerability or CVE
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
Comments
|
ansibot
added
affects_2.10
This issue/PR affects Ansible v2.10
bug
This issue/PR relates to a bug.
files
Files category
module
This issue/PR relates to a module.
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
labels
Feb 26, 2020
we can just remove those lines since we already do remote-expand previously, there is no need to use the return from slurp. |
bcoca
added a commit
to bcoca/ansible
that referenced
this issue
Apr 6, 2020
* ignore slurp result * also fixed naming when source is relative * also fixed bug in local connection plugin * add tests with fake slurp * moved existing role tests into runme.sh * normalized on action exceps * moved dest transform down to when needed fixes ansible#67793 CVE-2019-3828
bcoca
added a commit
that referenced
this issue
Apr 8, 2020
* fixed fetch traversal from slurp * ignore slurp result for dest * fixed naming when source is relative * fixed bug in local connection plugin * added tests with fake slurp * moved existing role tests into runme.sh * normalized on action excepts * moved dest transform down to when needed * added is_subpath check * fixed bug in local connection fixes #67793 CVE-2019-3828
bcoca
added a commit
to bcoca/ansible
that referenced
this issue
Apr 8, 2020
* fixed fetch traversal from slurp * ignore slurp result for dest * fixed naming when source is relative * fixed bug in local connection plugin * added tests with fake slurp * moved existing role tests into runme.sh * normalized on action excepts * moved dest transform down to when needed * added is_subpath check * fixed bug in local connection fixes ansible#67793 CVE-2019-3828 (cherry picked from commit ba87c22)
bcoca
added a commit
to bcoca/ansible
that referenced
this issue
Apr 8, 2020
* fixed fetch traversal from slurp * ignore slurp result for dest * fixed naming when source is relative * fixed bug in local connection plugin * added tests with fake slurp * moved existing role tests into runme.sh * normalized on action excepts * moved dest transform down to when needed * added is_subpath check * fixed bug in local connection fixes ansible#67793 CVE-2019-3828 (cherry picked from commit ba87c22)
bcoca
added a commit
to bcoca/ansible
that referenced
this issue
Apr 8, 2020
* fixed fetch traversal from slurp * ignore slurp result for dest * fixed naming when source is relative * fixed bug in local connection plugin * added tests with fake slurp * moved existing role tests into runme.sh * normalized on action excepts * moved dest transform down to when needed * added is_subpath check * fixed bug in local connection fixes ansible#67793 CVE-2019-3828 (cherry picked from commit ba87c22)
This was referenced Apr 8, 2020
bcoca
added a commit
to bcoca/ansible
that referenced
this issue
Apr 9, 2020
* fixed fetch traversal from slurp * ignore slurp result for dest * fixed naming when source is relative * fixed bug in local connection plugin * added tests with fake slurp * moved existing role tests into runme.sh * normalized on action excepts * moved dest transform down to when needed * added is_subpath check * fixed bug in local connection fixes ansible#67793 CVE-2019-3828 (cherry picked from commit ba87c22)
bcoca
added a commit
to bcoca/ansible
that referenced
this issue
Apr 15, 2020
* fixed fetch traversal from slurp * ignore slurp result for dest * fixed naming when source is relative * added tests with fake slurp * moved existing role tests into runme.sh * normalized on action excepts * moved dest transform down to when needed * added is_subpath check fixes ansible#67793 CVE-2019-3828 (cherry picked from commit ba87c22)
mattclay
pushed a commit
that referenced
this issue
Apr 15, 2020
* fixed fetch traversal from slurp * ignore slurp result for dest * fixed naming when source is relative * fixed bug in local connection plugin * added tests with fake slurp * moved existing role tests into runme.sh * normalized on action excepts * moved dest transform down to when needed * added is_subpath check * fixed bug in local connection fixes #67793 CVE-2019-3828 (cherry picked from commit ba87c22)
mattclay
pushed a commit
that referenced
this issue
Apr 15, 2020
* fixed fetch traversal from slurp * ignore slurp result for dest * fixed naming when source is relative * added tests with fake slurp * moved existing role tests into runme.sh * normalized on action excepts * moved dest transform down to when needed * added is_subpath check fixes #67793 CVE-2019-3828 (cherry picked from commit ba87c22)
mattclay
pushed a commit
that referenced
this issue
Apr 15, 2020
* fixed fetch traversal from slurp * ignore slurp result for dest * fixed naming when source is relative * fixed bug in local connection plugin * added tests with fake slurp * moved existing role tests into runme.sh * normalized on action excepts * moved dest transform down to when needed * added is_subpath check * fixed bug in local connection fixes #67793 CVE-2019-3828 (cherry picked from commit ba87c22)
relrod
added a commit
to relrod/ansible
that referenced
this issue
Apr 18, 2020
Change: This corrects an incorrect CVE identifier in the changelog entry for CVE-2020-1735. Test Plan: N/A Tickets: Refs ansible#67793, ansible#68720 Signed-off-by: Rick Elrod <[email protected]>
relrod
added a commit
to relrod/ansible
that referenced
this issue
Apr 18, 2020
Change: This corrects an incorrect CVE identifier in the changelog entry for CVE-2020-1735. Test Plan: N/A Tickets: Refs ansible#67793, ansible#68720 Signed-off-by: Rick Elrod <[email protected]>
relrod
added a commit
to relrod/ansible
that referenced
this issue
Apr 18, 2020
Change: This corrects an incorrect CVE identifier in the changelog entry for CVE-2020-1735. Test Plan: N/A Tickets: Refs ansible#67793, ansible#68720 Signed-off-by: Rick Elrod <[email protected]>
relrod
added a commit
to relrod/ansible
that referenced
this issue
Apr 18, 2020
Change: This corrects an incorrect CVE identifier in the changelog entry for CVE-2020-1735. Test Plan: N/A Tickets: Refs ansible#67793, ansible#68720 Signed-off-by: Rick Elrod <[email protected]>
This was referenced Apr 18, 2020
mattclay
pushed a commit
that referenced
this issue
Apr 21, 2020
Change: This corrects an incorrect CVE identifier in the changelog entry for CVE-2020-1735. Test Plan: N/A Tickets: Refs #67793, #68720 Signed-off-by: Rick Elrod <[email protected]>
mattclay
pushed a commit
that referenced
this issue
Apr 21, 2020
Change: This corrects an incorrect CVE identifier in the changelog entry for CVE-2020-1735. Test Plan: N/A Tickets: Refs #67793, #68720 Signed-off-by: Rick Elrod <[email protected]>
mattclay
pushed a commit
that referenced
this issue
Apr 21, 2020
Change: This corrects an incorrect CVE identifier in the changelog entry for CVE-2020-1735. Test Plan: N/A Tickets: Refs #67793, #68720 Signed-off-by: Rick Elrod <[email protected]>
mattclay
pushed a commit
that referenced
this issue
Apr 21, 2020
Change: This corrects an incorrect CVE identifier in the changelog entry for CVE-2020-1735. Test Plan: N/A Tickets: Refs #67793, #68720 Signed-off-by: Rick Elrod <[email protected]>
bcoca
pushed a commit
to bcoca/ansible
that referenced
this issue
Apr 22, 2020
Change: This corrects an incorrect CVE identifier in the changelog entry for CVE-2020-1735. Test Plan: N/A Tickets: Refs ansible#67793, ansible#68720 Signed-off-by: Rick Elrod <[email protected]>
bcoca
pushed a commit
to bcoca/ansible
that referenced
this issue
Apr 28, 2020
Change: This corrects an incorrect CVE identifier in the changelog entry for CVE-2020-1735. Test Plan: N/A Tickets: Refs ansible#67793, ansible#68720 Signed-off-by: Rick Elrod <[email protected]>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
affects_2.10
This issue/PR affects Ansible v2.10
bug
This issue/PR relates to a bug.
files
Files category
has_pr
This issue has an associated PR.
module
This issue/PR relates to a module.
security
Related to a vulnerability or CVE
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
SUMMARY
CVE-2020-1735
Possibly related to CVE-2019-3828 (#52133)
The
fetch
module takes thesource
result from theslurp
module, which came from the remote host. We don't really validate this path and it could have been manipulated by the remote host in a malicious way such that we end up a path similar to/tmp/result_fetch/ansible1/../../../../../../../../../../../../../../../../home/<user>/.profile
for the source. This allows an attacker to place a file the contents of which they control.Relevant Code:
ansible/lib/ansible/plugins/action/fetch.py
Lines 83 to 102 in 79dfae9
Suggested correction from the reporter:
%s/%s/%s
to compute the destination file or clean the last argumentISSUE TYPE
COMPONENT NAME
lib/ansible/plugins/action/fetch.py
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: