Trust me, I'm authenticated

Flag: HACKDAY{220d51b50ba176090af032df28c309547db1f2a445eb2a0740746b61356e683f}

Challenge

circle-info

Description


You have gained access to an unfinished terminal from an old system. The system is still operational. Analyse and understand the system, then find a way to access it.

2 endpoints: /flag et /terminal

https://fhjhtr10n9.hackday.frarrow-up-right

circle-exclamation

Solution

Le site a la mention "Proudly made with react" et on nous parle de terminal non fonctionnel. Il s'agit d'une RCE avec la CVE-2025-55182 React2Shell.

On prend un PoC (fonctionnel de préférence), ici j'ai utilisé https://github.com/xalgord/React2Shellarrow-up-right.

Le site est vulnérable et en fouillant les fichiers on tombe sur un secret JWT. Il faut simplement créer un token JWT (n'importe quel body - oui c'est guessy) et requêter /flag :

Mis à jour