A privilege escalation vulnerability was found in nagios 4.2.x that occurs in daemon-init.in when creating necessary files and insecurely changing the ownership afterwards. It's possible for the local attacker to create symbolic links before the files are to be created and possibly escalating the privileges with the ownership change.
The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.
Link | Tags |
---|---|
https://www.exploit-db.com/exploits/40774/ | exploit vdb entry third party advisory |
https://github.com/NagiosEnterprises/nagioscore/commit/f2ed227673d3b2da643eb5cad26b2d87674f28c1.patch | third party advisory patch |
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2016-8641 | issue tracking third party advisory patch |
http://www.securityfocus.com/bid/95121 | vdb entry third party advisory |
https://security.gentoo.org/glsa/201702-26 | third party advisory vendor advisory |