Post

Gate Keeper - Payatu Hiring CTF Writeup

Walkthrough for the Gate Keeper Android reverse engineering challenge from Payatu Hiring CTF.

Gate Keeper - Payatu Hiring CTF Writeup

Challenge Info

FieldDetails
CTFPayatu Hiring CTF
ChallengeGate Keeper
CategoryAndroid / Reverse Engineering

Solution

We can by opening the app in our emulator

alt text

The app shows a hint 🔐There is a phrase I expect, only the right people can C, and if we input anything random it shows "Wrong key. Try again." Now, we can proceed to inspect it in Jadx to understand the logic it implements

alt text

A native library libnative-lib.so is loaded, our input is passed to a native function sumbitKey and if we enter the correct key, the flag is returned and displayed in the textview We can inspect libnative-lib.so in Ghidra, to understand what the KEY could be

alt text

Our input is checked using strcmp() against "undefined", and if it matches the flag is returned So, now can we submit undefined in the app to get the flag

alt text

Flag

1
FLAG:PATATU{NOW_U_C_M3}
This post is licensed under CC BY 4.0 by the author.