Tags: lfi racecondition python 

Rating:

1. Investigate the source code.
2. Test the local file inclusion mechanism.
3. Understand how `/proc` file system file sizes work.
4. Inspect the challenge machine on `chals.sekai.team`.
5. Identify the conditions for triggering a race condition.
6. Craft an exploit script and run it on a challenge machine.

See https://www.justus.pw/writeups/sekai-ctf/funny-lfr.html for full details

Original writeup (https://www.justus.pw/writeups/sekai-ctf/funny-lfr.html).