byp4ss3d¶
Writeup de Arnold-26, repris avec son autorisation. Source :
cylab-academy-writeups— challenge #518, résolu le 2026-11-24. Flags tronqués.
Catégorie : Web Exploitation · Challenge : #518 · Résolu le : 2026-11-24
Énoncé¶
A university's online registration portal asks students to upload their ID cards for verification. The developer put some filters in place to ensure only image files are uploaded but are they enough? Take a look at how the upload is implemented. Maybe there's a way to slip past the checks and interact with the server in ways you shouldn't.
Résolution¶
Méthode : upload .htaccess + shell PNG.
Le filtre exige une extension .png dans le nom et des magic bytes PNG. On uploade d'abord un .htaccess (AddType application/x-httpd-php .png) dans images/, puis un shell.php.png contenant du PHP : Apache l'exécute. Le flag est dans /var/www/flag.txt.