sonysame / pwnable.tw_HeapParadise

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pwnable.tw_HeapParadise

double free bug->fastbin_dup으로 원하는 주소(1byte overflow)덮는다.
size를 0x91로 설정하여 unsorted bin attack: libc주소도 들어가므로 이를 이용
libc주소 partial overwrite해서 다시 한번 fastbin_dup일어날 때, stdout flag를 조작 -> leak libc
다시 한번 fastbin_dup일으켜서, malloc_hook을 one_gadget으로 덮기!
double free error로 malloc_printerr 불러서 get shell!

About


Languages

Language:Python 100.0%