ID CVE-2020-14019
Summary Open-iSCSI rtslib-fb through 2.1.72 has weak permissions for /etc/target/saveconfig.json because shutil.copyfile (instead of shutil.copy) is used, and thus permissions are not preserved.
References
Vulnerable Configurations
  • cpe:2.3:a:rtslib-fb_project:rtslib-fb:1.90:*:*:*:*:*:*:*
    cpe:2.3:a:rtslib-fb_project:rtslib-fb:1.90:*:*:*:*:*:*:*
  • cpe:2.3:a:rtslib-fb_project:rtslib-fb:1.95:*:*:*:*:*:*:*
    cpe:2.3:a:rtslib-fb_project:rtslib-fb:1.95:*:*:*:*:*:*:*
  • cpe:2.3:a:rtslib-fb_project:rtslib-fb:1.99:*:*:*:*:*:*:*
    cpe:2.3:a:rtslib-fb_project:rtslib-fb:1.99:*:*:*:*:*:*:*
  • cpe:2.3:a:rtslib-fb_project:rtslib-fb:2.0:*:*:*:*:*:*:*
    cpe:2.3:a:rtslib-fb_project:rtslib-fb:2.0:*:*:*:*:*:*:*
  • cpe:2.3:a:rtslib-fb_project:rtslib-fb:2.1:*:*:*:*:*:*:*
    cpe:2.3:a:rtslib-fb_project:rtslib-fb:2.1:*:*:*:*:*:*:*
  • cpe:2.3:a:rtslib-fb_project:rtslib-fb:2.1.70:*:*:*:*:*:*:*
    cpe:2.3:a:rtslib-fb_project:rtslib-fb:2.1.70:*:*:*:*:*:*:*
  • cpe:2.3:a:rtslib-fb_project:rtslib-fb:2.1.71:*:*:*:*:*:*:*
    cpe:2.3:a:rtslib-fb_project:rtslib-fb:2.1.71:*:*:*:*:*:*:*
  • cpe:2.3:a:rtslib-fb_project:rtslib-fb:2.1.72:*:*:*:*:*:*:*
    cpe:2.3:a:rtslib-fb_project:rtslib-fb:2.1.72:*:*:*:*:*:*:*
CVSS
Base: 4.6 (as of 07-08-2020 - 12:15)
Impact:
Exploitability:
CWE CWE-276
CAPEC
  • Web Logs Tampering
    Web Logs Tampering attacks involve an attacker injecting, deleting or otherwise tampering with the contents of web logs typically for the purposes of masking other malicious behavior. Additionally, writing malicious data to log files may target jobs, filters, reports, and other agents that process the logs in an asynchronous attack pattern. This pattern of attack is similar to "Log Injection-Tampering-Forging" except that in this case, the attack is targeting the logs of the web server and not the application.
  • Accessing Functionality Not Properly Constrained by ACLs
    In applications, particularly web applications, access to functionality is mitigated by an authorization framework. This framework maps Access Control Lists (ACLs) to elements of the application's functionality; particularly URL's for web apps. In the case that the administrator failed to specify an ACL for a particular element, an attacker may be able to access it with impunity. An attacker with the ability to access functionality not properly constrained by ACLs can obtain sensitive information and possibly compromise the entire application. Such an attacker can access resources that must be available only to users at a higher privilege level, can access management sections of the application, or can run queries for data that they otherwise not supposed to.
  • Directory Indexing
    An adversary crafts a request to a target that results in the target listing/indexing the content of a directory as output. One common method of triggering directory contents as output is to construct a request containing a path that terminates in a directory name rather than a file name since many applications are configured to provide a list of the directory's contents when such a request is received. An adversary can use this to explore the directory tree on a target as well as learn the names of files. This can often end up revealing test files, backup files, temporary files, hidden files, configuration files, user accounts, script contents, as well as naming conventions, all of which can be used by an attacker to mount additional attacks.
Access
VectorComplexityAuthentication
LOCAL LOW NONE
Impact
ConfidentialityIntegrityAvailability
PARTIAL PARTIAL PARTIAL
cvss-vector via4 AV:L/AC:L/Au:N/C:P/I:P/A:P
redhat via4
advisories
  • bugzilla
    id 1858856
    title RHEL8.3: rtslib: shutil.copy() opens the file with wrong permissions
    oval
    OR
    • comment Red Hat Enterprise Linux must be installed
      oval oval:com.redhat.rhba:tst:20070304026
    • AND
      • comment Red Hat Enterprise Linux 8 is installed
        oval oval:com.redhat.rhba:tst:20193384074
      • OR
        • AND
          • comment python3-rtslib is earlier than 0:2.1.73-2.el8
            oval oval:com.redhat.rhea:tst:20204505001
          • comment python3-rtslib is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhea:tst:20204505002
        • AND
          • comment target-restore is earlier than 0:2.1.73-2.el8
            oval oval:com.redhat.rhea:tst:20204505003
          • comment target-restore is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhea:tst:20204505004
    rhsa
    id RHEA-2020:4505
    released 2020-11-04
    severity Moderate
    title RHEA-2020:4505: python-rtslib bug fix and enhancement update (Moderate)
  • bugzilla
    id 1854723
    title CVE-2020-14019 python-rtslib: weak permissions for /etc/target/saveconfig.json
    oval
    OR
    • comment Red Hat Enterprise Linux must be installed
      oval oval:com.redhat.rhba:tst:20070304026
    • AND
      • comment Red Hat Enterprise Linux 7 is installed
        oval oval:com.redhat.rhba:tst:20150364027
      • OR
        • AND
          • comment python-rtslib is earlier than 0:2.1.74-1.el7_9
            oval oval:com.redhat.rhsa:tst:20205435001
          • comment python-rtslib is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhsa:tst:20205435002
        • AND
          • comment python-rtslib-doc is earlier than 0:2.1.74-1.el7_9
            oval oval:com.redhat.rhsa:tst:20205435003
          • comment python-rtslib-doc is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhsa:tst:20205435004
    rhsa
    id RHSA-2020:5435
    released 2020-12-15
    severity Moderate
    title RHSA-2020:5435: python-rtslib security update (Moderate)
rpms
  • python3-rtslib-0:2.1.73-2.el8
  • target-restore-0:2.1.73-2.el8
  • python-rtslib-0:2.1.74-1.el7_9
  • python-rtslib-doc-0:2.1.74-1.el7_9
refmap via4
fedora FEDORA-2020-46ec9e748b
misc https://github.com/open-iscsi/rtslib-fb/pull/162
suse openSUSE-SU-2020:1156
Last major update 07-08-2020 - 12:15
Published 19-06-2020 - 11:15
Last modified 07-08-2020 - 12:15
Back to Top