Category: pwn
Author: s3nn__
This is Beth's chance to get back at Benny by attacking his doubled pwns.
300
Reveal Spoiler
There is a double-free vulnerability in the binary; libc2.27 is used, compiled with tcache support. Players need to exploit the double-free vulnerability to carry out a tcachebin dup to
- Carry out an unsortedbin attack to get a heap and libc leak
- Overwrite the __free_hook to achieve code execution
A solution that performs the above steps is provided in sol.py Use the following:
Run against local docker container
python3.7 sol.py R LHOST
Run against CyberRanges (IP might change in sol.py)
python3.7 sol.py R
Run against local binary
python3.7 sol.py