Sudo resume
- Sudo is a program that allow an user to run a command as another user, usually superuser
sudo
is notsu
, sudo requires user’s passwordsudo
activities are logged in systemd (journalctl)- By default sudo invocation rights last 5 minutes
- openbsd has doas, windows as runas
/etc/sudoers
Config file is located at /etc/sudoers. The tool visudo edits sudoers file in a safe manner: syntax check and locks
Aliases:
|
|
Sudo assignation:
|
|
What accesss do we have?
|
|
sudoreplay
It allow us to audit and replay any sudo activity:
- It has to be enabled in /etc/sudoers
- Then we can play with
sudo sudoreplay
to explore sudo executions and outputs
|
|
Sudo best practices
- Default secure $PATH (so user don’t override it)
|
|
Demo
Simple demo!
CVEs!
- CVE-2021-3156 before 1.9.5p2 version:
|
|
More information
- Webpage: https://www.sudo.ws/sudo/
- Source code: https://github.com/sudo-project/sudo
- Principal maintainer:
- linkedin: Todd Miller https://www.linkedin.com/in/millert/
- twitter: https://twitter.com/indieami