Bug 1848143 (CVE-2020-13867) - CVE-2020-13867 targetcli: weak permissions for /etc/target and backup files
Summary: CVE-2020-13867 targetcli: weak permissions for /etc/target and backup files
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2020-13867
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1845167 1848144 1852768 1853645 1853646
Blocks: 1848145
TreeView+ depends on / blocked
 
Reported: 2020-06-17 19:02 UTC by Guilherme de Almeida Suckevicz
Modified: 2021-02-16 19:51 UTC (History)
11 users (show)

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.
Clone Of:
Environment:
Last Closed: 2020-11-04 02:26:03 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2020:4697 0 None None None 2020-11-04 03:06:44 UTC
Red Hat Product Errata RHSA-2020:5434 0 None None None 2020-12-15 11:10:23 UTC

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


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