1
root with a single command: sudo logrotate
Starting from the constraint that only sudo logrotate * may be run, and ending at root: abusing the log file flag to overwrite root owned scripts and ride cron to privilege escalation.
Joshua Rogers is an Australian technologist, sysadmin, security engineer, and pentester sharing long-form writeups on hacking, binary web and infra security, programming, technology, politics, and life itself.
Visit joshua.hu → RSS feedOn Hacker News Oct 2023 – Mar 2026
Security & Privacy 4Web & Frontend 2Tools & Productivity 1Software Engineering 1Infrastructure & DevOps 1AI & Machine Learning 1
Starting from the constraint that only sudo logrotate * may be run, and ending at root: abusing the log file flag to overwrite root owned scripts and ride cron to privilege escalation.