help@cyb4rgeek.xyz

+1 (512) 588 6950

The toddler’s introduction to Heap exploitation, Use After Free & Double free (Part 4)

Home/The toddler’s introduction t...
The toddler’s introduction to Heap exploitation, Use After Free & Double free (Part 4)
Free chunks are carrying information about their size and the memory addresses of other chunks
During the 2nd access, p still points to chunk A, which now contains the address of the function f2

UAF Example 0

UAF Example 1

UAF Example 2

The strdup() function returns a pointer to a new string which is
a duplicate of the string s.  Memory for the new string is
obtained with malloc(3), and can be freed with free(3).

Leave a Reply