Pwn - Sigreturn Oriented Programming (SROP) Technique
Background
In recently ctf (tamuctf 2022), I solve a challenge called void (writeup).
This challenge only contains a few line of assembly code, with no libc and NX enabled.
The only thing we can utilize is a buffer overflow and some syscall gadget.
It seems impossible to do. However, there is a technique call SROP - Sigreturn Oriented Programming that can help us to pwn this binary.
Theory
The original paper is here paper, slides
Check it out if you want to.
I'll brief explain how SROP works.