Lurker News

Comments (1,056) 195 threads

Earlier comments
senko7 replies#
Am I missing something or does this require the attacker to have access to an unlocked computer? In which case all bets are off anyways.
devindotcom1 reply#
nope. you can log in at the login screen, it creates a new root admin user
senko#
Missed that part in the text, thanks.

Yikes!

valine1 reply#
It works remotely if remote login is enable.

edit: Screen sharing is is vulnerable not ssh. Either way its bad.

djrogers1 reply#
No it does not. I tested this rather carefully, and both ssh and screen sharing do not allow the user root with no password.
ehntoo#
I have not been able to trigger this with ssh, but certainly have been able to with Screen Sharing, even after explicitly re-disabling the root account.
jonny_eh#
What if it's a stolen laptop with an encrypted hard drive?
jzwinck1 reply#
It requires the attacker to be able to type a few characters into a logged in session. If the session is not an administrative one, it's not fair to say all bets were off.

If I give you a Mac logged in with an unprivileged account and you can use only the keyboard and mouse to gain root access, the security has failed.
I think you've conflated this with the attacker having (full) physical access to the machine, which conventionally means access to its ports and perhaps a screwdriver. This is not that.

senko#
Fair point, if that works with a guest account.

I was thinking along the lines of, if I have write access to your .bashrc (or a multitude of other config files that you as an unprivileged user have write access to, and can be used to trick you later into running code of my choosing), all bets are off.

woodrowbarlow#
an unlocked computer, or:

* a computer with remote login enabled
* a computer with the main login screen set to "username and password" mode
* a computer with a guest account

EpicEng2 replies#
>In which case all bets are off anyways

How are all bets off if they don't have access to a root user? This isn't Windows we're talking about.

senko#
If they have access to the account that is being used normally, they can modify the (user-accessible) settings to trick the user into running malicious code and giving them access (or causing trouble even without access to the root account).
mholt2 replies#
If you lose physical control over the machine, all bets are off because an attacker can modify the hardware to do nefarious things.
apetresc#
I know the theory, but practically there's a huge difference between that type of physical access and "the victim left the room to go to the bathroom for 2 minutes" type of physical access
EpicEng#
ok, sure, but in practice that is pretty unlikely.
code_duck#
The 'attacker' could be someone like your 12 year old son or an employee, who already has access to the computer but not necessarily everything on it at all times.

This would have been a pain for me when i was using parental restrictions to lock a 12 year old out of 18 hour a day Minecraft.

pilif1 reply#
A quick mitigation workaround: If you follow the steps here https://support.apple.com/en-us/HT204012 to disable the root account until the point where you open and authenticate the Directory Utility, in the Edit menu there's a "Change Root Password" option.

Set a good password there and disable the root account again.
Now people making use of this vulnerability will still be able to re-enable the root account (that's why it fail the first time - root is default off, but this bug enables it), but now there will at least be a useful password set.

Asmod4n#
if you disable the root account you can log in again without a password, even when you set one.
valine1 reply#
This is deeply troubling. How does this even happen?
andrewstuart21 reply#
All too easily. There's so much to keep track of in modern systems engineering. We should all have a healthy dose of awareness that we could be/create that weakest link even on our best days.
kowdermeister1 reply#
Errr... umm... unit tests? Tests?
andrewstuart2#
You can have 100% coverage and never check a single edge case. Much less remember every edge case.
manwe1501 reply#
I'm on Sierra and haven't been able to reproduce. But does anyone know if it respects pam.d "nullok" and I could just delete that option?

    /etc/pam.d$ grep -RI nullok /etc/pam.d
    /etc/pam.d/authorization:auth       required       pam_opendirectory.so use_first_pass nullok
    /etc/pam.d/checkpw:auth       required       pam_opendirectory.so use_first_pass nullok
    /etc/pam.d/screensaver:auth       required       pam_opendirectory.so use_first_pass nullok
Asmod4n#
Tested it in the terminal with "su - root". Doesn't help. Or does one need to reboot after it? UPDATE: No effect after rebooting.

Load more comments