host-deny.sh in OSSEC before 2.8.1 writes to temporary files with predictable filenames without verifying ownership, which allows local users to modify access restrictions in hosts.deny and gain root privileges by creating the temporary files before automatic IP blocking is performed.
Weaknesses in this category are related to the management of permissions, privileges, and other security features that are used to perform access control.
Link | Tags |
---|---|
http://www.exploit-db.com/exploits/35234 | exploit |
http://packetstormsecurity.com/files/129111/OSSEC-2.8-Privilege-Escalation.html | exploit |
https://github.com/ossec/ossec-hids/releases/tag/2.8.1 | patch vendor advisory |