Bug 1848143 (CVE-2020-13867)

Summary: CVE-2020-13867 targetcli: weak permissions for /etc/target and backup files
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: amctagga, andy, anharris, bniver, flucifre, gmeno, hvyas, mbenjamin, mhackett, mlombard, vereddy
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: targetcli-fb 2.1.53 Doc Type: If docs needed, set a value
Doc Text:
An access flaw was found in targetcli, where the `/etc/target` and underneath backup directory/files were world-readable. This flaw allows a local attacker to access potentially sensitive information such as authentication credentials from the /etc/target/saveconfig.json and backup files. The highest threat from this vulnerability is to confidentiality.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-04 02:26:03 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: 1845167, 1848144, 1852768, 1853645, 1853646    
Bug Blocks: 1848145    

Description Guilherme de Almeida Suckevicz 2020-06-17 19:02:40 UTC
Open-iSCSI targetcli-fb through 2.1.52 has weak permissions for /etc/target (and for the backup directory and backup files).

Reference and upstream commit:
https://github.com/open-iscsi/targetcli-fb/pull/172

Comment 1 Guilherme de Almeida Suckevicz 2020-06-17 19:02:57 UTC
Created targetcli tracking bugs for this issue:

Affects: fedora-all [bug 1848144]

Comment 2 Hardik Vyas 2020-07-01 09:10:10 UTC
Statement:

The version of targetcli shipped with Red Hat Ceph Storage 3 sets the world-readable permissions for `/etc/target` and `/etc/target/backup` directory that store the sensitive information, hence affected by this vulnerability.

Comment 5 Cedric Buissart 2020-07-03 14:09:29 UTC
Mitigation:

$ chmod -R og-rwx /etc/target

Future backup files will still be created with incorrect permissions, but attackers will not be able to access the target directory.

Comment 10 Product Security DevOps Team 2020-11-04 02:26:03 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2020-13867

Comment 11 errata-xmlrpc 2020-11-04 03:06:42 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2020:4697 https://access.redhat.com/errata/RHSA-2020:4697

Comment 12 errata-xmlrpc 2020-12-15 11:10:20 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2020:5434 https://access.redhat.com/errata/RHSA-2020:5434