Skip to main content
Challenges Cron: weak chain
Linux Medium Finding a link in the root cron chain writable by a non-root user Solves: 5

Cron: weak chain

Author: CyberSamSU
Points
40

It is suspected that root privileges were obtained on an internal server via a regular user account. The investigator collected the relevant server files into fs.tar: files under rootfs/ (cron files, scripts, /etc/passwd, /etc/group), and the find / -printf '%M %u %g %s %p\n' output for the entire tree in manifest.txt. Note: ownership in tar headers is not reliable — take permissions and owners only from manifest.txt.

Inspect /etc/crontab, /etc/cron.d/*, and user crontab files (/var/spool/cron/crontabs/<nom> — these files do not have a user column; the job runs as the file owner). Out of the jobs running as root, only one allows privilege escalation: its chain (cron entry → script → another file loaded by the script, as well as the parent directories of those files) has a link that a non-root user can modify.

Inside that weak link, a backup secret is stored: ENC (hex) and KEY values, and the method to reveal it is written in the script itself. The revealed string is the flag. Other scripts also have similar 'secrets', but they are decoys. Flag format: BAYROQ{...} (the last 16 characters are lowercase hexadecimal digits).

Attached files
fs.tar Log in to download
Hints 3
Opening a hint reduces the points you get for solving this challenge.
Hint 1 −4 pts Log in
Hint 2 −8 pts Log in
Hint 3 −12 pts Log in
To submit a flag, log in.

First solvers

1. Mirjaxon Qaxxarov 25.11.2026
2. Odam 25.11.2026
3. AGENT X 26.11.2026
4. NFS 27.11.2026
5. Doston Allayarov 28.11.2026