BabyFlow
Writeup for Babyflow (Warmup) - 1337UP LIVE CTF (2024) 💜
Last updated
Writeup for Babyflow (Warmup) - 1337UP LIVE CTF (2024) 💜
Last updated
Does this login application even work?!
When players run the binary, it asks for a password.
We can use a tool like ltrace
to see if the password is revealed.
It is! Let's try SuPeRsEcUrEPaSsWoRd123
.
It's not that easy 😥 Before disassembling the binary, let's see if there's an obvious buffer overflow.
Canaries are disabled, so there's nothing stopping us from "smashing the stack".
We can't forget the password!
Flag: INTIGRITI{b4bypwn_9cdfb439c7876e703e307864c9167a15}
I cba opening the binary in ghidra now so for anybody who's interested, this is how it works; there's a buffer overflow in the password
variable, which allows 50 bytes to be written to a 32 byte buffer. Players are required to enter the correct password at the beginning of the input, but by appending additional characters, they can overwrite the admin
flag with something other than zero.