Vulnerability in make (1)
This security advisory and associated patch documents and fixes a security hole in Berkeley Make, relating to the "-j" option and temporary file name handling. The advisory was issued by the FreeBSD security team, but it is believed that NetBSD and OpenBSD are affected as well. Obviously, if you have downloaded Berkeley Make to a non-BSD system then you should investigate as well.
But in another thread on the OpenBSD misc list, Theo pretty much pointed out that almost no one used the conditions to exploit the code under OpenBSD. But they fixed it anyways.
>>This is exactly the sort of thing that a code audit for security can flush out and fix, so it should come as no surprise that OpenBSD fixed it.
Matthew's point refer's to how beneficial a code audit is. A code audit of FreeBSD is exactly what prompted this SA. It wasn't clear to me if Matthew was suggesting FreeBSD needed a code audit or that he was aware of it and giving out props.
Brian D. McGlothlin
dskyzd@naxsDOTnet
As howardjp pointed out, OpenBSD is not affected (I'm repeating it since I get a +1 Bonus and this will be seen by people, since moderators rarely come here -- if a moderator sees this, please moderate his post, rather than mine, up).
This is exactly the sort of thing that a code audit for security can flush out and fix, so it should come as no surprise that OpenBSD fixed it.
--Matthew
DOH! Didn't see that one come across the list. :) That same message also says that a fix was just committed.
Just out of curiosity, is there anyone someone can just update everything which could be classified as a "security fix" in FreeBSD or OpenBSD?
All processes are equal, but some are more equal than others...
A Government Is a Body of People, Usually Notably Ungoverned
The actual file is at ftp:/ /ftp.freebsd.org/pub/FreeBSD/CERT/advisories/FreeB SD-SA-00%3A01.make.asc.
Huh? /tmp is always mode 1777. 1000 is the sticky bit (+t in chmod's symbolic modes). In a +t directory, users can't rename/unlink/rmdir files or directories they don't own. This is supported in every modern Unix, and is no doubt mentioned in every standard who's scope covers Unix file permissions.
Todd Miller posted to misc@openbsd.org yesterday saying that this bug was fixed "quite some time" ago in OpenBSD. A copy of his message can be seen here.
This dosen't surprise me one bit. Many programs use /tmp files rather badly. Most open them with world readability thus possibly disclosing contents. I'll admit even I have written scripts and programs that do poor file handling in the /tmp directory.
The other problem it is possible on many UNIX systems to delete files that you don't own in the /tmp directory. There are some UNIXes that don't allow this, but it creates an exception to the normal UNIX file handling rules.
Combining the poor file handling and being able to delete others files in /tmp one can do all sorts of exploits to gain root or access to others accounts.