Blacksun reading material
Blacksun reading list — papers on format strings, heap exploitation, frame-pointer overwrites, ASLR, PaX, stack protection and hardware defences.
Source: This content is aggregated from overthewire (MIT). Visit the original repository for the latest version.
Reading material
Below is a list of overall reading material which you may wish to read over before starting.
Bug class exploitation
Format strings:
- Scut’s formatstring paper (class paper and recommended reading)
- Advances in format string exploitation
- Format bug analysis
- Vulnerabilities in your code - Format Strings
- The Mystery of Format String Exploitation
Heap exploitation
- Once upon a free() - Historical document, later glibc’s have additional checking
- Vudo - An object superstitiously believed to embody magical powers - “”
- Advanced Doug lea’s malloc exploits - “”
- Malloc Maleficarum - Recent glibc malloc exploitation document, should be relevant for blacksun
Frame pointer overwrites
Adress space layout randomisation (ASLR)/ PaX specific
- Bypassing PaX ASLR protection - somewhat outdated.
- The advanced return-into-lib(c) exploits: PaX case study - “”
- PaX documentation - external link
- Smash the stack - Advanced bufferoverflow methods
Execshield documents
- A Solution To Red Hat PIE Protection - External link
- How to Exploit Overflow Vulnerability Under Fedora Core - External link
Stackguard / Stack smashing protection
- Stack Smashing Protection homepage - external link
- Bypassing StackGuard and StackShield
- Four different tricks to bypass StackShield and StackGuard protection
- Defeating compiler-level buffer overflow protection
Hardware protection (e.g amd64 / nx bit)
Generalised papers / notes / presentations (not always indepth)
- A Comparison of Buffer Overflow Prevention Implementations and Their Weaknesses
- Spender’s PaX Presentation
- Taking the fun out of smashing the stack
- Practical Unix Security
- PaX Memory Protection - Linux Journal entry
- Advances In Software Attack
Secure computing
- Seccomp announcement - Secure Computing (seccomp) patch announcement (external link)
Got some good additional papers?
If you have some relevant papers that would be suitable for this site, please drop me an email.
Study guide
This list is a curated syllabus for Blacksun, and it is useful for anyone studying exploitation.
How to use this list
- Start with the bug class you are about to face. Format strings for Level 0; stack overflows and frame-pointer overwrites for Level 1; heap papers for Level 4.
- Read the historical papers for ideas, not as current recipes. The page itself warns that later glibc versions added checks that defeat some older heap attacks.
- Read the defence documents too. Understanding how PaX, Execshield, StackGuard and the NX bit work tells you exactly what each protection does and does not stop.
- Then read the general papers and presentations, which give a wider view of the field.
- Secure computing. The final section collects material on building safer systems, the other side of the same coin.
A suggested order
- A format-string paper (Scut’s is the class paper).
- Heap exploitation classics, then the more recent glibc-specific work.
- Frame-pointer overwrites.
- ASLR, PaX and Execshield documentation.
- Stack-protection and hardware-protection (NX bit) papers.
Contributing
The list ends with an invitation to email the maintainer with other good papers.