Bug 27170 - hylafax+ new security issues CVE-2020-15396 and CVE-2020-15397
Summary: hylafax+ new security issues CVE-2020-15396 and CVE-2020-15397
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: Security (show other bugs)
Version: 7
Hardware: All Linux
Priority: Normal critical
Target Milestone: ---
Assignee: QA Team
QA Contact: Sec team
URL:
Whiteboard: MGA7-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2020-08-21 21:20 CEST by David Walser
Modified: 2020-09-01 01:59 CEST (History)
3 users (show)

See Also:
Source RPM: hylafax+-7.0.2-3.mga8.src.rpm
CVE:
Status comment:


Attachments

Description David Walser 2020-08-21 21:20:27 CEST
openSUSE has issued an advisory on August 15:
https://lists.opensuse.org/opensuse-security-announce/2020-08/msg00039.html

The issues are fixed upstream in 7.0.3.

Mageia 7 is also affected.
David Walser 2020-08-21 21:20:44 CEST

Whiteboard: (none) => MGA7TOO
Status comment: (none) => Fixed upstream in 7.0.3

Comment 1 Lewis Smith 2020-08-21 21:46:27 CEST
Assigning to you, DavidG, as having done most recent updates to this (no registered maintainer).

Assignee: bugsquad => geiger.david68210

Comment 2 David Walser 2020-08-21 23:16:49 CEST
Fedora has issued an advisory for this on August 13:
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/J52QFVREJWJ35YSEEDDRMZQ2LM2H2WE6/
Comment 3 David GEIGER 2020-08-26 11:32:19 CEST
Done for mga7!

Version: Cauldron => 7

David Walser 2020-08-26 12:47:23 CEST

Whiteboard: MGA7TOO => (none)

Comment 4 David Walser 2020-08-31 00:24:27 CEST
Advisory:
========================

Updated hylafax+ packages fix security vulnerabilities:

In HylaFAX+ through 7.0.2, the faxsetup utility calls chown on files in
user-owned directories. By winning a race, a local attacker could use this to
escalate his privileges to root (CVE-2020-15396).

HylaFAX+ through 7.0.2 has scripts that execute binaries from directories
writable by unprivileged users (e.g., locations under /var/spool/hylafax that
are writable by the uucp account). This allows these users to execute code in
the context of the user calling these binaries (often root) (CVE-2020-15397).

The hylafax+ package has been updated to version 7.0.3, fixing thesee issues
and several other bugs.

References:
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15396
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15397
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/J52QFVREJWJ35YSEEDDRMZQ2LM2H2WE6/
https://hylafax.sourceforge.io/news/7.0.3.php
========================

Updated packages in core/updates_testing:
========================
hylafax+-7.0.3-1.mga7
hylafax+-client-7.0.3-1.mga7
libhylafax+7-7.0.3-1.mga7
libhylafax+-devel-7.0.3-1.mga7

from hylafax+-7.0.3-1.mga7.src.rpm

CC: (none) => geiger.david68210
Status comment: Fixed upstream in 7.0.3 => (none)
Assignee: geiger.david68210 => qa-bugs
Severity: normal => critical

Comment 5 Herman Viaene 2020-08-31 10:07:30 CEST
MGA7-64 Plasma on Lenovo B50
No installation issues.
Ref bug26233 for testing.
# /usr/sbin/faxsetup -server

Setup program for HylaFAX (tm) 7.0.3.

Created for x86_64-mageia-linux-gnu on Fri Jul 31 22:38:20 UTC 2020.

Found encoder: /bin/base64
Checking system for proper server configuration.
and a lot more, skipping adding a modem to the configuration, since I don't have such device....
Then
# systemctl -l status hylafax-hfaxd.service
● hylafax-hfaxd.service - HylaFAX hfaxd (client service)
   Loaded: loaded (/usr/lib/systemd/system/hylafax-hfaxd.service; disabled; vendor preset: disabled)
   Active: active (running) since Mon 2020-08-31 09:58:38 CEST; 53s ago
 Main PID: 27327 (hfaxd)
    Tasks: 1 (limit: 4915)
   Memory: 812.0K
   CGroup: /system.slice/hylafax-hfaxd.service
           └─27327 /usr/sbin/hfaxd -d -i hylafax

Aug 31 09:58:38 mach5.hviaene.thuis systemd[1]: Started HylaFAX hfaxd (client service).
Aug 31 09:58:38 mach5.hviaene.thuis HylaFAX[27327]: Listening to 0.0.0.0:4559
Aug 31 09:58:38 mach5.hviaene.thuis HylaFAX[27327]: HylaFAX INET Protocol Server: restarted.

And as normal user:
$ faxstat
HylaFAX scheduler on mach5.hviaene.thuis: Running

OK'ing on the fact that the service runs and ressponds to the client.

CC: (none) => herman.viaene
Whiteboard: (none) => MGA7-64-OK

Comment 6 Aurelien Oudelet 2020-08-31 20:59:13 CEST
Validating, advisory and packages in Comment 4.

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

Comment 7 Mageia Robot 2020-09-01 01:59:47 CEST
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGASA-2020-0356.html

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


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