Live data from Hacker News

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

twitter.com

791–800 of 1001 posts

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

#791
post #704

Amazingly, this was disclosed offhand on the Apple developer forums, two weeks ago (see final comment by chethan177): https://forums.developer.apple.com/thread/79235 (spotted by https://twitter.com/fristle/status/935670476214378496 )

So not so much a 0day vulnerability anymore (+ 13 days ) ?

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

#792

This is comical at this point. I have no idea how such vulnerable software makes it to production. It is really ironic that a company, making billions of dollars and branding itself as the leaders of quality, stability and so on, to have this kind of vulnerability. I have truly lost faith in Apple.

Agreed. iOS 11 was the tipping point for me (can't delete photos using trash icon, wrong orientation when unlocking phone, random lag/freezes etc). Apple just doesn't care any more.

Unless you buy Apple Care, of course.

(Sorry, couldn't resist writing :) )

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

#793
post #704

Amazingly, this was disclosed offhand on the Apple developer forums, two weeks ago (see final comment by chethan177): https://forums.developer.apple.com/thread/79235 (spotted by https://twitter.com/fristle/status/935670476214378496 )

That’s absolutely terrible. Does Apple not monitor those forums at all?

I ran into a bug with High Sierra, posted in the user forums and was contacted by a friendly Apple Engineer a day later. So they do read them, but apparently not close enough.

I could see how someone would dismiss a posting like that with an "this cannot possibly be true" shrug.

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

#794

Earlier quoted context omitted.

Possibly not, but the death & maiming stats everywhere show we're absolutely not ready for human-driven ones.

Thank you I imagine a Twilight Zone episode... Go back in time to before cars were invented and imagine some Mephistopheles offering the bargain: "You'll fly like the wind over hills and mountains, making a journey of days in mere hours!" What the catch? "For each mile traveled a certain number of people chosen at random must be put to death or maimed." He would go on about how the chances of someone you love being c…

Well to be fair there are more positives to cars than just cutting journey times. But I agree the negatives are massing hugely as the world's driving population pullulates.

As for human readiness to safely control a tonne of speeding metal, my position as a full-time motorcyclist makes me extremely confident that the average alleged 'driver' (actually: daydreamer, snot-picker, instagrammer) isn't even approaching the edge of the competence ballpark.

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

#795
post #573

Anyone else think it was a bad idea to disclose this so publicly over Twitter? I thought that the usual practice was to let the development team know first.

Time and time again we have been shown that the way to a company's heart is through it's PR department. This is a dev complaining to Apple like a lunchgoer would complain to Mc D's about a bad burger. Expect more of it.

Seems to go for almost all issues regarding Apple. I've been reporting that calculator bug since iOS 9, with updates for several betas that it's still there. Two years later someone with a significant following on Twitter writes about it, gets enough retweets and Apple finally fixes something so miniscule.

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

#796
post #422
post #300

I've been a developer for a long time. I understand bugs happen, even bugs with terrible consequences. A lot of bugs seem understandable, like I can see the chain of ifs/thens required to end up at some hilarious broken state. But I'm breaking my brain trying to figure out how in the hell a login attempt for "root" will enable it if it's disabled. Why is this is a possibility, to just enable root, no questions asked?

Maybe something like this was added to make debugging/testing of the OS easier? maybe they just forgot to remove it before shipping the new macOS

Apparently it is not just enabling root, but setting the password the first time you do it (in other words, the blank value has nothing to do with it). Then the subsequent times it'll use the pw you set the first time.

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

#797
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

You're not creating it, but rather enabling it. When the bug is triggered, the root user is enabled (per Directory Utility).

But you are creating the password for it.

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

#798
post #13

Can this be used remotely? Edit: Yes, after turning on Remote Management on my second mac I was able to log into it using Remote Desktop, account root and no pw. It only works after getting physical access once.

You can get undetectble remote access on most machines given "physical access once", so I don't think this qualifies as "remotely exploitable".

Not according to this video:

https://www.youtube.com/watch?v=FpOH0lxEGBE

They seem to be remotely accessing the machine to both set and then use the root account.

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

#799
post #790

Earlier quoted context omitted.

`sudo dscl . -read Users/root accountPolicyData`

When you do this you'll get the creationTime and passwordLastSetTime as seconds since the 'epoch' – January 1, 1970, 00:00:00 (UTC). These are numbers like 1474441704.265237 which aren't very easy for a human to read :-) To convert this into a human-readable date and time, open a terminal and do this: python >>> import time >>> time.strftime("%a, %d %b %Y %H:%M:%S", time.localtime(1474441704.265237)) You'll get somet…

If you're already in the terminal you could instead enter

  date -r 1474441704

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

#800
post #790

Earlier quoted context omitted.

When you do this you'll get the creationTime and passwordLastSetTime as seconds since the 'epoch' – January 1, 1970, 00:00:00 (UTC). These are numbers like 1474441704.265237 which aren't very easy for a human to read :-) To convert this into a human-readable date and time, open a terminal and do this: python >>> import time >>> time.strftime("%a, %d %b %Y %H:%M:%S", time.localtime(1474441704.265237)) You'll get somet…

If you're already in the terminal you could instead enter date -r 1474441704

This is a much better answer!
Post reply on HN