Review sudo rules for hidden root shells
Read the sudoers files on a shared jump host and find the rules that hand out root: a blanket NOPASSWD, an editor that can spawn a shell, and a wildcard path.
- Terminal mission
- Intermediate
- 4 questions
- 0 of 4 solved
Your goal
Your goalFind the sudo rules that hand out root in ways that are easy to miss.
The jump host gained sudo rules over the years for deploys, monitoring, and the help desk. You are reviewing them before an audit.
A sudo rule is only as narrow as the program it allows. Editors and pagers can open a shell. A * in a path also matches ../, so it can reach files outside the folder it seems to name. sudo -l -U user shows what one user may run.
What’s on screen
- Briefing
- the story: what happened and what evidence you were handed.
- Terminal
- the dark box. It is a pretend Linux shell that runs in your browser. Type a command and press Enter. Nothing you type touches a real system.
- Walkthrough
- the numbered path. Each step says what to type and what you should see. Hints open one at a time.
- Answer boxes
- under each question step. Type what you found and press Check.
jump-01 · Privilege audit
Type help for the command list and objectives for your tasks. Everything runs in this browser.
Up and down arrows walk your history. Ctrl+L clears the screen. Try help, ls, and objectives.
Read first
More in Privilege audit
The whole walkthrough
Every step in order: 288 words, about 2 min. It gives away every answer, so try the steps first.