Home Buckeye CTF 2022 - textual - Writeup
Post
Cancel

Buckeye CTF 2022 - textual - Writeup

challenge-description

Latex converter

As the challenege description says, textual can convert Latex syntax to normal HTML form.

pic-3

That’s great, but how do we get the flag? A quick google tells us there are a few ways to abuse Latex converters. Looking at challenge files we know there is a file called flag.tex somewhere in the challenge directory:

pic-4

Getting the flag is as easy as including this file in our code:

pic-5

Arbitrary file read

We can also make Latex read files from the system for us with \lstinputlisting{<FILE>}. Below are just a few examples:

pic-6 pic-7 pic-8

This post is licensed under CC BY 4.0 by the author.