Tags: race-condition pwn
Rating: 3.0
Your classic file access race condition.
The idea here is we will trick the program into calling read inbetween the create file and link call, then after the check to make sure we are not accessing the flag file, link will be called from a separate thread just as we open the file and it will write out the contents of the flag file before delete is called.
https://github.com/mrchisel14/CTFs/tree/master/2018/EVLZCTF2018/CRLD