ID CVE-2020-13882
Summary CISOfy Lynis before 3.0.0 has Incorrect Access Control because of a TOCTOU race condition. The routine to check the log and report file permissions was not working as intended and could be bypassed locally. Because of the race, an unprivileged attacker can set up a log and report file, and control that up to the point where the specific routine is doing its check. After that, the file can be removed, recreated, and used for additional attacks.
References
Vulnerable Configurations
  • cpe:2.3:a:cisofy:lynis:1.5.0:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:1.5.0:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:1.5.0:*:*:*:*:aix:*:*
    cpe:2.3:a:cisofy:lynis:1.5.0:*:*:*:*:aix:*:*
  • cpe:2.3:a:cisofy:lynis:1.5.1:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:1.5.1:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:1.5.1:*:*:*:*:aix:*:*
    cpe:2.3:a:cisofy:lynis:1.5.1:*:*:*:*:aix:*:*
  • cpe:2.3:a:cisofy:lynis:1.5.2:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:1.5.2:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:1.5.2:*:*:*:*:aix:*:*
    cpe:2.3:a:cisofy:lynis:1.5.2:*:*:*:*:aix:*:*
  • cpe:2.3:a:cisofy:lynis:1.5.3:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:1.5.3:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:1.5.3:*:*:*:*:aix:*:*
    cpe:2.3:a:cisofy:lynis:1.5.3:*:*:*:*:aix:*:*
  • cpe:2.3:a:cisofy:lynis:1.5.4:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:1.5.4:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:1.5.4:*:*:*:*:aix:*:*
    cpe:2.3:a:cisofy:lynis:1.5.4:*:*:*:*:aix:*:*
  • cpe:2.3:a:cisofy:lynis:1.5.5:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:1.5.5:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:1.5.5:*:*:*:*:aix:*:*
    cpe:2.3:a:cisofy:lynis:1.5.5:*:*:*:*:aix:*:*
  • cpe:2.3:a:cisofy:lynis:1.6.1:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:1.6.1:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:1.6.2:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:1.6.2:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:1.6.3:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:1.6.3:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:1.6.4:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:1.6.4:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:2.0.0:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:2.0.0:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:2.1.0:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:2.1.0:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:2.1.1:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:2.1.1:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:2.2.0:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:2.2.0:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:2.3.0:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:2.3.0:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:2.3.1:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:2.3.1:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:2.3.2:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:2.3.2:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:2.3.3:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:2.3.3:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:2.3.4:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:2.3.4:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:2.4.0:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:2.4.0:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:2.4.1:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:2.4.1:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:2.4.2:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:2.4.2:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:2.4.3:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:2.4.3:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:2.4.4:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:2.4.4:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:2.4.5:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:2.4.5:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:2.4.6:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:2.4.6:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:2.4.7:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:2.4.7:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:2.4.8:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:2.4.8:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:2.5.0:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:2.5.0:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:2.5.1:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:2.5.1:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:2.5.2:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:2.5.2:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:2.5.3:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:2.5.3:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:2.5.4:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:2.5.4:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:2.5.5:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:2.5.5:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:2.5.6:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:2.5.6:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:2.5.7:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:2.5.7:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:2.5.8:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:2.5.8:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:2.5.9:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:2.5.9:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:2.6.0:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:2.6.0:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:2.6.1:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:2.6.1:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:2.6.2:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:2.6.2:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:2.6.3:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:2.6.3:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:2.6.4:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:2.6.4:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:2.6.5:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:2.6.5:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:2.6.6:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:2.6.6:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:2.6.7:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:2.6.7:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:2.6.8:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:2.6.8:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:2.6.9:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:2.6.9:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:2.7.0:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:2.7.0:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:2.7.1:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:2.7.1:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:2.7.2:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:2.7.2:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:2.7.3:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:2.7.3:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:2.7.4:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:2.7.4:*:*:*:*:*:*:*
  • cpe:2.3:a:cisofy:lynis:2.7.5:*:*:*:*:*:*:*
    cpe:2.3:a:cisofy:lynis:2.7.5:*:*:*:*:*:*:*
  • cpe:2.3:o:fedoraproject:fedora:31:*:*:*:*:*:*:*
    cpe:2.3:o:fedoraproject:fedora:31:*:*:*:*:*:*:*
  • cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*
    cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*
CVSS
Base: 3.7 (as of 07-11-2022 - 13:37)
Impact:
Exploitability:
CWE CWE-367
CAPEC
  • Leveraging Race Conditions via Symbolic Links
    This attack leverages the use of symbolic links (Symlinks) in order to write to sensitive files. An attacker can create a Symlink link to a target file not otherwise accessible to her. When the privileged program tries to create a temporary file with the same name as the Symlink link, it will actually write to the target file pointed to by the attackers' Symlink link. If the attacker can insert malicious content in the temporary file she will be writing to the sensitive file by using the Symlink. The race occurs because the system checks if the temporary file exists, then creates the file. The attacker would typically create the Symlink during the interval between the check and the creation of the temporary 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
refmap via4
confirm https://cisofy.com/security/cve/cve-2020-13882/
fedora
  • FEDORA-2020-059e1591d6
  • FEDORA-2020-f251753b0f
Last major update 07-11-2022 - 13:37
Published 18-06-2020 - 18:15
Last modified 07-11-2022 - 13:37
Back to Top