Bug 1406729 (CVE-2016-9595) - CVE-2016-9595 katello-debug: Possible symlink attacks due to use of predictable file names
Summary: CVE-2016-9595 katello-debug: Possible symlink attacks due to use of predictab...
Keywords:
Status: NEW
Alias: CVE-2016-9595
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1405387 1414114 1414115
Blocks: 1432305
TreeView+ depends on / blocked
 
Reported: 2016-12-21 10:48 UTC by Adam Mariš
Modified: 2019-09-29 14:03 UTC (History)
7 users (show)

Fixed In Version: katello 3.4.0
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in katello-debug where certain scripts and log files used insecure temporary files. A local user could exploit this flaw to conduct a symbolic-link attack, allowing them to overwrite the contents of arbitrary files.
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)
patch for the issue. (1.71 KB, patch)
2017-02-17 23:04 UTC, Bryan Kearney
no flags Details | Diff


Links
System ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:0336 normal SHIPPED_LIVE Important: Satellite 6.3 security, bug fix, and enhancement update 2018-02-21 22:43:42 UTC

Description Adam Mariš 2016-12-21 10:48:43 UTC
Evgeni Golov of Red Hat reports:


It was found that katello-debug.sh uses static, perfectly guessable paths in /tmp for its temporary files, which can lead to symlink attacks on /tmp/tasks_export.log and /tmp/pulp_running_tasks.js leading to overwritten files anywhere on the system (as katello-debug is run via sos as root), or code execution inside of mongo via /tmp/pulp_running_tasks.js if $user pre-creates that file and overwrites the file after command is echoed there, modifying it at his own will before calling mongo on it.

Product bug:

https://bugzilla.redhat.com/show_bug.cgi?id=1405387

Comment 2 Bryan Kearney 2017-02-17 23:04:37 UTC
Created attachment 1255095 [details]
patch for the issue.

Comment 3 Kurt Seifried 2017-07-15 01:59:37 UTC
Acknowledgments:

Name: Evgeni Golov (Red Hat)

Comment 5 errata-xmlrpc 2018-02-21 12:25:28 UTC
This issue has been addressed in the following products:

  Red Hat Satellite 6.3 for RHEL 7

Via RHSA-2018:0336 https://access.redhat.com/errata/RHSA-2018:0336


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