Local Privileges Escalation
Last updated
Last updated
The /etc/passwd
file can contain password hashes directly instead of an x
, indicating that the password hash is stored in /etc/shadow
. If /etc/passwd
is writable, it allows the creation of arbitrary users with root privileges.
It possible that the administrative user used command line with sensitive information exposed.
In this situation monitoring the process can reveal this sensitive information
it's possible to restrict a user's sudo
permissions to specific commands or binaries. This is done by configuring the /etc/sudoers
file, where certain users can be allowed to run only a defined set of commands with sudo
.