by hapless · 8y ago · 0 comments
OpenBSD is a fascinating project, but it is _decades_ behind the state of the art in security.
http://niels.xtdnet.nl/papers/privsep.pdf
http://www.citi.umich.edu/u/provos/ssh/privsep.html
I would have much greater confidence in an OpenBSD project that included lomac or capsicum.
As a concrete example: my personal mail server (on a modern operating system) has its SMTP handling in a separate process from mailbox serving. If the SMTP process is compromised, and the attacker reaches uid=0, it doesn't matter -- no data from the mailboxes can be exfiltrated.
Only SMTP is broken, because mandatory access control prevents the SMTP "root" from doing anything the SMTP daemon would not ordinarily be permitted to do. The SMTP daemon is not empowered to read mailboxes, even if its uid is 0.
https://www.cvedetails.com/cve/CVE-2015-7687/
Then you compare its record to Sendmail...
It doesn't matter that you have uid=0, you do not have the granted capabilities to do new things.