TLDR InfoSec · STRATEGIES & TACTICS

STACK UNWINDING CAN LEAD TO LEAKLESS CODE EXECUTION

pepsipu.com7 min read

Summary from the TLDR InfoSec newsletter

This post describes a code execution technique in which an exploit abuses POSIX “cancellation points” to eventually execute code. This works by executing DWARF bytecode to mangle the .eh_frame_hdr data that is used when unwinding the stack. While this technique was discovered in the context of CTFs, it has applications outside of CTFs.