Misconfigured SUDO Privileges
Find misconfigured sudo privileges
sudo privilegesLocal Enumeration

Misconfigured SUDO Privileges
Find
setuidprograms
find / -user root -perm -4000 -exec ls -ldb {} \;
find / -perm -u=s -type f 2>/dev/null
Identify what commands the
studentuser can run
sudo -l
❗
/usr/bin/manbinary can be run withSUDOprivileges, without providing arootuser password
This can happen on Linux systems for specific binaries that other users have to run with
SUDOprivileges. It looks harmless, but it can allow users to spawn bash privileged sessions, since the specific binary can be utilized to execute specific commands. Those commands are executed with the binaryrootprivileges.
Privilege Escalation
sudo man lsIn the
manscrolling page, using the!abashcan be spawned
!/bin/bash
# "root" bash sessions is received
Last updated