News for hackers. Stuff that matters.
Re:Hidden backdoor API to root privileges in Apple OS X by moey on Thursday April 09, 2015 @11:15AM (#9348100)
With physical access, one has been able to create admin accounts for as long as I can remember.

- Start up the Mac whilst holding down ⌘-S. This boots the Mac into Single-User Mode and provides a method of interacting with OS X via the command-line, with full root privileges.

- Then check the filesystem to ensure there are no problems: "/sbin/fsck -fy"

- Then mount the filesystem for it to be accessible: "/sbin/mount -uw /"

- Now remove this file so OS X will re-run Setup Assistant: "rm /var/db/.AppleSetupDone"

Now just restart, and enjoy the cool introduction animation as you create your admin account.

Re:Hidden backdoor API to root privileges in Apple OS X by cheald on Thursday April 09, 2015 @11:59AM (#9348478)
Local privilege escalation is always bad because it means you're one malware payload or RCE away from being rooted and conscripted into someone's botnet (or worse). This isn't just a physical access concern.
Re:Hidden backdoor API to root privileges in Apple OS X by andreyf on Thursday April 09, 2015 @09:04PM (#9352017)
What about without local privilege escalation? Is there no way for a malware payload or RCE to turn your computer into a botnet without root privileges?
Re:Hidden backdoor API to root privileges in Apple OS X by cheald on Friday April 10, 2015 @02:51PM (#9356366)
There certainly is, but rooting a box lets you ensure that you stuff says in place. Once a box is rooted, its owner can never really be sure they have it clean without wiping and rebuilding it.
Re:Hidden backdoor API to root privileges in Apple OS X by dzhiurgis on Thursday April 09, 2015 @09:27PM (#9352076)
There are advertising networks that use JavaScript on client machine do distributed computing. Is that a botnet or not?
Re:Hidden backdoor API to root privileges in Apple OS X by robbintt on Friday April 10, 2015 @03:57AM (#9353014)
Do you know where I can observe this? I'd like to review the code.
Re:Hidden backdoor API to root privileges in Apple OS X by praseodym on Thursday April 09, 2015 @11:32AM (#9348262)
Even easier is running 'resetpassword' from Terminal in Recovery mode (boot with ⌘-R). This gets you a nice GUI tool where you can reset any account passwords.

But yes, this is not possible with a firmware password or with disk encryption (FileVault) enabled.

Re:Hidden backdoor API to root privileges in Apple OS X by KuchenKerze on Thursday April 09, 2015 @11:21AM (#9348148)
Not possible if full disk encryption is enabled. And that is a default since a year or so.
Re:Hidden backdoor API to root privileges in Apple OS X by nothrabannosir on Thursday April 09, 2015 @11:35AM (#9348284)
full disk encryption only protects you from passive snooping. If someone has physical access between two of your subsequent uses, no amount of any type of encryption will save you. Except maybe some entangled quantum bit collapsing mechanism. Maybe.

Think hardware keyloggers, fake MBRs, &c.

OP's trick won't work, but that's an "implementation detail;" there are plenty others that will.

EDIT: to clarify; that's not what you said, it's just a common enough misconception that it's worth being explicit about, here.

Re:Hidden backdoor API to root privileges in Apple OS X by KuchenKerze on Thursday April 09, 2015 @11:44AM (#9348350)
Of course keyloggers etc. are a problem. But that is a different story. A bug which can be exploited just by grabbing any device might have a larger impact on the vendors reputation. A keylogger, fake smc, whatsoever ist much more dangerous for a single person, because the attacker knows what he wants on the specific device.
Re:Hidden backdoor API to root privileges in Apple OS X by sneak on Friday April 10, 2015 @04:46AM (#9353135)
There's have to be a hardware mod if a firmware password is enabled. It prevents booting from any other media or partition without a password.
Re:Hidden backdoor API to root privileges in Apple OS X by 0x0 on Thursday April 09, 2015 @01:25PM (#9349260)
That's not very interesting. You can do the same on a linux box, passing init=/bin/sh in the boot loader, and probably the same on windows (boot a WinPE CD or a Linux live CD with NTFS3g).
Re:Hidden backdoor API to root privileges in Apple OS X by kpcyrd on Thursday April 09, 2015 @11:35AM (#9348287)
If I understood the article correctly, this can be exploited remotely by anybody who has managed to get a shell on the system.
Re:Hidden backdoor API to root privileges in Apple OS X by jrochkind1 on Thursday April 09, 2015 @12:51PM (#9348965)
It's even worse than it seems if you talk about it as 'anybody'.

Most OSX boxes are probably single user devices. But you do not normally run as root/wheel, you need sudo (sometimes through a nice GUI) for software to get root privs.

It's not 'somebody' as if another person were logged into their own account. It's that malware running as you can now get root, to further compromise your system, without needing a sudo password.

Re:Hidden backdoor API to root privileges in Apple OS X by mattrepl on Thursday April 09, 2015 @02:36PM (#9349881)
Just to clarify, this is _not_ a remote vulnerability. If it was a means to create a remote shell, then it would be. An attacker would need to first find some way to gain remote access and then could use this bug to gain root privilege.
Re:Hidden backdoor API to root privileges in Apple OS X by kpcyrd on Friday April 10, 2015 @04:19AM (#9353058)
The parent comment and some of the child comments are implying you need to be physically near the system, which doesn't seem to be true.

You still need to find a way to execute code on the target system (also called "getting a shell"), but this can be done over the wire, too.

Re:Hidden backdoor API to root privileges in Apple OS X by mhurron on Thursday April 09, 2015 @02:28PM (#9349833)
That's how all local exploits work.
Re:Hidden backdoor API to root privileges in Apple OS X by matthewmacleod on Thursday April 09, 2015 @11:30AM (#9348241)
Yes, but that's not really a concern. Physical access with no disk encryption is always 'vulnerable'.

What's pretty bad here is that any user now has a backdoor to obtaining root privileges. That's an awful security flaw.

Re:Hidden backdoor API to root privileges in Apple OS X by wyager on Thursday April 09, 2015 @01:12PM (#9349148)
There's a huge difference between physical access vulnerabilities (which are basically impossible to prevent) and local privesc vulnerabilities (which can be exploited in software).
Re:Hidden backdoor API to root privileges in Apple OS X by JorgeGT on Thursday April 09, 2015 @01:39PM (#9349397)
To exemplify, for instance, this vulnerability could be packed in a phishing mail executable giving the remote attacker root access if the user falls for the trap, no?
Re:Hidden backdoor API to root privileges in Apple OS X by fit2rule on Thursday April 09, 2015 @02:41PM (#9349930)
It could be packaged into any executable that someone might think about downloading off the Internet for some reason.

So its really, really not good. Apple need to fix this soon, or else every OSX machine out there is going to start being targeted for misuse. This is really a powerful security bug.

Re:Hidden backdoor API to root privileges in Apple OS X by guipsp on Thursday April 09, 2015 @02:37PM (#9349897)
Yes.
Re:Hidden backdoor API to root privileges in Apple OS X by Archio on Thursday April 09, 2015 @11:23AM (#9348167)
Isn't the idea though that with physical access, the game is already over anyway? If an intruder has physical access to your machine they will eventually be able to get to anything they want.

If someone really wants to protect their data, they have to count physical access as a possibility and rely on encryption and/or remote wiping - the operating system login isn't going to do much anyway.

Re:Hidden backdoor API to root privileges in Apple OS X by Vexs on Thursday April 09, 2015 @11:30AM (#9348244)
Yep, physical access is total access. However, this trick falls under cool-at-school-tech-labs, I'd hope enterprise systems would do something to prevent this kind of low-level shenanigans.
Re:Hidden backdoor API to root privileges in Apple OS X by TeMPOraL on Thursday April 09, 2015 @12:56PM (#9349019)
School tech labs are modelled after the enterprise networks, the only difference is usually a bit more competent IT staff. I'd expect most of the school-lab tricks to be directly transferable to enterprise.
Re:Hidden backdoor API to root privileges in Apple OS X by darkarmani on Thursday April 09, 2015 @04:32PM (#9350813)
> With physical access

What malware requires physical access? This is a local privilege escalation to root. It's only local because you need an account on the machine to make it work, but it can be bootstrapped to a remote exploit.

Re:Hidden backdoor API to root privileges in Apple OS X by alexsop2 on Thursday April 09, 2015 @01:21PM (#9349217)
About two months or three ago I stupidly changed my password to my only account to a password I promptly forgot. I was losing it when I realized what I had done. To make matters worse, I did this change a day before our office was scheduled to move to automated backups via Time Machine.

Luckily after some digging I came across this fix and was back in to my computer, albeit a little shaken up by the back door.

Re:Hidden backdoor API to root privileges in Apple OS X by taumhn on Thursday April 09, 2015 @11:27AM (#9348205)
If you're paranoid enough to think someone you don't trust can have physical access to your Mac, it is possible to prevent this by setting up firmware password though.

See https://support.apple.com/en-us/HT204455

Re:Hidden backdoor API to root privileges in Apple OS X by thudson on Thursday April 09, 2015 @12:01PM (#9348493)
Firmware passwords can be bypassed by a local user with a Thunderbolt Option ROM. The 10.10.2 fix for Thunderstrike left that hole open during normal boots: https://trmm.net/Thunderstrike_FAQ#Is_Thunderstrike_fixed_in...
Re:Hidden backdoor API to root privileges in Apple OS X by Osiris on Thursday April 09, 2015 @11:45AM (#9348361)
The first Mac I ever got, the IT department forgot to give me admin access, so I couldn't install any software. Having never used a Mac before, it took a grand total of about 15 minutes of Googling to figure out how to boot into single user mode and give myself admin access.