[Link](https://github.com/Valmarelox/ctf/tree/master/writeups/kqctf-2021/brokecollegestudents) to full writeup & exploit script.
TL;DR - Exploit the same format string vulnurability to break PIE and override the global containing the user's money.