Skip to content

Files

Latest commit

4cd7936 · Oct 21, 2019

History

History

production

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Oct 21, 2019
Oct 21, 2019

Production - Teaser Dragon Sector CTF 2018

Look at this production-level lyrics reader.

Vulnerability

assert macros don't work in release version, thus a close in the assert macro won't be compiled.

Exploitation

Since the program limits process NOFILE to 32, we could reach the max file descriptor limit to make symbolic link check fail. In this case, we could open flag file. At last, we could read one EOFed file to leak uncleared content buffer in read_lyrics for bypassing content check.