Slashdot Mirror


MacOS High Sierra Bug Allows Login As Root With No Password (theregister.co.uk)

An anonymous reader quotes a report from The Register: A trivial-to-exploit flaw in macOS High Sierra, aka macOS 10.13, allows users to gain admin rights, or log in as root, without a password. The security bug is triggered via the authentication dialog box in Apple's operating system, which prompts you for an administrator's username and password when you need to do stuff like configure privacy and network settings. If you type in "root" as the username, leave the password box blank, hit "enter" and then click on unlock a few times, the prompt disappears and, congrats, you now have admin rights. You can do this from the user login screen. The vulnerability effectively allows someone with physical access to the machine to log in, cause extra mischief, install malware, and so on. You should not leave your vulnerable Mac unattended until you can fix the problem. And while obviously this situation is not the end of the world -- it's certainly far from a remote hole or a disk decryption technique -- it's just really, really sad to see megabucks Apple drop the ball like this. Developer Lemi Orhan Ergan was the first to alert the world to the flaw. The Register notes: "If you have a root account enabled and a password for it set, the black password trick will not work. So, keep the account enabled and set a root password right now..."

11 of 237 comments (clear)

  1. Re:Am i missing something here? by Anonymous Coward · · Score: 4, Informative

    By default, there's no root account. Attempting to log in as root with no password multiple times creates a root account with no password.

  2. All it requires... by x0ra · · Score: 3, Funny

    is "courage" to go beyond the heteronormative system of power and privileges. Why would you require privileges in a progressist society where everybody is equal.

    USER LIVES MATTERS !

  3. Why/how though? by Xuranova · · Score: 5, Interesting

    I can understand if it let you in after hitting enter once, because then it's just ignoring something. If it denies entry the first few times and then lets you in, what do the *nix gurus think is happening after the first few denials to have it change its 'mind?

    --
    "There is no real right or wrong, just what the majority accepts at the time."
  4. User chethan177 was actually first to report by Anonymous Coward · · Score: 5, Informative

    https://forums.developer.apple.com/thread/79235

    'course, this post may not have been reported directly to security folks. it was something that they should have found while monitoring the beta forums, though.

  5. Re:Apple deserves a geek at the top by Anonymous Coward · · Score: 3, Insightful

    Yes this is obviously the fault of Tim Cook. Forcing the poor programmers to insert security holes is indeed his MO as should be obvious from this article: http://www.theregister.co.uk/2...

    Or maybe under Tim Cooks leadership the overall quality of Apples software and hardware has noticeably declined.

  6. Re:Am i missing something here? by Anonymous Coward · · Score: 3, Interesting

    Parent is also incorrect, there is always a root account. I would hazard a guess the issue is with sudo as that is the underlying mechanism for privilege escalation.

  7. Re:Can Anyone Here Reproduce This? by anegg · · Score: 5, Informative

    I just reproduced it.

    I have a MacBook Pro that I upgraded to High Sierra (10.13.1) over Thanksgiving. My login screen is set to only offer the pre-defined user accounts. I logged into a non-privileged account that I keep around for testing purposes. Went to the top-level of the file system; did a "Get Info" on a folder I didn't have access to; asked it to show me "Sharing and Permissions"; clicked the lock icon to unlock them; got a username/password dialog box; entered "root" as the username with a blank password once; the dialog box shook and cleared; entered "root" with a blank password again, and the action completed with the lock unlocked. Now when I go to the login screen, I have an "Other" account showing; if I click "Other" I get a username and password dialog box; if I enter "root" as the username with a blank password Bob's your uncle. Logs right in, shows the username in the upper left of the screen as "System Administrator." The account has root access to the machine.

    This is probably exercisable remotely if remote logins are enabled (screen sharing, anyway); I don't think anything I did would not be doable through a remote login (but I have not the means to test at the moment). Seems like there might be some blood on the floor over this one, at least at some organizations. I don't envy sys admins in large academic environments either.

  8. Re:Can Anyone Here Reproduce This? by anegg · · Score: 3, Informative

    I followed up with a remote test, and the attack works fine over "Screen Sharing" (VNC) to my iMac 27" from circa 2013 that I also just upgraded to High Sierra (10.13.1) over Thanksgiving. Merry Christmas.

    Needless to say, I now have a root password set on my Mac-in-trashes. I didn't before because the root account isn't normally enabled and I was not being sufficiently paranoid; sigh.

  9. Re:Am i missing something here? by Rutulian · · Score: 3, Interesting

    No, by default the root account is disabled, but it's there.

    This smells like a misconfigured PAM. Apple does a lot of weird and non-standard stuff with the *nix user land, so they probably introduced the vulnerability that way. An improperly configured PAM stack can, for example, try a particular auth mechanism a preconfigured number of times before moving to the next auth mechanism. That fallback mechanism could be the Apple directory service, which doesn't handle the root user and leaves it to the system, but ignores the *nix convention that a passwordless entry in /etc/passwd is a disabled account. Not sure exactly what is happening and don't have a system to test on.

    Best workaround is to set the shell of the root user to /bin/false. That will block any attempt to get an interactive login.

  10. Re:Calling John C. Randolph (jcr)! We need your in by jcr · · Score: 4, Informative

    So, I just tried it on a completely fresh install, and I was able to reproduce the bug. No idea why it didn't manifest on any of my existing installations.

    I would expect that the relevant teams at Apple will push an update to fix this in a day or two at the most. In the meantime, you can work around this from any administrator account by setting a password on the root account ( open a terminal window, enter "sudo passwd root", and follow the prompts.)

    -jcr

    --
    The only title of honor that a tyrant can grant is "Enemy of the State."
  11. Perfect name for this bug: SLAP by paulpach · · Score: 3, Interesting

    I propose we give this bug a name: Superuser Login Absent Password, or SLAP for short.