Improper access control in lynis - CVE-2020-13882
Published: September 1, 2020
Vulnerability details
The vulnerability allows a local user to gain unauthorized access to sensitive information.
The vulnerability exists due to improper access restrictions due to 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.
Affected software
Amazon Linux AMI
Fedora
lynis
How to mitigate CVE-2020-13882
lynis - addressed in versions 3.0.0-1.el7, 3.0.0-1.el8, 3.0.0-1.fc31, 3.0.0-1.fc32
External References
- https://cisofy.com/security/cve/cve-2020-13882/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JDCHEKNR3HPJRNHE5PYKFH5GNBADTPA7/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UBFHIX6RTHCK37FXMAAXP4KGAMLUFDUD/