Slashdot Mirror


New Remote Root in Mac OS X

Cysgod writes "I've released a security advisory detailing a new remote root vulnerability in Mac OS X 10.3, 10.2 and possibly earlier versions." The main thrust is that it exploits a problem in the DHCP client, to gain root access, and turning off various services can prevent attack. It is unclear why an exploit was made public before Apple resolved the problem. Apple's fix is apparently scheduled for a December release.

114 of 445 comments (clear)

  1. i thought i would never say this by Anonymous Coward · · Score: 5, Funny


    thank goodness iam running Windows

    1. Re:i thought i would never say this by toastmaster · · Score: 5, Funny

      because windows never had any security issues...

    2. Re:i thought i would never say this by ePhil_One · · Score: 4, Funny
      Crazy fools! I run DOS with one of those big NFL Replay Review hoods, while inside a farady cage.

      Its the only way to be safe.

      --
      You are in a maze of twisted little posts, all alike.
    3. Re:i thought i would never say this by wo1verin3 · · Score: 5, Funny

      NO! It's because we are safe, windows doesn't have a root user. :0

    4. Re:i thought i would never say this by RustyTaco · · Score: 3, Informative

      Uh, lookup how "Automatic Proxy Configuration" works before you get too relaxed. It's a "hey you untrustworty slime out on the network, do you want me to run something" sort of thing, just like this. Both are on by default, which is bad. Apple is accepting account information and passwords without cross-checking, MS is running a random script an injected packet told it to run.

      Bad Fruit on Apple though. Since they probably don't want to remove the automagical "Just Works" functionality I have a feeling they're change it so that it "Just Works" only for unpriliaged users and requires some statement of trust to allow prilieged users.

      - RustyTaco

    5. Re:i thought i would never say this by Hoser+McMoose · · Score: 3, Insightful

      Actually that brings MS and Apple even for the past month at 1 a piece (Microsoft had a buffer overrun in the Workstation service).

      Ohh, and both MS and Apple have had a security vulnerbility for their browser this month on top of the OS vulnerbilities listed above.

      Linux doesn't seem to have had any new security vulnerbilities announced this month, though a few security fixes are filtering through for vulnerbilities announced in October. Both WinXP and OS X also had some similar fixes for earlier bugs.

      Long story short, it doesn't matter what OS you run, you WILL have security vulnerbilities. Patch your OS and use a firewall already!

    6. Re:i thought i would never say this by JeffTL · · Score: 5, Insightful

      Well, actually, on most Windows boxen, EVERYONE is root.

    7. Re:i thought i would never say this by jjhlk · · Score: 4, Informative

      I don't understand what you meant, but Administrator does not have kernel level access, like your parent said. This is obvious when you try to kill certain processes as Administrator, but are not allowed. Of course, Administrator access is enough to still do anything you want on the computer, so the distinction is almost moot.

  2. Exploitability Questionable by marsipan · · Score: 5, Informative

    "In most cases, the Mac will need to be booted into the malicious environment to be exploitable by this flaw. (The netinfod process must be restarted to cause the malicious server to be inserted into the authentication source list.)"

    This definitely makes the exploit less likely...

    1. Re:Exploitability Questionable by gl4ss · · Score: 3, Interesting

      how about public wlans? is it exploitable in a scenario like that?

      yeah i don't know if they use dhcp or what but i imagine so.

      (i don't have a laptop, thank you very much please give me one)

      --
      world was created 5 seconds before this post as it is.
    2. Re:Exploitability Questionable by Vandil+X · · Score: 4, Funny
      In most cases, the Mac will need to be booted into the malicious environment to be exploitable by this flaw.
      In the Windows world, we call this malicious environment "Internet Explorer".
      --
      Up, Up, Down, Down, Left, Right, Left, Right, B, A, START
    3. Re:Exploitability Questionable by moof1138 · · Score: 4, Informative

      Static automounts from directory services (which are what you need to exploit this) only get mounted at boot, if if certain directory services related processes get restarted that never get restarted in a normal setup, so you really need to boot a machine in a hostile environment for this to affect you. Dynamic automounts will get mouted at each login, but will not be mounted in a dangerous way.

      You can just go into Directory Access and uncheck LDAP and NetInfo to be immune to the issue even if you use DHCP. I always do this. While this guy thinks he is early in reporting this bug, rogue NetInfo servers are not a new thing (though rogue LDAP servers would be more recent). There used to be an article in NextAnswers from the late 80s about how to track them down. I always customized these settings when I first get a OS X system to avoid this very thing.

      --

      Hyperbole is the worst thing ever.
    4. Re:Exploitability Questionable by Anonymous Coward · · Score: 5, Informative

      Ha, you people are all ignorant.

      If you were a Mac person, you would know that Mac people never shut their laptops down, only put them to sleep. Why go though a slow boot on your iBook when it wakes up as soon as the lid is up?

      As many moderated up quotes from the article tell us, this problem is only a problem when the services are started, which is on boot. Which is not on wake-from-sleep.

      I do not mean to trivialize this hole. To me, it seems obvious why it is there. Apple wants LDAP-enabled, OSX Server managed networks to work out of the box. This includes the ability to mount shares anywhere on the client system, which is insanely powerful and useful in a trusted setup.

      Trusted is, of course, the operative term there. Apple needs to fix this or disable the services by default. People who need it can enable it themselves.

    5. Re:Exploitability Questionable by sharkey · · Score: 3, Funny
      In the Windows world, we call this malicious environment "Internet Explorer".

      Actually, it's just called "explorer". Go ahead and check, I bet you've got this malware running on your Windows PC right now.

      --

      --
      "Outlook not so good." That magic 8-ball knows everything! I'll ask about Exchange Server next.
  3. Default? by Phroggy · · Score: 4, Informative

    and on any network provided service, including ssh (which is turned on by default in certain versions of the affected software).

    I'm not aware that SSH was enabled by default in any version of Mac OS X.

    --
    $x='S24;r)>63/* h@<5+oZ)32"5cz';$me='phroggy'x$];
    $x=~y+ -xz+\0-Tx+;print$_^chop$me for split'',$x;
    1. Re:Default? by Darth_Foo · · Score: 5, Informative

      I don't beleive it is in the client versions of OS X but it almost certainly is in OS X Server (which is also subject to the published vulnerability).

    2. Re:Default? by Cysgod · · Score: 5, Informative

      Hi there.

      It is important to note that having all your services turned off is *not* protection against this bug.

      The malicious LDAP server also gets to dictate your mountpoints to you. This means malicious executables can be mounted anywhere in your filesystem. Including places where they can be expected to be executed.

      A trivial exploit of this would be to replace the directory with crontabs and set up a crontab and an executable to run as root. Suddenly sshd *is* enabled.

      I'll try to answer other questions as I can. This got posted when I was horseback riding, I submitted it at 9am....

    3. Re:Default? by nehril · · Score: 4, Informative

      your OSX server is vulnerable only if it uses DHCP on an untrusted lan. if you're using dhcp for *servers* on an unsecured network.... well then you have more problems than this.

      the exploit as I understand is this: evil dhcp server gives you an IP addr and also an evil LDAP server, which if your mac is configured to do so, will allow the LDAP server to authenticate root level users too (besides other fun admin stuff like mount points).

      this behavior is actually useful for 'lab full of macs)' scenarios and, as I understand, has been an admin 'feature' since the NeXTStep days.

  4. Call me an Apple Apologist, but.. by grub · · Score: 5, Insightful


    OK, there's a hole. Still, when Apple (or OpenBSD) have a security hole it's newsworthy rather than just Business As Usual.. unlike other companies which promise security but can't deliver.

    --
    Trolling is a art,
    1. Re:Call me an Apple Apologist, but.. by FredFnord · · Score: 4, Insightful

      Most security holes aren't newsworthy. Remote root exploits, if they can actually be used, are, no matter what platform you're on. Thankfully, they're also rare, on most platforms.

      If someone can screw up your machine if they're sitting at it, or have an account on it, or are on the same (unswitched) subnet, that's annoying. If they can crash your machine remotely, or bring down its network stack, or DOS it to death with just one remote machine, that's really annoying. But when they can take it over, that's when it steps beyond annoying and becomes newsworthy.

      -fred

      --
      Sign #11 of Slashdot overdose: You see the phrase 'moderate Republican' and you wonder if that would be a +1 or a -1.
    2. Re:Call me an Apple Apologist, but.. by freeweed · · Score: 2, Interesting

      Yeah, on a day with 5 new IE holes (most of which are the same magnitude), I'll have to agree with you.

      --
      Endless arguments over trivial contradictions in books written by ignorant savages to explain thunder in the dark.
    3. Re:Call me an Apple Apologist, but.. by Evil+Adrian · · Score: 3, Informative

      Root exploits are newsworthy. Every time Microsoft has a root exploit, it makes headlines, so Quit Thy Bitching.

      --
      evil adrian
    4. Re:Call me an Apple Apologist, but.. by feepness · · Score: 4, Funny

      You are an Apple Apologist.

    5. Re:Call me an Apple Apologist, but.. by Maserati · · Score: 2, Informative

      Funny, I just installed the latest Omega drivers for my Ti4600. During the install process, ZoneAlarm said that ScriptingHost 6.0 (maybe VisBasic 6, not 100% sure) wanted to access the Internet. I'm glad I didn't let it.

      I'm also glad that the only machine at the office that ever has remote login turned on is on a static IP address and isn't running dhcpd at all (and it doesn't have it turned on now anyway). And we aren't using directory services on the desktop for any authentication at all, so even the DHCP machines shouldn't be at all vulnerable. Having an email out to the group as soon as I'm back from vaaction will be a nice feather in my cap.

      Incidentally, a fresh install of 10.3 does have some of these services turned on by default, and they aren't really necessary unless you have a specific reason for them - corporate IT environments for example. This is usually a Microsoft boobo, Apple usually leaves things off - remote login for one - by default. And hasn't ever done anything like share your C$ automatically.

      --
      Veteran, Bermuda Triangle Expeditionary Force, 1992-1951
    6. Re:Call me an Apple Apologist, but.. by HeghmoH · · Score: 4, Insightful

      Which category is it in if they can take over the machine, but only if they're on the same unswitched subnet, only if things are set up just so, and only if they're very lucky?

      --
      Mod down posts with a "Free Mac Mini/iPod" sig, they're spam!
    7. Re:Call me an Apple Apologist, but.. by maniac1860 · · Score: 3, Informative

      Let's be serious. A bug in active script that "may allow access to a users files" is no where near the same magnitude of a remote root exploit.

    8. Re:Call me an Apple Apologist, but.. by DeltaSigma · · Score: 2, Informative

      Seriously, Liu Die Yu has once again torn IE a new one. He's a very talented vulnerability researcher. I wish I had the money to help him get a computer, but I don't.

      People can donate via paypal here, if they want.

      He's very good, very responsible. Doesn't bash on Microsoft in his reports. It all appears to be acedemic with him. Help him out if you can.

    9. Re:Call me an Apple Apologist, but.. by freeweed · · Score: 2, Informative

      Sorry, I linked to the wrong page.

      Yu said the redirection feature could also be exploited to download and execute a malicious file on a user's system.

      You're right, it needs the browser to work. Still pretty damn close to a remote root exploit, in a Windows environment anyway. Visit a malicious webpage, and bang! you're rooted.

      --
      Endless arguments over trivial contradictions in books written by ignorant savages to explain thunder in the dark.
  5. What does this mean to the average home user? by Anonymous Coward · · Score: 4, Informative

    Assuming two scenarios:

    1. A home user with dialup, running no external services, with the firewall turned on.

    2. A home user with DSL/CABLE, running behind NAT. And for fun, let's add Airport. Also not running any services, firewall on.

    For the non-technical /. reader, is this vulnerability something to be seriously concerned about?

    1. Re:What does this mean to the average home user? by TheCrazyFinn · · Score: 4, Insightful

      Neither are vulnerable.

      The real worry is folks with an Airport card wandering around with their powerbook.

      The Exploit only works from the same subnet (As it relies on DHCP)

      --
      "You've got an invalid haircut" -Warren Zevon - Life'll Kill Ya
    2. Re:What does this mean to the average home user? by homesteader · · Score: 3, Insightful

      Routers connect subnets. Routers do not forward broadcasts. If you use VLANs and have multiple logical subnets on one physical network, you still won't see broadcasts from one VLAN passed to the others.

      So if you're on the same physical/logical subnet with no routing required between machines, the exploit is possible.

      Didn't to post AC

    3. Re:What does this mean to the average home user? by EverLurking · · Score: 5, Insightful

      The theoretical risk if you use alot of public or unknown WAP's and can't account for how responsible/evil the owner of the WAP might be (who knows what nefarious acts those public WAP operators providing free broadband are up to...yeah, unlikely) is high as they could get root access and mount a directory with a new crontab that will start up a remote SSH daemon to access your computer with later. Hard to think someone would go through the trouble but you never know nowadays. Apple should have had a fix for this sooner or at least issued a Knowledgebase article.

      The fix is rudimentary, just go into your /Applications/Utilities folder, fire up the "Directory Access", uncheck a couple of boxes (the LDAP and NetInfo services)and you're done. Takes like 10 seconds to do, no reboot required, no other reconfiguration, no problems (under WinBlows, would have taken like 30 minutes of fruitless hunting around and a couple of reboots/patches and reconfiguration afterwards probably). Well, it would have taken 10 seconds if I hadn't already had these two services unchecked b/c some at www.OSXHints.com suggested that disabling unused directory services sped up your startup a little bit.

      If you need configuration information from a LDAP or NetInfo server (ie. at work), you could always create a new Location under your Network system preferences panel and go back to Directory Access, disable the relevant LDAP and NetInfo services on all your other locations except your work location. If you can't trust your work not to try to hack your computer with this exploit, you've got bigger fish to fry.

      For most home/SOHO users who are behind their own home router/firewalls and have otherwise trustworthy family members/roomates/co-inhibitants, this is a non issue (then again, if the people who live with you are trying to hack you are living with you, you have another far greater problems to deal with than this exploit : ). People on a shared subnet (like Cable Modem users) at risk if you're not behind a local/home hardware router/gateway device and someone else on your subnet wants to play "Hack the neighbor's Mac" with this exploit. I think you should be able to trust the DHCP information being handed to you by your DSL provider (again, if you can't then your problems go WAAAAAY beyond this exploit), no big deal. Correct me if I'm wrong but, I'm pretty sure my off the shelf LinkSys router doesn't know what to do with LDAP or NetInfo configuration info handed down by my ISP even if they did hand out any, and it certainly isn't set to pass it through to my internal subnet.

      But then again, what are you thinking NOT being behind at least a inexpensive (they're what, like under $100 now even with 802.11g?) NAT/SPI firewall that's up and running 24/7 regardless of how your computer is configured if you're on Cable Modem or DSL at home?

      In short, a easy fix and not really a problem for most home/SOHO users. You can breath easy now.

      DaveC

      --
      There are no stupid questions...just stupid people.
    4. Re:What does this mean to the average home user? by IM6100 · · Score: 2, Insightful

      'Every' geek who runs a Unix/Freenix has uses for ssh and is likely running it. Hell, some people see running ssh as 'security enhancing' since the classic alternative is telnet. So yes, there are probably people who like to be able to 'reach into' their Powerbook from their desktop from time to time for various tasks, who have the ssh daemon enabled. Likely there are a bunch of them.

      --
      A Good Intro to NetBS
  6. The Reason the exploit was made public.. by Smitty825 · · Score: 4, Insightful

    The exploit was made public before the official fix is that Apple had 48 days to fix the issue. Also, by releasing information about the exploit, Apple Sysadmins can make a minor change to their setup to prevent this exploit from occuring...

    Just because the exploit isn't public, doesn't mean that somebody else doesn't know!

    --

    Doh!
    1. Re:The Reason the exploit was made public.. by abde · · Score: 5, Informative

      also there's this timeline of events, which is quite revealing:

      History of this Advisory & Vendor Contact Log
      2003-10-09 Initial version of this advisory
      2003-10-09 Apple Computer notified
      2003-10-09 Apple Computer confirmed receipt and forwarded to eng. team
      2003-10-11 Minor edits, also added "Philosophical Issues" and "Path to Root"
      2003-10-14 Apple Computer assigns specific point of contact
      2003-10-14 Requested confirmation of issue with Apple Computer
      2003-10-15 Apple Computer confirms issue
      (2003-10-24 Original deadline given to Apple for acknowledging issue)
      (2003-10-24 Mac OS X 10.3 is released with this known issue)
      (2003-10-28 Mac OS X 10.3 Security Update released, does not address issue)
      2003-10-28 Requested update of fix status from Apple Computer
      2003-10-28 Apple Computer proposes Nov. 3 fix date
      2003-10-29 Apple Computer reneges on Nov. 3 date
      2003-10-29 Requested fix in "2 or 3 weeks" from Apple Computer
      (2003-11-04 Mac OS X 10.3 Security Update released, does not address issue)
      (2003-11-15 Mac OS X 10.3.1 is released with this known issue)
      2003-11-17 Requested update of fix status from Apple Computer
      2003-11-18 Requested update of fix status from Apple Computer
      (2003-11-19 Mac OS X 10.3.1 Security Update released, does not address issue)
      2003-11-19 Apple Computer replies "scheduled to go out in December's update"
      2003-11-19 Deadline of Nov. 26 given to Apple Computer
      2003-11-25 Minor edits, made "Path to Root" a little more work for the script kiddies
      2003-11-26 Advisory issued (48 days after initial vendor notification)

      --
      Don't blame me - I voted for Howard Dean. http://dean2004.blogspot.com
    2. Re:The Reason the exploit was made public.. by GigsVT · · Score: 5, Insightful

      I do agree that's plenty of time, but it's still questionable to release the exploit at this stage. He could have disclosed, and then if Apple downplayed it saying it wasn't exploitable, then released the exploit.

      --
      I've had enough abrasive sigs. Kittens are cute and fuzzy.
    3. Re:The Reason the exploit was made public.. by TopShelf · · Score: 4, Insightful

      Why is this situation any different from new Windows exploits, which are shouted from the rooftops at the earliest opportunity?

      I'm not trolling here, just genuinely wondering...

      --
      Stop by my site where I write about ERP systems & more
    4. Re:The Reason the exploit was made public.. by Greedo · · Score: 5, Insightful

      I have to say, I looked down that timeline as well and thought "Well, at least Apple is looking into the problem and has given a timeframe for an update (December)."

      Then, 5 days before December, they release the advisory.

      I don't think it's unreasonable for Apple to take some time confirming the exploit, and planning an update. Remember when they released an update that broke things?

      I *do* think it's unreasonable for Carrel to demand deadlines to Apple ... or anyone, really ... to fix their stuff. Especially when Carrel knows it's going to be fixed. Not much better than blackmail, if you ask me.

      --
      Tuus crepidae innexilis sunt.
    5. Re:The Reason the exploit was made public.. by ZxCv · · Score: 4, Insightful

      I don't think it's unreasonable for Apple to take some time confirming the exploit, and planning an update. Remember when they released an update that broke things?

      This exploit would take any qualified engineer at Apple less than a day to confirm, and it is serious enough that it shouldn't have to wait for a 10.x.z update to be fixed (and, in fact, 10.3 and 10.3.1, as well as in independent security update have all been released since Apple was notified of this issue). Any way that the entire system can be compromised remotely should be fixed immediately. Apple has released a few security updates that were completely independent of a whole system update, and they should have done exactly that in this case.

      I love OS X, but this is completely unacceptable. I'm just glad my Macs don't use dhcp.

      --

      Perl - $Just @when->$you ${thought} s/yn/tax/ &couldn\'t %get $worse;
    6. Re:The Reason the exploit was made public.. by druske · · Score: 2, Insightful

      If he'd waited until Apple released the fix, he wouldn't have generated any publicity for himself. Apple had already made it clear they were fixing the problem, it seems like nothing more than self-promotion to release an advisory right now. Add to that the fact that this is publicized just before a holiday (U.S. Thanksgiving) --- when sysadmins and Apple programmers might be taking some time off, but script kiddies have time to play --- and you've got the potential for some mischief. Ending the advisory with "Happy Holidays" suggests that this wasn't altogether coincidental, either.

    7. Re:The Reason the exploit was made public.. by burns210 · · Score: 4, Interesting

      but ssh and all services are turned off by default, so even if you get an IP from a malicious DHCP server, and they use the exploit, they can't login remotely to do anything. So unless the services have been turned on by the user, the security whole is, to an extent, moot. and should be fixed, but not panicked about.

    8. Re:The Reason the exploit was made public.. by 0x0d0a · · Score: 2, Interesting

      "Smitty"...damn, that sounds familiar from the far, far reaches of memory. Google doesn't turn anything up, but did you do an interview with a journalist as a security expert years ago in which you discussed packet sniffing on the Macintosh?

    9. Re:The Reason the exploit was made public.. by valmont · · Score: 4, Interesting

      The mere fact that it should be fixed immediately does not at all mean that Apple MUST just quickly hack something together and just release it to the public.

      Guess what, in theory, all computers SHOULD IMMEDIATELY be secure out of the box and never ever require any patch. But this is real life. not utopia.

      I have yet to see a tested, reliable proposed patch for this vulnerability at the open-source darwin resources. My guess is it is far from being a trivial fix, and chances are Apple wants to thoroughly test it before releasing it.

      All Carrel is doing is demanding a deadline that was different from what Apple told him. He could have very-well just waited another month before releasing his advisory. Chances of someone else finding out about it on their own *and* managing to slither their way onto vulnerable subnets, write and execute an exploit, all this within, say, at most 30 days from the day this story popped-up and the latest possible day in december, are fucking slim to none. It is also NOT like this vulnerability would allow a script writer to write a worm that could quickly spread to the internet. Sure, entire subnets could be affected at a time, but the exploit would remain WITHIN the subnet, spreading it out to other networks would require sending email viruses or other stupid PEBKAC-based annoyances. Oh and the victim machine has to be initiating a dhcp request for it to get owned, which typically only happens at boot/startup time, or connection/disconnection. I can see laptop on large corporate networks being vulnerable, but again, a malicious machine would have to make its way INSIDE the network: it needs to live within 802.11b/g range and/or local hub. The offending machine could very easily be traced and its owner hung by the balls.

      Yes Apple reneged on their original deadline, chances are they had good reason and were trying to address that botched 10.2.8 release to have a stable base system to release another security patch on. As long as they communicate timeline information back to him, they clearly are NOT giving him the run-around. December is not unreasonable provided what we get is a stable, reliable fix. Confirming a vulnerability can be a far fucking cry from having a successful patch implemented and released, if the fix for the vulnerability is not trivial. For example, a mere buffer-overflow vulnerability in a piece of C code is typically a trivial fix. Revamping DHCP is not necessarily.

      Does Carrel's advisory offer a code fix to the Darwin Core? NO it doesn't. Has the potential issue of rogue evil Netinfo servers been around for a while? YES IT HAS.

      Some geeks should consider getting laid once in a while and resist the amazing trepidations of unleashing a juicy piece of information that'll quench a lifetime's worth karma-whoring lust.

  7. Watch out Bill by bodin · · Score: 3, Funny

    Apple are about to catch up on Microsoft!

  8. Damn by JHromadka · · Score: 5, Insightful

    It seems pretty irresponsible to release details on an exploit when the vendor has already acknowledged the issue and has a date planned on when to release the fix. Now if Apple was ignoring them, that would have been a different story.

    --
    "The objective of securing the safety of Americans from crime and terror has been achieved." -- John Ashcroft
    1. Re:Damn by mrsev · · Score: 2, Insightful

      Not when they dont fix it!

    2. Re:Damn by MrPink2U · · Score: 3, Insightful

      It seems pretty irresponsible not to release a timely patch to a know root exploit. Would you people please make up your minds on the standards by which you judge a software company.

    3. Re:Damn by Steve+Cowan · · Score: 2, Informative

      "Hundreds of Macs"? Um, troll much?

      Anyway, somebody has to be plugged into your LAN before they can take advantage of this security hole, i.e. they must be on your subnet. If you are behind a NAT device you are safe, unless somebody can get in via wireless or by plugging in.

      I'm not worried.

  9. Making rounds by somethinghollow · · Score: 4, Interesting

    Looks like this guy is making the rounds. A more detailed post is at MacSlash. The highlight of conversation there is "Root is disabled by default, and SSH is off by default. Therefore the default settings don't make you vulnerable."

    Apparently, it took 48 days from the time he informed Apple until now. Looks like he was itching to post something. There's his 15 minutes of fame.

    1. Re:Making rounds by marsipan · · Score: 3, Insightful

      "Root is disabled by default"

      Yes, the built-in root (uid 0) account in OS X is disabled.

      But, this exploit *replaces* that local uid 0 with one from a malicious remote directory service.

      So, the Apple root-account default is circumvented.

    2. Re:Making rounds by Kunta+Kinte · · Score: 4, Insightful
      Apparently, it took 48 days from the time he informed Apple until now. Looks like he was itching to post something.

      I'd hardly consider waiting 48 days 'itching'.

      Sounds very responsible in my opinion.

      --
      Based on upvotes, Ageism is the only "-ism" Slashdotters care about and think isn't SJW
    3. Re:Making rounds by arkanes · · Score: 3, Informative

      Except that (as (he?) posted in this thread), the LDAP server can also specify mountpoints for you, (apparently) including things like replacing your crontab with a remote one that WILL start all those services.

  10. My turn to karma-whore by McDutchie · · Score: 2, Informative

    It's already slow and it may get slashdotted soon, so here it is:

    [blank.gif] [1]Carrel.ORG > Important Mac OS X Security Advisory

    Mac OS X Security Advisory

    Vulnerability:

    Malicious DHCP response can grant root access

    Affected Software

    Mac OS X 10.3 (all versions through at least 26-Nov-2003)
    Mac OS X Server 10.3 (all versions through at least 26-Nov-2003)
    Mac OS X 10.2 (all versions through at least 26-Nov-2003)
    Mac OS X Server 10.2 (all versions through at least 26-Nov-2003)
    Probably earlier versions of Mac OS X and Mac OS X Server
    Possibly developer seeded copies of future versions of Mac OS X

    Abstract

    A series of seemingly innocuous default settings can cause an affected
    Mac OS X machine to trust a malicious machine on a network for user,
    group, and volume mounting settings.

    What does this mean to the average user

    Anyone who can gain access to your network can gain administrator
    (root) access to your computer and therefore steal your data or launch
    attacks upon others as soon as you reboot your machine. System
    administrators and users of affected software should read the section
    "Workarounds" for immediate actions to protect their machines. It is
    important to note that WEP security in 802.11b/g (AirPort/AirPort
    Extreme) wireless networks is generally not sufficient to protect your
    network from access by an attacker.

    Vendor Patch

    Apple Computer has been notified of this issue and may be working a
    fix at this time. At the time of this writing, a fix is not available
    from Apple.

    Workarounds

    There are a variety of avenues to avoiding this vulnerability...
    1. Disable any network authorization services from obtaining settings
    from DHCP:
    + in Directory Access, select LDAPv3 in the Services tab, click
    "Configure...", uncheck "Use DHCP-supplied LDAP Server"
    + in Directory Access, select NetInfo in the Services tab,
    click "Configure...", uncheck "Attempt to connect using
    broadcast protocol" and "Attempt to connect using DHCP
    protocol"
    + in Directory Access, uncheck LDAPv3 and NetInfo in the
    Services tab, if you don't intend to use them
    2. Turning off DHCP on all interfaces on your affected Mac OS X
    machine can also keep you from being affected.

    For added security, be sure to disable any unused network ports:
    * turn the AirPort card off or remove it, if it is not being used.

    Configuration Awareness

    If a user should need any of these settings turned on due to the
    network and authorization system they are currently using, they should
    be aware that they could fall prey to a malicious individual using the
    techniques outlined in this advisory. Steps to mitigate this concern
    could be as simple as manually configuring the directory server
    settings on the affected machine.

    Technical Details

    By default, the affected versions of Mac OS X attempt to negotiate
    DHCP on all available interfaces. In the event that an Airport card is
    installed but there is no network nearby, they also default to
    associate with any network that might appear and then use DHCP to
    obtain an address. The system will also use DHCP provided fields, if
    available, to connect to an LDAP or NetInfo server on the network.
    The default settings in "Directory Access" on affected systems will
    cause the system to place the network LDAP or NetInfo server ahead of
    the local user info for any given account, and will implicitly trust
    the LDAP or NetInfo server to provide correct information.
    Furthermore, nothing in the system prevents a login as a user with uid
    0 (zero) with any login name. For example, an LDAP or NetInfo source
    with an account username "bluemeanie", uid 0, would be perfectly valid
    and usable for login at the login window and on any network provided
    service, includi

  11. What is telling by Space+cowboy · · Score: 3, Informative

    is that this is news. Ok, it's not a vanilla BSD, but it is based on BSD, which has a fantastic record on security. What will be interesting to find out is where the bug came from - Apple or some third party ...

    I'm pretty sure it was Apple that could boast of no exploits against them (this was OS9 days). Sad to see that go, if it's true. Any unix-os is a friend of mine :-)

    Simon

    --
    Physicists get Hadrons!
    1. Re:What is telling by Boing · · Score: 5, Funny
      Any unix-os is a friend of mine

      He's a friend of SCO! Burn him!

  12. Re:And now the question of support... by llf4nlp · · Score: 3, Informative

    Apple is on record saying they will provide security fixes for all versions of OS X. In some cases, the press has not caught up with this fact.

  13. Nothing is infallible by Coryoth · · Score: 4, Insightful

    So, we have yet another security hole. No surprises there - they will come up eventually. It sounds as if the patching is reasonably prompt (though next month doesn't sounds that fast - hopefully that means it is well tested and it won't break anything like MS patches can). Ultimately though, we don't see many holes for MacOS X. Yes, I'm sure they exist, but they are a lot less frequent than some.

    For instance, there's still this unpatched hole in IE that MS doesn't seem inclined to do much about right now. So much for their "on average a patch in 24 hours" policy they were claiming. Looks like they'll get their patch out around the same time Apple does. I guess we hope that means that they've tested it this time...

    Jedidiah

  14. Re:And now the question of support... by tgibbs · · Score: 4, Informative
    Even more unclear is which releases of Mac OS X Apple plans to continute to release security fixes for...

    Yes, all we have to go on is Apple's past record of continuing to provide security fixes for previous versions of OS X and OS 9.

  15. What is the fix? by stefanb · · Score: 4, Insightful
    I'm not sure I fully understand the problem, but it appears to me that the defaults of just accepting information from DHCP for authentication and authorization are wong; not necessarily any piece of software. (It is debateble whether the very possibility of obtaining such information from DHCP is such a bad idea that the option should not be offered at all.)

    Obviously, the fix is not quite so easy: instead of just updating a binary or two, Apple needs to devise a program/an advisory that will alert users to the problem, and that also makes sure people don't shoot themselves in the foot (turn option off, suddently you can't log in anymore).

    Devising such a thing, and testing it in a wide variety of environments will take time, so I wouldn't blame Apple for "reacting slowly" just yet.

    1. Re:What is the fix? by Glock27 · · Score: 4, Informative
      They're not fixes, but there are some fairly easy workarounds:

      Workarounds
      There are a variety of avenues to avoiding this vulnerability...

      1. Disable any network authorization services from obtaining settings from DHCP:

      * in Directory Access, select LDAPv3 in the Services tab, click "Configure...", uncheck "Use DHCP-supplied LDAP Server"

      * in Directory Access, select NetInfo in the Services tab, click "Configure...", uncheck "Attempt to connect using broadcast protocol" and "Attempt to connect using DHCP protocol"

      * in Directory Access, uncheck LDAPv3 and NetInfo in the Services tab, if you don't intend to use them

      2. Turning off DHCP on all interfaces on your affected Mac OS X machine can also keep you from being affected.

      For added security, be sure to disable any unused network ports:

      * turn the AirPort card off or remove it, if it is not being used.

      --
      Galileo: "The Earth revolves around the Sun!"
      Score: -1 100% Flamebait
  16. If you are unsure why it was made public... by bdigit · · Score: 3, Interesting

    ..then why are we posting a link to it and making it even more public?

    1. Re:If you are unsure why it was made public... by dubiousmike · · Score: 3, Insightful

      Because this is a news site and not a tin-foil-hat site.

      If it was made public, many who frequent this site might have been made aware of it and thus could try to take appropriate measures to protect themselves.

  17. Not exploitable in the default configuration, at l by Onan · · Score: 4, Interesting

    Apple has essentially made the design choice to default to a system which trusts the local dhcp server. Which is problematic much of the time, but convenient if you'd like to just unbox a new shipment of macs for your lab and plug them in, without needing any further client-side config.

    This means that the dhcp server can provide authoritative information about anything ldap handles, including user accounts. So Mallory can use a rogue dhcp server to give herself a root account on your system.

    But unless I'm mistaken, the default configuration still doesn't allow her to do anything with it. sshd and afpd are turned off by default, so even having a root account doesn't get you anything unless you physically sit down at the box and log in locally.

    I think I'd prefer that the system defaulted to not trusting other hosts for anything beyond network numbers, but I don't think that issue will lead immediately to a rash of rooted osx machines.

  18. People post Windows exploits immediatley by DaveCBio · · Score: 2, Insightful

    Why should it be any different for Macs?

  19. Slashdotting to the rescue! by SuperBanana · · Score: 5, Funny
    It is unclear why an exploit was made public before Apple resolved the problem

    Slashdotting to the rescue! Apple has at least a few more hours now.

  20. Good News? by KrizDog · · Score: 3, Insightful

    Now I can finally login as root on OSX. Considering all my friends running OsX have no idea what their root password is, or for that matter what root is, this seems like a blessing.

    1. Re:Good News? by Jesrad · · Score: 4, Insightful

      Root account is disabled by default. Apple has chosen to make the users do all administrative tasks via sudo instead, which makes sense in the case of your clueless friends.

      --
      Maybe we deserve this world ?
    2. Re:Good News? by debrain · · Score: 2, Informative

      Apple has chosen to make the users do all administrative tasks via sudo instead, which makes sense in the case of your clueless friends.

      You mean like:
      $ sudo bash

      What is the difference, if any, between having an enabled root account and a user account with sudo access to every command (ie. bash)?

      Cheers

    3. Re:Good News? by brianosaurus · · Score: 3, Insightful

      Subtle difference:

      if you log in as root, no one knows who you really are. if you "sudo bash", that command gets logged, and its still possible to determine who you really are.

      personally I try to avoid using "sudo bash", because its too easy to screw something up when you're root. but sometimes I get lazy.

      --
      blog
  21. bigger problem by kaan · · Score: 3, Insightful

    Let's assume that somebody is sitting outside of my apartment with all of this wireless hijacking configured, and we'll further assume that I've got all of the exact configurations required for my machine to be vulnerable. One would presume that this person is after the data in my machine, or wants to cause problems for me. Why else would they be trying to break in and gain root access? (btw, don't I need to have enabled the root account for this person to get root access, since root is not enabled on OS X by default?)

    I might be going out on a limb here, but I would venture to say that there's a much bigger threat because the dude could just kick my door down and take my entire computer away with him. Then he can have all my data, and all of my applications, and my hardware too. Meanwhile, some other loser nerd is still mucking around trying to get this "hack" to work, but the guy who jacked me is walking away with my machine.

    I understand this security issue is a threat and all, but I just don't see why anyone should be overly concerned. People seem to come up with scary stories like this about all kinds of things, hyping the facts up to make it seem like everyone who owns a Mac today is going to have a nerd take over their machine and steal all of their stuff. It reminds me of the pains people will go to in order to "secure" their machines, but then do something completely insecure like walk away from their desk for 10 minutes without password-protecting their machine.

    1. Re:bigger problem by freeweed · · Score: 3, Insightful

      I might be going out on a limb here, but I would venture to say that there's a much bigger threat because the dude could just kick my door down and take my entire computer away with him.

      Person breaks into your place, steals your computer. You know about it, you can call the cops. You can also change bank account info, credit cards, passwords, or any other information you might keep on your computer (they're used for more than just porn, ya know :).

      Someone hacks in remotely, you have no clue it happened. They can do what they want, when they want, and there's absolutely nothing you can do about it.

      --
      Endless arguments over trivial contradictions in books written by ignorant savages to explain thunder in the dark.
    2. Re:bigger problem by venom600 · · Score: 2, Insightful

      Have you considered the possibility that an attacker may not be interested in any of the data you have on your computer. Instead, he or she may just root it, leave a back door and come back later to use your box as a launch platform for a DOS? Who's liable then?.....you. What if the person places child pornography on your computer and joins it to a P2P network?

      I think there is a common mis-conception out there about the intentions of crackers. You don't have to have valuable data on your computer to have valuable computer resources.

    3. Re:bigger problem by glorf · · Score: 2, Insightful
      One would presume that this person is after the data in my machine, or wants to cause problems for me. Why else would they be trying to break in and gain root access?


      I wouldn't presume that. An attacker could be after your computer to use it as a spam proxy, part of a distributed child porn archive, zombie for DoS attacks, or even just another link in the chain to further cover tracks of some other nefarious activity (e.g. ordering goods with a stolen credit card is something they probably wouldn't want to do from their own connection).

      Then of course there is the fact that some people break in to others' computers because they find it an interesting thing to do to amuse themselves and they consider it more of an intellectual exercise than a crime. And why should I settle for your hardware when I can keylog your access to your banking site and empty your entire account? The risk vs reward ratio for compter crime is much better than that of traditional B&E type stuff.

      And are you sure the assumption that it is a wireless attack in your immediate vicinity valid? When cable internet access fist came out a lot of people didn't realize they were on the same network as everyone else in their neighborhood and had open shares that anyone could access.
  22. why? by silicongodcom · · Score: 5, Funny

    "It is unclear why an exploit was made public before Apple resolved the problem."

    no SCO news!

  23. Local insecurity by Anonymous Coward · · Score: 2, Informative

    You can "physically sit down to any Mac OS X machine and log in as root locally" by doing this:

    1. Shut down machine, or power it off if you can't shut down.

    2. Hold down Command-S while starting up the machine.

    You're in as root, no login required, and it even tells you how to mount local filesystems writable.

    You can also reset the password by booting from a Jaguar or Panther installation CD with the "C" key down, and resetting the password from the Installer menu.

    I love my Mac, but Mac OS X is not a secure OS.

    I've reported this bug before, and Apple sees it as a feature.

    1. Re:Local insecurity by Commykilla · · Score: 5, Insightful

      If you have physical access to a machine, security is compromised anyway. You can rip out the hard drive and take/modify the bits by force if you want. If the machine is locked in a box, then you can't reboot it without being root, so the exploit doesn't work and you're still safe.

      --
      Communism was just a red herring.
    2. Re:Local insecurity by Jesrad · · Score: 2, Informative

      IIRC there IS now a login prompt before accessing single-user mode. And there is a free utility that lets you password-protect the OpenFirmware, which prevents you from booting from a CD or in single-user mode.

      But in any case, having physical access to any machine WILL give you admin access anyway. If you really want the data, just crack the case open and pick the hard drive up.

      The real issue is REMOTE security, and MacOS X has a wonderful track record on that. The flaw mentionned in the article is hardly exploitable even when all the (numerous) conditions are met.

      --
      Maybe we deserve this world ?
    3. Re:Local insecurity by zulux · · Score: 2, Interesting

      You're in as root, no login required, and it even tells you how to mount local filesystems writable.

      snip...

      I love my Mac, but Mac OS X is not a secure OS.


      All of the *BSD assume that if you have local physical access to the machine, that you should be able to reset the root password.

      You can fight this by encrypting portions of your file-system - at boot time, you unlock the encrypted filessystem with a pass-phrase. If somone reboots your computer, of turns off the power - they would have to get you to unlock the file-system, and even if they set themselves up as root, they woulden't have access.

      --

      Moneyed corporations, non-working 'poor' and criminal prisoners are turning productive citizens into tax-slaves.

    4. Re:Local insecurity by dirkx · · Score: 4, Informative
      This seems to only affect machines which did not come through an upgrade path from 10.1 or before; but had Panther instaleld on them cleanly.

      The solution is documented in /etc/ttys, simply change the secure of the console to a insecure:

      If the console is marked insecure, single-user requires the root password. Since DirectoryServices is not running by the time we enter single-user mode, init will ask for the non-shadow crypt password stored for root in /etc/master.passwd. If no such password exists, it will not be possible to enter single-user mode from a console marked insecure.
      I.e. The lines you want to edit is/are (with sudo vi /etc/ttys):

      console "/usr/libexec/getty std.9600" vt100 on insecure

      console "/System/Library/CoreServices/loginwindow.app/Cont ents/MacOS/loginwindow" vt100 on insecure onoption="/usr/libexec/getty std.9600"

      Given that you propably still want to be able to log in if you have to - you propably also want to do:

      netinfo or other default passwd: sudo passwd root

      default passwd file used during early boot stages sudo passwd -i file root

      Note that in most cases you want to change both.

      Dw

    5. Re:Local insecurity by stefanb · · Score: 4, Informative
      Hold down Command-S while starting up the machine.
      Open Firmware Password is a little utility that will set up the password for Open Firmware, which you could also do from the Open Firmware prompt (Cmd-Opt-O-F).

      Once set, you cannot boot from anything but the default startup disk. Also you need to enter the root password to enter single-user. (If root is enabled.)

  24. Here's a mirror by EvilStein · · Score: 2, Informative

    http://www.pbp.net/~jnichols/dhcp-vuln.html

    Link for the extra-lazy: here

  25. Whoops by EvilStein · · Score: 2, Informative
  26. Blasted City Folks! by GussT · · Score: 4, Funny

    Everybody knows in the sticks that when you get a worm in your apple it just means you are getting a little extra protein in your snack.

  27. Reason for release of info by Todd+Knarr · · Score: 3, Insightful

    I suspect the reason why this info was released was simple: Apple went and released the 10.3 upgrade with a known remote-root vulnerability in it after having acknowledged the existence of the vulnerability.

    To me, knowing that this vulnerability exists would be critical. I don't run a Mac, but I attach to possibly hostile networks routinely. Normally I can firewall my machine to block attacks, but I can't firewall off DHCP and still use the network. Were I using a Mac and OSX, I'd very much want to know that I needed to take immediate steps to avoid giving someone the keys to my machine just by plugging in at the local coffee house.

    Release of this information may constitute a problem for Apple, and may mean a lot of fast work for OSX users. Not releasing it, though, would mean a lot more work for OSX users who get their machines rooted, and a lot more work for the rest of us who have to fend off attacks and other crud routed through those rooted boxes.

  28. Background info by krisbrowne42 · · Score: 5, Insightful

    This is hardly a vulnerability, it's an ease of access feature that NeXT people have known about for almost a decade. The idea of this is, you take a computer out of the box, put it on your network, and it's working. Everything configured, users setup, etc. That should probably be shipped off by default, but I can understand the way they've done it in the past. It should also be noted that unless you've got a OS X server floating around, physical access to the network and management access to the existing DHCP server, this would be awefully hard to exploit.

  29. Why it was made public by siphoncolder · · Score: 3, Insightful

    "It is unclear why an exploit was made public before Apple resolved the problem. Apple's fix is apparently scheduled for a December release."

    • Because I hate [company] for making software that allows this to happen, they need to be taught a lesson.
    • Because they're not releasing it quickly enough - Open Source software is superior, because it would be released ASAP, usually same day, and [company] doesn't.
    • Because I hate [company], period, they sux.
    --
    i'm amazed that i survived - an airbag saved my life.
    1. Re:Why it was made public by merdark · · Score: 2, Insightful
      When the next Linux worm comes out you can be sure you'll here me say:

      • Because I hate OSS folk for being so arrogant and stuck up and *still* letting this happen.
      • Because I don't want an untested patch that could break my mission critical server, and I don't want to risk recompiling parts of a very complex system myself. There is *no evidence* that open source software is at all better than propietary software in real world applications.
      • Because I hate OSS zealots, period, they suck (and don't know basic grammar either).


      Don't think it'll happen to Linux? Just wait till Linux gets the features of OSs like Windows and OS X. It's easy to secure a system with few features, but much much harder to secure a complex but flexible system with many many features.

      It's people like you that give the OSS community a bad image, namely that of a snotty 15 year old brat.
  30. Re:source by llf4nlp · · Score: 2, Informative

    Source: CNET: http://news.com.com/2100-1002-5109969.html Apple has come under fire from some in the security community who feared that it was not planning to patch the Jaguar flaws and that it would instead force people to upgrade. However, the Cupertino, Calif.-based company said it would patch the holes in earlier Mac OS X versions, as it had done in the past.

  31. Bastille Linux works on Mac OS X by jjb · · Score: 4, Interesting
    We've got Bastille Linux working on OS X 10.2.x. Within a couple weeks, we'll have 10.3.x support. We could prevent exploitation of this vulnerability (on systems running sshd) by disabling network authentication systems from getting data by DHCP.

    If this is interesting to you, please join our mailing list and/or e-mail me via jay AT bastille HYPHEN linux DOT org.

  32. Just use an Open Firmware password. by netsrek · · Score: 5, Informative

    Set an Open Firmware password on your machine.

    You will then need to enter this password to enter single user mode or boot from a CD.

    Note that this still doesn't fully secure your machine unless it's physically secured, as someone can simply reset the OF password by changing the amount of RAM in the machine, then zapping the PRAM.

    Makes securing a powerbook pretty much impossible, but otherwise...

    --

    i don't read slashdot anymore.
  33. why? by fudgefactor7 · · Score: 2, Insightful

    "It is unclear why an exploit was made public before Apple resolved the problem.

    Dude this happens almost every time. It doesn't matter the vendor, if it's MS, Oracle, RedHat, or Apple...no matter. Exploit warnings always preceed the patch. It's how it is.

  34. CNET article by green+pizza · · Score: 2, Informative

    http://news.com.com/2100-1002-5109969.html

  35. Is this a quick fix? by braines · · Score: 3, Interesting

    If I set Directory Access (located in the Utilities folder) to authenticate against 'local directory' rather than 'Automatic' then I am safe right? If this really is the case, could someone please make this work around explicitly clear so that all the iMac Users of the world can do it (and yes I know they don't have ssh up and running anyways but, just incase...)

  36. Show-boating, grand-standing by macdaddy · · Score: 5, Insightful
    IMHO this guy is show-boating. It is not unreasonable for an operating system company to take a non-critical but serious bug and spend 1.5 months developing and testing a fix. How many times have we seen a vendor rush to fix something only to seriously break things by not testing the fix thoroughly? Do we really want them to break something else? This isn't a minor piece of software like an FTP server where a security hole can be fixed in a morning, tested in an afternoon, and release the next day. I contend that even a piece of software as complex as Sendmail can be fixed and tested in a small amount of time and is really a minor piece of the puzzle when you're talking about an entire operating system.

    This exploit means nothing to very little the average user simply because no remote services are enabled by default. I'm using a 10.2.8 box right this minute and I had to enable Remote Login and Personal File Sharing.

    I really don't know where to start talking when it comes to the idiocy of releasing an exploit, not just a proof of concept, prior to the vendor releasing a fix. Apple wasn't dragging their heels. The whole timeframe is under 1.5 months. It is certainly not unreasonable to expect their programmers to spend time working on a bug fix. Hell the development cycle alone is more than a month if not two. So they didn't make the November 3 date. That's less than a month from the date the bug was reported. That's no surprise. I'd hate to rush a fix out that fast too. So the 10.3 Security Update and 10.3.1 Security Updates didn't fix it. Does he not realize that they were in the pipeline for testing back at the beginning of October? They aren't going to insert another code change in the middle of testing.

    IMHO this guy is show-boating, grand-standing, and showing that he has unreasonable expectations. The security vulnerability isn't that great. It's a hole, yes. It's not nearly as serious as a security hole in IE in which ALL IE installations are affected by "default." I think this guy should seriously be flogged for releasing an exploit at the same time as the advisory. That's just plain ridiculous. IMHO that alone speaks wonders about this guy. It's idiotic acts like this that seriously make me wonder about full disclosure. Anyhow, I've said my piece. Move along.

    1. Re:Show-boating, grand-standing by holoway · · Score: 3, Insightful

      "This exploit means nothing to very little the average user simply because no remote services are enabled by default. I'm using a 10.2.8 box right this minute and I had to enable Remote Login and Personal File Sharing."

      This exploit means a ton to the average user; the directory server you authenticate too can dictate what mount points you have.. allowing me to have target machines mount all sorts of interesting things. Bad, bad scene.

      As far as the timeline for releasing the vulnerability goes, it appears he told Apple he was planning on publishing the vulnerability.. and got no response. I imagine that, had they responded with something along the lines of "Sorry, it has to go through our testing pipelines first, and the absolute earliest we can do it is December" things might have gone differently.

      --
      -- http://sysadminsith.org/software/last
    2. Re:Show-boating, grand-standing by Quixotic+Raindrop · · Score: 2, Informative

      First, the average user 1) doesn't have a directory server to authenticate to and 2) doesn't mount anything that's not connected by either USB or Firewire. The average Macintosh user doesn't have Remote Login enabled, and lots of average Macintosh users don't have Personal File Sharing enabled (neither is enabled in the installation, by default).

      As far as your understanding of the timeline goes, you should RTFA. He notified Apple, and they did respond. He is just unjustifiably impatient.

      --
      Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. (Einstein)
    3. Re:Show-boating, grand-standing by Quixotic+Raindrop · · Score: 2, Informative

      Here's the problem that shows that you don't understand. It's not enabled by default, there is nothing auto-mounted via LDAP. In order for a remote user to modify your crontab or your fstab, they'd have to already have access. The method detailed in the advisory requires that the client using DHCP have already enabled LDAP; this is not enabled by default in the non-Server versions of Mac OS X 10.2 or earlier. It might be by default on OS 10.3, but I don't have 10.3 yet. Approximately 99% of all non-Server versions of Mac OS X 10.2 and earlier are not vulnerable out of the box.

      --
      Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. (Einstein)
  37. Does it not require directory access turned on? by goombah99 · · Score: 2, Redundant
    Perhaps Someone can explain. As I understand macs dont by default go beyond the local netinfo/passwd file to authenticate unless instructed to do so. You can turn on directory access and enable authentication by ldap or remote net-info, but I dont beleive this on by default is it?

    if so this is pretty much a non-bug since it would require some idiot to both be doing remote authentication and be plugged into a dhcp network. For that matter one could just pretend to be a known authtication host and provide bogus authentication regardless of the dhcp status.

    what am I missing here. or is this thing on by default?

    --
    Some drink at the fountain of knowledge. Others just gargle.
  38. AUTHOR: FAQs answered by Cysgod · · Score: 5, Informative

    Thought I'd field some of the more mentioned questions and misconceptions here...

    Is my machine safe if I have the root account "turned off"?
    No. The account attacking can be uid 0 and have any other name in the universe that is a valid account name.

    Is my machine safe if I have all remote access services "turned off"?
    *NO*, and please quit saying it is. This exploit allows malicious people full control of where things are mounting on your system. They can mount malware anywhere. Including places that can virtually guarantee executiong of their target code. For example, an attacker could cause their evil data to be mounted in place of crontabs and have their fake root's crontab point to an evil executable mounted there or somewhere else.

    Why did you release this when you did?
    This was an exploitable remote root vulnerability. After Apple reneged on the Nov. 3rd release date I gave them 2-3 weeks. After the 2-3 weeks were up, I asked for the status and they said "December". Meanwhile, users are left exposed and independent rediscovery seemed fairly likely. And maybe by someone less scrupulous than myself. I felt I was being strung along and that the issue may never get properly addressed so I set a hard deadline at that point. They didn't meet it, and I issued my advisory.

    It would not be fair of me to let Mac users hang out in the breeze for more than 2 months on an issue of this magnitude. You may disagree, but I have no regrets about my actions and feel that I was more than fair to Apple Computer and its users.

    (As I mentioned in a previous post, I was out horseback riding by the time /. got around to finally posting the article. Sorry it has taken me so long to respond.)

    1. Re:AUTHOR: FAQs answered by Wanker · · Score: 4, Informative
      Kudos to you for handling this very responsibly. Despite the attention-grabbing comment by pudge, you followed the policy he linked to quite nicely.

      It doesn't seem to me at all unclear "why an exploit was made public before Apple resolved the problem". In fact this seems very clear in what you wrote:

      After Apple reneged on the Nov. 3rd release date I gave them 2-3 weeks. After the 2-3 weeks were up, I asked for the status and they said "December". Meanwhile, users are left exposed and independent rediscovery seemed fairly likely.


      The wiretrip policy linked above is quite clear on how long to give a vendor ("maintainer") to come up with a fix:

      B. The MAINTAINER has 5 work days respond. Note that all times of work days are relative to the ORIGINATOR, not the MAINTAINER. Suggestion to the MAINTAINER: sooner is better than later--just because you have 5 days does not mean you need to take them all. The ORIGINATOR is technically free to do whatever they want to do after 5 work days--however, they should be fair and wait if the MAINTAINER shows adequate initiative to fix the ISSUE.


      This is clarified a bit on what it means to "respond" in the FAQ section:

      Q. I'm a software maintainer, and I can't possibly fix the problem in 5 days....
      A. You don't have to. If you (re)read the above, you have 5 days to establish communication. Provided you cooperate with the researcher and keep them 'in the loop', they should provide you with whatever time necessary to resolve the ISSUE (within fair reason).

      Q. I'm a software maintainer, and I want more than 5 days!
      A. Well, considering that, in general, you don't have *anything* technically, this document hopes to provide you with at least 5. Be on your best behavior, cooperate with the ORIGINATOR, and you should get more. :)


      According to policy, you would have been OK (if somewhat rude) releasing this after 5 work days from initial contact. Extending it through 48 calendar days and several patch cycles seems extraordinarily generous.

      I wouldn't feel at all bad about the timeline followed. If anything it shows remarkable restraint.
  39. subnet exploit ?! by didiken · · Score: 4, Informative

    Remote exploit ? Can you say subnet exploit ?! Victim gotta have DHCP and SSH turned on. So not a default client installation exploit.

    You MAY say MacOS X Server got SSH turned on so will be vulnerable, but you must enter a static IP address at the system setup, that means you've no DHCP options unless you manually change it to DHCP later at "System Preference". By the way, if you do use DHCP to hand out server IP address you deserve to get rooted.

    Anyway I get enough laugh out of some amateur security people today. Movie at 11.

  40. Damn by Anonymous Coward · · Score: 2, Funny


    Can you imagine what will happen when the hundreds of Macs on the Internet get hacked? No, me either.

  41. Re:Yeah but.. by Todd+Knarr · · Score: 2, Insightful

    Oh, forgot the most important one: it doesn't matter whether you've enabled sshd or not. Remember that this vulnerability allows them to control network mounts on your machine via the relevant DHCP parameters. That means that they can mount their startup directories over top of yours, and theirs have things configured to start sshd. Presto, your machine now has sshd running and ready to accept logins even if you've disabled it, because your configuration no longer applies.

  42. You can override a DHCP server, even by mistake by smcv · · Score: 2, Interesting

    It's quite possible to override a DHCP server, even without intending to; the request is broadcast, and if multiple machines send a response back, the first one received wins.

    I've been bitten by this myself: I have cable at home, and someone on the same subnet has (presumably) set up their NAT box backwards, so when I request a DHCP address, I get one of their internal addresses (192.168.100.x) as well as one from the ISP. Because they're on the same subnet and the ISP's DHCP server is elsewhere on the network, they consistently return a response faster, too.

    I worked around that by configuring my DHCP client daemon to ignore all responses from the 192.168.100 subnet, but that's not an option if your DHCP client isn't configurable.

  43. Not true by 0x0d0a · · Score: 2, Interesting

    On Linux, some folks set up loopback encrypted filesystems. A loopback encrypted filesystem cannot be accessed by simply taking a hard drive.

    If you can get repeated undected physical access to the machine, you can probably eventually trojan your way to root, though it might involve things as intricate as trojaning the bootloader and whatever utility you're using to decrypt the filesystem.

  44. Re:Ummm by smcv · · Score: 2, Informative

    An attacker could override arbitrary directories, if they could control the mount table. As another poster pointed out, if they mounted a network share containing a malicious script over the top of, say, /etc/cron.daily, you'd never know, and it'd execute at midnight.

    Alternatively, if they knew your OS version, they could replace /lib with a nearly-identical version, except that the standard C library (libc) contained some sort of malicious code which executed once (the first time fork() was called, say), and it'd get loaded the first time you ran any dynamically-linked program. Again, unless you habitually mess with the contents of /lib (not advisable), you'd never know - the only symptom would be a slight slowdown when starting new programs, and it could even be coded to be self-removing so it only triggered once, while quietly opening up remote access in the background.

  45. No panic, just reconfigure by ApocryphX · · Score: 5, Informative

    Just in case anybody missed it: the solution is easy!
    Just open the Directory Access tool and deselect:

    LDAPv3, NetInfo, SLP

    done!

    I.M.H.O., Apple made the same mistake as MS in this case: Enable everything in case someone might need it. And don't worry about the bad guys ......

  46. Re:Not exploitable in the default configuration, a by Zan+Zu+from+Eridu · · Score: 2, Interesting

    Mallory can configure her LDAP server to not only give her root on you box, but also to remotely mount filesystems on your box. Mallory mounts her trojans over your bin directory and waits for you to start one, or also mounts a root crontab that starts a trojan automaticly. No your box IS running services, and Mallory owns it.

  47. Re:Not exploitable in the default configuration, a by valmont · · Score: 2, Interesting

    ... well ... what people are saying is that they could use the exploit to mount a malicious file sytem and execute some eeeveeehl piece of code that would enable sshd and afpd ... or something ....

    what boggles my mind is that this exploit is labeled as a "remote" exploit. while it is technically true, i'd like people to start qualifying the concept of "remote": an offending machine would need to live within a fairly close geographical location to exploit this vulnerability as it would need to be plugged to a network port plugged to some small or large hub, with machines belonging to a similar subnet. Or it would have to be a machine that lives within 802.11 b/g range, which is *also* fairly local. Both scenarios should allow a fairly educated network admin to trace the attacker and hang'em by the balls.

  48. Oh please, spare us your generalizations! by Anonymous Coward · · Score: 5, Interesting
    You said: "Maybe so it wouldn't be swept under the carpt, like ALL other Apple security problems."



    Give me a break. That is anything but a true statement, and one born of prejudice. Apple, Microsoft, those hardworking folks making Linux better all recognize that flaws exist in software and work hard to do something about it. Software by nature is large and complex, the product of human efforts. And as such, it will not be perfect. For all the hard work of programmers throughout the world, mistakes will happen. But companies like Apple work hard to correct them quickly. If you develop software like I do, you will understand that you can't just issue a patch and expect the problem to stop. You have to test the patch thoroughly to make sure that it does not create unintended problems of its own. To say that Apple sweeps security flaws under the rug is an insult, not only to Apple, but to any developer that has to correct the problems of an exploit. Save your venom instead for the jerks and script kiddies who are the real problem, not Apple.

  49. Re:I remember this guy. by Cysgod · · Score: 5, Informative

    I've been pretty low-key about this until today, so I'm not sure what you're talking about. I'd be very interested to see links to the comments you refer to.

    I may have reason to believe that the seeded copies of 10.3.2 are, in fact, still vulnerable to this bug by default. But I can't say for sure because if I did know for sure, that would mean that someone violated their NDA and that would be bad news for someone. Live in fear of Apple Legal.

    It's not a real happy conundrum. I found out one week ago that Apple was planning to release in December after having previously agreed in principle to a date sometime in November. I felt that I was being strung along like a ball of yarn, but I didn't want to be unreasonable so I gave them 1 more week. They never replied and cut off all contact with me. And here we are.

    And FWIW, since it's been mentioned, I'm not an Apple hater, I love my PowerBook. :-) Thanks for writing.

  50. Security company puts publicity ahead of security. by inimcus · · Score: 3, Insightful

    I can see the reason for some of the advisory, but not the part where they tell people how to exploit it. If I were Apple, I would be furious about this. Apple told them when they would have a patch. Sure they should have given a general overview of the exploit, and how to defend against it, but to post how to do it is irresponsible.

  51. Apple's response by stefanb · · Score: 2, Informative
    Looks like Apple finally put up an article at http://docs.info.apple.com/article.html?artnum=324 78

    Salient quote:

    Learn how to configure the Directory Access feature to protect your Mac from a malicious DHCP server.

    DISCUSSION

    Please note that the exploit requires the malicious DHCP server to be located on your local subnet. For typical home network configurations with a broadband (DSL or cable service) modem and a NAT (Network Address Translation) device, such as Apple's Airport, this exploit is not possible.

    [...]

    If your Mac is configured to use a directory service consult with your IT administrator before changing any settings.

  52. One man's "blackmail"... by Zhe+Mappel · · Score: 2, Insightful
    I don't think it's unreasonable for Apple to take some time confirming the exploit, and planning an update. Remember when they released an update that broke things?

    I *do* think it's unreasonable for Carrel to demand deadlines to Apple ... or anyone, really ... to fix their stuff. Especially when Carrel knows it's going to be fixed. Not much better than blackmail, if you ask me.

    If we followed that kind of standard, then we would always be waiting for corporations to decide when they're good and ready to fix problems that put the public at risk. That is a curiously supine view of manufacturer responsibility!

    And it's precisely what Microsoft says when lobbying for federal punishment for those who reveal its vulnerabilities: only the corporation shall be an arbiter of public safety where its products are concerned. It shouldn't be hard to work out why that is practically an invitation for manufacturer caprice, negligence, and laziness.

    Look again at Carrel's timeline. What happened on Oct. 24? What big commercial product unveiling did Apple choose not to interrupt or cloud with acknowledgement of this untimely news about the famously iron-clad OS X?