Many bugs give you a read or write primitive rather than RIP control. With an arbitrary write you often do not need ROP at all: overwrite a piece of kernel data that the kernel later trusts. modprobe_path and core_pattern make the kernel run a program of your choice as root; overwriting your own struct cred makes you root directly.
What you will learn
- Building AAR/AAW from simple bugs: unchecked pointers, OOB indices, signedness, format strings, linked-list corruption
- Defeating KASLR with leaks (kernel pointers on the heap/stack, physmap, cpu_entry_area)
- The
modprobe_pathtrick (unknown binary format -> usermode helper) and itscore_patterncousin - Finding and overwriting your own
cred(task list walks, uid fields, capabilities) - When these targets are blocked (STATIC_USERMODEHELPER, read-only data) and what to do instead
Prerequisites
Module 01. Module 02 helps but is not strictly needed: most challenges here are ROP-free.
References
Challenges
30-Day Scoreboard:
This scoreboard reflects solves for challenges in this module after the module launched in this dojo.
| Rank | Hacker | Badges | Score |