sudoers: who is passwordless root?
During the audit, sudo configurations were copied from the server: sudoers.tar contains etc/sudoers, etc/sudoers.d/*, etc/group, etc/passwd, and etc/hostname. The rules are spread across group and host aliases, Cmnd_Alias, and multiple files — reading them manually is confusing.
Question: on this server (etc/hostname), which user can execute a command as root without a password prompt (NOPASSWD)? Only one user meets this condition. One of their allowed commands has a --ticket=<hex> argument — if you convert the hex value to bytes, you get the flag. Similar --ticket= values in other rules are decoys.
Note (sudo rules): file order — /etc/sudoers up to the #includedir line, then files in /etc/sudoers.d/ in alphabetical order, then the rest of sudoers (#includedir is a directive, not a comment). Files containing a dot (.) in their name or ending with ~ are not read. If multiple rules match a user, the last matching one applies. Commented-out (#) lines are ignored. Flag format: BAYROQ{...} (the last 16 characters are lowercase hexadecimal digits).