Challenges
sudo misconfiguration
Linux
Hard
Privilege escalation
Solves: 4
sudo misconfiguration
Author: CyberSamSU
Points
80
The administrator has given you permission to run one specific command via sudo without a password — thinking "it's just this one command, it's harmless".
The problem: many standard Unix commands (intended for finding files, viewing text, editing) have the ability to run ANOTHER command internally (for example, to perform an operation on the results). If the external command itself runs as root via sudo, the command called from within will also run with the same privileges.
The flag is in /root/bayroq.txt.
To start this challenge's lab, log in.
Theory: learn the topic
To submit a flag, log in.