넘 많이 요청이든 뭐든 들어와서 버퍼 메모리 넘어 다른 영역 메모리 덮어씌우려하는 문제
How to Buffer Overflow attack
- buffer size estimation
- estimate distance between buffer and
ret
address
- fill data (shell code + trash) from buffer to EBP right before
ret
address
- write address of shell code into
ret
address
Vulnerable C functions
- strcpy
- strcat
- fscanf
- scanf
- sprint
- …
Safe C functions
vfscanf