Slashdot Mirror


Mac OS X Security Competition Ends in 30 Minutes

ninja_assault_kitten writes "ZDnet is running an article on how a Swedish Mac OS X enthusiast held a competition to prove how good security was on his new fully patched Mac Mini was. Unfortunately, 30 minutes after the competition began, a hacker known as 'gwerdna' had broken in and defaced the website, thus winning the contest. According to gwerdna, 'Mac OS X is easy pickings for bug finders. That said, it doesn't have the market share to really interest most serious bug finders.'." It's also worth noting a piece that says all the security news is much ado about nothing, in practical terms. The security contest also allowed people to have local access via SSH, so that had a lot to do with the crack.

388 comments

  1. Why keep SSH on? by tak+amalak · · Score: 4, Interesting

    That's one of the first things you turn off to protect the machine.

    --
    Don't lead me into temptation... I can find it myself.
    1. Re:Why keep SSH on? by good+soldier+svejk · · Score: 3, Insightful

      Or at least restrict by host at the firewall. On OS X, remember to turn on ipfw's statefulness.

      --
      It is cowardly, and a betrayal of whatever it means to be a Jew, to act as a white man

      -James Baldwin
    2. Re:Why keep SSH on? by Daedala · · Score: 5, Informative

      It's a Mac. You don't _keep_ SSH on. It's disabled by default. You have to turn it on deliberately.

      --
      What I say does not represent the views of my employers, my friends, my cats, or myself.
    3. Re:Why keep SSH on? by foniksonik · · Score: 3, Informative

      in fact with OS X you have to turn it on... it's a Sharing preference called Remote Login... hello, yes I'd like people to remotely login to my machine.. I'll just start this right up. OTH there should be a little more help info on what SSH is for those who think being able to remotely login is a good idea even though they really don't know how to do it.

      --
      A fool throws a stone into a well and a thousand sages can not remove it.
    4. Re:Why keep SSH on? by leonmergen · · Score: 2, Insightful

      That's one of the first things you turn off to protect the machine.

      Because the goal was to test the mac mini's security, not the ability of the system administrator to secure the box...

      --
      - Leon Mergen
      http://www.solatis.com
    5. Re:Why keep SSH on? by bombadillo · · Score: 3, Interesting

      It doesn't really matter that SSH was left on. The thing that made this easy was that they were allowed a shell account. Getting shell access is the easiest way to compromise a system. Lets see how long it would take with out a shell.

    6. Re:Why keep SSH on? by falkryn · · Score: 2, Insightful

      it was setup as a typical server. without ssh, how exactly would you propose enabling access to it? telnet?? unless you actually like having to console in to 100+ servers via a serial cable...

    7. Re:Why keep SSH on? by shotfeel · · Score: 3, Funny

      In other news, after giving burglers the first three of four numbers for your safe's combination, the fastest can open it in less than 30 minutes.

    8. Re:Why keep SSH on? by Anonymous Coward · · Score: 0

      Please elaborate on this. Since when is running SSH unsecure (assuming good passwords)?

    9. Re:Why keep SSH on? by AKAImBatman · · Score: 5, Informative

      The problem wasn't even that he had SSH running. It was that he was giving out accounts! I don't know what this guy was trying to prove, but his blind faith in Apple got him burned.

      Somewhere inside of Apple, engineers are shaking their heads at this guy and the damage he's done to the Mac's reputation.

    10. Re:Why keep SSH on? by Frangible · · Score: 2, Informative

      Excellent point, I'd mod you up if I had the points. I suppose it wasn't much of a true competition, then.

    11. Re:Why keep SSH on? by shotfeel · · Score: 4, Insightful

      Or in this case, the ability of the system administrator to open up the box...

      SSH is off by default, the admin had to turn it on.

      Hackers don't generally have shell accounts -the admin had to set them up.

      So if you take steps to make the Mac Mini less secure, then advertise you've done so, it gets hacked. Expect all major tech outlets to cover this new and amazing Mac vulnerability (you think I'm joking?).

    12. Re:Why keep SSH on? by BodhiCat · · Score: 3, Funny

      The article also failed to mention that the password to gain root access to the Mac was "password."

    13. Re:Why keep SSH on? by falkryn · · Score: 4, Insightful

      true, though a timeshare box on a college campus is somewhere you would easily see such a setup. remember though, this is (supposed to be) a *nix we're talking about. local user accounts should not be able to inflict such damage due to better seperation of priviliedges that exist in this world.

    14. Re:Why keep SSH on? by Hrothgar+The+Great · · Score: 3, Insightful

      I think you are missing the really obvious point here - the fact that granting shell access over SSH leads to a non-administrative user gaining root access in 30 MINUTES makes the OS entirely unsuitable in a server environment.

      True, a Mac Mini isn't typically going to be used as a server, but if Apple decides to make some kind of Intel based server, this kind of thing is a HUGE problem.

    15. Re:Why keep SSH on? by Golias · · Score: 3, Insightful

      Why does the word "astroturf" slowly creep into my waking mind as I read more and more about this bogus contest.

      --

      Information wants to be anthropomorphized.

    16. Re:Why keep SSH on? by jd142 · · Score: 3, Insightful

      without ssh, how exactly would you propose enabling access to it?

      Restrict the ip addresses of the computers that can access the ssh connection. Ah, you'll say, then all the attacker has to do is get access to the computer that is on the allowed ip address list. True, but let's say you are a company with the web server www.verigon.com. That's a nice public target running apache, mysql, php, etc. All the things a good lamp server should run. That's going to be the public target.

      If I want to ssh in, I first have to connect to a different box. The thing here is that this ssh box (I'll just call it that to save typing) doesn't have to run anything but the os and ssh, thus lowering the number of software packages that can open a vulnerability. Remember, every daemon you run, every piece of software you install, every service that's enabled is another potential whole. The second part to this is that the ssh box is not a big target. It's dns name may be something like comp-1.it.verigon.com or ideally its name isn't even registered in dns. Either way, the bullseye is going to be on www.verigon.com for the casual cracker. Only someone who is specifically interested in my company is going to try to find a way in. The script kiddies will just see that ssh doesn't respond and go on to the next webserver.

    17. Re:Why keep SSH on? by Golias · · Score: 0

      I don't know what this guy was trying to prove

      Perhaps he was one of those people trying to "prove" that Macs are "not so secure after all."

      Just a thought.

      --

      Information wants to be anthropomorphized.

    18. Re:Why keep SSH on? by BrokenHalo · · Score: 2, Informative

      I turn SSH on on machines I routinely have to maintain. It's very useful. But I make damn sure I don't use an idiotic password crackable by any snotty-nosed little 11-year-old script-kiddie...

    19. Re:Why keep SSH on? by shotfeel · · Score: 1

      I agree its not much of a vulnerability, but it still may point to something Apple needs to fix in proofing the OS from local exploits.

    20. Re:Why keep SSH on? by Anonymous Coward · · Score: 0

      What does the hardware have to do with the security of the OS? It's the same OS on both chips.

    21. Re:Why keep SSH on? by LnxAddct · · Score: 1

      The guy who set up the server *enabled* the services like ssh, apache, etc... (they are off by default) The black hat who cracked it didn't specify whether the unknown vulnerability was for one of the services enabled (i.e. apache) or a local mac exploit, and there is a huge difference. If the server owner gave everyone some kind of guest account, then I can see this being an unpublished local exploit and a true problem for the mac. In any other case, the hacker probably used an unpublished vuln for one of the running services and the hacker is just making it seem like he knows an unpublished mac vuln to be "1337". The mac security by default is significantly better than the security on the box that was cracked. Regardless, I still prefer linux for my OS, I like the many security patches/options(exec-shield, SELinux, compiling with randomized memory mappings, virtualization -- not necessarily for security but can be, etc...), even if an attacker does find a way in, statistically it will give him no benefit in the majoirty of cases.
      Regards,
      Steve

    22. Re:Why keep SSH on? by Hrothgar+The+Great · · Score: 1

      True enough - my point was that at the moment, Apple doesn't seem to care about the server market. The announcement of an Intel-based server would indicate that they still want a piece of it.

    23. Re:Why keep SSH on? by jaywarrietto · · Score: 0

      I don't know what the differences are exacly but there is a version of OS X that is for servers - OS X 10.4 Server.

    24. Re:Why keep SSH on? by AKAImBatman · · Score: 4, Insightful

      remember though, this is (supposed to be) a *nix we're talking about. local user accounts should not be able to inflict such damage due to better seperation of priviliedges that exist in this world.

      But you need to remember that OS X is not designed for remote, multi-user usage. The features are there, but mostly for adminstrative purposes. The machine is first and foremost a Desktop machine that is intended to keep good guys in and bad guys out.

      Also keep in mind that it is incredibly difficult to properly configure a Unix system to be completely secure against users with shell accounts. Such security requires a complete system lockdown, complex partitioning, reassignment of services to non-root accounts, jailing of priviledged services (or equivalent), and several other procedures that I sincerely doubt that this guy performed. (In fact, the article confirmed that he could have locked the system down further, but didn't.)

      By handing out shell accounts, he might as well have been handing out the root password to his system.

    25. Re:Why keep SSH on? by Scrameustache · · Score: 2, Funny

      Somewhere inside of Apple, engineers are shaking their heads at this guy and the damage he's done to the Mac's reputation.

      And somewhere in Redmond, someone is writing him a cheque.

      --

      You can't take the sky from me...

    26. Re:Why keep SSH on? by Anonymous Coward · · Score: 0

      That is the easy part: use a 4k-bit RSA key for identification. Generate the key on your remote machines, and sneaker-net the public keys (one per machine you want to authorize) onto your host machine. Pretty much puts password-forcing out of reach until a fast factoring method is found which can break down a large key in reasonable time. Although it doesn't do jack for any buffer vulnerabilities in SSH though.

    27. Re:Why keep SSH on? by bombadillo · · Score: 4, Informative

      True, a Mac Mini isn't typically going to be used as a server, but if Apple decides to make some kind of Intel based server, this kind of thing is a HUGE problem.

      Not necessarily. The mac mini is a desktop and has a lot of software installed on it that would be deemed a security risk in production environment. Ever hear of using a complier to shell out? That is why compilers are usually left off of servers for security reasons. Your average linux/bsd desktop box with all the goodies installed probably would not have lasted much longer.

    28. Re:Why keep SSH on? by ScriptedReplay · · Score: 1

      The problem wasn't even that he had SSH running. It was that he was giving out accounts! I don't know what this guy was trying to prove, but his blind faith in Apple got him burned.

      Well, I do have shell access to the macs in my University's computer labs. Are you telling me that they're no better than Windows when it comes to privilege separation and preventing a low-privilege user account from taking control over the system? Seeing how many Macs are in multiuser University labs, this might strain the RDF a bit if exploits start circulating.

    29. Re:Why keep SSH on? by Bert64 · · Score: 1

      A mac mini is *NOT* a typical server, it's intended as a workstation.

      This would have made more sense if they'd installed the version of OSX which is designated as being for servers.

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    30. Re:Why keep SSH on? by adolfojp · · Score: 3, Insightful

      The safest computer that you can get is one that is not connected to the wall. Then again, it will not be very usefull.

      Turning off functionality because of security is not acceptable. It the OS offers certain features, they should be secure, otherwise, they are flawed. Stop apologizing for Apple computer and its defects.

      Cheers,
      Adolfo

    31. Re:Why keep SSH on? by Anonymous Coward · · Score: 0

      It has nothing to do with SSH, it has everything to do with privilege escalation...

      Email viruses are supposedly unlikely on a mac because you need the vital root privileges.

      It is now proven that this protection can easilly be removed.

    32. Re:Why keep SSH on? by BrokenHalo · · Score: 1, Redundant

      This is true, but you still have to have sshd running for that to be useful...

    33. Re:Why keep SSH on? by Anonymous Coward · · Score: 0

      The point is not whether SSH is on or not. The point is that he was able to get admin privileges. Now imagine some well crafted URL/webpage that is sent to an honest user. He clicks it, he gets overflowed without knowing, and the overflow now has a change to become root and install spyware/keyloggers/etc...

      You should always worry about root exploits, even if you don't have servers running.

    34. Re:Why keep SSH on? by sulam · · Score: 1

      Almost every Unix/clone is continually posting security patches to prevent exploits that are available once you have a shell (some of the BSDs are relatively hard to hack, that's it). This has been a problem for decades now. Shell = cracked, and you'll be lucky to last 30 minutes if you're giving away shell accounts on a new Linux install. The only reason MacOS would have lasted 30 minutes is because it's probably the first time anyone bothered...

      As far as this making MacOS unsuitable for servers goes:

      1) Most servers *I* run have extremely limited access rights, so this wouldn't be a problem, except:

      2) MacOS throughput is pitiful due to a threading implementation aimed more at desktop users. Until they come out with a Server product that can get within 90% of Linux and/or Windows, serving stuff on MacOS will be a very expensive proposition anyway. You basically need twice as much hardware to get the same # of concurrent users.

    35. Re:Why keep SSH on? by gowen · · Score: 5, Insightful
      But you need to remember that OS X is not designed for remote, multi-user usage
      That excuse was bullshit when it was used to defend Windows boxes, and, amazingly, it remains bullshit when applied to fashionable platforms, too.
      --
      Athletic Scholarships to universities make as much sense as academic scholarships to sports teams.
    36. Re:Why keep SSH on? by EntropyEngine · · Score: 2, Funny

      I thought about saying something sensible, but .. what a dick!

      Yes! Let's give the hacker SSH access! That'll slow 'em down! Teh hee!

      Buffoon...

    37. Re:Why keep SSH on? by Anonymous Coward · · Score: 0

      Apple does make a server edition of OSX...although I haven't heard of too many people using it. In reality, Apple never even got a foot in the door in the server market, and until they secure the desktop market, they won't get very far in servers. Sound like a familiar strategy?

    38. Re:Why keep SSH on? by Golias · · Score: 1, Troll

      How is it a troll to voice a suspicion that some guy who gave away local log-ins whole holding a security "contest" on OS X was astroturfing.

      His whole project seems tailor-made to generate bad press for Mac security. It would not surprise me at all if he got a nice fat check from Redmond to set this up.

      --

      Information wants to be anthropomorphized.

    39. Re:Why keep SSH on? by AKAImBatman · · Score: 3, Insightful

      That excuse was bullshit when it was used to defend Windows boxes

      That excuse would work for Windows if Windows didn't ship with remote vulnerabilities built-in. Unfortunately, it does. Regularly. Without fail.

      When someone can prove that OS X has the same problems (which is pretty difficult with zero open ports, and 2 degrees of separation between attachments and executable code) then I'll jump on the "OS X isn't secure" bandwagon. But for now, it remains far more secure than Windows which can be so easily exploited thanks to the number of services it exposes to the Internet by default, and the ease with which executable files can be disguised as legitimate documents.

    40. Re:Why keep SSH on? by Anonymous Coward · · Score: 1, Insightful

      If my Linux box was exploitet in 30 minutes I would admit there was a bug and try to fix it. It's serious if you can't even trust basic unix security. It shouldn't be able to be rooted no matter what desktop programs where sitting on it.

    41. Re:Why keep SSH on? by hihihihi · · Score: 1

      you call it bad press as compared to M$OFT...

      I just 2-3 days back gave someone an account on my win2000 server and he launched a war on terror on the system... literally... the deletiest war in the history of mankind...

      never underestimate the power of /*idiot*/ users...

      --
      everyone downmodding this post will be prosecuted for reading my post without first buying a license!!!
    42. Re:Why keep SSH on? by Anonymous Coward · · Score: 0

      well, even if they did tun it on, they would still be very secure as long as they choose a decent password..
      and even if they choose a crap password, they still would be resonably secure as long as they dont broadcast their IP and shout "ROOT ME!"..
      and even if they did they would still be kinda safe as long as they wouldnt let everybody to set up their own local accounts..

      i mean, how stupid can you be?
      ++ chris

      ps: he also writes:
      "That's why I set up an LDAP server and linked it to the Macs naming and authentication services, to let people add their own account to this machine."

      i'm sure he secured his LDAP sever real swell too.

    43. Re:Why keep SSH on? by b1t+r0t · · Score: 1
      By handing out shell accounts, he might as well have been handing out the root password to his system.

      Indeed. Lots of Unix systems have had and still have local root vulns. Handing out shell accounts and daring people to hack you generally results in you being hacked. I know a couple of tricks that would let me root the average OS X box as long as I could wait for it to reboot or could force it to reboot (such as having local access with a mouse and display). And the crazy part is that I learned these particular tricks by reading Slashdot articles. Imagine what could be done by someone who was actually trying to find local vulns.

      It's still not as bad as the broken services with remote vulns turned on by default on Windows installs. Stuff like the RPC bug that goes all the way back to Windows NT, the Slammer bug in MSSQL, and the general swiss cheese nature of IIS, which is usually on by default in Windows Server installs.

      The difference is what happens when you install the OS from media (particularly the default installs), plug it in to the internet, and don't touch it.

      --

      --
      "Open source is good." - Steve Jobs
      "Open source is evil." - Microsoft
    44. Re:Why keep SSH on? by AKAImBatman · · Score: 4, Informative

      Are you telling me that they're no better than Windows when it comes to privilege separation and preventing a low-privilege user account from taking control over the system?

      Yes and no. If your admin locks the machines down tight, then it's quite possible that the Mac servers are more secure than the Windows servers. Left with default settings, they're both highly vulnerable to anyone who already has access to the machine and is determined to find a hole. (Whether it be a buffer overflow in a priviledged service, or a soft link that gave elevated permissions.)

      Systems are extremely hard to secure once untrustworthy individuals have access to them. That's why there's a market for products like Trusted Solaris and Trusted Linux. If you need high security against local users, you can't trust anyone. Not even root.

    45. Re:Why keep SSH on? by teknopagan · · Score: 1

      That is absolutely false. There will always be a tradeoff between functionality and security. It's like this - if I build a house with external doors and several windows in every room, and keep those doors and windows wide open, it would be very functional; I could instantly get to my yard from anywhere. However, it's not secure. OTOH, I could build my house out of 2 foot thick reinforced concrete with autotargeting frickin' laser beams on every corner and a 10 foot moat filled with hot grits, and no windows or doors. It's very secure, but not functional at all.

      In an externally-facing server environment, the only software and services that should be running are the ones needed by that server. You don't play HL2 on your webserver, you don't host a website on your fileserver, and so on. Servers should be single function boxes. That way, they have one door, and access to that door can be much more easily controlled.

      OSes are frequently built in several different configurations. Desktop, workstation, server variant builds are common, especially among the *nixes. If you've ever installed Linux before, you've probably seen the option in the package selection phase to set up as a basic workstation, basic server, and so on. The reason for this is because even with the same base OS kernel, the optimal configuration varies according to the purpose of the box. That's why we have configuration options. According to your logic, configuration should be done away with, because everything on by default is the only way to go. That's what got Windows its reputation as an insecure OS in the first place.

      Having a system compromised because you set it up to be compromised is not a surprise - it's an obvious eventuality.

      --
      The Russian Mafia will mod you down just to see if the Moderate button works.
    46. Re:Why keep SSH on? by wbd · · Score: 2, Informative

      Really? Took me all of 2 minutes to find a lot of examples, WITHOUT even using Google.

      How about the U.S. Army building a supercomputer cluster from 'em?

      http://news.com.com/Apple+sells+supercomputer+sequ el/2100-1010_3-5242487.html?tag=macintouch

      And several university's such as this one doing so too:

      http://news.com.com/Apple+shooting+for+supercomput er+heights/2100-1008_3-5070403.html?tag=nl

      Many, many Hollywood studios and special effects houses are using them as well, such as these and many more:

      The makers of Jarhead:
      http://www.apple.com/pro/film/murch2/

      The maker of Underworld Evolution
      http://www.apple.com/pro/film/lumapictures/

      And how about the Minneapolis Star/Tribune

      http://www.apple.com/itpro/profiles/startribune/

      and the Atlanta Journal-Constitution:

      http://www.apple.com/pro/design/atlantajournal/

      and Harvard Med School:

      http://www.apple.com/science/profiles/harvardmed/

      and MANY other examples at :

      http://www.apple.com/pro/archive/ (this pageis especially good)

      http://www.apple.com/pro/

      http://www.apple.com/itpro/

      http://www.apple.com/server/

    47. Re:Why keep SSH on? by 4e617474 · · Score: 1

      I think you are missing the really obvious point here -

      I think you're stopping short of the non-obvious point. (Not a criticism. :D ) The Mac OS has exploits that don't require SSH access. Scriptable, remote exploits. http://www.sans.org/top20/#u2 Apple's reasonable level of default security, and reasonably secure and stable code base is starting to sound more and more like a Maginot line. When arbitrary code is executed on your machine, you don't stand back and say, "Well, there were very few ways they could have done that."

      --
      Finally modding someone offtopic when they rant about what "Begging the Question" means: priceless.
    48. Re:Why keep SSH on? by adolfojp · · Score: 2, Insightful

      SSH was designed to be a secure comunications protocol.

      It is not an open door or window like your analogy suggests. It is a door with a lock. Locks can be picked, but the solution is not to build houses without doors, but to improve and fix the locks on them.

      SSH will be insecure only if it is implemented wrongly. Disabling it should not be the solution, just an ugly patch. What should be the alternative if you needed to use SSH on your system?

      Cheers,
      Adolfo

    49. Re:Why keep SSH on? by Anonymous+Writer · · Score: 1

      Apple doesn't seem to care about the server market

      Apple has discontinued newer versions of WebObjects deployment tools for platforms other than OS X Server. And yet, they have started shipping WebObjects development tools for free with their computers and OS. This seems like a strategy to encourage people who buy Macs to get into designing sites using WebObjects, while locking them into publishing those sites on computers running OS X Server. It seems like a move to promote their servers.

      Since WebObjects development is free, I'd like to be able to explore its use as a WYSIWYG website editor as well as it's other capabilities, but sadly I can't just publish onto a Linux web server. I downloaded NVU since it's a free WYSIWYG editor, but I don't really have any options for casually getting into the capabilities of WebObjects for running websites.

    50. Re:Why keep SSH on? by nocomment · · Score: 1

      Just a quick note that you're on the 10 hot comments on the front page. :-)

      --
      /* oops I accidentally made a comment, sorry */
      /* http://allyourbasearebelongto.us */
    51. Re:Why keep SSH on? by AKAImBatman · · Score: 1

      ??? Ok, I'm confused. Front page of which site? Do you have a link?

    52. Re:Why keep SSH on? by nocomment · · Score: 1

      a link? slashdot.org ;-) It's one of the slashboxes you can have on the front page. If you don't have it Click Here.

      --
      /* oops I accidentally made a comment, sorry */
      /* http://allyourbasearebelongto.us */
    53. Re:Why keep SSH on? by Kadin2048 · · Score: 1

      Yeah, although somewhat suspiciously, the 1337 h4ck3r named "gwerdna" in the ZDNet article fails to mention any details about the "unpublished exploit" that he used to gain access, even though he claims that it's so severe, "There are various Mac OS X hardening guides out there that could have been used to harden the machine, however, it wouldn't have stopped the vulnerability I used to gain access."

      Basically, this guy is claiming -- after basically demonstrating a privilege escalation on a box that he had a shell account on -- that he has some secret exploit that lets him root any OS X box connected to the Internet.

      Right.

      --
      "Ladies and gentlemen, my killbot features Lotus Notes and a machine gun. It is the finest available."
    54. Re:Why keep SSH on? by Anonymous Coward · · Score: 0

      Question:

      What are people's thoughts on leaving SSH on but disabling password-based authentication? (i.e. using pre-shared keys to authenticate).

    55. Re:Why keep SSH on? by AKAImBatman · · Score: 1

      I can't say I've ever played with Slashboxes before. (They used to be just links to stuff I didn't care about anyway.) So I added it, and there I am. How neat! :-)

    56. Re:Why keep SSH on? by Anonymous Coward · · Score: 0

      "True, a Mac Mini isn't typically going to be used as a server, but if Apple decides to make some kind of Intel based server, this kind of thing is a HUGE problem."

      All major OSes have tons of local root vulnerabilities all the time:
      http://www.google.com/search?hl=en&q=linux+local+r oot+vulnerability&btnG=Google+Search
      http://www.google.com/search?hl=en&lr=&c2coff=1&q= solaris+local+root+vulnerability&btnG=Search
      etc.

      It hardly prevents them from being used as servers. I think its the serious performance problems that is keeping people from using Max OS X on servers:
      http://www.anandtech.com/mac/showdoc.aspx?i=2436

    57. Re:Why keep SSH on? by Anonymous Coward · · Score: 0

      The point was that in spite of remote vulnerabilities, the excuse that local vulnerabilities is something that one can brush under the carpet is wrong. Let's try phrasing that in a way that you understand:

      1a) It's bad of Windows to have remote vulnerabilities.
      1b) It's bad of Windows to have local vulnerabilities.
      2a) It's good of OS X not to have remote vulnerabilities.
      2b) It's bad of OS X to have local vulnerabilities.

      See how easy it was? Don't be a fanboy.

      Troll.

    58. Re:Why keep SSH on? by Anonymous Coward · · Score: 1, Insightful

      If my Linux box was exploitet in 30 minutes I would admit there was a bug and try to fix it. It's serious if you can't even trust basic unix security. It shouldn't be able to be rooted no matter what desktop programs where sitting on it.

      Unless you're running one of the super locked down Linux distros, if you give anyone who wants it a shell account it will be rooted in 30 minutes too. This is not news. Mac OS X and most Linux desktop distros are in the middle of the security spectrum. They are hard to break in remotely unless you're really good. They are non-trivial to compromise locally, but a middling competent security guy or cracker can do it. This means they are both pretty robust against script kiddies and worms from the outside and are "good enough" for the average university campus. The bright students will be able to hack them from their (or another user's) account. A really good cracker will probably be able to get in remotely.

      If your data is likely to be the subject of attack by experts you have no business storing it on most Linux distros or OS X. You want OpenBSD or SELinux, or the like. Anyone who follows security already knows all this though.

      Is the local escalation a bug? Yes it is. Should it be fixed? Yes it should. Is this news? No this is over-hyped nonsense. Local escalation exploits are always appearing and always being fixed. Any security guy will tell you if someone is on the box and has a clue, they will find one, unless you're running jails or some other high security setup. Once you give them a valid account and password you've bypassed all of the main defenses and a smart guy will find a hole. OS X is a casual desktop environment, not a ultra-secure server. If this is news to anyone, then they are not a security person.

      P.S. I work on a ultra-secure device, used by security experts in the government and other large organizations. We have some really good security guys who review it. Even so we had a trivial local privilege escalation in one version. It was no big deal because once someone has access, it is expected that they will find some hole. Very few OS's would claim to provide real security at that point and most of them do so by providing either a specialized interface (not general purpose computing) or using a virtual machine strategy.

    59. Re:Why keep SSH on? by teknopagan · · Score: 1
      Sorry, man, you've got your features crossed. Like you said, SSH is a secure communications protocol. It does not secure the host from the commands sent over SSH, it only encrypts the data being transmitted over the wire. Your claim is similar to arguing that a virus is harmless if it's sent in encrypted form.

      This actually brings up a point - being compromised over SSH is no different from being compromised over telnet or any other protocol, be it remote shell or otherwise. SSH is more akin to a driveway than to a door.

      Here's something that may help you understand more fully, from the SSH Basics by Thomas König:

      ----------
      2.1 What is ssh?

      To quote the README file:

      Ssh (Secure Shell) is a program to log into another computer over a network, to execute commands in a remote machine, and to move files from one machine to another. It provides strong authentication and secure communications over unsecure channels. It is intended as a replacement for rlogin, rsh, and rcp.

      Additionally, ssh provides secure X connections and secure forwarding of arbitrary TCP connections.

      2.3 What kinds of attacks does ssh protect against?

      Ssh protects against:

      • IP spoofing, where a remote host sends out packets which pretend to come from another, trusted host. Ssh even protects against a spoofer on the local network, who can pretend he is your router to the outside.
      • IP source routing, where a host can pretend that an IP packet comes from another, trusted host.
      • DNS spoofing, where an attacker forges name server records
      • Interception of cleartext passwords and other data by intermediate hosts.
      • Manipulation of data by people in control of intermediate hosts
      • Attacks based on listening to X authentication data and spoofed connection to the X11 server.

      In other words, ssh never trusts the net; somebody hostile who has taken over the network can only force ssh to disconnect, but cannot decrypted or play back the traffic, or hijack the connection.

      The above only holds if you actually use encryption. Ssh does have an option to use encryption of type "none" this is only for debugging purposes, and should not be used.

      2.4 What kind of attacks does ssh not protect against?

      Ssh will not help you with anything that compromises your host's security in some other way. Once an attacker has gained root access to a machine, he can then subvert ssh, too.

      If somebody malevolent has access to your home directory, then security is nonexistent. This is very much the case if your home directory is exported via NFS.

      2.5 How does it work?

      For more extensive information, please refer to the README and RFC files in the ssh directory. The proposed RFC is also available as an Internet Draft from ftp://ftp.ietf.org/internet-drafts/draft-ietf-tls- ssh-00.txt .

      All communications are encrypted using IDEA or one of several other ciphers (three-key triple-DES, DES, RC4-128, TSS, Blowfish). Encryption keys are exchanged using RSA, and data used in the key exchange is destroyed every hour (keys are not saved anywhere). Every host has an RSA key which is used to authenticate the host when RSA host authentication is used. Encryption is used to protect against IP-spoofing; public key authentication is used to protect against DNS and routing spoofing.

      RSA keys are also used to authenticate hosts.
      --
      The Russian Mafia will mod you down just to see if the Moderate button works.
    60. Re:Why keep SSH on? by geoffspear · · Score: 2, Funny

      I think he probably took advantage of the fact that anyone who's dumb enough to give people accounts on his machine and dare them to get root is probably also dumb enough to use "password" as their admin account password. Let's see Apple fix that vulnerability.

      --
      Don't blame me; I'm never given mod points.
    61. Re:Why keep SSH on? by Skuld-Chan · · Score: 1

      As someone who maintains Mac's/Solaris machines, Linux and Windows - this is total bullshit. Windows XP does not come with file sharing open by default and does not come with remote desktop open by default. Neither does Server 2000 or 2003 - you have to add the server roles that you need. By far the most popular vector into a Windows machine are unpatched services and unpatched versions of IE - gasp - just like any operating system.

      OSX server however comes with everything open by default - including ftp/ssh and http out of the box. That doesn't bug me though because its easy enough to configure before I deploy it.

    62. Re:Why keep SSH on? by Anonymous Coward · · Score: 0

      Mod Up; Too Insightful!

      --
      Clueless Admins need not reply!

    63. Re:Why keep SSH on? by AKAImBatman · · Score: 1

      The only thing that's "bullshit" is your information. No, Windows doesn't have RDP or File Sharing open. Then again, I didn't say it did. I said it had remote exploits available. Non-essential services like the RPC service are exposed to the Internet. Do you disagree that this has been the case?

      OS X comes with NOTHING enabled out of the box. It's all shut off. You can turn it on, but otherwise there's zero remote access to the machine. I know this because I'm a Mac user who's regularly used both OS X 10.2 and 10.4. Both versions shipped with all services disabled.

    64. Re:Why keep SSH on? by mean+pun · · Score: 1

      Note the word server in the GP post.

    65. Re:Why keep SSH on? by falkryn · · Score: 1

      I don't imagine the root of the exploit was due to the hardware, osx is osx for the most part. from what I understand, osx server edition, eg. the one they put on xserves, is pretty much the same as what you'll get on your regular mac + the addition of a number of extra services and gui tools to configure them. if anything (wild guess here) I'd think it'd be more open to potential vulneribilities than it's smaller brother.

    66. Re:Why keep SSH on? by Anonymous Coward · · Score: 0

      Um, you are talking about OSX vs OSX Server. Which *Does* ship with these services enabled by default.

      I want to know more details about this incident. It's not what I know that I dislike, it's what I don't know. Someone had a multi-user server and that server was compromised. Why?

      Was it a local privelage escalation flaw?
      Was it a remote flaw in SSH or Apache? Maybe an SSH password attack?

      Without knowing how the system was compromised, this is a useless story. It could have been because of rampant idiocy on the admin's part. It could have been because of rampant idiocy on Apple's part w.r.t. default settings in an OSX Server install.

      Instead, all we have is ignorant, unfounded speculation. Which sucks.

    67. Re:Why keep SSH on? by Arandir · · Score: 1

      the fact that granting shell access over SSH leads to a non-administrative user gaining root access in 30 MINUTES makes the OS entirely unsuitable in a server environment.

      Just don't give out any login accounts to non-administrative users! If you think you need to give one out, think again, because you probably don't.

      --
      A Government Is a Body of People, Usually Notably Ungoverned
    68. Re:Why keep SSH on? by Arandir · · Score: 1

      By far the most popular vector into a Windows machine are unpatched services...

      "Services" are otherwise known as "open ports". Duh!

      --
      A Government Is a Body of People, Usually Notably Ungoverned
    69. Re:Why keep SSH on? by AKAImBatman · · Score: 5, Informative

      Um, you are talking about OSX vs OSX Server. Which *Does* ship with these services enabled by default.

      Which was also not what was compromised. Kind of nice for the GP to switch topics like that. :-/

      I want to know more details about this incident.

      The machine was a Mac Mini "running a default install of OS X Tiger, plus fink and some decent versions of Apache, MySQL and PHP. Software Update recently updated it to Mac OS X 10.4.5 and fixed some security issues." It's colored orange for some odd reason, and sits on a bookshelf sideways. He, "set up an LDAP server and linked it to the Macs naming and authentication services, to let people add their own account to this machine."

      This is all available on his webpage.

      Basically, the guy is a moron. He thinks he's proving something by making a Desktop configured machine do server-class work, and then expect it not to get rooted.

      Was it a local privelage escalation flaw?

      Yes. The exact hole has been withheld, but it probably doesn't matter anyway. In a contest of machine vs. hacker where the owner is doing nothing to stop the hacker (and in fact, inviting him by removing barriers!), my money is on the hacker.

      Was it a remote flaw in SSH or Apache? Maybe an SSH password attack?

      The guy gives out SSH accounts. There was no need to penetrate this layer of security, because he left the door wide open.

    70. Re:Why keep SSH on? by jbolden · · Score: 1

      OSX server offers ease of administration for the small business market. Quite simply if you need a server and the dentist or the chief auto-mechanic or the receptionist's kid is going to be the admin its a great choice. If # of concurrent users is an issue it ain't the right product.

    71. Re:Why keep SSH on? by RetiredMidn · · Score: 4, Insightful
      I don't know what this guy was trying to prove, but his blind faith in Apple got him burned.

      Considering that the picture of the machine posted on the web site (which now seems to be unavailable) showed it sitting on a shelf next to Windows programming books, I'm guessing that his "blind faith" is in something other than Apple, and his motiviation was to generate the misleading buzz that ZDNet and Cnet are facilitating.

    72. Re:Why keep SSH on? by ScriptedReplay · · Score: 1
      Yes and no. If your admin locks the machines down tight, then it's quite possible that the Mac servers are more secure than the Windows servers.

      But this is not necessarily a server issue. Typical scenario, oft played out in the Windows world:
      1. find local root exploit
      2. find vulnerability in a client application or library that allow local code execution
      3. create payload for said application vulnerability that will use the root exploit to elevate privilegesa and take control/propagate
      4. launch countdown
      Surely you've been around long enough to realize that a local root exploit is a bad thing no matter how you put it.

      Besides, by default a server should not run services with root privileges anyway unless really needed (such as sshd) and then they should be especially audited for security and should drop root like a hot potato once it's no longer needed. So the only ways to gain root would be:
      • a hole in such service needing root
      • a hole in one of the suid binaries - or inapropriate suid permissions here [*duh* perl-suid]
      • a kernel-level exploit
      Anything else that is exploitable should not give you root - i.e. a PHP exploit should drop you to the apache user's level and so on.

      On the other hand, if you have a graphical server that runs as root, the bets are mostly off.
    73. Re:Why keep SSH on? by jbolden · · Score: 1

      Ah that last post is where you just proved you don't know what you are talking about. SSH was designed to be a secure protocol for a man in the middle attack. It does absolutely nothing to secure the server. Its not secure in the way you were using it above.

        To do what you want you use things like having SSH come in via restricted shell into a chrooted environment. Etc... But basically you shouldn't be running a Unix at all if you can avoid it, Unix isn't good with untrusted users who have reasonable access to the system.

    74. Re:Why keep SSH on? by Anonymous Coward · · Score: 0

      Fool! Root is disabled on OS X.

    75. Re:Why keep SSH on? by Anonymous Coward · · Score: 1, Informative
    76. Re:Why keep SSH on? by Anonymous Coward · · Score: 0

      it is incredibly difficult to properly configure a Unix system to be completely secure against users with shell accounts.

      Bullshit. It takes some planning, but it's nowhere near as difficult as you claim.

      And yes, I run several such machines (including ones used by students why try every day to break in.)

      Such security requires a complete system lockdown,

      Yes, which is trivial for any competant admin.

      complex partitioning,

      Ahem - *WHAT*?!?! You put group/other-writable directories on their own partition mounted with noexec, and enforce quotas - there's nothing "complex" about that.

      reassignment of services to non-root accounts,

      Which should be done anyway, and is (again) trivial.

      jailing of priviledged services (or equivalent),

      Again, trivial.

      and several other procedures that I sincerely doubt that this guy performed.

      While it's probable that the guy didn't make any attempt to secure the machine, and it's possible that a local exploit was used to break in, it's not guaranteed.

      Personally, if I was going to break into an OSX server, I wouldn't bother with a shell account.. there are *plenty* of holes in the default install (hint: WUFTPD) that will make it easy.

    77. Re:Why keep SSH on? by Anonymous Coward · · Score: 0

      Thanks for clearing all that up. I was reading through these threads and noone was even in agreement on what had happened. Mind you, that didn't stop people from attempting to 'discuss' it.

      My first guess when this happened was some yahoo had put Fink on the machine, gave root a password (root doesn't have one by default on OSX machines) and then someone got their hands on /etc/shadow or something.

      Mind you, I wasn't about to put that into writing, especially considering I spent most of my original post complaining about people making ignorant assumptions.

    78. Re:Why keep SSH on? by Anonymous Coward · · Score: 0

      "If your data is likely to be the subject of attack by experts you have no business storing it on most Linux distros or OS X. You want OpenBSD or SELinux, or the like. Anyone who follows security already knows all this though."

      Anyone who follows security also knows that OpenBSD isn't the be-all, end-all to computer security. I'm a long time OpenBSD user and probably pushing "fanboy" status, however, I've seen my fair share of local OpenBSD exploits. True, there has been only one *remote* hole in the default install, but, take a look back at the OpenBSD errata pages and you'll quite a few local exploits for OpenBSD--mainly ones dealing with privilege escalation.

      Very simply put, there are a two simple reasons as to why I have the only account on my OpenBSD box and don't freely hand out shell accounts to friend/etc:

      1) I'm paranoid.
      and
      2) I'm paranoid.

    79. Re:Why keep SSH on? by geekee · · Score: 1

      "In other news, after giving burglers the first three of four numbers for your safe's combination, the fastest can open it in less than 30 minutes."

      If giving someone local non-root access to MacOS machine is that secure, I don't know whether to laugh or cry.

      --
      Vote for Pedro
    80. Re:Why keep SSH on? by klez23 · · Score: 1

      Disabling it wouldn't be necessary, if he didn't give out free accounts to anyone who wants em.

    81. Re:Why keep SSH on? by birge · · Score: 1
      By handing out shell accounts, he might as well have been handing out the root password to his system.

      Bull. By handing out shell accounts, he should NOT have been handing out the root password. That's the whole bloody point of restricted shell accounts. No matter how the fanbois spin this, this just lends further support to the notion that Mac OS X is not secure so much as just not worth the time to hackers.

      By the way, I'm writing this from a Mac. Just because you prefer a system doesn't mean you have to stake your self-esteem on it and defend every suggestion that it's not perfect like somebody called your mother a whore.

      Anyway, as to your assertion that Mac OS X isn't designed for multi-user, remote use: do you really think OS X server has the hole, whatever it is, patched? And Apple sure makes a big deal out of the multi-user capabilities of Mac OS X for a feature that we're not supposed to use.

    82. Re:Why keep SSH on? by Anonymous Coward · · Score: 0

      Bollox

      try sudo -s , guess what user you become ?
      $ sudo -s
      wibble:~ root# id
      uid=0(root) gid=0(wheel) ...

    83. Re:Why keep SSH on? by Ohreally_factor · · Score: 3, Funny

      The guy gives out SSH accounts. There was no need to penetrate this layer of security, because he left the door wide open.

      So, to use the most disgusting analogy possible, it was like raping the goatse guy.

      Heh heh, I said analogy.

      --
      It's not offtopic, dumbass. It's orthogonal.
    84. Re:Why keep SSH on? by Millenniumman · · Score: 1

      Most Mac users don't use their computers as servers, or have ssh on, so this doesn't reflect OS X security very well.

      --
      Stupidity is like nuclear power, it can be used for good or evil. And you don't want to get any on you.
    85. Re:Why keep SSH on? by Anonymous Coward · · Score: 0

      there are *plenty* of holes in the default install (hint: WUFTPD) that will make it easy.

      It was OS X Desktop. RTFA.

    86. Re:Why keep SSH on? by Anonymous Coward · · Score: 0

      the fact that granting shell access over SSH leads to a non-administrative user gaining root access in 30 MINUTES makes the OS entirely unsuitable in a server environment.

      On most systems, expanding from regular user to root user isn't all that complicated.

    87. Re:Why keep SSH on? by birge · · Score: 1

      What a poor estimation of Apple you must have to not expect them to be capable of making their OS to be as secure as every other unix implementation out there. People run multi-user systems on linux all the time, for example, without worrying about users escalating privs. If I tried the same challenge on a Solaris box, do you think somebody would have been able to hack it in 30 minutes?

    88. Re:Why keep SSH on? by birge · · Score: 1

      Jeez. I didn't even notice that. If you're right, that guy is fricking brilliant.

    89. Re:Why keep SSH on? by Theatetus · · Score: 1

      Well... ssh isn't for the server's security, really. It's for the client's security. SSH means if Alice connects to Bob, she can be sure that all the traffic from that connection actually came from Bob, and vice versa. They can also both be confident that Eve, who is also on the network, can't read what they are saying to each other. There's nothing about ssh that keeps Alice from doing something mean to Bob, or vice versa.

      SSH does not change the parameters of trust between the two hosts. It just limits the trust questions to those two hosts and no others.

      Look at it this way: if you send me a signed and encrypted email containing a recipe, I can be confident that the email came from you and was not altered in transit or read by a third party. That says nothing about whether the recipe will be tasty or poisonous; I still have to have some reason to trust your cooking skills. SSH lets you trust that what was said was actually said, not that what was said is in itself trustworthy.

      --
      All's true that is mistrusted
    90. Re:Why keep SSH on? by birge · · Score: 1
      Is the local escalation a bug? Yes it is. Should it be fixed? Yes it should. Is this news? No this is over-hyped nonsense.

      Don't you have better things to do than read slashdot, Mr. Rumsfeld?

    91. Re:Why keep SSH on? by elakazal · · Score: 1

      Also, look at the lame-ass website and the way he writes...do those look like the work of a Mac user?

    92. Re:Why keep SSH on? by fsoft · · Score: 1

      Security problems are divided into two big categories:

      1 - remote exploit
      2 - local exploit

      The hack a site using the first category, you have to find a bugged service (ie: ftp, http) running on the machine.
      To hack a site using the second category, you first have to gain access to the machine, using a shell.

      Actually, SSH is not a security treat. It is one of the most secure way to remotely access your machine.
      I think that the hacker, once he had a shell access on the Mac, has used some local security flaw (ie. some buggy shell command) to gain root privileges and then hack the website.

      Giving an SSH shell account to the hackers indeed helped a lot: local exploits are more commons and less "watched" by developers because you actually have to gain a local access first you can use them.

      But believe me: SSH is secure: I have it running on all my servers and never had a problem with it.

    93. Re:Why keep SSH on? by jimicus · · Score: 1

      Turning off functionality because of security is not acceptable. It the OS offers certain features, they should be secure, otherwise, they are flawed. Stop apologizing for Apple computer and its defects.

      Security is not a black-and-white thing. You can't just build a tickbox into a system saying "Do you want this system to be secure? [ ] Yes [X] No".

      It's about risk assessment, deciding what risks you're prepared to take. Part of that is figuring out how to set up your systems to provide all required functionality without taking unnecessary security risks. And every extra piece of software you install, every remote service adds to those risks.

    94. Re:Why keep SSH on? by soft_guy · · Score: 2, Informative

      MacOS X Server is in fact meant for remote multi-user usage. And it has been around since MacOS X started shipping (i.e. day one.) Where are you getting this stuff?

      Is the standard desktop version of MacOS X configured for that purpose straight out of the box? No. That's why they sell MacOS X Server. OTOH, MacOS X (non-server) is properly configured for its intended purpose and does not ship with a bunch of things turned on that make the machine particularly vulnerable to outside attacks.

      --
      Avoid Missing Ball for High Score
    95. Re:Why keep SSH on? by AKAImBatman · · Score: 1

      Ok, for the upteenth time, it was Mac OS X Desktop on a Mac Mini that was compromised. (You're about user #1,843,072 to automatically AssUMe that we're talking about Server.) Server NEVER entered into the equation.

      So, are we agreed that the guy was a moron and that this was a stupid test?

    96. Re:Why keep SSH on? by Hosiah · · Score: 1
      Expect all major tech outlets to cover this new and amazing Mac vulnerability (you think I'm joking?).

      No, and you also wouldn't be kidding to say "Next week's headline: Microsoft-funded study shows Windows Vista is more secure than Mac OS X."

    97. Re:Why keep SSH on? by Hosiah · · Score: 1
      At which point, he makes use of the easy security hole he knows he left open, knocking down his own straw man. Elementary, Mr Watson.

      Wrong? OK, then it was Colonel Mustard in the Closet with the Slinky.

    98. Re:Why keep SSH on? by Anonymous Coward · · Score: 0

      Too bad this rocket surgeon didn't know how to set up the local accounts chrooted. Then it might have been interesting. Some real *n[i,u]x pro needs to guide him.

      But then again, the little Mac looks like it's still running - doesn't look like it's drive has been wiped yet. I thought that was his challenge. So it's really days and still running even though he gave them some tools to start the job.

    99. Re:Why keep SSH on? by Nakarti · · Score: 1

      Sure wouldn't.

      When I first ran a game server, I lazily used Knoppix(it was a Debian I'm familiar with, after all) and within minutes of giving her a shell account, another GM pointed out her success with priviledge escalation. Using a bug in one of the games included on Knoppix.

      So I switched to pure Debian with minimum required services, and thereby left no tools about for such an attack to happen.

      I would give out a shell here, since I'm not using it now and might replace Debian with a BSD, but it's on my home network, and in the event of a compromise, I don't want my other machines targeted. You know, sensible paranoia.

    100. Re:Why keep SSH on? by soft_guy · · Score: 1

      I did not think he was running MacOS X Server. I was merely pointing out that there is a server version of MacOS X in existence.

      --
      Avoid Missing Ball for High Score
    101. Re:Why keep SSH on? by Listen+Up · · Score: 1

      Left with default settings, they're both highly vulnerable to anyone who already has access to the machine and is determined to find a hole. (Whether it be a buffer overflow in a priviledged service, or a soft link that gave elevated permissions.)

      It is important that the casual reader understand that the parent post is poorly worded and is misleading. First of all, the article is about OS X Desktop, not OS X Server. OS X Server is not generally going to be used or administered by the general public. Secondly, OS X Desktop is not as highly vulnerable as Windows Desktop in its default state. OS X Desktop is highly secure from the outside in its default state and has a very effective firewall built-in as well. The point for the casual reader to understand is that the parent post says "to anyone who already has access to the machine", which is not how OS X Desktop is set up in its default state. You specifically have to enable services in OS X Desktop after installation in order to open an real security concerns. Hence, the post is misleading. Any operating system, without proper precautions, that allows external users local access to the machine can be at risk for a security vulnerability.

    102. Re:Why keep SSH on? by Listen+Up · · Score: 1

      And amazingly, you are trying to make an intelligent post, yet you use slanted and loaded statements like "it remains bullshit when applied to fashionable platforms, too". So, is Linux still just a hobby OS? The truth is that Mac OS X is both a popular and real Unix platform for both desktop and server use, which is now commercially supported on both PPC and Intel platforms.

      And finally, it is not somehow a bad thing for a computer to be nice to use and look at as well.

  2. gwerdna? by Loconut1389 · · Score: 5, Interesting

    I wonder if the hacker's name is Andrew G. by any chance?

    What kind of hacker do you suppose he is? gwerdna is a pretty poor anagram of Andrew G.

    If that's not his name, it's fairly random.

    He's been using it since the end of 2004 at least. http://p212.ezboard.com/bnendowingsmirai.showUserP ublicProfile?gid=gwerdna

    1. Re:gwerdna? by Anonymous Coward · · Score: 0

      It's not an anagram, it's andrewg backwards. Duh.

    2. Re:gwerdna? by Loconut1389 · · Score: 1

      really. I never noticed that.

      Technically, it is an anagram, which is simply a rearrangement of letters. This particular rearrangement had some order to it. Perhaps he arrived at it by rotating through combinations of his name and stopped on gwerdna without realizing it. Either way, it remains an anagram- and like I said, a poor one at that (for protecting his identity at least).

      from webster.com:
      Main Entry: anagram
      Pronunciation: 'a-n&-"gram
      Function: noun
      Etymology: probably from Middle French anagramme, from New Latin anagrammat-, anagramma, modification of Greek anagrammatismos, from anagrammatizein to transpose letters, from ana- + grammat-, gramma letter -- more at GRAM
      1 : a word or phrase made by transposing the letters of another word or phrase
      2 plural but singular in construction : a game in which words are formed by rearranging the letters of other words or by arranging letters taken (as from a stock of cards or blocks) at random

    3. Re:gwerdna? by maccalvin5 · · Score: 2, Informative

      additionally

      gwendra

    4. Re:gwerdna? by ninjagin · · Score: 1
      Werdna was the name of the evil wizard nemesis in Wizardry -- anyone remember Wizardry? -- Apple ][ game with vector graphics for dungeon hallways?

      Aaah. Memories.

      --
      .. pa-ra-bo-la, pa-ra-bo-la, 2 pi R, 2 pi R, where's your latus rectum, where's your latus rectum, 2 pi R
    5. Re:gwerdna? by Ant2 · · Score: 1

      And, it sounds a lot like the Andrew Griffiths from this page.

      http://felinemenace.org/paper.html

    6. Re:gwerdna? by Anonymous Coward · · Score: 0
    7. Re:gwerdna? by Creepy · · Score: 2, Interesting

      yep - and incidentally, Werdna was Andrew Greenberg... - which could be gwerdna... odd coincidence?

      Not related at all, but the other guy that wrote Wizardry, Robert Woodhead, was Trebor.

    8. Re:gwerdna? by Anonymous Coward · · Score: 0

      Andy hasn't stopped calling himself Werdna.

    9. Re:gwerdna? by Anonymous Coward · · Score: 0

      "1 : a WORD or PHRASE made by transposing the letters of another word or phrase
      2 plural but singular in construction : a game in which WORDS are formed by rearranging the letters of other words or by arranging letters taken (as from a stock of cards or blocks) at random"

      Gwerdna is neither a word nor a phrase.

      IT IS NOT AN ANAGRAM. IT'S ANDREW G BACKWORDS.

    10. Re:gwerdna? by Loconut1389 · · Score: 1

      apparently, thats the guy. mystery solved. (link below with the screenshot just about cements it)

    11. Re:gwerdna? by Loconut1389 · · Score: 1

      Though, Andrew Griffiths seems just a wee bit close to Andy Griffith.. Wonder if Andrew Griffiths itself is a pseudonym? Maybe this guy's more covert than it seems on the surface?

  3. Mac OS X Security Challenge by daveschroeder · · Score: 5, Interesting

    Mac OS X Security Challenge

    In response to the woefully misleading ZDnet article, Mac OS X hacked under 30 minutes, I have decided to launch a Mac OS X Security Challenge.

    The ZDnet article, and almost all of the coverage of it, failed to mention a very critical point: anyone who wished it was given a local account on the machine (which could be accessed via ssh). Yes, there are local privilege escalation vulnerabilities; likely some that are "unpublished". But this machine was not hacked from the outside just by being on the Internet. It was hacked from within, by someone who was allowed to have a local account on the box. That is a huge distinction.

    Almost all consumer Mac OS X machines will:

    - Not give any external entities access
    - Not even have any ports open

    The challenge is as follows: simply alter the web page on this machine, test.doit.wisc.edu (128.104.16.150). The machine is a Mac Mini (PowerPC) running Mac OS X 10.4.5 with Security Update 2006-001, has two local accounts, and has ssh and http open - a lot more than most Mac OS X machines will ever have open. Email das@doit.wisc.edu if you feel you have met the reqiurements.

    1. Re:Mac OS X Security Challenge by byolinux · · Score: 2, Funny

      And when you're done there, connect to 127.0.0.1 and root me there. Be sure to delete any files you find.

    2. Re:Mac OS X Security Challenge by Bromskloss · · Score: 5, Funny

      So, test.doit.wisc.edu is some guy you're having a war against, and now you want him to have an.. umm... unfortunate accident with his computer, right? With our help, sneaky. ;-) Mabye by the slashdotting alone. Welcome to the wild web.

      --
      Swedish plasma phys. PhD student; MSc EE; knows maths, programming, electronics; finance interest; seeks opportunities
    3. Re:Mac OS X Security Challenge by gasmonso · · Score: 2, Funny

      Does Slashdotting the site count ;)

      gasmonso
    4. Re:Mac OS X Security Challenge by Anonymous Coward · · Score: 0

      You're port 110 is showing, zip up.

    5. Re:Mac OS X Security Challenge by tpgp · · Score: 5, Insightful

      Yes, there are local privilege escalation vulnerabilities; likely some that are "unpublished". But this machine was not hacked from the outside just by being on the Internet. It was hacked from within, by someone who was allowed to have a local account on the box. That is a huge distinction.

      Whilst I agree that this is not the same as a remote exploit, do not underestimate the seriousness of local privilege escalation.

      For instance, an unpatched local privilege escalation, used in conjuction with the vulnerability discussed in this article could result in a rooted machine - simply from visiting a hostile website (or even a website you visit regularly, that runs IIS and has been hacked itself)

      I don't believe (as some pundits seem to) that Mac OS is a Microsoft style security disaster only awaiting the attention of hackers to happen - but I do believe that Mac owners are going to have to start paying a little more attention to security matters then they currently are.

      --
      My pics.
    6. Re:Mac OS X Security Challenge by squiggleslash · · Score: 4, Informative
      On the other hand, it tells you what's possible if a user downloads a trojan and runs it. Despite the common argument that such hacks are, supposedly, impossible because "Only root is able to change critical files" and/or "Only admin users are able to do critical things and Apple does everything they can to encourage users not to set up their default accounts as "admin", explaining what an admin account is and the consequences of using it in their comprehensive, well written and easily readable user manual, shipped with every copy of OS X" (*snort*), it appears that, in actual fact, a trojan can escalate itself to root pretty easily.

      I've always thought OS X was more hackable than its supporters tend to say. The very fact that, until recently (like, early 2005), you could set something like this up:

      1. Set up page to "redirect" to a .sit or .zip if Safari is the browser.

      2. Have trojan in .zip or .sit associate itself with many common types of file, especially uncommon variants of popular files (MPEGs, for instance, seem to randomly pick whether they're Quicktime, VLC, MPlayer, or just not associated with anything, files in OS X)

      3. Wait (giggling with insane glee)

      Apple fixed the bug exploited in (2) above sometime in early 2005 by having the OS warn you if it was running an application for the first time. For those who are scratching their heads though: Safari, by default, opens "safe" files. This means that step one would have caused the .zip or .sit to be downloaded and extracted on the user's desktop without any user intervention. Once an application is present on a hard drive, it's already installed. In OS X (as with previous versions of Mac OS), applications include associated metadata that tells the OS "I'm an application, and I open files of types JPEG, WDOC, and CARP." If the user hasn't already associated a specific application with a specific file (because, for instance, you just downloaded it from the Internet), then opening a new file will generally cause the OS to search for applications that can open that type, pick one, and open it.

      Why am I talking about an old bug? Well, this was present in Mac OS for years, and nobody did anything about it, nobody even considered it a bug until relatively recently. Despite all the crap that's leveled against Microsoft on the same subject, some justified, much not, Apple's attitude towards security is not much better.

      If you can get a user to open an application, then you have some access to their machine. If root privileges are gainable from a regular account, then you have root access to their machine.

      And all this time I thought you'd have to do the social engineering step of, perhaps, waiting for an application that causes the "Type in an administrator username and password" dialog to come up (perhaps Installer.app, or.. perhaps... Software Update...) and throw a dialog over it that looks identical. It's easier than I thought.

      --
      You are not alone. This is not normal. None of this is normal.
    7. Re:Mac OS X Security Challenge by skojare · · Score: 1

      The original contest is here: http://rm-my-mac.wideopenbsd.org.nyud.net:8080/

    8. Re:Mac OS X Security Challenge by Bert64 · · Score: 1

      Actually OSX has a number of UDP services open externally by default, but no TCP.

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    9. Re:Mac OS X Security Challenge by Anonymous Coward · · Score: 0

      Your port [goatse.cx] is showing.

    10. Re:Mac OS X Security Challenge by Anonymous Coward · · Score: 0

      Done! What do I get?

    11. Re:Mac OS X Security Challenge by noz · · Score: 1

      Be sure to deface the web server running on a system with no ports open. *grin*

    12. Re:Mac OS X Security Challenge by pvt_medic · · Score: 1

      Could you publish results, I think that this sort of challenge is as news worthy if not more so than this parent story. I would love to hear the results of your challenge and see what people were able to do.

      --
      30% Troll, 50% Underrated, 10% Interesting
      Score:5, Troll
    13. Re:Mac OS X Security Challenge by stinkykitten · · Score: 0

      Can someone who KNOWS (please no opinions) answer a simple question.

      Is there actually a difference between an Admin and regular user on OS X? I have been running as a regular user as a test for several weeks now and I can see no difference at all. I get asked for authentication in all the same places as when I'm running as an Admin. The only difference I can see is that, of course, the login and password of the regular user account cannot be used for authentication in Admin level actions.

      While this is good in a multi-user environment where the Admin pass is not openly known, it would seem to me that running as a regular user serves no security purpose when the Admin pass is openly known as even a regular user can just use it at an authentication prompt.

      So there's the question, in OS X is there any difference between an Admin and regular user other than what the password can allow?

    14. Re:Mac OS X Security Challenge by Bert64 · · Score: 2, Insightful

      Yes, local security holes are an issue...
      But a much worse issue, would be simply running as a privileged user already (no privilege escalation necessary). So no matter how many local privilege escalation holes OSX has, it's still not as bad for an end user as default installs of windows are.

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    15. Re:Mac OS X Security Challenge by NatasRevol · · Score: 4, Informative

      New here, huh?

      Dave works and is a rather high profile Mac admin at UWisc.

      --
      There are two types of people in the world: Those who crave closure
    16. Re:Mac OS X Security Challenge by Anonymous Coward · · Score: 0

      Try:
      127.218.44.63
      next.
      I've created an account for you on it, using your usual password.
      You'll want to clean up the home directory though.
      rm -rf $HOME

    17. Re:Mac OS X Security Challenge by Bromskloss · · Score: 2, Funny

      New here, huh?

      Dave works and is a rather high profile Mac admin at UWisc.


      That's what _you_ think!

      --
      Swedish plasma phys. PhD student; MSc EE; knows maths, programming, electronics; finance interest; seeks opportunities
    18. Re:Mac OS X Security Challenge by TClevenger · · Score: 3, Interesting

      What I'd be interested in is putting other operating systems on with the same rules as the submitter (fully patched system with free local accounts to any who ask) and see if Linux, Windows Server or any of the BSDs can stand up to the challenge.

    19. Re:Mac OS X Security Challenge by Anonymous Coward · · Score: 1, Interesting

      Well, 'das' is one of the accounts on the machine. Asking for http://128.104.16.150/~das returns the standard 'insert your web page here' web page.

    20. Re:Mac OS X Security Challenge by rootofevil · · Score: 1

      Despite all the crap that's leveled against Microsoft on the same subject, some justified, much not, Apple's attitude towards security is not much better.

      If theyve fixed it before an 0day exploit came out, they are doing a good sight better than MS at patching and acknowledging security as a necessity.

      --
      turn up the jukebox and tell me a lie
    21. Re:Mac OS X Security Challenge by Jord · · Score: 1

      The difference is that the admin user is in the admin group. This allows the admin user to make changes in some areas of the system that the normal user cannot. Specifically the /Applications directory. As an admin you can change things in there without authentication, as a normal user you cannot.

      At the terminal level, an admin user is in the sudo list, a normal user is not.

    22. Re:Mac OS X Security Challenge by morgan_greywolf · · Score: 1
      The ZDnet article, and almost all of the coverage of it, failed to mention a very critical point: anyone who wished it was given a local account on the machine (which could be accessed via ssh). Yes, there are local privilege escalation vulnerabilities; likely some that are "unpublished".
      Don't underestimate privelege escalation vulnerabilities. One way Apache uses to lockdown security is the ability to be able to run as the user 'nobody' (or 'http' or whatever) by starting initially as root and then switching users (and possibly a invoking a chroot jail, depending on how you have it configured).

      If you can get the 'nobody' (or 'http' or whatever) user to be able to access arbitrary code by fuzzing Apache (or any other service you have open, such as sshd), then the privilege escalation vulnerability becomes the lynchpin that enables the attacker to be able to root the box.

      The lesson here is that all security vulnerabilities should be taken seriously. Just because you don't think a security vulnerability doesn't apply to you doesn't mean that such vulnerability will not be exploited by an attacker trying to root your box. The only security vulnerabilities that don't apply to you are ones that involve software that you don't have installed on the box.

    23. Re:Mac OS X Security Challenge by Anonymous Coward · · Score: 0

      The prior answer to your question was technically correct, but lacked a true answer in laymans terms for your question. I am not a Mac user myself (I use Linux), but the similarities between how Mac and Linux work under the hood are extremely similar, being that they are *Nix based systems.

      Lets take a hypothetical situation. If I was running as a user, and I happened to visit upon a website that had a sort of malicious embedded code that downloaded and tried to run something, the administrator password box would pop up and notify me that there is something trying to install, and allow me to deny the installation, thus keeping my box from infection of a virus or hacking exploit.

      Now...had I been running as root, it would've just installed and ran without me having to type in a password to authorize it. At that point, it would also have full access to all my system binaries (system programs that do high level maintenance and other tasks), libraries, and could gain full control over my system or even systematically delete everything, even while my computer is still running. With *Nix systems, you can delete a running file. I could delete your entire hard drive, while you were on you computer, and you wouldn't know until you tried to restart it or run a program that wasn't already loaded into memory. THAT is the danger of running as an admin user. It's like leaving your front door wide open all the time, rather than locking it on your way out, and just using a key when you need to get in. If you don't, then you deserve to be robbed blind just on principle.

    24. Re:Mac OS X Security Challenge by Paradise+Pete · · Score: 1
      Could you publish results, I think that this sort of challenge is as news worthy if not more so than this parent story.

      I agree that the results would be interesting, but the parent story should not be dismissed. If what it says happened actually did happen, then it's pretty serious. A regular user account was able to elevate its privileges to admin. That would mean that any app you run, even from an unprivileged account, could conceivably take control of your computer.

    25. Re:Mac OS X Security Challenge by Anonymous Coward · · Score: 0

      So, you have another set of rules since OS X proved not to be secure if you have local access.

      What are you trying to prove?

    26. Re:Mac OS X Security Challenge by stinkykitten · · Score: 0

      Root and Admin are not the same. The root user isn't even active under the client version of OS X. That is the misconception that I think is causing most of this "run as a regular user" stuff for OS X. In Window and most any *nix the initial user is root or equivalent, this is not the case in OS X.

    27. Re:Mac OS X Security Challenge by byolinux · · Score: 1

      A free fortnight in January.

    28. Re:Mac OS X Security Challenge by Kadin2048 · · Score: 1

      If you can get the 'nobody' (or 'http' or whatever) user to be able to access arbitrary code by fuzzing Apache

      This would still require that there be an exploitable hole in Apache (or other running service), correct?

      A usable priv-escalation vulnerability defeats the jails and "nobody" users -- although probably not completely, because it still provides an additional bar -- but would still require that the globally-accessible service to be compromised itself, in order for the computer to be rooted remotely, without any way in like the article competition's shell accounts.

      So it's a two-step process, and a privilege escalation is step 2. Step 1 is still lacking, so it's not as though every OS X box in existence became compromised while Apple or whomever fixes the problem. (Which I hope they do, I don't mean to totally undermine the seriousness of this exploit, although I'm annoyed that it wasn't documented.)

      --
      "Ladies and gentlemen, my killbot features Lotus Notes and a machine gun. It is the finest available."
    29. Re:Mac OS X Security Challenge by Arandir · · Score: 1

      I don't believe (as some pundits seem to) that Mac OS is a Microsoft style security disaster only awaiting the attention of hackers to happen...

      Yet that is how it is being reported. Every OS has local exploits. Even <gasp> OpenBSD! But people are going apeshit over this, in an attempt to validate their own choice of Windows.

      Yes, this is indeed a serious security vulnerability. No, OSX still isn't the piece of security shit that Windows is.

      p.s. Here's my security challenge: hack my Mac OSX box and win $100! I'll even give you its IP address. 192.168.0.15.

      --
      A Government Is a Body of People, Usually Notably Ungoverned
    30. Re:Mac OS X Security Challenge by d34thm0nk3y · · Score: 1

      But this machine was not hacked from the outside just by being on the Internet. It was hacked from within, by someone who was allowed to have a local account on the box. That is a huge distinction.

      So you concede the point that it was hacked. Hence the title was correct.

    31. Re:Mac OS X Security Challenge by Anonymous Coward · · Score: 0

      How do we know this isn't an ssh problem? Or an unknown exploit of some other widely distributed open source software? Until we know how this attack was accomplished, OS X may only be a subset of the problem.

    32. Re:Mac OS X Security Challenge by Anonymous Coward · · Score: 0

      Your "challenge" is nothing like the original. You're basically only testing apache security on PPC. It has nothing to little to do with OS X. The original was a multiuser setup with functional accounts. If you want to prove something, set it up like it was but secure it. Use OS X server if you think it's safer. Do some chroots if you think it's needed. The multiuser functionality must still be present.

      Instead of making this "toy contest" any 6 year old could come up with, prove to the world OS X is secure. If set up correctly.

    33. Re:Mac OS X Security Challenge by daveschroeder · · Score: 3, Interesting

      Yes. And I explain that on the site.

      But the original article makes it look like any Mac OS X machine out on the internet could just get "hacked", and was "easy pickings". Do you, or do you not, agree that the article should have made *some* reference, at least in passing, that people were allowed to have local accounts on the machine? I.e., a way that the vast, vast, vast majority of consumer Mac OS X machines will never be used (to say nothing that they'll probably never have any ports open, either)?

      So there's a local privilege escalation vulnerability that, according to the "hacker", hasn't been reported to Apple. So if it's "unpublished", and therefore hasn't (likely) been reported to Apple, what is Apple to do about it?

      The article is not fair because it doesn't tell a critical detail about the situation: that LOCAL ACCESS was allowed. If you don't think that's a *huge* omission in this context, I don't know what else to say. The majority of people who read that article will leave with the specific and distinct impression that a Mac OS X machine can be "hacked" just from being connected to the internet. That is patently untrue. I'm simply showing that.

    34. Re:Mac OS X Security Challenge by murdie · · Score: 1

      Apple fixed the bug exploited in (2) above sometime in early 2005 by having the OS warn you if it was running an application for the first time.
      I don't know to which bug you refer, but there was a similar one found and fixed in a week just a couple of weeks ago. A quick experiment with that shows that the warning is given every time a disguised malicious file is downloaded, whether the malicious application has been run before or not. See http://forums.macrumors.com/showthread.php?t=18378 7. An operating system that prevented users from downloading and executing an executable would be very restrictive. A warning from the operating system won't stop a stupid user from downloading a Trojan horse, however - and, of course, such a user can easily bring a Trojan horse in on a removeable medium without warnng.

    35. Re:Mac OS X Security Challenge by Anonymous Coward · · Score: 1, Funny

      Warning! The IP address above is to a pr0n site

    36. Re:Mac OS X Security Challenge by Vrejakti · · Score: 1

      " or any of the BSDs can stand up to the challenge."

      Want an answer? See freeshell.org. They've been offering free home account via SSH and telnet on a NetBSD server since 1987. Considering the place is still usable, I'll simply assume no one has hacked them.

    37. Re:Mac OS X Security Challenge by Anonymous Coward · · Score: 0

      Response Headers - http://test.doit.wisc.edu/

      Date: Tue, 07 Mar 2006 02:02:28 GMT
      Server: Apache/1.3.33 (Darwin)
      Last-Modified: Mon, 06 Mar 2006 22:46:43 GMT
      Etag: "3a397-1380-440cbbd3"
      Accept-Ranges: bytes
      Content-Length: 4992
      Content-Type: text/html

      200 OK

    38. Re:Mac OS X Security Challenge by ernst_mulder · · Score: 1

      It's worse than that.

      THE BUG IS STILL THERE IN 10.4.5.

      YES, The Finder shows you when you rename an application (package) to, say, ".jpg". The Finder then shows you it's actually an application ".jpg.app". This is no solution, and why?

      1) The average user will double click the .jpg.app anyway
      2) There are nice UNICODE characters that have periods in them. There is for instance a unicode character that displays "1.", so it's very easy to fabricate an application that has the name "Steve's naughy hobby 1.jpg" that is actually an application with its ".app" extension missing. Give it a .jpg icon and people will double click it when found in the mail or sent over iChat... I've created a proof-of-concept for this if anyone is interested.

      We need a better way to tell what are applicatiojns and what are not.

      Even a warning every FIIRST time one starts any (non-Apple) application would be nice.

      I've sent this to Apple's suggestion box but would actually like to send it as a security bug but can't find out where to send it.

      Maybe it's just my paranoia...

    39. Re:Mac OS X Security Challenge by morgan_greywolf · · Score: 1

      So it's a two-step process, and a privilege escalation is step 2. Step 1 is still lacking, Oh, no doubt. It's less severe than a directly exploitable root hole, but people who think it doesn't matter are seriously mistaken. As to whether or not Step 1 is lacking, that depends on 1) what software is running on a box in question, 2) what services that box is and 3) the proper security precautions being taken by the sysadmin.

    40. Re:Mac OS X Security Challenge by Cheapy · · Score: 1

      And apparently he acted without permission.

      I wonder what will happen to him.

      --
      Would you kindly mod me +1 insightful?
  4. Re: first thought... by fshalor · · Score: 0

    "Let the flood of *I challenge you to hack me* ip posts begin...

    You can start with this one: XX.XX.XXX.XXX.

    (Man... I just didn't have the heart to post it. :( )

    --
    -=fshalor ::this post not spellchecked. move along::
  5. considering by minus_273 · · Score: 1

    how many local privilege elevation exploits exist, why am I not surprised. They should have mentioned it was NOT a remote exploit

    --
    The war with islam is a war on the beast
    The war on terror is a war for peace
    1. Re:considering by Anonymous Coward · · Score: 0

      They should have mentioned it was NOT a remote exploit

      How can you be so sure? From TFA:

      According to gwerdna, the hacked Mac could have been better protected, but it would not have stopped him because he exploited a vulnerability that has not yet been made public or patched by Apple.

      Also from TFA, it doesn't sound like having SSH turned on had anything to do with getting rooted. gwerdna says it would not have mattered, given the exploits he was using.

    2. Re:considering by minus_273 · · Score: 2, Informative

      go look at the original page where the challenge is posted. TFA is just that a FA. It was written by some idiot who didnt read the actual challenge and wrote an article trying to be as ambigious as possible. It was 6 hours and not 30 minutes as the article calims (though, with a shell i've gotten root in a couple of minutes on some macs)

        people set up ssh accounts on the machine and they were supposed to rm -rf the thing and no one has.

      if you look on the page people can remotely add accounts to the server in order to get shell access VIA THE FUCKING WEB PAGE

      --
      The war with islam is a war on the beast
      The war on terror is a war for peace
    3. Re:considering by Anonymous Coward · · Score: 0

      it was rooted 6 hours after the contest began, but the winner rooted it in 30 minutes (ie, he started 5.5 hours into the contest).

  6. I challenge you to hack me! by Demon-Xanth · · Score: 2, Funny

    My IP is 127.0.0.1. :)

    --
    If you think education is expensive, you should try ignorance -- Derek Bok, president of Harvard
    1. Re:I challenge you to hack me! by byolinux · · Score: 1

      That's my IP you insensitive clod! I'm going DMCA on you.

  7. Re: first thought... by opwierde · · Score: 1, Funny

    Oke, I'm game. This OS X has every port open, no firewall so go ahead! 81.68.209.58 aka kilburn.nl

  8. Lord, save us from morons by AKAImBatman · · Score: 4, Insightful

    What was this fool trying to prove? He allowed direct SSH access to the machine! Of course someone is going to hack it! Once you're inside the system, it becomes incredibly easy to find configuration mistakes, and exploit holes in priviledged programs. Remember, this system runs much of the same software as Linux and FreeBSD. Much of that software hasn't been properly audited and locked down. Why? Because this is a desktop machine.

    Mac OS X security primarily stems from not doing anything stupid by default. Which means that there are no remote services enabled, the system tries to be intelligent about handling executable files (like most Unixes), and super-user functionality is handled by Sudo. But that's not a bullet-proof vest. There's nothing in the system that makes it automagically secure against all attacks. So if you want security, don't turn on those remote services, and don't give out SSH accounts!

    1. Re:Lord, save us from morons by AKAImBatman · · Score: 2, Informative

      BTW, in case I wasn't clear enough above, his automated webpage to create SSH accounts is here. That will allow you to remotely login to his machine within minutes of entering your information. (Assuming he hasn't disabled it by now.)

      The guy should feel thankful that the hacker (gwerdna) was nice enough to only deface his site rather than actually "rm -rf /" his box. (Which was what this guy was asking people to do, "if they can".) :-/

    2. Re:Lord, save us from morons by Bogtha · · Score: 3, Insightful

      Mac OS X security primarily stems from not doing anything stupid by default.

      And, apparently, the assumption that you trust all of your local users. So what if most people use Macs for desktops? Plenty of people use them for servers as well, and apparently OS X isn't secure by default for them.

      Even in the desktop case alone, you can't seriously consider denying local access to be enough as far as security is concerned. Decent security has multiple levels, and this is a case where one of those levels has failed in a very public way. Spinning it as "oh, but he shouldn't have done that" ignores that failure.

      --
      Bogtha Bogtha Bogtha
    3. Re:Lord, save us from morons by fireboy1919 · · Score: 1

      You seem to take it as self-evident that there should be ways to escalate privileges, and that this is to be expected. This is most of the problem that causes nightmares for Windows users, and its not supposed to be a problem for OSX or any other form of Unix.

      If I bought OSX, I'd do it so that I could have a server, and maybe give things out to other people. If all it takes is one remote exploit (such as, for instance, giving out ssh accounts) to allow any manner of local exploit, then its not secure! Security has to happen at every level. The escalation of priveleges is supposed to be one of the most highly protected things. There shouldn't be any programs running in privileged mode that haven't been audited, period.

      Sure, it's going to hurt Apple's rep. But it looks like they deserve it, if separation of privileges is that bad.

      --
      Mod me down and I will become more powerful than you can possibly imagine!
    4. Re:Lord, save us from morons by prockcore · · Score: 1

      So if you want security, don't turn on those remote services, and don't give out SSH accounts!

      Funny. Sourceforge gives out SSH accounts to anyone and their dog.

      The whole *point* of unix permissions is to allow local users a shell account without worrying about your webtree etc.

      OSX is not fit to be a server.. that's about the long and short of it.

    5. Re:Lord, save us from morons by AKAImBatman · · Score: 4, Insightful

      Like all systems, tradeoffs have to be made. I'm sitting next to a Sun Solaris system with JDS on it right now. To get the system running like I want it, I constantly have to resort to the root account to install the simplest of software. (Replace root access with sudo as you prefer.) I have to do this because it is a locked down machine intended to run software packages approved by management. Under this configuration, it's pretty hard to gain root access even with a local account.

      This configuration absolutely sucks for a home user.

      A home user can't install new software without providing a root (or sudo) password everytime they want to try a software package, they can't update the system configuration from the GUI, they can't start and stop their personal webserver, they can't look at the drive space remaining without having to decode a complex partitioning scheme, they can't do a lot of things that Mac OS X lets them do without interfereing. If Mac OS X *did* restrict these activities, users would balk at the user-unfriendliness and go back to Windows.

      So it comes back to a matter of design. It's easy to say, "that should have been secure!", but the costs of making that secure would have been too high for the average home user. Mac OS X's security has been proven to date to be sufficient for what it was designed to do, and has been shown to be at least as secure (perhaps moreso) than your average FreeBSD or Linux desktop. Show me the beef of the problem (i.e. everyday machines being compromised on a scale similar to Windows) and I'll agree with you that Mac OS X is insecure for its intended purpose. Until then, however, I'm going to go with the fact that this guy wasn't thinking straight.

      Plenty of people use them for servers as well

      Which is why Apple produces OS X Sever Edition.

      and apparently OS X isn't secure by default for them.

      You show me a server situation that involves hundreds of anonymous, remote logins to a system without any lockdown of the services to move it from a home server to a full-blown webserver, and I'll agree with you. I, personally, can't think of such a situation. Some webhosts provide SSH access, but they certainly don't run a default Linux or FreeBSD installation unless that distribution has been preconfigured for the security they need.

    6. Re:Lord, save us from morons by filterban · · Score: 1

      I disagree. This kind of flaw could have happened on any OS, not just Mac OS X.

      --
      rm -rf /
    7. Re:Lord, save us from morons by dgatwood · · Score: 1
      It allows you to enter an arbitrary username. Anybody want to bet the username chosen was root or toor?

      --

      Check out my sci-fi/humor trilogy at PatriotsBooks.

    8. Re:Lord, save us from morons by AKAImBatman · · Score: 4, Informative

      Funny. Sourceforge gives out SSH accounts to anyone and their dog.

      Indeed. And every once in a while, Sourceforge gets hacked. And they have a trained staff of admins who attempt to very carefully lock down the systems and separate the user logins from the systems that run web services and code repositories. (Which is why you can't blow away your own code tree. You have to ask SF to do it.)

      The only thing that's funny here (which isn't even funny) is that an inexperienced admin made his box 100% public without taking the standard precautions that every admin worth his salt would take. He blindly trusted that his Mac would be configured to do something it wasn't designed for, and he got burned. Well, DUH. I had a friend who's RedHat Linux box was remotely rooted several times without the attacker being given a shell account. Does that mean that Linux sucks at security?

    9. Re:Lord, save us from morons by pboulang · · Score: 1

      Sourceforge is also not really a target. And you have not idea if they have been rooted or not. OpenBSD/Linux/Windows/[insert just about every OS EVER] has had escalation vulnerabilities, do you think it is not fit to be a server also?

      --

      This comment is guaranteed*

      *not guaranteed

    10. Re:Lord, save us from morons by Scarblac · · Score: 1

      What was this fool trying to prove? He allowed direct SSH access to the machine! Of course someone is going to hack it!

      Nothing natural about it. Most remotely accessible stuff (like web servers) runs as a non privileged user. That means that someone who hacks into your web server cannot do anything serious... unless there is also a root exploit! It's the other half of breaking in.

      Once upon a time, someone sniffed one of my users' passwords (it was just a student's box on a student network, with some friends that had accounts), when that user was using POP3 to collect his email. He logged in, used an exploit for vixie cron, and had root! Yes, I did learn from that...

      --
      I believe posters are recognized by their sig. So I made one.
    11. Re:Lord, save us from morons by farble1670 · · Score: 1

      Show me the beef of the problem (i.e. everyday machines being compromised on a scale similar to Windows) and I'll agree with you that Mac OS X is insecure for its intended purpose. Until then, however, I'm going to go with the fact that this guy wasn't thinking straight.

      so, it seems to me, the level of hacking on a platform is exponentially related to the rate of return on that hacking. say i can spend a week (h|cr)acking either windows or os x. however, if i hack windows, i can infect 1,000,000 systems, but i can only inject 1,000 os x boxes. if i'm a hacker w/ a goal, it's a no-brainer decision as to where i concentrate my efforts.

      of course, this does not prove that os x is insecure, but the i would certainly say that the lack of problems so-far on os x doesn't prove that it is.

    12. Re:Lord, save us from morons by Coryoth · · Score: 1

      So if you want security, don't turn on those remote services, and don't give out SSH accounts!

      SELinux people have run security competitions similar to the one described here where they not only gave out SSH accounts to everyone, they gave out SSH access as root. Despite this the webpages were unable to be defaced, and the box remained quite safe. Good security is possible, and pretending that it isn't only makes it harder for systems with good security to get traction. Is SELinux perfect? No, nothing is perfectly secure. Does it provide an order of magnitude better security? Pretty much, yes.

      Jedidiah.

    13. Re:Lord, save us from morons by Anm · · Score: 1

      A home user can't install new software without providing a root (or sudo) password everytime they want to try a software package

      You mean just like OS X's default configuration.

      they can't update the system configuration from the GUI, they can't start and stop their personal webserver

      Well, Apple does allow this for ~95% of the desired configurations, but expect that silly password prompt comes up in the GUIs, just lke the terminal configurations. The quality of the GUI software has nothing to do with the ability of the system to be secured. It definitely takes a larger investment by the OS developers, and Apple has shown a willingness to begin down that path (given teh nature of the article, its obvious there is more to do).

      Regarding web server configuration, a user could probably get a PHP based webserver up and running without opening terminal. And yes, that includes starting and stopping it via a GUI, with a prompt for the admin's password.

      they can't look at the drive space remaining without having to decode a complex partitioning scheme

      I'm not sure about whether Apple's current offering supports this, but there is nothing technically limiting about this issue. Any good app can find the relations between physical and logic drives. It is just a sign of bad software not written with the user in mind. Apple has a tendency to do this from the start.

      they can't do a lot of things that Mac OS X lets them do without interfereing. If Mac OS X *did* restrict these activities, users would balk at the user-unfriendliness and go back to Windows.

      I get the distinct impression you've never worked on Mac OS X system. As someone who obviously works with Unix regularly, I would highly recommend it. You'd be surprised how much good software can get out of your way. Find a old Mac mini on ebay or something and make a habbit of using it for a week or two. Just because Sun has failed doesn't make the prospect of good user oriented Unix software impossible.

      Anm

    14. Re:Lord, save us from morons by AKAImBatman · · Score: 1

      You mean just like OS X's default configuration.

      Step 1: Drag the Application out of the DMG.
      Step 2: There is no Step 2.

      OS X is NOT locked down from installing application packages. On Solaris, it works like this:

      Step 1: Download package.
      Step 2: Ungzip package.
      Step 3: SU to root.
      Step 4: Run 'pkgadd -d [name of package]'
      Step 5: Run through a variety of screens asking "Are you sure?"
      Step 6: (Optionally) If you're changing anything system related, you again provide the root password.

      The rest of your points, you've pretty much agreed with me. Whether or not there are other ways of getting around the security lockdowns in a user-friendly matter is mostly irrelevant. OS X chose the security model that worked for it, and it does work. It just isn't designed to completely secure against a local user abusing unknown security holes out of the box. Perhaps Server is, but that's a completely different issue. Either system should be configurable to a lockdown state, but the result might impede its desktop functionality.

      I get the distinct impression you've never worked on Mac OS X system.

      You've got the wrong distinct impression. You can have my iBook when you pry it from my cold, dead fingers. :-P

    15. Re:Lord, save us from morons by Lost+Race · · Score: 1

      Calling him "moron" and "fool" is harsh and unwarranted. His experiment succeeded -- demonstrating security weaknesses in OSX -- and all it cost him was the time to zero the HDD and restore from backup. I certainly wouldn't shed a tear if my Mac got trashed. Maybe you're way too attached to yours?

    16. Re:Lord, save us from morons by Arandir · · Score: 1

      You've got the Solaris install mechanism all wrong. I install software on my Solaris workstation all the time without having root access:

      Step 1: download source package
      Step 2: gunzip package
      Step 3: ./configure --prefix=~/apps
      Step 4: make
      Step 5: make install

      You can even do this with most binary packages. To make a long story short, Solaris users can install to their home directories, just like OSX users can.

      --
      A Government Is a Body of People, Usually Notably Ungoverned
    17. Re:Lord, save us from morons by AKAImBatman · · Score: 1

      You go ahead and explain that procedure to Grandma. I'll wait here and offer good karma support. (Ouch! I never knew Grandma could whip something that hard!) :-P

    18. Re:Lord, save us from morons by Arandir · · Score: 1

      Explain to your Grandma about *YOUR* Solaris install procedure! You said that non-admin Solaris users does not install software, yet I just showed how it was done. And it was one step easier than *YOUR* Solaris installation procedure.

      Unless you have a complete lack of short term memory, there's no excuse for you not remembering your own posts. Sheesh.

      --
      A Government Is a Body of People, Usually Notably Ungoverned
    19. Re:Lord, save us from morons by AKAImBatman · · Score: 1

      My point was that installing software on OS X is intended to be easy for the average user. You drag the app out, and you're done. Installing software on more secure Unix boxes is always more difficult because of the lockdowns in place. There are very few applications you can get as a single file, installers will usually fail without root privleges, and even software you install in your home directory will lack desktop icons. Sure, you can manually install such icons, but that's not exactly easy for the average user.

      Thus:

      OS X == lower local security == easy
      Solaris == higher local security == hard

      Both are good in there respective areas. In general, I'd far more trust a default Solaris box to stay secure when there are attackers with shell account than I would trust a default OS X box. Yet I prefer OS X on my laptop because it makes the everyday tasks easy for a desktop user without having to worry about all that extra multi-user security.

      So sorry to send you off on a tangent. :-)

    20. Re:Lord, save us from morons by yabos · · Score: 1

      You're forgetting about programs that require the Installer application. Usually you will have to provide your password to install these types of apps because they'll be modifying something other than /Applications and ~/Library/Preferences

    21. Re:Lord, save us from morons by AKAImBatman · · Score: 1

      I'm not forgetting. I'm merely pointing out that those are the exception rather than the rule. The rule is that software can be installed on Macs without root priviledges. The exception is that something needs to modify root-accessable files. On most Unixes it's the other way around.

    22. Re:Lord, save us from morons by prockcore · · Score: 1


      Indeed. And every once in a while, Sourceforge gets hacked.


      Every once in a while? Last hack was 2001, and it wasn't even a local root exploit.. someone had stolen an administrator password *elsewhere*.

    23. Re:Lord, save us from morons by Hosiah · · Score: 1
      You've got the Solaris install mechanism all wrong.

      Let me introduce you to our friend Mr. Batman. This guy glanced at a computer screen once back in 1994, learned everything in the world about computers in that minute, and ever since then time has frozen, and you can't tell him a damn thing. I've tried.

  9. Silly by entrex · · Score: 0

    This contest would be much more relevant if the machine was remotely exploited. Few OSs in their default configuration would be able to stand up to an attacker with local access.

    / waits for *OMG NOT JOO NEWB

    --
    To a nail, every person with a hammer looks like a problem.
  10. The only way.. by PeterSomnium · · Score: 1, Funny

    To fully protect a Windows/Linux/BSD/OS X box, is to plug out the network-cable
    But since that's not worth much, I suppose you can say a total secure box, isn't something from the near future.

    --
    I rm -rf /*, therefore I am?
    1. Re:The only way.. by ArcherB · · Score: 2, Insightful

      To fully protect a Windows/Linux/BSD/OS X box, is to plug out the network-cable

      You forgot to lock the door and remove the keyboard, mouse and monitor.

      --
      There is no "I disagree" mod for a reason. Flamebait, Troll, and Overrated are not substitutes.
    2. Re:The only way.. by PeterSomnium · · Score: 1

      You're totally right about that, and I also forgot to mention to switch of the power, and while ur at it, make yourself a cup of coffee!

      --
      I rm -rf /*, therefore I am?
    3. Re:The only way.. by Eccles · · Score: 1

      You're missing the vital step of embedding it in cement and dumping it in an active volcano.

      --
      Ooh, a sarcasm detector. Oh, that's a real useful invention.
    4. Re:The only way.. by PeterSomnium · · Score: 1

      You people are great! What would I do without you? * :~# connection to host closed *

      --
      I rm -rf /*, therefore I am?
    5. Re:The only way.. by gregeth · · Score: 1

      Oh, and wipe the hard drive. :)

    6. Re:The only way.. by Senzei · · Score: 1

      I would say the best way to secure it is to induce TCF but then again it really is not worth much after that.

      --
      Slashdot: Where anecdotes and generalizations can be freely substituted for facts, logic, or intelligence
    7. Re:The only way.. by Zebra_X · · Score: 1

      Or you might just format the hard drive and install OpenBSD.

  11. Security in small numbers by Opportunist · · Score: 2, Interesting

    Don't feel lonely, Mac-geeks, you're in the very good company of Linux users. The benefit of your security: You're uninteresting.

    Since "hacking" and all the other activities that end in "-ing" and often start with a "ph" are no longer fun pastimes for geeks but actually became a hunting ground for very money oriented very well organized criminal organisations, security is in small numbers: An attack has to hit as many targets as possible. Maximize your output. And, well, if there are potentially 100 Linux boxes out there with a blatant security hole or 10.000 boxes running Windows with an obscure and hard to exploit hole, the latter will be chosen.

    Not (only) because the respective users usually also employ a very different attitude towards security and because they usually have very different levels of understanding concerning the abilities and liabilities of their machines. But simply because you can hit more targets with your attack.

    Plain and simple as that.

    You can run the most insecure, most open system you want, as long as you're the only one using it you're safe. Unless hacking you alone already warrants the cost associated with it.

    Yes, hacking has become a matter of cost/benefit calculation.

    --
    We used to have a Bill of Rights. Now, with the rights gone, all we have left is the bill.
    1. Re:Security in small numbers by falkryn · · Score: 1

      except for the fact that the really "interesting" boxes out there for crackers are (most?)often linux/solaris/*nix boxes. it ain't grandma jones' windows 95 compie that she plays solitaire on, it's that sunfire running oracle with the employee payroll database they'll be after.

    2. Re:Security in small numbers by lukewarmfusion · · Score: 1

      "...as long as you're the only one using it you're safe..."

      Or if you have information that someone else wants. Or you've made enemies with someone who wants to cause you harm. Or if your system has common vulnerabilities that might be exploited by bots, viruses, or worms. Or...

    3. Re:Security in small numbers by Anonymous Coward · · Score: 1, Funny

      Yeah, it's not like most of the Internet is running on Linux and Unix... oh wait...

    4. Re:Security in small numbers by Anonymous Coward · · Score: 0

      although this has been modded as troll, it has a very valid point, i just think the zealots are offended. linux and Macs are relatively few and far between, . picture it in terms of bank robbing on a street full of banks...you have time to learn how to compromise one and than do your business on however many banks of that kind are on the street. now on this street there are 50 banks, 45 are all one kind, 5 are the bank of Mac, bank of Linux, bank of bsd, etc. now why would you even bother with the banks of Mac or Linux here, there is no profit, even if you are successful you have just wasted your time and lost. the people out to find exploits in linux and mac are mostly hobbyists, the majority of people out to do something bad are going to look at Windows because of its widespread acceptance.

      that's, of course, not the only reason, but it is one of the main reasons.

      people say windows is security through obscurity, but Mac has security through why bother.

      disclaimer: i am a linux desktop user and i am looking forward to getting a Mac

    5. Re:Security in small numbers by Opportunist · · Score: 1

      Common vulnerabilities are exactly what you won't have if you don't have anything in common with other systems. :)

      --
      We used to have a Bill of Rights. Now, with the rights gone, all we have left is the bill.
    6. Re:Security in small numbers by Anonymous Coward · · Score: 0

      not when botnets are worth money

  12. fanboy by Anonymous Coward · · Score: 0

    If it were windows, you'd not have seen this as an issue. Plus he was talking about default stuff. Windows is safe if you patch your system, leave the firewall on, and yeah and don't web browse ;).
    Btw, Windows hasn't had a network based remote exploit since SP2 came out. That is, to get compromised you must either visit a malicious website or view an email that contains malicious code (Mac OS was vulnerable to this too until they patched it a couple weeks ago).

  13. Confused About Their Motives by RichDiesal · · Score: 3, Insightful

    I'm not really sure why this competition happened in the first place. If you were a Mac OS X enthusiast wanting to show the "amazing" security of your OS, why would you leave the first major door wide open?

    And who gains from this publicity? It would seem like sponsoring a hacking competition that took MORE than 30 minutes (seemingly the goal of such an event) would be good for Apple, but then why leave the system more vulnerable at the start of the contest? And if it was really sponsored by an anti-Apple group posing as an pro-Apple group, why have the hacker claim that Macs are essentially "small pickin's"?

    It just doesn't make sense...

    1. Re:Confused About Their Motives by Anonymous Coward · · Score: 0

      I'm guessing an anti-Mac group.

      If I were a manufacturer of a certain brand of chair, I sure as heck would make a contest to see how sturdy my competitor's chair is made and then make sure it is broken within 30 minutes... like sending one to Steve Ballmer.

  14. http://rm-my-mac.wideopenbsd.org by Anonymous Coward · · Score: 0

    The contest mentioned in the article is available here http://rm-my-mac.wideopenbsd.org.nyud.net:8080/

  15. If you want a secure computer... by kidjan · · Score: 2, Interesting

    ...consider disconnecting your Internet connection. Duh.

    The only trend to security is that there isn't any financial motivation to hack small-potatoes.

    1. Re:If you want a secure computer... by Yahweh+Doesn't+Exist · · Score: 1

      >...consider disconnecting your Internet connection. Duh.

      you don't understand why the Mac got hacked. even disconnecting the internet does not help if you're giving people accounts on your machine, it just means only people in the same room as you can take part in the competition instead of anyone else on the internet.

      if you want a secure computer without learning how to be a linux admin, then just buy a Mac and don't go out of your way to have it hacked.

    2. Re:If you want a secure computer... by kidjan · · Score: 1

      Any computer can be hacked if you have physical access to it, so your point is a non-starter. We're talking about hacking things over the Internet.

      Like the article said, Macs are secure only because they don't have enough market penetration to make exploiting them worthwhile (i.e.: they are the small-potatoe).

      So, if your argument is that a mac is more secure because Internet predators are less likely to target your platform, great--I agree with you. If your argument is that the programmers Mac hires are somehow leaps and bounds more perfect than the ones Microsoft hires, then I'm calling BS. FF, and now OSX, are both clearly illustrating the principle that security exploits arrive as a given piece of software has greater market penetration.

    3. Re:If you want a secure computer... by Yahweh+Doesn't+Exist · · Score: 1

      my point is not a non-starter, as being given an ssh account on the machine only differs from actual physical access in that you can't modify the hardware.

  16. local account = assumed root access by acomj · · Score: 4, Interesting

    This was a while ago, but when you give a user a local account, its almost assumed that if they really wanted to they could get root. You should take care when giving out accounts.

    It like giving physical access to a machine. If you give physical access to any linux machine, its not hard to log onto it. (this is why you lock up the machines!)

    1. Re:local account = assumed root access by Anonymous Coward · · Score: 0

      I remeber back in the day (94-95?) my isp required that you login to the shell and type 'ppp' to begin a session. So instead of typing 'ppp', I went exploring.

      It was my first linux box (I had a UNIX text to get me around) so I went looking around for interesting stuff and I found /etc/passwd unshadowed.

      CrackerJack/John was my new best friend at the time (that and huge text files, mostly porn :D) so I built a wordlist and went to it. I cracked the root password in my first pass. You'll never guess.

      'windows'

      I mean, come on. You deserve to get hacked with a root password like that.

      I never did anything malicious to that machine, but I do recognize, even with shadowed passwords, that somebody with local access easily could.

  17. Parent is a troll. by Anonymous Coward · · Score: 1, Informative
    SSH (secure shell) is one of the services that's relatively OK to keep on.


    What's interesting in this case (and different from real world servers) is that they gave SSH login accounts to the people testing the system.


    The idea was to test that even *if* someone had all the access that SSH allows, how easy it would be to get further.


    (my guess is that the parent is a msft troll trying to suggest that windows terminal services is safer than ssh because ssh was enabled here)

    1. Re:Parent is a troll. by Bert64 · · Score: 1

      Well, when doing a security audit, RDP (terminal services) is considered an issue, whereas SSH is not (unless it happens to be an old version of SSH with known flaws)

      Reasons:

      RDP doesn't do host authentication (whereas SSH checks host keys, so you can tell if there's an imposter host or a man in the middle attack)
      RDP advertises the OS, hostname and potentially a domain name to any connecting client BEFORE authentication takes place

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    2. Re:Parent is a troll. by Kadin2048 · · Score: 1

      I think the protocol here is really not the issue, it's that he was giving away logins.

      He could have had telnet access turned on and it wouldn't have made it any more or less secure, since he was giving shell accounts to all comers.

      What happened after that was straightforward privilege escalation. Non-root user became root; although how this was accomplished wasn't specified, although some fairly grandiose claims about unpublished vulnerabilities were made.

      --
      "Ladies and gentlemen, my killbot features Lotus Notes and a machine gun. It is the finest available."
  18. local SSH is probably more common than we think by fermion · · Score: 1
    much ado about nothing, in practical terms. The security contest also allowed people to have local access via SSH, so that had a lot to do with the crack.

    Didn't we just have a discussion over how people leave their wireless AP open for anyone to use? I don't think the SSH agent is on by default, and I think that the firewall blocks it by default, but that doesn't mean this is always the case. Given the reality of modern setups, where cable modems and wireless gives untrusted parties direct acess to the computer, I hardly see this hack as having no practical implications.

    Of couse such contents are of no practical use. Either they end with the machine hacked, which is simply to be expected, or they end with the machine not hacked, which proves nothing.

    --
    "She's a scientist and a lesbian. She's not going to let it slide." Orphan Black
    1. Re:local SSH is probably more common than we think by Helios1182 · · Score: 1
      Being on a cable modem puts your machine on the same network as others, but it does not give them an account on your machine. This hack would be no different than the person sitting down in front of the actual mini and logging in there. He already had some permissions on the machine and used a local exploit.

      It would be like asking the Pentagon for a username on their server, because hey, it isn't root, you can't do any damage. No admin in their right mind would do it.

    2. Re:local SSH is probably more common than we think by Freexe · · Score: 1

      To run a business sometimes you have to give out access to your machine

      --
      "In a time of universal deceit - telling the truth is a revolutionary act." - George Orwell
    3. Re:local SSH is probably more common than we think by javaxman · · Score: 1
      Didn't we just have a discussion over how people leave their wireless AP open for anyone to use? I don't think the SSH agent is on by default, and I think that the firewall blocks it by default, but that doesn't mean this is always the case. Given the reality of modern setups, where cable modems and wireless gives untrusted parties direct acess to the computer, I hardly see this hack as having no practical implications.

      While I agree that there are serious implications of OS X client software having privilege escalation vunerabilities, and while people may enable SSH, there are a couple of things we ( hopefully ) don't do which were done here, and, IMHO, greatly reduce the meaningful nature of this event.

      1) I don't give untrusted individuals SSH accounts. This guy had set up a form that gave an SSH account to anyone who wants one. Are you ( or your IT guy ) going to set up SSH access for "guest/anonymous" ?

      2) when I do enable SSH access, I read up on SSH vunerabilities and enable only encrypted-key access, not password access. This is probably a less-well-exercised bit of caution, but not having SSH access for -everyone- and requiring encrypted key authentication for the others will leave you pretty safe 'in the real world'.

      What *is* of real concern and what everyone *should* be talking about is the fact ( revealed by this contest ) that there are privilege escalation attacks known to hackers but ( supposedly ) unknown to Apple and ( ouch ) unknown by your IT staff. That's bad news... and I do want this same contest on a machine *without* SSH accounts given to every luser who wants to break into it, that would *definitely* be more interesting from my point of view. I figure if you have an account on a machine, you'll find a way to get the file you want. My goal in setting up remote access to my machine is to not let you have that account unless I want you to have it...

    4. Re:local SSH is probably more common than we think by Helios1182 · · Score: 1

      Good point. In those cases local exploits would be a real problem. I would also assume that there are some heavy restrictions on what users can run. On OS X all users by default have the ability to run & install anything so long as it doesn't modify a system file/setting, which requires the root password.

  19. Stock Mac OS has never once had remote exploit! by Anonymous Coward · · Score: 2, Informative

    This "30 min" contest was for people with an actual SSH account given to them for a LOCAL exploit, so its not a remote exploit, it also is not the most secure version of the Mac OS, but for SERVERS, nothing is as secure as MacOS.

    Despite many high profile web sites and servers using OS9 for many years, not one database entry in the large BugTraq database documents a remote exploit for standard Mac OS in the history of the internet, even whith a common web server running on it.

    Even the US Army used macs exclusively (mostly MacOS 9 until recently) after being rooted rouitinly using unix and MS Windows NT. For many many years www.army.mil has been run on macintoshes exclusively.

    The same is true of many colleges that were rooted and defaced too often on Linux. They installed WebStar and OS 9 and never had to worry again.

    http://uptime.netcraft.com/up/graph/?host=www.army .mil

    http://www.google.com/search?q=army+webstar+"os-9"

    Check it out yourself. This entire post is full of factual citations and 100% facts.

    No mac in the history of the internet hosting a web server has ever been rooted or defaced remotely.

    Why?

    Because not one version of Mac OS has ever had a single exploitable hole ever discovered. (classic mac os now up to version 9.2.2 on currenlty sold g4 towers). OpenBSD has had no less than 5 holes (not one) in the default install in the last two years. Mac OS has had ZERO in over 8 years, even when paired up with its preferred web server app.

    In fact in the entire SecurityFocus (BugTraq) database history there has never been a Mac exploited over the internet remotely. Scan it yourself.

    That is why the US Army gave up on MS IIS and got a Mac for a web serve. Currently it is a honeypot for OSX testing, and US Army use regular Mac OS on other internal servers

    This post is not talking about FreeBSD derived MacOS X (which already had a more than a 50 exploits and potential exploits in BugTraq database, and in the news yesterday with Symantec claiming in March 2005 of OSX having remote exploits) I am talking about current Mac OS 9.x and earlier which are highly sophisticated abstract-OS models.

    Why is is hack proof? These reasons :

    1> No command shell. No shell means no way to hook or intercept the flow of control with many various shell oriented tricks found in Unix or NT. Apple uses an object model for process to process communication that is heavily typed and "pipe-less"

    2> No Root user. All mac developers know their code is always running at root. Nothing is higher (except undocumented microkernel stuff where you pass Gary Davidian's birthday into certain registers and make a special call). By always being root there is no false sense of security, and programming is done carefully.

    3> Pascal strings. ANSI C Strings are the number one way people exploit Linux and Wintel boxes. The mac avoids C strings historically in most of all of its OS. In fact even its roms originally used Pascal strings. As you know pascal strings are faster than C (because they have the length delimiter in the front and do not have to endlessly hunt for NULL), but the side effect is less buffer exploits. Individual 3rd party products may use C stings and bind to ANSI libraries, but many do not. In case you are not aware of what a "pascal string" is, it usually has no null byte terminator. Additionally certain types of compilers can check range on assignments to prevent out of bounds. Furthermore many good programmers ensure that the bounds are not overwritten.

    4> Macs running Webstar have ability to only run CGI placed in correct directory location and correctly file "typed" (not mere file name extension). File types on Macs are not easily settable by users, expecially remotely. Apache as you know has had many problems in earlier years preventing wayward

    1. Re:Stock Mac OS has never once had remote exploit! by Anonymous Coward · · Score: 1, Funny

      Dude, 1999 called. They want their rant back.

      And their Mac OS.

      Sheesh.

    2. Re:Stock Mac OS has never once had remote exploit! by ickypick · · Score: 1

      Is that you Mr. Jobs? But seriously, I have no problem with Macs. In fact I think Apple has done well with the OS. Also, leaving the key under the mat, as this evaluation was, is not a true measure of security. However, OpenBSD has had only one remote hole in over 8 years with the default install; an "install only what you need" installation would have zero. Macs have not been the targets of attacks because the percentage of Macs being used historically as Internet facing servers was much lower than any other OS. In fact, nobody really looked at Mac security in the past. Now that OSX is becoming more prevalent on the Internet, you will start to see, and already are, more attacks and scrutiny on this platform. Post just like yours and Mac users boasting how secure the OS is, may be just the invitation some "leets" were waiting for. I think it is good to expose security holes in an OS. You can't fix it if you don't know its broken. Better to have "friendlys" find the exploits.

    3. Re:Stock Mac OS has never once had remote exploit! by slothjammin · · Score: 1

      Dell called, and they want their pot smoking actor back.

      --
      Squidward: "Spongebob, If I had a dollar for every brain you don't have, I'd have 1 dollar."
    4. Re:Stock Mac OS has never once had remote exploit! by Anonymous Coward · · Score: 0

      WOW! I mean, from the title of the article alone, I was expecting some fanboy FUD, but, Jesus, I never expected anything quite this bad. The people who would listen to my rebuttal don't need me to say it, so I'll leave it just at this ;)

    5. Re:Stock Mac OS has never once had remote exploit! by Anonymous Coward · · Score: 0

      Name one Mac OS 9 remote exploit? You cannot.

      Name one remotely exploited Mac Web Server running Mac OS in history. (not unix based Mac OSX... standard Mac OS). You cannot.

      What do you want to rebut? I never claimed OSX was secure... in fact numberous explits have been documented in OSX, typically after patches were out.. but still the exploits for OSX existed.

      I'd listen to your rebuttal if you knew anything... but the fact that you did not offer a rebuttal is becasue you cannot. The post is 100% factual and informative.

      The title is correct. Stock Mac OS has never once had remote exploit!

      Its the only secure OS in the massive BugTraq database of exploits. My post cited engineering reasons for this situation.

    6. Re:Stock Mac OS has never once had remote exploit! by goMac2500 · · Score: 1

      Huh? You can only run code at root level when you use the authentication classes in the security framework. Your code, by default, does not run at root level. I don't know what compelled you to say such an awful thing. If it were true, the security framework and the authentication classes would be awful redundant, wouldn't they?

    7. Re:Stock Mac OS has never once had remote exploit! by goMac2500 · · Score: 1

      OH. You meant OS 9. : slaps self : Well that makes quite a bit more sense. :)

    8. Re:Stock Mac OS has never once had remote exploit! by IdahoEv · · Score: 2, Insightful

      So?

      You're describing an OS that hasn't been sold in 4-5 years, will not run on any currently-produced hardware, and because it is closed-source and nonstandard, cannot be easily used with the vast majority of modern server applications, languages, and tools being used these days.

      I have faithfully used the mac for 15 years and I agree there were some strong security benefits to the classic OS. At the same time, when I am working as an admin and/or developer these days I want recent versions of MySQL and PHP, and I want to be able to shell into my server remotely to be able to administrate it.

      If I just happened to have an ultra-security-required web application that didn't need much throughput or capability I might run it on OS 9 on an old G3. But that's definitely a tiny niche. Everything else I'll do with a modern mix of OS X and LAMP, thank you very much.

      --
      I stole this sig from someone cleverer than me.
    9. Re:Stock Mac OS has never once had remote exploit! by Anonymous Coward · · Score: 0

      Is that you Mr. Jobs?

      Dude, Jobs didn't like OS 9. "Is that you Mr. Woz?" would at least be reasonable.

  20. Here's one for you... by meringuoid · · Score: 0, Offtopic
    127.5.240.96

    Come and get it, kids...

    --
    Real Daleks don't climb stairs - they level the building.
  21. Don't proof anything by michelcultivo · · Score: 1

    This hacking contest don't proof anything to security, I saw that the user don't applied the recomended guidelines to secure a system. This contest will be more funny if it was with an OpenBSD system installed by default.

    1. Re:Don't proof anything by Anonymous Coward · · Score: 0

      And you don't proof you learned english either.

  22. RTFM guys... by d3ac0n · · Score: 2, Informative

    Before the Mac-o-philes here start getting all bent out of shape, perhaps reading the article in question would be a good start...

    Here's a salient quote:

    "The rm-my-mac challenge was setup similar to how you would have a Mac acting as a server -- with various remote services running and local access to users... There are various Mac OS X hardening guides out there that could have been used to harden the machine, however, it wouldn't have stopped the vulnerability I used to gain access.

    "There are only limited things you can do with unknown and unpublished vulnerabilities. One is to use additional hardening patches -- good examples for Linux are the PaX patch and the grsecurity patches. They provide numerous hardening options on the system, and implement non-executable memory, which prevent memory based corruption exploits," said gwerdna.

    Bad anagram for a name or not, the guy sounds like he knows what he is talking about. There is a link to another article as well that talks about Apple's lack of diligence on security issues. Here's a link:
    http://zdnet.com.au/news/security/soa/Ancient_flaw s_leave_OS_X_vulnerable_/0,2000061744,39234678,00. htm

    The point is that Security is everybody's business, and no company can afford to slack. Not even the lily-white Apple is immune.

    --
    Official Heretic from the "Church of Global Warming". Proven right thanks to whistle blowers. AGW = Flat Earth Theory
    1. Re:RTFM guys... by Urza9814 · · Score: 0

      See...to me...he sounded like a script kiddie.
      "Nothing they could've done would have stopped the 1337 xploits I used!!!1!1"

    2. Re:RTFM guys... by MBCook · · Score: 2, Insightful
      The rm-my-mac challenge was setup similar to how you would have a Mac acting as a server[...]

      Wrong. He was using OS X, not OS X Server. Running a little website behind a firewall is probably safe with OS X. Handing out shell accounts on a desktop os?

      From his site: It runs a default install of Mac OS X Tiger, plus fink and some decent versions of Apache, MySQL and PHP. Software Update recently updated it to Mac OS X 10.4.5 and fixed some security issues.

      Default install of Mac OS X Tiger.

      Apple has a server operating system. If you want to run your Mac as a server out on the internet, you should be running the server operating system, not one that is optimized for being a desktop.

      Think he could have done this as easily with a computer running a proper server OS? Ask MS about how easy it is to hack your internet server running XP Pro and they would probably tell you that you should be running 2003.

      Go ask Rackspace, CI Host, DreamHost, or anyone else if they would put up shared servers running XP Pro or OS X. My guess is they would all laugh at you. They would run 2003 or OS X Server.

      Macs aren't perfect. But in perspective, this guy had to hand out accounts to the computer. Compare that to Windows vulnerability that we have all seen where the computer can be hijacked while it is still booting. I'd say I still have the more secure OS, of the two.

      --
      Comment forecast: Bits of genius surrounded by a sea of mediocrity.
    3. Re:RTFM guys... by Overly+Critical+Guy · · Score: 1

      But he was handing out local accounts to anybody on request. Handing out local accounts over the Internet immediately disqualifies this as any sort of real-world security test. You can always find a hole if you leave the door open for anyone to come in!

      --
      "Sufferin' succotash."
    4. Re:RTFM guys... by Anonymous Coward · · Score: 0
      Compare that to Windows vulnerability that we have all seen where the computer can be hijacked while it is still booting.
      Hint: there's a 10 ~ 20 second window of opportunity while a Mac boots, network is up, firewall is down. Go for it.
    5. Re:RTFM guys... by prockcore · · Score: 1

      So you're saying that there are local root escalation bugs that only exist on OSX and not in OSX Server?

    6. Re:RTFM guys... by typical · · Score: 1

      Are you sure about that? On my Fedora box, iptables comes up *before* network, and I can't imagine that Apple would do anything different.

      Even if Apple managed to screw up on that, I don't believe that they'd be stupid enough to have their init process start up daemons before the firewall was running. So worst case you have nothing other than a non-responsive machine sitting there. Maybe you can get a ping or two back from it, but that's it.

      --
      Any program relying on (nontrivial) preemptive multithreading will be buggy.
    7. Re:RTFM guys... by typical · · Score: 1

      Handing out shell accounts on a desktop os?

      Yes, I expect a general purpose Unix box to have reasonable local security, regardless of whether or not it has a GUI running or not.

      --
      Any program relying on (nontrivial) preemptive multithreading will be buggy.
  23. RDF defeats all by Brunellus · · Score: 4, Funny

    I have a feeling that the Reality Distortion Field has already cancelled whatever negative effect this has had

  24. Doors unlocked, windows open by Dekortage · · Score: 5, Funny

    So SSH was on and accessible? Dumb move. Like saying "I dare you to steal my jewelry from my bedroom -- oh, and my house is unlocked with the windows open."

    But maybe people WANT something to be stolen. Many years ago, the garbagemen (sanitation workers) in NYC went on strike, and garbage was piling up in the streets. A relative of mine in Brooklyn still managed to get rid of his: he put it in big boxes, wrapped the boxes in gift paper with bows, and left them in his car with the doors unlocked. They always got stolen.

    How this applies to the story, I dunno, but I still think it's funny.

    --
    $nice = $webHosting + $domainNames + $sslCerts
    1. Re:Doors unlocked, windows open by Phanatic1a · · Score: 3, Insightful

      So SSH was on and accessible?

      My ISP, Panix, will gladly sell you a shell account. You can SSH into it, or telnet, if you don't care. And yet, they're not rooted every 30 minutes. Or, ever.

      If giving someone SSH access is 30 minutes away from giving them root, that's not secure.

    2. Re:Doors unlocked, windows open by Anonymous Coward · · Score: 1, Interesting

      Here's a different analogy. You like to entertain guests in your home, and since you don't trust all your guests 100% (new friends, children, etc.) you keep your jewelry locked in your bedroom, which should keep it safe from any potential thiefs ... it turns out that people were able to get into your bedroom by unlocking it with a paperclip. Upon notifying the lock manufacturer of this defect the manufacturer calls you 'dumb' for allowing guests into your home at all and advises you that the problem isn't the lock but that you stupidly allowed people into your home.

      As a side note, I am truly amazed by Apple's marketing abilities ... they sure do have 'loyal' consumers.

    3. Re:Doors unlocked, windows open by Anonymous Coward · · Score: 0

      Yeah, but... if the guy left on SSH, what else might he have left on that could've been a problem? (and I used to have a Panix account too, back when they were basically the only ISP in town)

    4. Re:Doors unlocked, windows open by shawnce · · Score: 1

      So SSH was on and accessible? Dumb move. Like saying "I dare you to steal my jewelry from my bedroom -- oh, and my house is unlocked with the windows open."

      No enabling ssh with very strong account passwords is not like leaving the windows open... it actually is rather secure if you are running current ssh (if not as secure as having ssh off).

      In the case of this contest they GAVE folks ssh logins so they could login as a local users. Having local user access IS like leaving the windows open.

    5. Re:Doors unlocked, windows open by Anonymous Coward · · Score: 0

      Ssh should allow you to give shell access to one person, and they should not be able to get access to the rest of the machine. The fact that it generally does not is a major flaw in Linux.

      The point of having differently named accounts is not just to keep track of files -- we have directories for that. If the current state of affairs was desired, we would have just a single root account on each linux server.

      There are good, useful reasons for this. For example, I used to have a number of servers set up to automatically scp their backups to various home based cable modem machines, or other servers at the company. I had separate special accounts for the backups to be stored in.

      Somone gained access via an ssh password sniffer. They gained access to a number of servers, and in every case they looked in ~/.ssh/known_hosts to find other places to connect to, and came to the backup servers. The backup servers varied from various Debians and Redhats, including a Redhat 4 Enterprise, and in every case the person immediately got root access after getting access as a user. (Needless to say, after a lot of re-installing and so one, I now cart around a bag full of USB drives for backups once a week.)

      In every case there was a very similar error message from su, after which the intruder had root access.

      There is no reason for this kind of crap. I don't know what's more disturbing, the fact that a single exploit seems to work on some many different distributions or the fact that so many otherwise competent Linux administrators take for granted that untrusted users have to be segregated by hardware.

      Needless to say, I won't be putting any sensitive information on any of the sites hosted by "cheapcheap.biz" anytime soon.

    6. Re:Doors unlocked, windows open by Coryoth · · Score: 3, Insightful

      So SSH was on and accessible? Dumb move. Like saying "I dare you to steal my jewelry from my bedroom -- oh, and my house is unlocked with the windows open."

      There have been SELinux security competitions that gave out SSH access as root and the boxes remained quite safe. There do exist standards of security which make your standards look remarkable poor and forgiving. Good security does exist, and pretending that it doesn't does not make you any more secure.

      Jediiah.

    7. Re:Doors unlocked, windows open by Skuld-Chan · · Score: 1

      Bad anaology. A server on the internet is like having a house that unlocks to a hallway with a set of doors with services you have access too - and inside those rooms are safes that contain things you cannot do inside that house without the right permissions.

      If you think about it - a web server is running on most machines on the net and are accessable - forging access through that isn't so much more different than doing through an open ssh account.

      Besides - I could give you or anyone on slashdot ssh access (or terminal server access to my windows servers) and pretty much garentee no-one is going to compromise the server.

    8. Re:Doors unlocked, windows open by Brad+Mace · · Score: 1

      Maybe you're not familiar with what SSH stands for?

    9. Re:Doors unlocked, windows open by krunk4ever · · Score: 1

      mod parent up! his analogy is more fitting.

    10. Re:Doors unlocked, windows open by krunk4ever · · Score: 1
      But maybe people WANT something to be stolen. Many years ago, the garbagemen (sanitation workers) in NYC went on strike, and garbage was piling up in the streets. A relative of mine in Brooklyn still managed to get rid of his: he put it in big boxes, wrapped the boxes in gift paper with bows, and left them in his car with the doors unlocked. They always got stolen.


      I'm actually curious how your friend managed to only have the gift boxes stolen and not have his car stolen, being that he was in Brooklyn, NYC and left his car doors unlocked.
    11. Re:Doors unlocked, windows open by typical · · Score: 1

      So SSH was on and accessible? Dumb move. Like saying "I dare you to steal my jewelry from my bedroom -- oh, and my house is unlocked with the windows open."

      Umm, wrong. SSH is designed to be usable in an untrusted environment, and is so used on many machines. That was hardly a stupid or unrealistic choice on the guy's part.

      --
      Any program relying on (nontrivial) preemptive multithreading will be buggy.
  25. This one time at band camp by The+evil+non-flying · · Score: 1, Funny

    A lot of hoopla and it's over in a very short period of time. Kinda reminds me of the first time I had sex. Note: to most slashdot users, this sex thing I refer to is like compiling a kernel on Gentoo using -O3 and having it be stable.

    1. Re:This one time at band camp by Dr.Syshalt · · Score: 1

      Yes, but having a real orgazm is like installing Gentoo on your laptop and after making some strange moves finding out that everything (networking, sound, hibernation) suddenly works!

    2. Re:This one time at band camp by Slashcrap · · Score: 1

      Note: to most slashdot users, this sex thing I refer to is like compiling a kernel on Gentoo using -O3 and having it be stable.

      Note: to all Slashdot users. When a Mac zealot talks about sex, it's probably between two guys.

  26. andrewg = gwerdna by numacra · · Score: 3, Informative

    Andrewg does know what he talking about. andrewg has published papers (not on mac security) and is part of some wonderful communities pulltheplug.org and felinemenace.org . I assure you that this machine would of been hacked... with SSH access or not. I think it shows the importance of having patches that minimize possible exposure (i.e grsec/pax etc) that would of decreased the chances of successful exploitation dramatically.... but then again nothing is bullet proof

    1. Re:andrewg = gwerdna by JamieKitson · · Score: 0

      So did he add the link to pulltheplug or was it already there? If it was already there then...

    2. Re:andrewg = gwerdna by numacra · · Score: 1

      He added the link iirc... pulltheplug has an irc network where you could go to discuss challenges and wargames ( we also have a few new ones ) irc.pulltheplug.org #social list of challenges/wargames

  27. Start your biased counters now... by JustASlashDotGuy · · Score: 2, Insightful


    What to have some fun? Count how many post show up that try to make excuses
    for the Mac. Man, if this were a windows box, I assure you that 99% of the
    the post would be slamming MS w/o a second thought.

    Although people want to point out that they shouldn't have allowed people to
    have a SSH connection, you need to keep in mind that an SSH connection was
    allowed because they thought the config was secure enough to handle it.

    I do give them kodos for allowing the hack contest to take place. The best
    way to test your software is to allow others to try and break it. Hopefully
    they will fix the exploit and run the contest again.

    1. Re:Start your biased counters now... by Anonymous Coward · · Score: 0

      Agreed. Elevation exploits are nasty little critters and are as important to crush as external vulnerabilities, IMO. They are flaws in the security model which bypass the mechanisms the model uses to keep the system 'secure' in the first place. What this really means is, if I don't know you, then you don't get an account on my machine. And if you want remote access, you are gonna have to get an SSH client that can use /encrypted/ RSA keys to authorize yourself (so it is still a something-you-know + something-you-have system). Oh, and you will have to deliver the public key in person as well. USB flash drives work nicely for this.

    2. Re:Start your biased counters now... by Thrudheim · · Score: 2, Insightful

      "Man, if this were a windows box, I assure you that 99% of the the post would be slamming MS w/o a second thought."

      If it were a Windows box that were hacked by someone who was given an ssh account on the machine, nobody would be surprised, for one thing. The Windows defenders would be arguing, just like Mac users here, that such a setup does not represent anything like what the average person will use, and they would be right.

    3. Re:Start your biased counters now... by 99BottlesOfBeerInMyF · · Score: 1

      Although people want to point out that they shouldn't have allowed people to have a SSH connection, you need to keep in mind that an SSH connection was allowed because they thought the config was secure enough to handle it.

      Actually, they specifically said they did nothing to harden the OS although there were several things they could have done and specifically enabled SSH and handed out passwords anyway. I'm not sure what they were trying to prove by this. Either if you bypass most of OS X's security it is hackable by someone with a moderate amount of talent of if you disable most of Mac OS X's security it won't be hackable by someone with a moderate amount of talent? This "test" proves nothing 99% of people with any clue about security don't already know. OS X is not one of the few ultra-secure multi-user server environments. Anyone who did not already know this should on no account be handling secure data that is a likely target for expert crackers.

  28. Local access IS important! by Chemisor · · Score: 5, Insightful

    Excuse me, but if your OS can be rooted in 30 minutes from a local account, you have no business calling it secure. UNIX is supposed to have multiple local accounts and still be secure with them all running. If you close down every network port on a machine and say "come get me now", that's really not saying much. I, for one, would really like to know how he managed to get root from a local account, so I can verify I don't have the same problem on my server, which really does have ssh access to more than one person.

    1. Re:Local access IS important! by Llywelyn · · Score: 0

      Without having read the article, was it rooted or was a webpage defaced?

      These are two separate things.

      --
      Integrate Keynote and LaTeX
    2. Re:Local access IS important! by Anonymous Coward · · Score: 0

      how about the vi sudoers list...

      If the local login account is on the sudoers list you can easily get root access by doing the following:

      sudo vi
      (enter login account password)
      (type the following to get a shell) :!sh
      (who's shell are you in)
      whoami
      (returns root)

      Works on Linux, HP-UX, so why not Mac OS X?

    3. Re:Local access IS important! by nine-times · · Score: 1

      How about just "sudo bash"? Same result, IFAIK, but simpler.

    4. Re:Local access IS important! by Anonymous Coward · · Score: 0

      Easy answer...READ THE ARTICLE, and next time you ask such a stupid question, turn off your Karma bonus!

    5. Re:Local access IS important! by Kadin2048 · · Score: 2, Insightful

      It was six hours, thirty minutes, not thirty minutes absolute. The linked article is full of vague claims and a few outright mistakes, that being one of them.

      I would like to know the guy's methods also, but apparently he's not revealing how he accomplished the escalation (although he does make some rather ridiculous-seeming claims that it would still work against a locked-down machine, which implies remote root-ability).

      I agree that local priv escalation exploits are a problem, but they're a different sort of problem than a 30-minute remote-root exploit, which is what the article suggests is the case on first glance.

      Personally I would really like to see similar competitions against default-installs of some other OSes: a "workstation" install of Ubuntu perhaps, maybe Red Hat Enterprise Desktop, and Windows XP. I think you'd find that there are quite a few ways to escalate privileges on these systems also, once you have a user account.

      --
      "Ladies and gentlemen, my killbot features Lotus Notes and a machine gun. It is the finest available."
    6. Re:Local access IS important! by Anonymous Coward · · Score: 0

      Or sudo -s which is built into the fscking command fer chrissake.

      But I know, grandparent is such a l334 h@x04 he never reads silly things like man pages...

    7. Re:Local access IS important! by Anonymous Coward · · Score: 0

      Personally, I would like some proof that this actually happened - ie., it wasn't just a case of someone deciding to discredit the Mac by saying it had been hacked, when the "hacker" was given root precisely for this purpose.

      Of course, that's very tinfoil-hattish, but it is plausible given the reticence of the hacker to give details of the hack, and the lack of detail about the person who set up the competition.

  29. This was of very little worth by shatfield · · Score: 2, Funny

    The first thing that I'm going to do as a "normal user" is turn on SSH and Personal Web Sharing. Then I'm going give anyone who wants access to my machine an SSH account.

    This "test" was silly and unrealistic, at best.

    Here's a "real" test:
    1) Turn on brand new Mac Mini
    2) Update to latest rev of OS
    3) Try to hack it from the Internet, without knowing its IP address.

    Good frackin' luck!

    --
    "To make a mistake is only human; to persist in a mistake is idiotic." Cicero
    1. Re:This was of very little worth by tweakt · · Score: 0, Redundant
      3) Try to hack it from the Internet, without knowing its IP address.

      That's just plain retarded.

      Does this make any sense?

      1. Buy a new house.
      2. Install top of the line security system.
      3. Break into it from outside without knowing the address.

      People... hiding your IP address is NOT SECURITY. Quit treating it as some sort of security issue. If your machine is secure, knowing it's address is of little use. Sure anonymity helps, and keeping a low profile is good, but they are not functions of a secure system. It is a required peice of information in order to participate in the internet.

      Cracks me up like the banners that pop up exclaiming "Warning! Your computer is broadcasting an IP Address!".

      *chuckle*

      PS: captcha was "gobbles". Remember him? I wonder where he's gone these days...

    2. Re:This was of very little worth by nervouscat · · Score: 1

      How about trying to hack Mac OS 9? It has no command line interface at all. Then again, nobody is interested and nobody cares about that. Unpopular OSes are the least attractive targets, which may be a good reason to keep an older Mac running OS 9 hooked up to the network instead.

    3. Re:This was of very little worth by Theaetetus · · Score: 1
      People... hiding your IP address is NOT SECURITY. Quit treating it as some sort of security issue. If your machine is secure, knowing it's address is of little use. Sure anonymity helps, and keeping a low profile is good, but they are not functions of a secure system. It is a required peice of information in order to participate in the internet.

      Agreed - no idea why GP put that in. I'll go one further, though... buy a MacMini, run SoftwareUpdate on it, and then publish its IP address freely. It won't get hacked because on a stock load, no remote services are running, the firewall is on, and no ports are open to the outside world.

    4. Re:This was of very little worth by Arandir · · Score: 1

      Here's my Mac's IP address: 192.168.0.15

      --
      A Government Is a Body of People, Usually Notably Ungoverned
    5. Re:This was of very little worth by TClevenger · · Score: 1

      Exactly. There are thousands of machines that do nothing but wardial IP ranges, and automate dictionary attacks when they find an open port.

    6. Re:This was of very little worth by shatfield · · Score: 1

      It's funny that you say that point #3 was retarded, without even taking 3 seconds to think past the "obscurity is not security" tag line. I submit that in this case, that saying does NOT apply.

      My Mac is sitting here, all dressed up and nobody even shows up to take it out for a spin. Why's that? Could it be the plethora of extremely vulnerable Windows machines that it is rubbing elbows with on the Internet? Why would anyone spend 1 second trying to hack a Mac when they can just "have at it" with a Windows machine? To prove it can be done? Hardly. Windows machines are hacked for well known reasons: spam zombies, botnets, WareZ repositories, etc. Windows machines are very easy targets for that stuff, and the Mac simply isn't.

      I submit that the best security for a Mac on the Internet are the Windows machines that are also on the Internet.

      --
      "To make a mistake is only human; to persist in a mistake is idiotic." Cicero
  30. Perhaps with a desktop Mac by Sycraft-fu · · Score: 3, Informative

    We have a Mac server here at work for testing, we set it up 100% default mainly because none of us are Mac people. A quick nmap (using just well known ports) reveals not only is SSH open, but several others. Also, non-open ports report closed, not filtered indicating no firewall, at least none with respect to it's local subnet.

    Not saying there's anything wrong with this, Solaris, FreeBSD, et al are the same, but while SSH may need enabling on a Mac desktop, it does not appear to on a Mac server.

    1. Re:Perhaps with a desktop Mac by Anonymous Coward · · Score: 0

      It's a Mac. You are wrong.

    2. Re:Perhaps with a desktop Mac by peragrin · · Score: 1

      It would be interesting to find out if OS X server has a different defualt configuration than OS X.

      As my default installations of Pather and Tiger both had the firewall on and all the other services off. I checked during my setups.

      I don't have an X-serve or OS X server edition so I can't find out.

      --
      i thought once I was found, but it was only a dream.
    3. Re:Perhaps with a desktop Mac by Johnny+Mnemonic · · Score: 5, Informative

      Not saying there's anything wrong with this, Solaris, FreeBSD, et al are the same, but while SSH may need enabling on a Mac desktop, it does not appear to on a Mac server.

      Of course SSH is on by default on a Mac Server--it is designed to run, and be configured from first boot, headless. That would be pretty difficult to do if you had no services. Other default services are Apple Remote Desktop, for GUI control, and the Server Admin Suite; even the Apple Server Admin Tools can be port forwarded through SSH if you prefer.

      The assumption is that servers will be managed by those with a clue, whereas desktops will not usually be. Also, no Mac desktops are expected to be configured and maintained headless from first boot, whereas you have to specify a video card for an Xserver for it to be graphical at all. I don't think those are unreasonable assumptions to make.

      --

      --
      $tar -xvf .sig.tar
    4. Re:Perhaps with a desktop Mac by frankie · · Score: 2, Informative

      Yes, OSX Server ships with some remote admin ports open. Apple assumes that anyone who shells out the extra cash for Server should at least poke around Server Admin.app (or Terminal if you prefer) for a few minutes. sshd and ipfw are easily controlled by either method.

    5. Re:Perhaps with a desktop Mac by pboulang · · Score: 1

      It does. They do different thins. Perfectly normal behavior.

      --

      This comment is guaranteed*

      *not guaranteed

    6. Re:Perhaps with a desktop Mac by Kadin2048 · · Score: 4, Insightful

      I believe that Mac OS X Server has sshd running by default -- if you think of how it's intended to be used, this is not just a feature, but possibly quite necessary. Setting up a rack of headless servers could be quite a PITA if they didn't have ssh running by default -- you'd have to connect to them over the serial port and turn it on for each machine (or create a custom HD image where it was enabled and load it to each machine).

      I think there are probably some also remote-administration services running by default on Server, but don't quote me on that. I know for sure that ssh is not running on regular, consumer MacOS, however. (I just set up a new G5 a few days ago and I had to turn it on manually.)

      I think it's also worth pointing out that based on my understanding of the article in question here (the second link in the summary doesn't point to what I think it originally did), ssh wasn't just running on the machine, attackers were allowed to log-in as a non-root user. So really what happened wasn't a cracking in the strict sense, but privilege escalation. Still bad -- and I'm rather annoyed that "gwerdna" or whatever his name was didn't tell us what this great "unpublished and unreported vulnerability" was that he used, but I don't think that it means that any box is compromisable simply by virtue of running sshd.

      --
      "Ladies and gentlemen, my killbot features Lotus Notes and a machine gun. It is the finest available."
    7. Re:Perhaps with a desktop Mac by GlobalEcho · · Score: 2, Interesting

      I'm rather annoyed that "gwerdna" or whatever his name was didn't tell us

      Hmm. Maybe we should ask Andrew G?

      (Hint: backwards)

    8. Re:Perhaps with a desktop Mac by SilentChris · · Score: 1, Troll

      "The assumption is that servers will be managed by those with a clue, whereas desktops will not usually be."

      *Cough* You don't know many Mac server admins, do you? :P Most of the ones I know are not in any kind of environment where servers are routinely hardened. They assume, from all the marketing, that the box will be secure from the get go. If you mentioned the word "headless" to them, they'd have no idea what you're talking about.

      Not to say Windows server admins are any better (most of the boxes I administer are Windows). But people (stupidly) expect in this day and age that the product they are given is what it's advertised to be. Blame Apple for not making it clearer in their marketing.

    9. Re:Perhaps with a desktop Mac by Anonymous Coward · · Score: 0

      I noticed your post seems carefully crafted not to explicitly state you had Mac OS X Server installed on your Mac, rather than the standard Mac OS X. Of course, this would not confuse users that run Mac servers. It would, however, confuse the vast majority of users that do not. Just like users that run Mac servers would not be put in peril by having ports open, since they are trained to deal with that. While, on the other hand, the vast majority of users do not have that training. Which is why Apple does not have SSH enabled by default on Mac OS X. Which is also why this was also not a security contest. Nor is your example meaningful to the state of security on Macintosh computers.

    10. Re:Perhaps with a desktop Mac by soft_guy · · Score: 1

      Dr. Bott makes or used to make an adapter to allow a Mac to run headless. It is unnecessary on an XServe, but was necessary back in the old days. My point is, how could they sell this product if no Mac server administrator knew what "headless" meant. Since they are still in business, they must have customers, thus someone must know what headless means.

      BTW. I'm a Mac user and I have administered servers and I know what "headless" means.

      --
      Avoid Missing Ball for High Score
    11. Re:Perhaps with a desktop Mac by Arcane_Rhino · · Score: 1
      Tiger both had the firewall on...

      That is interesting. A clean install of 10.4 on a freshly initialized disk had the general sharing services off but also had my firewall disabled. I was quite surprised and retraced my steps to make sure that I had not somehow messed up the install. If I did, I never figured out what it was. (I mean, it is a Mac so it is not like I had THAT many options.) To this day I still want to think that I must have messed up something but I sure don't know what it would have been.

  31. Why so many apologists? by Jack+Johnson · · Score: 2, Insightful
    This is hardly irrelevant.

    I'm disturbed by the attitude that anything but a remote exploit against an ideally (not typically or justifiably) configured box is meaningless or misleading.

    What good is a door if it's welded shut? Wouldn't a proper lock be more useful?

    Security should be about maximizing functionality securely, not limiting it.

    1. Re:Why so many apologists? by 99BottlesOfBeerInMyF · · Score: 3, Informative

      What good is a door if it's welded shut? Wouldn't a proper lock be more useful? Security should be about maximizing functionality securely, not limiting it.

      Ideally, any user should be restricted to the behaviors intended by the administrator and there should be no local privilege escalations. Realistically, however, this does not really happen except in a few special cases of extremely security oriented OS's. The first line of defense is how many services you have, think of them as gates in a castle. The second is the firewall, how many gates are open for business. The third is the username/password, do the guards know you and will they let you in. These guard against most threats except for someone who can impersonate someone else or insider threats who have access but want more access. In this case the "hackers" was given legitimate access to come in through the open gate. (A gate the admin specifically had to open and using the username and password the admin gave them.)

      Once inside there is still security, but it is much, much less. On the average Windows machine at this point there is no security at all and even on a well secured Windows machine there are thousands of unpatched privilege escalation exploits. At this point on either a Mac OS X desktop or the average Linux machine a knowledgeable security person will be able to gain admin access. That is a sad fact, but it is the case for the vast majority of systems. Exceptions might be a locked down OpenBSD box running jails, an SELinux box, or some other specialized ultra-secure OS running virtual machines. Very few people run those machines as desktops and those that due generally don't have the best experience because they sacrifice a lot of usability to gain that level of security.

      This "test" was no surprise to anyone with a clue. That is exactly what would be expected to happen. Also, some of the better security guys out there can definitely gain remote access to machines using unpublished vulnerabilities. If they really want in they will get into the average OS X or Linux box. So what are we talking about here? Well obviously this is still much better than Windows, but not impregnable. What it does is make you pretty safe from automated worms and your average script kiddie, which far outnumber the knowledgeable crackers out there.

      Ideally, all desktop OS's would be locked down more tightly. They would do more security auditing and they would implement ACLs, VMs, or jails for all remote access and all applications. Some day perhaps they will. But for right now it is not a big concern, simply because market does not call for it. Not many people really have data that needs to be kept secure against experts and those that do have specialized OS's to use. Of course they can't run photoshop or World of Warcraft and the users would not trust their internet connection to talk to WoW servers anyway using all closed source. That is a task better allocated to a regular desktop, not a locked down, ultra-secure server. And that is what this "test" has shown. OS X is a desktop and if you bypass all the primary security on it, it will not stand up to a cracker from the inside like OpenBSD might. Of course anyone who really cares already knew that.

  32. Re:Mac user ignorance by shotfeel · · Score: 2, Insightful

    Yep, cuz' we know stupid Mac users are always going around enabling SSH and giving shell accounts to total strangers.

    Oh, wait, 99.9% of Mac users are blissfully ignorant of what security defaults to change to make their system more hacker-friendly.

  33. Kodos is not yours to give... by bennomatic · · Score: 4, Funny
    > I do give them kodos for allowing the hack...

    Kang might have something to say about that.

    --
    The CB App. What's your 20?
    1. Re:Kodos is not yours to give... by John+Whitley · · Score: 1

      Kodos is not yours to give...

      Actually, Kodos is released under the GPL, so it *is* yours to give.
      ;-)

  34. "Them" is a clueless user by ianscot · · Score: 1
    I do give them kodos for allowing the hack contest to take place. The best way to test your software is to allow others to try and break it. Hopefully they will fix the exploit and run the contest again.

    Try reading the article or at least the /. post. Limiting yourself to the slashdot headline won't quite do. This wasn't Apple holding a contest. It was a single "enthusiast" in Sweden.

    (And the term is "kudos.")

    --
    "Fundamentalism" isn't about divine morality. It's about human authority.
  35. Spate of Mac security stories signal MS nervous by Anonymous Coward · · Score: 0

    It's clear what's going on here. Billions of dollars must be protected. The sheep must be kept on Windows. Excellent explanation here: Spate of recent Mac security stories signal that Microsoft, others getting nervous

  36. It's not because there are few Macs by Cro+Magnon · · Score: 1

    It's because there are a huge number of more insecure targets. If the market share of the Macs was 50%, Windows would still get most of the exploits, simply because it is easier to hack. OTOH, if all the Windows machines disappeared, then you WOULD see a whole slew of Mac exploits. Without low-hanging fruit, the hackers would target the next tempting target, and some of them would get in, especially if the WinLusers switched to the Mac.

    --
    Slow down, cowboy! It has been 4 hours since you last posted. You must wait another few hours.
    1. Re:It's not because there are few Macs by Anonymous Coward · · Score: 0

      A lot of it is script kiddies who think they are being cool and just using a toolkit made by real crackers. Take a look at the vast majority of exploits and you'll find that 90% of them are just a varient on another crack, just changed to dodge the anti-virus for a while.

    2. Re:It's not because there are few Macs by Opportunist · · Score: 1

      It's the KISS principle at work.

      I mean, place two cars next to each other. Imagine someone just wants to have something that gets him more or less fast from A to B (the equivalent of wanting to harvest someone's passwords, this person does not care how cool your equipment is).

      Which car is he going to break open? The one with the steering wheel claw or the one without? Sure, if he's a pro, the claw is no obstacle to him either, it's off in a minute tops.

      But why bother going the hard way if there is an easier one?

      --
      We used to have a Bill of Rights. Now, with the rights gone, all we have left is the bill.
  37. Inaccuracy by thb3 · · Score: 1

    The title to this is comepletely inaccurate. If the person that submitted the article would have read it they would have realized that it was hacked after several hours, however the person that did it said it took only 30 minutes for the person to complete his work. Care to reword this please?

    --
    I can only please one person a day. Today is not your day, and tomorrow does not look good either.
  38. No need to turn off ssh. by ChrisA90278 · · Score: 2, Insightful

    That's one of the first things you turn off to protect the machine. No, you don't have to turn it off. Just don't give out user accounts to other people. These guys who broke in where gien accounts with passwords. SSH is very secure as long as you closely control what accounts may be accessed via ssh and varify that these accounts use strong passwords. But if you machine has an account with username "bob" and uses "bob" as the password your sytem is wide open, or at least Bob's account is.

  39. not good test by jonathanduty · · Score: 1, Insightful

    The security contest also allowed people to have local access via SSH, so that had a lot to do with the crack." Thats like giving someone the keys to your house and seeing if they can steal something.

  40. Lessons to Learn Here? by Anonymous Coward · · Score: 1, Insightful

    There are two lessons to learn here.

    First, if you're running services from your Mini-Mac workstation connected directly to the internet, don't enable ssh without a strong upstream firewall.

    Secondly, don't hand out local accounts to someone named 'gwerdna'.

  41. Astroturfing? by aphor · · Score: 4, Interesting

    The whole article seemed to culminate in the following information: some guy said if Macs were more popular they would have a worse record than "other operating systems." It seems to be comparing OS X to Linux, but it isn't entirely clear what the baseline is for their eval of Mac OS.X and it also doesn't clarify what exactly makes these OSs different. Also, the web site defacement isn't proof that the person with an unprivileged account acquired superuser privileges to do anything other than deface the web page. I don't doubt it could have happened, but maybe it did and maybe it didn't...

    "The only thing which has kept Mac OS X relatively safe up until now is the fact that the market share is significantly lower than that of Microsoft Windows or the more common UNIX platforms.... If this situation was to change, in my opinion, things could be a lot worse on Mac OS X than they currently are on other operating systems," said Archibald at the time.

    Also, giving people LDAP accounts on the machine is really cheating. Maybe some noobs get a boner when someone fuzzes the hell out of a box from a local account until they get some fuzz escalated **BORING**. If they really wanted to throw down the gauntlet, then we would see Mandatory Access Control implemented on OS X . The big difference is that the MAC policies would be enforceable at the Mach MK level (on Mach ports, tasks, processes...), and OS X would be the ONLY OS with a security policy interface that could come close to usable for average people.

    --
    --- Nothing clever here: move along now...
  42. Please hack MY mac! by 1336.5 · · Score: 1, Funny

    Try me

    ip: 127.0.0.1

    alter the web page and post here when done.

    1. Re:Please hack MY mac! by Anonymous Coward · · Score: 0

      i win!!!

  43. He should post a signature and a key by k2r · · Score: 3, Insightful

    Then he should put his gpg public key at
    http://test.doit.wisc.edu/ and sign and publish on slashdot an invitation to hack this machine to prove that he's the owner of this machine.

    k2r

    1. Re:He should post a signature and a key by hkb · · Score: 1

      Dave Shroeder is relatively well-known in the Mac OS X community.

      --
      /* Moderating all non-anonymous trolls up since 2004 */
    2. Re:He should post a signature and a key by k2r · · Score: 1

      Yes, some Dave Schroeder seems to be.

      But my basic CS-paranoia asks me:
      "Is this specific person, who posted this specific article containing a bounty on slashdot 'the' Dave Schroeder."

      Since hacking while not being invited might lead to ridiculously severe punishment nowadays I personally wanted to be absolutely sure about this.

      k2r

    3. Re:He should post a signature and a key by Ohreally_factor · · Score: 1

      But my basic CS-paranoia asks me:
      "Is this specific person, who posted this specific article containing a bounty on slashdot 'the' Dave Schroeder."


      I concur. I suspect this is really Dave's evil twin. Or perhaps it's mini-Dave.

      --
      It's not offtopic, dumbass. It's orthogonal.
  44. Re:Mac user ignorance by EraserMouseMan · · Score: 1

    Nobody will probably see this post since the parent got modded into oblivion. But there's no question that an OS claims to be so simple anybody can use it must also be so secure and bug free that nobody could accidentally screw it up. There's a whole herd of Mac users that still believe the the Mac is un-hackable and virus-proof. They'll click on any attachment they get. Those same people will feel free to screw with any setting on their Mac because there's no way they could ever get hacked.

    It's those types that will end up with a machine that is completely hackable. Windows and Linux users are never under the false impression that their machines are 100% hacker and virus proof. So, in general, we are extra careful when we are changing settings, opening attachments, or surfing the web in general.

  45. Grammar facism by nasch · · Score: 3, Insightful

    "Would HAVE", not "would OF".

  46. multi-platform hack by farble1670 · · Score: 2, Interesting

    what would be much more interesting is if some nice person set up multiple OS platforms, configured them with the same services, and waited to see how long it'd take to hack each of them. maybe lock them down a little more than the mac mini test, just to make it more of a challenge. maybe: windows XP, os x, solaris, and a couple of linux dists ... ?

  47. Re: first thought... by TheNetAvenger · · Score: 1

    "Let the flood of *I challenge you to hack me* ip posts begin...

    You can start with this one: XX.XX.XXX.XXX.


    I think tihs is a quite amusing... If anyone with any OS is so sure about their OSes security they are willing to come on Slashdot and make claims like OSX is not hackable, or OS (Generic) is safe from exploits and hackers...

    Then they should also have the nerve to add their machines IPs in their post to prove theit point of how much they trust their OS.

    Although OSX is not my OS of security choice, I don't belive any OS could hold to the claims I see Mac users throwing around in here. I understand the nature of OSes, and hacking from a security perspective.

    Unless it is a closed system using redudndant biometrics authenication, it CAN be hacked, I don't care how much faith you have in Apple, Linux, BSD, Windows or any other OS on the market, period.

    This is just something you 'accept' and design around, but I find it amazing people come on SlashDot with the ignorance and arrogance that their OS is better than the rest. This does not exist in consumer OSes, no matter how much you believe or how many times you click your heels together.

    So I say, great idea, everyone that is running a perfect OS, be the first to start leaving their local and Server IPs in their signature, and maybe a line like, "My OS is the most secure in the world, I dare you."

    Then when they are hacked in a few hours they at least won't be on the boards selling the religion of their 'perfect' OS.

    BTW thanks for the sideline and laugh your post inspired, brilliant actually.

  48. Think about your ridiculous statement a little. by Some+Random+Username · · Score: 1, Flamebait

    You are saying that providing web hosting means you should expect to be rooted all the time? People need to have unpriviledged user accounts. That should never mean they can root the system. OSX is insecure, and cannot be used as a server because of this. Its nothing at all like physical access, which gives you the ability to bypass the OS altogether. This is just a case of the OS being broken, plain and simple.

    1. Re:Think about your ridiculous statement a little. by kwerle · · Score: 1

      You are saying that providing web hosting means you should expect to be rooted all the time? People need to have unpriviledged user accounts. That should never mean they can root the system. OSX is insecure, and cannot be used as a server because of this. Its nothing at all like physical access, which gives you the ability to bypass the OS altogether.

      You are mixing up "server" with "shell server". There are thousands of OSX servers on the net right now. One of those servers chose to give out shell access and got hacked. The other thousands are doing just fine.

      This is just a case of the OS being broken, plain and simple.

      I'm inclined to argue that because some of the tools or parts of the system are broken, it does not follow that the OS is broken. But that's getting pedantic about what really constitutes the OS.

    2. Re:Think about your ridiculous statement a little. by Some+Random+Username · · Score: 1

      "You are mixing up "server" with "shell server". There are thousands of OSX servers on the net right now. One of those servers chose to give out shell access and got hacked. The other thousands are doing just fine."

      No, you just don't understand the topic at hand. If you give someone access to run cgi scripts or any other form of dynamic content, then they can do anything and everything they can do with a shell. Either way you have access to execute code on the server as a non-priviledged user, and can exploit local vulnerabilities to get root. This crazy notion that setting users shells to nologin makes you "secure" is one of the most annoying linux noob misconceptions out there.

    3. Re:Think about your ridiculous statement a little. by kwerle · · Score: 1

      No, you just don't understand the topic at hand. If you give someone access to run cgi scripts or any other form of dynamic content, then they can do anything and everything they can do with a shell.

      No, you don't understand how CGI access works. Nor do you understand about jails. Nor do you understand about running previously approved/audited/secure CGI vs. letting users install their own. Nor do you understand about running httpd (or whatever) as a chrooted user who only has read/write access to a very limited (and secure) space.

      Either way you have access to execute code on the server as a non-priviledged user, and can exploit local vulnerabilities to get root. This crazy notion that setting users shells to nologin makes you "secure" is one of the most annoying linux noob misconceptions out there.

      Not sure where you got the whole nologin idea from. Not sure why you're talking about linux misconceptions. The "subject at hand" was an OSX server where they allowed ssh, which is certainly a whole lot more access than CGI on a jailed or chrooted suid nobody http account - even with CGI access.

      If a machine gives CGI access (install whatever you like) on it's http server, and that server is configured to chroot non priveledged accounts, and that machine gets hacked, then there IS a problem with either the OS (chroot), or the http server (overflow/whatever), or the configuration (chrooting somewhere not safe).

      (note that I'm assuming that CGI is well configured to disable exec, etc)

      Like I said: there are thousands of OSX machines on the net right now. Acting as servers. One of them vended ssh access and got hacked. The other thousands are doing just fine.

    4. Re:Think about your ridiculous statement a little. by Some+Random+Username · · Score: 1

      "No, you don't understand how CGI access works. Nor do you understand about jails. Nor do you understand about running previously approved/audited/secure CGI vs. letting users install their own. Nor do you understand about running httpd (or whatever) as a chrooted user who only has read/write access to a very limited (and secure) space."

      In fact I do. And less than 1% of those servers have anything like that setup. Because people won't pay for completely useless webhosting (suprise!).

      "Not sure where you got the whole nologin idea from. Not sure why you're talking about linux misconceptions. The "subject at hand" was an OSX server where they allowed ssh, which is certainly a whole lot more access than CGI on a jailed or chrooted suid nobody http account - even with CGI access."

      But its exactly the same amount of access as > 99% of webhosting companies give you. Which is what I said.

      "Like I said: there are thousands of OSX machines on the net right now. Acting as servers. One of them vended ssh access and got hacked. The other thousands are doing just fine."

      Like I said, supplying web hosting for people is something anyone should reasonably expect to be able to do with a unix machine. OS X has lots of local root exploits which make it impossible to safely provide web hosting for people (serving up only static files is not webhosting anyone will pay for). Pretending local root exploits don't matter because "people shouldn't have shell access" is rediculous. There's legitimate reasons to have local users. And besides that, local root exploit + remote non-priviledged exploit = remote root.

    5. Re:Think about your ridiculous statement a little. by kwerle · · Score: 1

      Like I said, supplying web hosting for people is something anyone should reasonably expect to be able to do with a unix machine. OS X has lots of local root exploits which make it impossible to safely provide web hosting for people (serving up only static files is not webhosting anyone will pay for). Pretending local root exploits don't matter because "people shouldn't have shell access" is rediculous. There's legitimate reasons to have local users. And besides that, local root exploit + remote non-priviledged exploit = remote root.

      I agree with almost everything you're saying.

      OS X has lots of local root exploits

      If "a lot" means "more than 0", then I agree with you. And certainly that's what "a lot" should mean - but just saying "OSX has local root exploits" is just as true, and less inflamatory. Really, it is unclear what happened on the server in question, except that a file was modified. We don't know who owned the file, or how it was modified. We don't know from the article if the 'cracker' even rooted the box.

      serving up only static files is not webhosting anyone will pay for

      That's nearly true (there are plenty of domain parkers that charge for static content), but it is certainly not true that dynamic content requires clients be able to install their own scripts - see also myspace.com, etc.

  49. local access via SSH - some contest by Anonymous Coward · · Score: 0

    The security contest also allowed people to have local access via SSH, so that had a lot to do with the crack.

    No doubt.

    Give me a break.

  50. Server != local accounts by hayne · · Score: 1
    makes the OS entirely unsuitable in a server environment
    Note that a "server" doesn't necessarily have to allow local accounts for other than the administrators. Most instances of OS X Server are not used in this way. You can have users whose accounts are authenticated on the server, and whose home folders are physically on the server's disks without allowing those users to be able to directly execute any programs at all on the server. The server serves access to its disk (and other resources) but not (directly) its CPU.

    Nevertheless, I agree that privilege escalation exploits are very serious. And I suspect that this one will soon get fixed by Apple.

  51. AND root was enabled. by catmistake · · Score: 1

    What a maroon.

  52. Re:local account = assumed root access BULLSHIT by Anonymous Coward · · Score: 0

    On Solaris, BSD, and Linux machines it is assumed that shell accounts can be freely given with minimal security risks. Local exploits are discovered but are treated seriously and fixed. Superuser privledges are only assumed if a user has physical access. None of the attackers had physical access in this case. The accounts should have been safe.

    Don't appologise for Apple. Force them to fix the vulnerabilities.

  53. I would like by Vexorian · · Score: 1

    I would like someone to have a real contest,but without doing stupid stuff like granting ssh access to everyone. Let the owner of the mac take all the security steps he has to and run the contest. I am sure they will need more than 30 minutes but it will get hacked in less than 48 hours as long as there is plenty of information about the contest and the reward is good enough

    --

    Copyright infringement is "piracy" in the same way DRM is "consumer rape"
  54. Re: first thought... by ZiZ · · Score: 1
    Unless it is a closed system using redudndant biometrics authenication, it CAN be hacked, I don't care how much faith you have in Apple, Linux, BSD, Windows or any other OS on the market, period.

    Even if it is a closed system using redundant biometrics authentication, it CAN be hacked, I don't care how much faith you have in your closed-source redudndant (sic, with 'redudndant' "D"s) biometric-authenication (sic, and needed a 'redudndant' "T") OS on the market, period.

    (Please note: These opinions are parent's, and I'm just throwing them back for humor.)

    --
    This flies in the face of science.
  55. Stupid metaphors are stupid. by Vernalex · · Score: 1, Insightful

    No, it's not like leaving your doors open. No, it's not like leaving your windows open. No, it's not like leaving both open. It's not a house, it is a computer. And they are not doors or windows; it is a daemon that is extremely popular. If you're going to use metaphors then at least come up with a better comparison. Such as, it's like letting someone walk into a bank and giving them a bank account. But, metaphors suck and people just use them to muddle the topic they're arguing so their side of the argument sounds better.

    Mac fanboys are always screaming about how their OS is so much better. It used to be that their computers were easier to use, and then Apple tossed out their easy OS. It used to be that SCSI was better, and Apple threw that out. It used to be that G3s, then G4s, and then G5s were better than Intel equivalent, and Apple switched to Intel. And next we're going to find out what we already know, that their computers aren't much, if any, more secure.

    And this guy proved that this OS was just as insecure as Windows, Linux, or any other network aware OS. And you can't say it wasn't a remote vulnerability, because it was accomplished through a network and the person was able to do what they shouldn't have been able to do, thus a remote vulnerability. It's an OS, written by imperfect people with imperfect tools. If this were a Windows box that was hacked through TS or RDP then you'd be all over calling Windows so easy to hack.

    And yes, this wasn't an anonymous crack but that is no excuse. A password could be guessed through many means and you're saying if that someone guesses a user password then it doesn't matter that they can elevate tasks, and that's a bunch of crap. All computers are firewalled now out the box, but a server is only as good as the services it provides which means you need to open it up. This means that a computer is only as secure as it is when it's doing things.

    --
    "The optimist proclaims that we live in the best of all possible worlds, and the pessimist fears this is true." --James
  56. The most secure system is an un-networked system by Anonymous Coward · · Score: 0

    If you can't connect to it you can't crack it. But really user education, manufacture patches, good passwords, and firewalls are an multi-layed approach to preventing crackers from breaking into your system.

  57. Internet 2 connection? by Anonymous Coward · · Score: 0

    Wow, that webpage loaded instantaneously. Way too fast for a Mac Mini. He must be on an Internet 2 connection (as am I) or thats one quick lil Mini...

  58. let me just clue you in on something by amnesiaWind · · Score: 1

    EVERY SYSTEM IS HACKABLE!

    I don't care what platform it is or how good you think you are at securing it, if you set up a box and tell the whole internet to "try and hack me" - guess what, YOU WILL GET HACKED.

  59. Still, hats off to them ... by Anonymous Coward · · Score: 0

    Maybe more people should put their server security up to the public to break.

    Rules should be something along the lines of a near default install, with all changes listed.

  60. Re:Mac user ignorance by 99BottlesOfBeerInMyF · · Score: 1

    But there's no question that an OS claims to be so simple anybody can use it must also be so secure and bug free that nobody could accidentally screw it up.

    Umm, your sentence does not completely make sense. The OS is pretty simple to use and pretty secure. Apple claims it is easy to use and occasionally remarks upon security, usually comparing it to Windows. What's the problem? Compared to Windows OS X is fort Knox.

    There's a whole herd of Mac users that still believe the the Mac is un-hackable and virus-proof. They'll click on any attachment they get. Those same people will feel free to screw with any setting on their Mac because there's no way they could ever get hacked.

    I've heard this kind of comment before and I wonder what kind of Mac users these people know. Most people know Windows and some are vaguely aware there are other kinds of computers like macs and Linux systems. They've heard these systems are more secure than Windows and don't always get viruses and spyware. For the most part, this is true. Most users of any OS never "screw with any setting(s)" and for the most part most OS X users can click on any attachment they want and not have any problems. The only thing I've ever received in any of my mailboxes that would cause a problem if I double clicked on it was a single piece of malware that did not propagate and which I had to request a copy of from some security guys I know.

    So maybe this is not the best practice, but for the most part people have not been burned by it. Maybe that will change and maybe people will become more cautious if it does.

    I basically know three kinds of mac users: clueless people who don't change any settings, workers, who use it and may occasionally change settings, but only after asking someone, and experts who know the ramifications of their changes and would not dream of using OS X as a "secure" system. This correlates about the same as Linux users I know. Windows users I know mostly just expect to be hacked all the time and are resigned to periodically cleaning it up, or they are paranoid about it and try to insulate their Windows boxes from the internet as much as possible. Most of the former just open whatever and most of the latter don't use Windows for their e-mail.

  61. Oops! by flyinwhitey · · Score: 0, Flamebait

    "admin"

    You misspelled fanboy.

    --
    How pathetic are you that you follow me from topic to topic and waste all your mod points at once modding me down?
  62. Belt and suspenders. by Kadin2048 · · Score: 2, Informative

    Why would he need to do that, since if you go to http://test.doit.wisc.edu/, the machine itself presents a page explaining the competition?

    The only function that signing the invitation here on Slashdot would do, is positively link the owner of the Slashdot account daveschroeder to the machine...but really, what does that matter? The owner of the machine, even if it's not daveschroeder (and I'm not implying that this is the case, but speaking hypothetically -- especially since his name is at the bottom of the page) is inviting people to hack it. I think that pretty much makes it valid, signature or not.

    --
    "Ladies and gentlemen, my killbot features Lotus Notes and a machine gun. It is the finest available."
    1. Re:Belt and suspenders. by k2r · · Score: 1

      Thanks, you are right - given this fact my posting doesn't seem to make as much sense as I tought.

      But in general:
      It might be a good idea to publish a bounty online in a way that participants could use in court to prove that they were invited by a specific person to hack a specific machine.
      So signing a bounty doesn't look like a stupid idea to me.

      k2r

  63. All it takes is a syscall vulnerability. by Ayanami+Rei · · Score: 1

    The really useful local vulnerabilities are the variety that exploit buffer overflows in system calls to either set capability bits or the effective UID of a process running as a local user. The really clever ones setup a tasklet that spawns a root shell after a random delay so you can't pinpoint the creation of the shell process with a system call.
    No DDOS, no generated logs of weird URLs, no audit trail generated...
    Stealth, bitches!

    --
    THIS THING CAN TURN ON A DIME, MACROSSZERO STYLE ALSO FUCK BETA, ~NYORON
  64. Re: first thought... by Anonymous Coward · · Score: 0

    69.109.215.105

  65. 30 mins? by whitespiral · · Score: 1

    30 mins? The Windows XP Security Competition ended in 30 seconds.

  66. Re:Mac OS X Security Challenge- I'll take it! by Anonymous Coward · · Score: 0

    How to Hack A Mac in Five Minutes Flat

    -or-

    I take up your challenge- with some provisos.

    "Hey, Dave... Time to test your machine. But first, I'll need you to make sure its a fair challenge. Go into System Preferences, Sharing, and then click on the box labeled 'Remote Login'. Make sure it says 'Remote Login On'."

    "Okay... Now what?"

    "Now, click on 'Show All', and then 'Accounts'."

    "Okay... What do I do now?"

    "Click the lock thingy if it's not already open, then click on the little plus sign just under 'Login Options' Then, fill in the name, 'Hackme', short name 'hackme' and set the password, 'hacker.' Oh, and make sure the checkmark labeled, 'Allow user to administer this computer' is on."

    "Done. Now what?"

    "Prepare for a world of funtimes!"

  67. That's true of any unix by jbolden · · Score: 1

    Pretty much any Unix is low security. Unixes make very large numbers of applications available to all users. A huge number of those applications:

    1) Have privilege escalations to run
    2) Are turing complete

    Finally Unixes use permissions and not capability models of security.

    High security OSes

    1) Users can't do anything unless specifically given permission. Further the programs are generally quite limited in their functionality and configurability.
    2) Most applications with privs come from the OS vendor so there is only really one or a handful of security configurations to test

    That's why Unixes that offere shells to untrusted users do so in a chrooted environment running stuff like rsh. OSX is not VMS but then again neither is Linux, Solaris or AIX.

  68. University computers by jbolden · · Score: 1

    I don't know what the other guy is telling you, but I'll tell you absolutely. The computers in the lab or fully hackable. So what?

    1) They can be re-imaged no problem.
    2) Nothing valuable (read worth $200k + to an a thief) can be stolen off them.
    3) Students who persistently attack them machines can be suspended or expelled

    Anybody at the University who wants to start reading security news can crack almost any university machine. OK then what?

    1. Re:University computers by ScriptedReplay · · Score: 1

      yeah, I know. what is somehow frustrating is the 'OSX is more secure than Windows' hype - the blanket statements, like 'switch and all your security problems will go away.' Or see all the 'hack mine then' posts here, for instance - as if a properly firewalled machine running apache+php would be magically hackable for certain OS-es and not so for others (given working root exploits for all and the same php vulnerability everywhere)

      In fact, I'd say go even further - set the lab machines to PXE boot every time and reload a minimal setup for the OS, then have all the relevant apps run from a network mounted partition. Perhaps with scheduled reboots so that your machines don't remain in a botnet if they happen to have joined one.

    2. Re:University computers by jbolden · · Score: 1

      Oh I think this is true but not for any Unix. Something like Z-OS (was MVS) or I-OS (was OS/400) really are more secure. Unix is and was designed to be a low security operating system. Windows conversely has underneath the hood some very well thought out security that none of the major windows applications support very well.

      Apple has done a great job of making reasonable security not so onerous for the desktop user. Their server product does a good job of making reasonable security not so onerous for the average small business owner. That's a world of difference from a high security setup.

  69. The way it used to be by acomj · · Score: 1

    People's expectations have changed over time. That was the old expectations. Of course any process thatis uid root should be under heavy scutiny. Apple should try to fix these problems.

    One of the reasons Gopher went away and the web took off, was you could set up a server without having users login. Much more secure.

    It would be more interesting to determine if the same problems exist in OS X Server.

    Note that a quite a few shared web services disable remote login unless they feel there admins are up to the task.

  70. FUD...try this biaaaach by Anonymous Coward · · Score: 0
  71. For something as great as OS X by Anonymous Coward · · Score: 0

    For something as great as OS X the exploit shouldn't have worked anyway. But it's a fact that as far as security goes, Apple are up the creek without a paddle, and as far as running Unix goes, Apple aren't running it.

    Any process at all - as low as the default admin and sometimes even lower - can get any arbitrary code to run as root at any time on OS X. Yes, it is that bad.

    Read this and test it yourself.

    Apple's 'Unix' Runs Arbitrary Code on Boot
    http://rixstep.com/1/20060306,00.shtml

    Download the POC referenced in the article here.

    ftp://rixstep.com/pub/BootRooter.tar.bz2

    There is no Unix around that will allow such a thing. Congratulations, Apple. And congratulations to all OS X users. Smell the bread burning? Time to disengage your iPod earplugs and run for the exits.

  72. Sigh by aliensporebomb · · Score: 1

    If I read the findings correctly, there were a number
    of questionable things done:

    -giving shell access to anyone who asked for it.
    -leaving ssh on and running.

    But these weren't the most egregious things allowed:

    Any machine, any operating system is vulnerable when
    PHYSICAL ACCESS TO THE BOX is allowed.

    If someone can just walk up to it you might as well
    kiss your security goodbye.

    Working in a large Fortune 500 company, I often notice
    post-it notes with passwords stickied to monitors or the
    underside of keyboards - it's not that different in the
    real world either.

    Again, any operating system can be defeated if you have
    an account with the right priveleges and you have physical
    access to the box.

  73. "Other OS are just as bad" is not a good excuse! by Chemisor · · Score: 1

    > Personally I would really like to see similar competitions against default-installs of some other OSes

    This is absolutely irrelevant. A secure OS is secure regardless of how many insecure OSes there are. Security is an absolute measurement; can you hack the box or not? If you pass it, you are secure, if you don't then you are not.

  74. You are quite clueless aren't you? by Some+Random+Username · · Score: 1

    Giving people nologin for a shell doesn't do anything. Any web host that lets you run CGI or PHP or anything dynamic at all is giving you all the same abilities that you get with a real shell. Its just less convienient. You can still exploit local holes to gain root priv all you want.

  75. MOD PARENT OVERRATED! by Anonymous Coward · · Score: 0

    What asshat modded this guy Insightful? "Turning off functionality because of security is not acceptable." - WTF???? He obviously doesn't know what the hell he's talking about. There's a big diff between insight and head-in-the-clouds idealism.

  76. But how was it done? by kimble3 · · Score: 2, Insightful

    While the implications of this "test" are debateable, what I would really like know is how the hack was done. Is there some flaw in OS X that was exploited? Or did the admin do something else silly like make the root password something simple like "hello" and it was guessed/dictionary attacked. Is this a Mac OS X specific hack? Or did they use a vulnerabilty that is common to other UNIX flavors as well?

    1. Re:But how was it done? by JulesLt · · Score: 1

      Never mind, I'm sure it attracted thousands of hits to ZDNet. I've quit my subscription to their mailout because it's become an endless stream of controversy courting low-content articles.

      --
      'Capitalists of the world, unite! Oh ... you have' (League Against Tedium)
  77. bullshit by geekee · · Score: 1

    "This was a while ago, but when you give a user a local account, its almost assumed that if they really wanted to they could get root. You should take care when giving out accounts.

    It like giving physical access to a machine. If you give physical access to any linux machine, its not hard to log onto it. (this is why you lock up the machines!)"

    A local account is much different than physical access to a machine. If an OS is secure, local users shouldn't be able to get root access. The reason physical access nullifies security is that you can just reboot the machine with your own OS and mount the hard drive and modify to your hearts content.

    --
    Vote for Pedro
  78. How long would this contest lasted on Windows? by argent · · Score: 2, Informative

    I mean, really. You have local root exploits on OS X. I'm not surprised, when you have companies like Adobe shipping apps containing setuid root shell scripts. Suppose you set them up with an Interix or Cygwin ssh login on Windows, how long would it take to deface IIS? Or would you even bother calling that an "exploit"?

    If you need to give potentially hostile users shell, you want them in a FreeBSD jail at a minimum.

  79. Remember web apps exploits by Dr.Syshalt · · Score: 1

    If you set up a web server, you should also take into account that some, for example, PHP application can be hacked. phpBB, mambo.. should I name quite a few? When I set up a web server, I always consider that its user ("apache", "www") may run some code on a system - since everyone have access to the web server. I wouldn't like it if someone, who's found a phpBB exploit, would get a root on the server in 30 minutes after that.

    In your example this would rather mean that your jewelry is not kept in safe in a house which could be visited by guests at any time, but simply put on the table. Not exactly the best idea. And I don't think it's funny.

  80. Wrong! by Ibu001 · · Score: 2, Interesting

    That's just wrong, sorry. There was at least two bugs in MacHTTP I discovered in 96, iirc:

    - URL /M_A_C_H_T_T_P_V_E_R_S_I_O_N gave statistics about the server and wasn't documented (i.e. it was a back door). There was a discussion on MacHTTP mailing list, many Mac fans estimating this was a feature and not a backdoor, and finally MacHTTP was changed to provide only a version string instead of statistics.

    - There was a bug in the URL parsing code which permitted to read the data fork of any file provided you knew its path. This bug existed in MacHTTP 2.2 and was fixed in 2.2.1 when I notified MacHTTP's author.

    1. Re:Wrong! by commodoresloat · · Score: 1

      #1 may have been dubious as a feature, but in what way is it a bug?

    2. Re:Wrong! by Ibu001 · · Score: 1

      Since documented bugs are features, undocumented features are bugs, especially when they're related to security, aren't they? Ok, let's say it wasn't a bug. But it was still a security and privacy problem.

    3. Re:Wrong! by commodoresloat · · Score: 1

      In what way? I'm still confused as to how security is compromised by access to web stats. I used to use this feature to keep tabs on how many hits my webserver was getting. I don't recall ever reading about a Webstar site being compromised with access to that information. Many websites post far more detailed statistics than this. The undocumented part of the feature might be bothersome, but hardly a security hole, IMHO.

    4. Re:Wrong! by Ibu001 · · Score: 1

      A good way to reduce risks is to avoid diffusing more informations that necessary. That's why the finger daemon, for instance, which was a cool feature 15 or 20 years ago, isn't very popular anymore. Searching in my archives, I've found this, which was posted to the WebSTAR mailing list in May 96

      Request: GET /M_A_C_H_T_T_P_V_E_R_S_I_O_N

      Reply from MacHTTP:

      TAR, Copyright 1996 Chuck Shotton, Portions 1996 Quarterdeck Corp. and its Licensors. All rights reserved. PowerPC (CW) version totalCon 27175, maxCon 38, listening 34, current 4, high 25, busy 0, denied 0, timeout 14, maxMem 2100960, currMem 2051552, minMem 1962192, bytesSent 89734697, port 80, maxTimeout 240, verboseMessages false, disableLogging false, hideWindow false, refuseConnections false, upSince 07/09/96:16:30, version 1.3(PowerPC (CW))

      This wasn't logged. I.e. if you wanted to check if you could download arbitrary files with "bugs #2" (which was a real, nasty, major security bug present in probably all versions of MacHTTP until version 2.2), or play with arguments of CGI scripts, you could just check whether accesses were logged or not. I don't know any web site which publishes this kind of information. There wasn't any option to disable it.

  81. fsck 'em Bucky! by emmons · · Score: 1

    Oh, and Ann Arbor is a whore.

    --
    Do you even know anything about perl? -- AC Replying to Tom Christiansen post.
  82. Re: first thought... by TheNetAvenger · · Score: 1

    Even if it is a closed system using redundant biometrics authentication, it CAN be hacked, I don't care how much faith you have in your closed-source redudndant (sic, with 'redudndant' "D"s) biometric-authenication (sic, and needed a 'redudndant' "T") OS on the market, period.

    Yes it can, I was using an illustrative concept we put together in the early 90s for the pentagon to set the bar for what is in the close to non-hackable range and how far that is from a consumer OS with barely even C2 level security.

    Besides we have all seen McGyver do the sheet rock thing with a piece of paper to bypass the handprint scanners... :)

    So now can we just go back to the subject, or you have another item you want to point out that the rest of us already realize?

  83. Fink could have aided the hacker by Been+on+TV · · Score: 1

    One of the unusual things about the "hacked" machine was that Fink was installed. This most likely means that the Apple developer tools were installed (although Fink can install precompiled binaries), making it possible for the hacker to bring his own code and compile on the system. Although Apple ships the developer tools on the OS X client install DVD, it is not installed by default, nor is X11.

    Fink lists a catalog of 6359 open source projects that can be installed, many of which are tools that could help a hacker exploit a machine or that are exploitable in themselves.

    --
    The future is in beta
  84. security is absolute? by Joseph_Daniel_Zukige · · Score: 1

    Okay, ... ... therefore there are no secure OSses.

  85. letting someone ssh in as an admin?

    Surely you don't have sudo set up to allow non-admins to sudo root?

    The default sudoers on Mac OS X does allow the initial (in other words, original admin) user to sudo, as I recall. No one else, however.

    One thing Apple should do is something MS seems to be doing with recent XP (sometime since I wrote about it on my personal webserver which it seems no one but the search engines ever look at) --

    Prompt the owner to set up a non-admin account in addition to the admin account. If the owner doesn't tell the setup routine otherwise, set it to auto-login to the non-admin account.

  86. Well, I guess he proved one thing by Joseph_Daniel_Zukige · · Score: 1

    he has a neat script for giving people ssh accounts. I wonder if he thought to make them non-admin.

    Oh, and he proved that Mac OS X is not SELinux. (Neither is FC4 for most users, but that's beside the point, I suppose.)

  87. So, I'm curious by Joseph_Daniel_Zukige · · Score: 1

    do you advocate putting SELinux on Grandma's computer?

    Hmm. Actually, if Grandma is just going to be doing e-mail, that might not be a bad idea. Does SELinux run well on old 256 MHz class x86 CPUs? Gotta get an elderly aunt off that MSW98.

    How about my dad, who would occasionally want to install software for the foreign language classes he taught part time after he retired?

    1. Re:So, I'm curious by Coryoth · · Score: 1

      Sure if you like. SELinux comes standard in Fedora these days, and is eing integrated into Ubuntu as well - should be available in the next release.

      Jedidiah.

  88. The exploit was... by Ekhymosis · · Score: 1

    the host's stupidity. I don't know about 'little known exploit'. Stupidity is rampant. Apple can't patch that, so they're SOL as is this fool. Stupidity can't be patched (too bad) and if they try to make an idiot proof OS, well, you know what happens.

    --
    Fighting over religion is like seeing whose imaginary friend is best.
  89. Re: first thought... by Anonymous Coward · · Score: 0

    You can start with this one: XX.XX.XXX.XXX.

    Okay, done. Not much there. I just saw one application running called pr0nb0t. *shrug*

  90. You kids today by Ohreally_factor · · Score: 1

    with your "wipe the hard drive"

    Back in my day, we didn't have hard drives. We used our fingers! AND WE LIKED IT THAT WAY!

    And if someone rooted your box, it meant they were groping your crotch.

    --
    It's not offtopic, dumbass. It's orthogonal.
  91. Re:"Other OS are just as bad" is not a good excuse by Kadin2048 · · Score: 1

    Okay, so there aren't any "secure" OSes.

    That was fun -- how about a conclusion we can actually use?

    I'd like to see a competition between OSes, because as a user at some point I might want to choose between them, and even if none of them are truly secure (as long as they're plugged in), there's a certain value in knowing which one is more secure than the others, in various use cases.

    There's a certain point where a system becomes 'secure enough' for a particular use. Depending on the use, you might be okay with a default install of Debian-stable, or you might want SELinux with all the hardening options. It's a matter of exposure the system will have and what the consequences of it getting compromised would be.

    Sure, to get enough datapoints to be really valid, you'd have to run 'competitions' like this pretty much continuously, and even then I'd have serious questions about them and how they model real-world hacking scenarios, but that's not to say you wouldn't get interesting results. Certainly more interesting that TFA's "competition."

    --
    "Ladies and gentlemen, my killbot features Lotus Notes and a machine gun. It is the finest available."
  92. Chill... by chaboud · · Score: 1

    He didn't say that no Mac server admin knew what "headless" meant. He was talking about the majority that he knows. That said, I'd wager that the bulk of server admins out there don't know what headless means. The bulk of servers administered is likely a different story.

    One server is a cakewalk. 100?

  93. Re:Mac user ignorance = ignorance of troubles by jackjeff · · Score: 1

    I'm not saying that MacOS X is a super secure system. But the truth is, despite all the fuss we have heard about Mac OS X lately, so far there IS NO VIRUS OR SPYWARE known for Mac. How's that compared to the gazzilion of Windows?

    There are a few exploits that necessitate either SSH or physical access to the machine. Bad :( And proof of concept viruses which no one has even bothered to re-use to build up something really nasty... Maybe the system is not Fort KNOX, but so far, Mac users do not have to run anti-virus or anti-spyware, and they're right to be ignorant there's NO SUCH THINGS. It does not exist.

    - Virus and spyware makers do not care about the 1% Mac marketshare. good :)
    - They do not have the expertise
    - Those who have usually like Macs, so don't develop such nasty things
    - Apple breaks the backward compatibility very often (there used to be REAL viruses before on MacOS... but they can't work on current hardware/OS) Today it's the ppc->x86 change. Yesterday it was OS 9 -> OS X, or 68k -> ppc
    - Components are usually not dependent with one another in silly ways (see IE): you don't browse your files with a webbrowser, you don't d/l your security updates with a web browser, there's no such things as custom toolbars or activex in ur default browser..
    - All crappy default stuff are disabled by default
    - No one runs MacOS X in "root" mode, unless a geek (it's hard to activate, those who do it know what to do).. So it's hard for one user to fuck up another's users documents and stuff, or for a virus/spyware to trash the whole machine :)

    so yeah. I feel pretty safe with a Mac in the hands of my mom who knows nothing about security. If she had a Wintel PC I'd have to install all those crappy anti-virus / anti-software that eat CPU cycles and HD spins, and cost money, and even like that, I'm sure my mom's computer would go in such a nasty state i'd have to re-install it from scratch...

    macos x itself is far from being perfect. it is probably not that secure, but the risk for the guenine user is today "non existant"

    as for the servers, they do run the same software as their Linux/UNIX counterparts. So it's no more no less secure :)

  94. Asking gwerdna... by mangee · · Score: 1
    There was an andrewg logged into the box the other night...
    andrewg p4 felinemenace.org Fri03 5:01 sh
    He's been on for a while...
    rm-my-Mac:~ mangee$ who
    andrewg ttyp4 Mar 3 03:38 (felinemenace.org)
  95. Root ain't disabled on this box.. by mangee · · Score: 1
    on this particular box, root is logged in, as is a user account (called user) - both accounts are running various (tailing logs etc) things to keep an eye on progress of the hacks it seems.
    rm-my-Mac:/tmp/mangee mangee$ w
    20:16 up 3 days, 20:35, 23 users, load averages: 153.18 82.46 37.32
    USER TTY FROM LOGIN@ IDLE WHAT
    user console - Thu23 3days -
    user p1 - Fri00 9:53 bash
    andrewg p4 felinemenace.org Fri03 5:27 sh
    root p5 wideopenbsd.org 16:24 1:14 sh
    Load average is a little steep, poor little box.
    And enabling root is elementary for a user with sudo access Theres a few bits over on my blog post about it
  96. Re:Mac user ignorance = ignorance of troubles by norm3000 · · Score: 1
  97. Sure the OS X box was hacked in 30 minutes by mazola_jr · · Score: 1

    ... but that's about 29 and a half minutes longer than a similarly configured Windows box.

  98. Re:Mac user ignorance = ignorance of troubles by jackjeff · · Score: 1

    I know these exploits/proof of concepts and mentioned them. As I said, there's NO TRULY HARMFUL VIRUS ON MAC. This is just propaganda from these security/anti virus companies that cannot justify the need for their products on Mac. As I said, it does not mean MacOS X is secure, but it's a mix of broken backward compatibility, small market share, few people able to program this and lack of interest. So we're safe for a long while my friends :)

    These two beasts u show are exploits/proof of concepts which are merely classified as worms by Symantec with LOW risk (= no risk)

    - the second is a real joke It's just an old exploit. Nothing harmful at all. You need BLUTOOTH activated, be in the range, and have an old not up to date macos x version (with apple software update it's hard). It just replicates, that's all it'll ever do :) Wooow.. am scared. I think I have never ever used blutooth on my laptop, and all my desktop macs don't have it, and the bug is patched on all my machines thanks to security updates :)

    - the first one is a proof of concept but buggy! which means it's slightly harmful but it was not designed to be. To be infected the user must nicely unpack an archive and launch the program. It's a bit like sending a "rm -Rf" script to a Linux friend and tell him he can see Monica Lewinsky naked in Ascii-Art if he starts this :).... Then it hooks up on the user's InputManagers, if you're lucky and have mac os X 10.4 (will fail with all other versions) tries to infect 4 applications which are writable (by default /Application needs root rights to be writable, so on a brand new mac it fails). It's buggy, so it fails and prevent the application to launch in practise, but does not trash it (it's possible to restore normal behavior). The only successful way it has to propagate is to use iChat (I know no mac user around me who uses it.. lolz.. but ok, it's pretty common i imagine being there by default). Your contact must accept, uncompress and launch the crap to be infected too (and have a mac!!). And even that, does not always work because of another bug, the receiver might get a corrupted version sometimes. And did I mention it only works on ppc machines and not the new iMacs, mac mini and macbook pro which run on x86?

    it's interesting to see that the second stuff could be improved and customized to do very nasty stuff. But no one even tried to. :) In addition, as long as it will require the use to nicely open it, it will probably fails to propagate because 99% of computer in this world run Windows

    As I said, Macintoh users are ingorant of these things. So far there's been no threat. And these two exploits are unlikely to change anything. Install MacOS X out of the box and let it run a few days, there's hardly a chance u got infected by anything... I remember not so long ago reading an article that says the average time ur windows XP SP1 gets trashed: it is 20 mins.

    http://www.theregister.co.uk/2004/08/19/infected_i n20_minutes/

    Sure, the SP2 made a lot of progress (by simply disabling stuff no one used by default wowooo.. ). It was 2004. That same year I remember seing an exploit which made root escalation on Mac. It was not promoted by virus software editors therefore no one talked about it even here on slashdot. But i was pretty shocked to gain root access on a machine easily. I also remember in those days people talking about disguising an application with a document icon. I think there was even a proof of concept but unlike "oompa" it did not replicate. Truth is, that thing has been around for eons, but no-one really ever used to produce some malware code, so it remained unpatched for a while.

    And the day it becomes a problem?? Well Apple will make the finder says smth like "hey this application has never been launched before. you sure u wanna run this?". Duh it h

  99. Challenge: Hack into my Windows Box! by bananaendian · · Score: 1

    > Would be nice to see something like this for all platforms.

    Well, huh! Here's a challenge! I've got a Windows box which you can attack at IP 124.235.13... [silence]

    PS: What's even funnier is I've actually got a W2K webserver/SSH/SFTP server running here but I dare not give the IP away at slashdot - if OSX has 'an unpublished vulnerability' I wonder how many Windows does... Which is double funny again since supposedly OSX weaknesses haven't been exposed cause of small user base whereas my only defence against horders of hackers here is to keep my website as unpopular as possible! :P

    --
    www.tribalnetworks.org - helping tribal people around the world to own their own means of high-tech communications