Echo Escape 2¶
Writeup de Arnold-26, repris avec son autorisation. Source :
cylab-academy-writeups— challenge #736, résolu le 2026-11-24. Flags tronqués.
Catégorie : Binary Exploitation · Challenge : #736 · Résolu le : 2026-11-24
Énoncé¶
The developer has learned their lesson from unsafe input functions and tried to secure the program by using
fgets(). Unfortunately, they didn’t use it correctly. Can you still find a way to read the flag? You can also download the program here and its source code.
Résolution¶
Méthode : fgets overflow (offset 44).
char buf[32] mais fgets(buf, 128, stdin) : debordement de 96 octets. Binaire 32 bits non-PIE, win() a 0x080491d6 lit le flag. L'offset vers l'adresse de retour est 44 (buf[32] + 12 octets de padding du compilateur).