Binary Gauntlet 0¶
Writeup de Arnold-26, repris avec son autorisation. Source :
cylab-academy-writeups— challenge #167, résolu le 2026-11-24. Flags tronqués.
Catégorie : Binary Exploitation · Challenge : #167 · Résolu le : 2026-11-24
Énoncé¶
This series of problems has to do with binary protections and how they affect exploiting a very simple program. How far can you make it in the gauntlet? The flag for this challenge does not include the standard
academy{}wrapper.
Résolution¶
Méthode : buffer overflow -> SIGSEGV handler.
Le programme lit le flag dans un buffer global, installe un handler SIGSEGV qui l'imprime, puis fait strcpy(dest[128], input) sans vérifier la taille. Il suffit d'envoyer 144 octets + une adresse invalide pour ecraser l'adresse de retour, provoquer un segfault et faire afficher le flag.