Can users reset the Mac OS X system clock without being an admin?
Mac OS X Sudo Password Bypass
11–20 of 53 posts
Re: Mac OS X Sudo Password Bypass
#12The user has to be an admin and have executed sudo previously for this to work. I hope that anybody who's smart enough to have access to this command (and admin membership) is equally qualified to parse scripts that may exploit this vulnerability...
A few points: - The default user created at setup of OSX is in the admin group. - Certainly the 'has run sudo' is a bit of a restriction, but even running something like the Homebrew install script runs sudo. (Maybe 'users that run Homebrew without understanding sudo' is an even smaller restriction, but a few members of my research group live in exactly this intersection!) - Do you habitually read every line of sourc…
And yes, I very seldom run scripts copied from somebody else so when I do, I make sure I know what is being run. Granted, I'm a Linux and Windows user so the OSX philosophy might be different.
Re: Mac OS X Sudo Password Bypass
#13Earlier quoted context omitted.
A few points: - The default user created at setup of OSX is in the admin group. - Certainly the 'has run sudo' is a bit of a restriction, but even running something like the Homebrew install script runs sudo. (Maybe 'users that run Homebrew without understanding sudo' is an even smaller restriction, but a few members of my research group live in exactly this intersection!) - Do you habitually read every line of sourc…
You mean installing Homebrew itself? Because if you're running "sudo brew install foo" you're doing it wrong.
The main homebrew page says, 'run this ruby script'.
The ruby script is available at: https://raw.github.com/mxcl/homebrew/go
The script includes a sudo command.
To be fair, I hadn't read the script in detail when I wrote my post, just far enough to see there was a definition of a sudo function. On review, it looks like they either call it to chmod/chgrp HOMEBREW_PREFIX (sometimes), or run sudo to create the directories.
Re: Mac OS X Sudo Password Bypass
#14Earlier quoted context omitted.
A few points: - The default user created at setup of OSX is in the admin group. - Certainly the 'has run sudo' is a bit of a restriction, but even running something like the Homebrew install script runs sudo. (Maybe 'users that run Homebrew without understanding sudo' is an even smaller restriction, but a few members of my research group live in exactly this intersection!) - Do you habitually read every line of sourc…
Homebrew fails if you attempt to run it with sudo.
Re: Mac OS X Sudo Password Bypass
#15Earlier quoted context omitted.
A few points: - The default user created at setup of OSX is in the admin group. - Certainly the 'has run sudo' is a bit of a restriction, but even running something like the Homebrew install script runs sudo. (Maybe 'users that run Homebrew without understanding sudo' is an even smaller restriction, but a few members of my research group live in exactly this intersection!) - Do you habitually read every line of sourc…
I was unaware of being placed in the admin group by default. Is the admin group similar to the wheel group or is there also a wheel group for sudo access? And yes, I very seldom run scripts copied from somebody else so when I do, I make sure I know what is being run. Granted, I'm a Linux and Windows user so the OSX philosophy might be different.
Re: Mac OS X Sudo Password Bypass
#16Re: Mac OS X Sudo Password Bypass
#17The user has to be an admin and have executed sudo previously for this to work. I hope that anybody who's smart enough to have access to this command (and admin membership) is equally qualified to parse scripts that may exploit this vulnerability...
Re: Mac OS X Sudo Password Bypass
#18"If [...], it is possible to become the super user by running `sudo -k` and then resetting the system clock to 01-01-1970" Can users reset the Mac OS X system clock without being an admin?
Re: Mac OS X Sudo Password Bypass
#19Earlier quoted context omitted.
Not at all a safe assumption. Most importantly, it's not that uncommon for even less experienced Mac users to copy and paste Terminal commands to solve one problem or another. A lot of those "Just type this!" solutions I've seen involve sudo somewhere. But on top of that, maybe I don't understand your meaning here, but do you do a security audit on every line of every script that you ever run? Especially scripts that…
"A lot of those "Just type this!" solutions I've seen involve sudo somewhere." Not sure if you're alluding to this trick: http://thejh.net/misc/website-terminal-copy-paste This particular exploit could be rather nasty when used in conjunction with the above.
Re: Mac OS X Sudo Password Bypass
#20This non-bug was discussed last year.