4 ms·
Users on MacOS can change the time without root access.
by nwh 14y ago
Users on MacOS can change the time without root access.
- simias 14y agoAre you sure? If it is it sounds like a possible security issue. Time is pretty sensitive as soon as certificates are involved. Many auth systems assume the clock is properly synchronized across the system. If that's true IMO that's the security issue, not the arguably strange behaviour of sudo in a situation that should never occur.
- dazzawazza 14y agowell from the terminal $ date 010101011970 date: bind: Permission denied date: settimeofday (timeval): Operation not permitted [15:45:41][dazza@imac.internal:~] From System Preferences you can indeed set the date back to 1970: $ date Fri 2 Jan 1970 00:56:44 BST [00:56:44][dazza@imac.internal:~] but there is a little lock that you might need to unlock (with a user password). This does seem like a security issue on OSX.
- adestefan 14y agoThat little lock icon is the same as running sudo from the command line. If the user is listed as an Administrator, then they're also able to sudo.
- pschastain 14y agoChanging back 01/01/1970 via Date & Time preferences doesn't need authentication, but the exploit still didn't work, at least for me.
- acdha 14y ago> Changing back 01/01/1970 via Date & Time preferences doesn't need authentication This is not true but it can be confusing if you've authenticated at all recently due to a grace period like sudo's.
- nwh 14y agoI've never unlocked that panel, and I've rebooted recently, and still didn't need authentication. Are you sure that's as right?
- rplnt 14y agoSystem time or what is displayed to the user? Because they are two different things on some systems.
- deleted 14y ago[deleted]
- kgo 14y agoBut most of the time, someone using MacOS has physical access to the box. They can always just boot up as single user and BOOM root: http://support.apple.com/kb/ht1492 http://support.apple.com/kb/ht1492
- adestefan 14y agoThis is absolutely not true. You must be listed as an Administrator to change system time. If you're an Administrator, then your account is also included in the admin group which means you have full sudo access anyway.
- glitch 14y agoAs far as I tested in the Date and Time preference pane,... Users enabled as an Administrator, yes. Standard users, no. `date` still behaves as one expects.