ID CVE-2020-10737
Summary A race condition was found in the mkhomedir tool shipped with the oddjob package in versions before 0.34.5 and 0.34.6 wherein, during the home creation, mkhomedir copies the /etc/skel directory into the newly created home and changes its ownership to the home's user without properly checking the homedir path. This flaw allows an attacker to leverage this issue by creating a symlink point to a target folder, which then has its ownership transferred to the new home directory's unprivileged user.
References
Vulnerable Configurations
  • cpe:2.3:a:redhat:oddjob:0.3-0:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:oddjob:0.3-0:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:oddjob:0.4-0:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:oddjob:0.4-0:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:oddjob:0.5-0:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:oddjob:0.5-0:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:oddjob:0.6-0:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:oddjob:0.6-0:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:oddjob:0.9-0:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:oddjob:0.9-0:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:oddjob:0.10-0:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:oddjob:0.10-0:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:oddjob:0.11-0:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:oddjob:0.11-0:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:oddjob:0.12-0:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:oddjob:0.12-0:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:oddjob:0.13-0:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:oddjob:0.13-0:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:oddjob:0.14-0:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:oddjob:0.14-0:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:oddjob:0.15-0:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:oddjob:0.15-0:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:oddjob:0.16-0:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:oddjob:0.16-0:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:oddjob:0.17-0:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:oddjob:0.17-0:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:oddjob:0.18-1:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:oddjob:0.18-1:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:oddjob:0.19-1:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:oddjob:0.19-1:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:oddjob:0.20-1:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:oddjob:0.20-1:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:oddjob:0.21-1:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:oddjob:0.21-1:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:oddjob:0.22-1:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:oddjob:0.22-1:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:oddjob:0.23-1:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:oddjob:0.23-1:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:oddjob:0.24-1:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:oddjob:0.24-1:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:oddjob:0.25-1:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:oddjob:0.25-1:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:oddjob:0.26-1:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:oddjob:0.26-1:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:oddjob:0.27-1:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:oddjob:0.27-1:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:oddjob:0.27-3:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:oddjob:0.27-3:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:oddjob:0.27-5:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:oddjob:0.27-5:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:oddjob:0.27-6:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:oddjob:0.27-6:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:oddjob:0.27-7:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:oddjob:0.27-7:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:oddjob:0.28-1:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:oddjob:0.28-1:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:oddjob:0.29-1:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:oddjob:0.29-1:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:oddjob:0.29.1-1:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:oddjob:0.29.1-1:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:oddjob:0.30:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:oddjob:0.30:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:oddjob:0.30.1:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:oddjob:0.30.1:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:oddjob:0.30.2:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:oddjob:0.30.2:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:oddjob:0.31:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:oddjob:0.31:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:oddjob:0.31.1:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:oddjob:0.31.1:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:oddjob:0.31.2:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:oddjob:0.31.2:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:oddjob:0.31.3:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:oddjob:0.31.3:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:oddjob:0.31.4:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:oddjob:0.31.4:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:oddjob:0.31.5:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:oddjob:0.31.5:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:oddjob:0.32:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:oddjob:0.32:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:oddjob:0.33:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:oddjob:0.33:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:oddjob:0.34:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:oddjob:0.34:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:oddjob:0.34.1:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:oddjob:0.34.1:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:oddjob:0.34.2:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:oddjob:0.34.2:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:oddjob:0.34.3:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:oddjob:0.34.3:*:*:*:*:*:*:*
CVSS
Base: 3.7 (as of 26-10-2021 - 20:16)
Impact:
Exploitability:
CWE CWE-362
CAPEC
  • Leveraging Race Conditions
    The adversary targets a race condition occurring when multiple processes access and manipulate the same resource concurrently, and the outcome of the execution depends on the particular order in which the access takes place. The adversary can leverage a race condition by "running the race", modifying the resource and modifying the normal execution flow. For instance, a race condition can occur while accessing a file: the adversary can trick the system by replacing the original file with his version and cause the system to read the malicious file.
  • Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions
    This attack targets a race condition occurring between the time of check (state) for a resource and the time of use of a resource. A typical example is file access. The adversary can leverage a file access race condition by "running the race", meaning that they would modify the resource between the first time the target program accesses the file and the time the target program uses the file. During that period of time, the adversary could replace or modify the file, causing the application to behave unexpectedly.
Access
VectorComplexityAuthentication
LOCAL HIGH NONE
Impact
ConfidentialityIntegrityAvailability
PARTIAL PARTIAL PARTIAL
cvss-vector via4 AV:L/AC:H/Au:N/C:P/I:P/A:P
redhat via4
advisories
bugzilla
id 1886362
title oddjob-mkhomedir - homedir has a 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 oddjob is earlier than 0:0.34.5-3.el8
          oval oval:com.redhat.rhsa:tst:20204687001
        • comment oddjob is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhsa:tst:20204687002
      • AND
        • comment oddjob-debugsource is earlier than 0:0.34.5-3.el8
          oval oval:com.redhat.rhsa:tst:20204687003
        • comment oddjob-debugsource is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhsa:tst:20204687004
      • AND
        • comment oddjob-mkhomedir is earlier than 0:0.34.5-3.el8
          oval oval:com.redhat.rhsa:tst:20204687005
        • comment oddjob-mkhomedir is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhsa:tst:20204687006
rhsa
id RHSA-2020:4687
released 2020-11-04
severity Moderate
title RHSA-2020:4687: oddjob security, bug fix, and enhancement update (Moderate)
rpms
  • oddjob-0:0.34.5-3.el8
  • oddjob-debuginfo-0:0.34.5-3.el8
  • oddjob-debugsource-0:0.34.5-3.el8
  • oddjob-mkhomedir-0:0.34.5-3.el8
  • oddjob-mkhomedir-debuginfo-0:0.34.5-3.el8
refmap via4
confirm
Last major update 26-10-2021 - 20:16
Published 27-05-2020 - 01:15
Last modified 26-10-2021 - 20:16
Back to Top