Demonstrating Binary Exploitation
summary
Live reproduction of a real sudo vulnerability shows a heap overflow triggered by a trailing backslash in a command line argument that copies into a heap buffer from controllable environment data. The exploit uses fuzzing + heap feng shui to force a service_user struct overwrite, sets a library pointer to NULL and supplies a crafted lib nss_x/x.so.2 with a dlopen constructor that sets UID/GID to 0, and the exploit reliably yields a root shell for that sudo version.
AI-written summary · about
chapters (23)
- 0:00Intro
- 0:23Meet Marit Christian
- 2:09Introduction
- 8:50Stack Overflow
- 9:25The Stack
- 17:31Questions
- 17:51Stack growth
- 19:23Memory Allocation
- 20:47Code snippet
- 21:47Heap explanation
- 22:31Running the program
- 24:47Summary
- 25:37Example
- 27:52Code
- 32:44In Memory
- 33:42Summary of vulnerability
- 34:33What is stored in memory
- 36:20Recontrol overflow size
- 43:10Shared library code
- 44:00Running the exploit
- 51:02Behind the scenes
- 51:43Safety analogy
- 54:37Question








