03/08/2006, 10:05am, EST
Wednesday, March 8th
Exploit for pre-Tiger systems?
According to the site, the user's Library folder can include information about which items to launch during startup, allowing any trojan application to create that 'StartUpItems' folder and execute arbitrary code. The exploit has been fixed in Apple's latest Tiger OS, but remains in previous versions. The site recommends 'hardening' the user's 'Library' folder to protect pre-Tiger systems.
"The best you can do is to harden /Library/StartupItems as Apple have done in later releases. /Library should be owned by root:admin and have 1775; /Library/StartupItems must exist, be owned by root:admin, and have 0755.
"If anything is found in /Library/StartupItems on boot and the ownership and mode are incorrect, the Tiger boot sequence will refrain from running the code and ask your advice how to proceed. You can defer your decision, disable the item, or go ahead and fix it. If you decide to fix it, it might fix you - so be careful."
Echoing warnings noted here previously, the website warns that Apple's patch for the Mac OS X Zero Day exploit only protects users running Safari and other Apple applications, leaving users of third-party software--such as Firefox, Camino, etc.--vulnerable to execution of code disguised as a "safe" file. Meanwhile, the newly launched Mac OS X Security Challenge, inviting hackers to compromise a designated Mac on the internet, is still in progress, without any compromise, following a previous challenge in which a user was able to compromise the system within 30 minutes using a (provided) local user account.
The new challenge saw many different types of attacks in the first 38 hours, including web exploit scripts, ssh dictionary attacks, and scanning tools such as Nessus as well as two DoS attacks. However, the site notes that "there were no successful access attempts of any kind, including during the 38 hour duration of the test period, nor have their been any claims of success. The host is still the same host and configuration used for the test."
Update: The MacEnterprise project has posted a response to the claimed exploit: "The only scenario in which there is a possibility of installing code that runs as root _without_ having to authenticate as an admin is if a previous admin or authenticated installer has created or modified /Library/StartupItems with insecure permissions, and additionally under Tiger, only if files with root/wheel owner/group and 0755 mode are moved into this directory. While this is a potential scenario, it is not a common one. You can protect yourself now by either upgrading to Tiger (which has been available for almost a year), or ensuring /Library/StartupItems is owned by root, has group wheel, and has mode 0755."
Filed under: troubleshooting
,
, 13
,
,
,
,
,

subscribe to comments
for this article
To me, the greater risk is to files already in my home folder, not installed software and system files. Sure, it could be used by other people as a spambot or something like that, but that's not my biggest concern.
http://macenterprise.org/content/view/204/77/
On not already creating a root password? I've been adding root to installations with separate passwords all along. Isn't this what a sys admin is supposed to do? Folks, fyi, admin is not root. The best way to sucure on'es computer these days is to turn it off!
This has nothing to do with it, does it? Programs just try to get privilege escalation to then be able to do their work. If they escalate to Root, they don't need a password.
And most people don't turn on the root user, but that doesn't mean the user's disabled. It just means you can't log in as root.
Oh, and since when does a home user now have to be a sys admin just to use a computer?
So, my point is that it isn't an issue in the latest OS, so, the article's name is a little misleading "Apple's 'Unix' Runs Arbitrary Code on Boot?". Or statements like"If they're patient and wait, they get it on next boot with no privilege escalation whatsoever." Hum, or if they upgrade to Mac OS X 10.4 they don't need to be patient and wait ;-) So, NOT completly FUD, but a little 8-)
BTW - Just checked. I use Mac OS X 10.3.9 and my StartUpItems was to set Root access without me doing anything special to get it that way.
Well, technically, most exploits are announced after a patch is made, so, therefore, not an issue with the latest OS.
It just makes that assumption that everyone wants to update to the latest OS. (Ah, the OS X subscription model....)
root/admin. You can make a folder in that directory easily enough. So try creating a StartupItems folder.
Apple knew this was a bug so they fixed it.
chmod 1775 /Library sudo chmod 0775 /Library/Startupitems
and enter your admin password when prompted!