Bug 21169 - rkhunter new security issue CVE-2017-7480
Summary: rkhunter new security issue CVE-2017-7480
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: Security (show other bugs)
Version: 5
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact: Sec team
URL:
Whiteboard: MGA5-32-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2017-07-01 20:03 CEST by David Walser
Modified: 2018-01-03 11:33 CET (History)
6 users (show)

See Also:
Source RPM: rkhunter-1.4.0-9.mga6.src.rpm
CVE:
Status comment:


Attachments

Description David Walser 2017-07-01 20:03:05 CEST
A security issue in rkhunter has been announced (by Michael Scherer!):
http://openwall.com/lists/oss-security/2017/06/29/2

IMO, the best fix for this is to disable the automatic downloading rkhunter cron completely.  We've seen it before where a package has some poorly implemented and insecure script for automatically downloading something, where it's also most likely unintuitive to person installing the package that it would even be doing something like that to begin with (geoip used to be another example until I finally discovered it and removed its horrible script).  In general I think these sorts of things should be disabled by default in packages.

Mageia 5 is also affected.
David Walser 2017-07-01 20:03:18 CEST

Whiteboard: (none) => MGA5TOO

Comment 1 Marja Van Waes 2017-07-02 22:22:54 CEST
Assigning to the registered maintainer.

CC: (none) => marja11
Assignee: bugsquad => remco

Comment 2 Dick Gevers 2017-07-02 23:17:09 CEST
If this is a security risk, why not with automatic downloading by microcode_ctl via cron every month ???

CC: (none) => dvgevers

Comment 3 David Walser 2017-07-03 00:02:16 CEST
(In reply to Dick Gevers from comment #2)
> If this is a security risk, why not with automatic downloading by
> microcode_ctl via cron every month ???

That very well may be too.
Comment 4 David Walser 2017-07-07 12:03:49 CEST
Cron disabled in the Mageia 6 package, but included as documentation.

Version: Cauldron => 5
Whiteboard: MGA5TOO => (none)

Comment 5 David Walser 2017-07-08 17:18:26 CEST
Upstream has released version 1.4.4 on June 29:
http://rkhunter.cvs.sourceforge.net/viewvc/rkhunter/rkhunter/files/CHANGELOG

It lists a change related to this:
 - Tighten up the input verification check on the mirror file to
   ensure that only URL's are used as a mirror. (CVE-2017-7480)

We could consider shipping an update to this version.
Comment 6 David Walser 2017-07-30 21:29:31 CEST
This package no longer has a maintainer.

Assignee: remco => pkg-bugs

Comment 7 David Walser 2017-12-28 06:27:40 CET
This package could still use an update, but just disabling the cron job for now.

Advisory:
========================

Updated rkhunter package fixes security vulnerability:

The rkhunter package has been updated to disable by default an insecure cron
job.  The script is now included with the package as documentation.  See the
README.urpmi file for more information.

References:
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-7480
http://openwall.com/lists/oss-security/2017/06/29/2
========================

Updated packages in core/updates_testing:
========================
rkhunter-1.4.0-7.1.mga5

from rkhunter-1.4.0-7.1.mga5.src.rpm

Assignee: pkg-bugs => qa-bugs

Dave Hodgins 2017-12-31 13:00:52 CET

CC: (none) => davidwhodgins
Keywords: (none) => advisory

Comment 8 Herman Viaene 2018-01-02 15:19:39 CET
MGA5-32 on Dell Latitude D600 Xfce
No installation issues
at CLI
# rkhunter -h

Usage: rkhunter {--check | --unlock | --update | --versioncheck |
                 --propupd [{filename | directory | package name},...] |
                 --list [{tests | {lang | languages} | rootkits | perl | propfiles}] |
                 --config-check | --version | --help} [options]

Current options are:
         --append-log                  Append to the logfile, do not overwrite
etc ...
# rkhunter -C
no feedback supposes config is allright.
# rkhunter -c
[ Rootkit Hunter version 1.4.0 ]

Checking system commands...

  Performing 'strings' command checks
    Checking 'strings' command                               [ OK ]

  Performing 'shared libraries' checks
    Checking for preloading variables                        [ None found ]
and loads of None found and OK, except for
/usr/sbin/unhide                                         [ Warning ]
    /usr/sbin/unhide-tcp                                     [ Warning ]
    /usr/sbin/unhide-linux                                   [ Warning ]
that is a dependency package for rkhunter, freshly installed (not in its .dat file)
and
 Checking for hidden files and directories                [ Warning ]
but that is about /etc/.update which seems OK
Good to go.

Whiteboard: (none) => MGA5-32-OK
CC: (none) => herman.viaene

Lewis Smith 2018-01-03 10:46:12 CET

Keywords: (none) => validated_update
CC: (none) => lewyssmith, sysadmin-bugs

Comment 9 Mageia Robot 2018-01-03 11:33:17 CET
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGASA-2018-0029.html

Resolution: (none) => FIXED
Status: NEW => RESOLVED


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