Users can change the clock without authenticating, allowing them to locally exploit sudo.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-control-center |
Confirmed
|
Medium
|
|||
sudo |
Unknown
|
Unknown
|
|||
policykit-desktop-privileges (Ubuntu) |
Opinion
|
Undecided
|
Unassigned | ||
Precise |
Opinion
|
Undecided
|
Unassigned | ||
Trusty |
Opinion
|
Undecided
|
Unassigned | ||
Utopic |
Opinion
|
Undecided
|
Unassigned | ||
Vivid |
Opinion
|
Undecided
|
Unassigned | ||
sudo (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
Precise |
Won't Fix
|
Low
|
Unassigned | ||
Trusty |
Triaged
|
Low
|
Unassigned | ||
Utopic |
Won't Fix
|
Low
|
Unassigned | ||
Vivid |
Won't Fix
|
Low
|
Unassigned |
Bug Description
Under unity and cinnamon, it is possible for a user to turn off network-syncronized time and then change the time on the system. It is also possible to "cat /var/log/auth.log" and find the last time a user authenticated with sudo, along with which pty they used. If a user had used a terminal and successfully authenticated with sudo anytime in the past, and left the sudo file in "/var/lib/
To do this, a user would only need to launch a few terminals, figure out which pty they were on via "tty", find the an instance in /var/log/auth.log where sudo was used on that PTY, and set the clock to that time. Once this is done, they can run (for example) "sudo -s" and have a full access terminal.
1) This has been observed on Ubuntu 13.04, and may work on other versions.
2) This may have an effect on various window managers, but I confirmed it on Unity and Cinnamon
3) I expected to have to authenticate when I changed the time and date, as I do on Gnome and KDE. I also expected to be denied permission to auth.log
4) I was able to change the system time to whatever I wanted, and view auth.log. This was sufficient to access sudo without having to type my password.
Note: This bug also affects any version of OS X, though the mechanism is different. Some versions don't require you to authenticate to change the time through the GUI, but some do. No version I've seen requires authentication to use the "systemsetup" command, which can alter the time from the command line. This may be an overall bug in sudo. Why can I bypass security by changing the time?!
Related branches
information type: | Public → Public Security |
Changed in sudo: | |
importance: | Undecided → Unknown |
status: | New → Unknown |
affects: | gnome-control-center (Ubuntu) → policykit-desktop-privileges (Ubuntu) |
Changed in policykit-desktop-privileges (Ubuntu Precise): | |
status: | New → Opinion |
Changed in policykit-desktop-privileges (Ubuntu Trusty): | |
status: | New → Opinion |
Changed in policykit-desktop-privileges (Ubuntu Utopic): | |
status: | New → Opinion |
Changed in sudo (Ubuntu Precise): | |
status: | New → Confirmed |
Changed in sudo (Ubuntu Trusty): | |
status: | New → Confirmed |
Changed in sudo (Ubuntu Utopic): | |
status: | New → Confirmed |
Changed in sudo (Ubuntu Precise): | |
assignee: | nobody → Marc Deslauriers (mdeslaur) |
Changed in sudo (Ubuntu Trusty): | |
assignee: | nobody → Marc Deslauriers (mdeslaur) |
Changed in sudo (Ubuntu Utopic): | |
assignee: | nobody → Marc Deslauriers (mdeslaur) |
Changed in sudo (Ubuntu Vivid): | |
assignee: | nobody → Marc Deslauriers (mdeslaur) |
Changed in sudo (Ubuntu Precise): | |
status: | Confirmed → Triaged |
importance: | Undecided → Low |
Changed in sudo (Ubuntu Trusty): | |
status: | Confirmed → Triaged |
importance: | Undecided → Low |
Changed in sudo (Ubuntu Utopic): | |
status: | Confirmed → Triaged |
importance: | Undecided → Low |
Changed in sudo (Ubuntu Vivid): | |
status: | Confirmed → Triaged |
importance: | Undecided → Low |
Changed in sudo (Ubuntu Precise): | |
assignee: | Marc Deslauriers (mdeslaur) → nobody |
Changed in sudo (Ubuntu Trusty): | |
assignee: | Marc Deslauriers (mdeslaur) → nobody |
Changed in sudo (Ubuntu Utopic): | |
assignee: | Marc Deslauriers (mdeslaur) → nobody |
Changed in sudo (Ubuntu Vivid): | |
assignee: | Marc Deslauriers (mdeslaur) → nobody |
no longer affects: | gnome-control-center |
affects: | cinnamon-desktop → gnome-control-center |
Changed in gnome-control-center: | |
importance: | Undecided → Unknown |
status: | New → Unknown |
Changed in sudo (Ubuntu Vivid): | |
status: | Triaged → Won't Fix |
affects: | unity → ubuntu-translations |
no longer affects: | ubuntu-translations |
Changed in gnome-control-center: | |
importance: | Unknown → Medium |
status: | Unknown → Confirmed |
Forgot to mention, I submitted the bug to Apple re: OS X as well.