Bug 1647086

Summary: CVE-2016-10729 amanda: Privilege escalation in runtar via --rsh-command option [fedora-all]
Product: [Fedora] Fedora Reporter: Laura Pardo <lpardo>
Component: amandaAssignee: Josef Ridky <jridky>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 29CC: fedora, jridky, j, phracek, rvokal
Target Milestone: ---Keywords: Security, SecurityTracking
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Release Note
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-11-06 17:01:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1647084    

Description Laura Pardo 2018-11-06 16:23:49 UTC
This is an automatically created tracking bug!  It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.

For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.

For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs

When submitting as an update, use the fedpkg template provided in the next
comment(s).  This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.

Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.

NOTE: this issue affects multiple supported versions of Fedora. While only
one tracking bug has been filed, please correct all affected versions at
the same time.  If you need to fix the versions independent of each other,
you may clone this bug as appropriate.

Comment 1 Laura Pardo 2018-11-06 16:23:55 UTC
Use the following template to for the 'fedpkg update' request to submit an
update for this issue as it contains the top-level parent bug(s) as well as
this tracking bug.  This will ensure that all associated bugs get updated
when new packages are pushed to stable.

=====

# bugfix, security, enhancement, newpackage (required)
type=security

# testing, stable
request=testing

# Bug numbers: 1234,9876
bugs=1647084,1647086

# Description of your update
notes=Security fix for [PUT CVEs HERE]

# Enable request automation based on the stable/unstable karma thresholds
autokarma=True
stable_karma=3
unstable_karma=-3

# Automatically close bugs when this marked as stable
close_bugs=True

# Suggest that users restart after update
suggest_reboot=False

======

Additionally, you may opt to use the bodhi web interface to submit updates:

https://bodhi.fedoraproject.org/updates/new

Comment 2 Jason Tibbitts 2018-11-06 17:01:08 UTC
The runtar command in Amanda 3.5.1 (which is current in all live Fedora versions) does not accept the --rsh-command option and is not vulnerable to this issue.

Comment 3 Jason Tibbitts 2018-11-06 17:12:38 UTC
Also note the following:

                Release Notes for amanda-3.3.9

* security-fix
    - All previous release of amanda allow the 'amanda' user to execute
      any code as root, and to execute an interactive shell as root.
    - This is a security vulnerability if you do not trust the 'amanda'
      user.
    - There is no need to upgrade if you trust the 'amanda' user and the
      account is secure.
        - good password
        - secure xinetd.conf setting
        - securae .amandahosts setting
    - The 'amanda' user can read all files in the machine, it is what a
      backup program do.
    - The set of fix disable the abilities to run unwanted code as root
      or to write file anywhere in the filesystem.