posted 2018-04-15
The Gentoo net-im/jabberd2 package gives ownership of its PID file directory to the daemon's runtime user. That can be exploited by the runtime user to kill root processes, since when the service is stopped, root will send a SIGTERM to the contents of the PID file (which are controlled by the runtime user).
Before the net-im/jabberd2 OpenRC service starts, a call to checkpath gives ownership of the PID file directory to the runtime jabber user:
That can be exploited by the jabber user to kill root processes, since when the service is stopped, root will send a SIGTERM to the contents of the PID file (which are controlled by jabber).
The net-im/jabberd2 package was removed from Gentoo on 2018-03-03.