Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1406729 - (CVE-2016-9595) CVE-2016-9595 katello-debug: Possible symlink attacks due to use of predictable file names
CVE-2016-9595 katello-debug: Possible symlink attacks due to use of predictab...
Status: NEW
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
impact=moderate,public=20161221,repor...
: Security
Depends On: 1405387 1414114 1414115
Blocks: 1432305
  Show dependency treegraph
 
Reported: 2016-12-21 05:48 EST by Adam Mariš
Modified: 2018-07-27 04:55 EDT (History)
8 users (show)

See Also:
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.
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


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


External Trackers
Tracker 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 17:43:42 EST

  None (edit)
Description Adam Mariš 2016-12-21 05:48:43 EST
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 18:04 EST
Created attachment 1255095 [details]
patch for the issue.
Comment 3 Kurt Seifried 2017-07-14 21:59:37 EDT
Acknowledgments:

Name: Evgeni Golov (Red Hat)
Comment 5 errata-xmlrpc 2018-02-21 07:25:28 EST
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.