Live data from Hacker News

macOS High Sierra: Anyone can login as “root” with empty password

twitter.com

51–60 of 1001 posts

Re: macOS High Sierra: Anyone can login as “root” with empty password

#57
post #11

With user switching enabled as a username + password combo, I was able to login to the root account from the login screen with no password on 10.13.1. It's not just a UI bug, it's a full on authentication bypass.

I'm able to do this as well, login as root with no password from the login screen.

Re: macOS High Sierra: Anyone can login as “root” with empty password

#58
Confirming this works, both from preferences, as well as from the main login screen

It seems like root has no password by default. Setting one is enough to close the hole. This is unbelievable!

Curious to see what's in /var/db/dslocal/nodes/Default/users/root.plist before trying this.

Re: macOS High Sierra: Anyone can login as “root” with empty password

#59
post #38

Be careful testing this! It appears that you're creating a "root" superuser with no password. Be sure to clean up that user afterwords. https://twitter.com/a_hailes/status/935601901839806464

This support article explains how to disable the root user: https://support.apple.com/en-us/HT204012
Post reply on HN