← CTF archive

· Earliest timestamped screenshot

[Root-Me] JWT Secret Faible

Sending a GET request to the token page to retrieve the JWT:

Screenshot

eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJyb2xlIjoiZ3Vlc3QifQ.4kBPNf7Y6BrtP-Y3A-vQXPY9jAh_d0E6L4IUjL65CvmEjgdTZyr2ag-TM-glH6EYKGgO3dBYbhblaPQsbeClcw

Cracking the secret:

Screenshot

Changing the user to admin and signing the token with the recovered secret:

Screenshot

Sending a POST request to admin:

Screenshot

Adding the token:

Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJyb2xlIjoiYWRtaW4ifQ.y9GHxQbH70x_S8F_VPAjra_S-nQ9MsRnuvwWFGoIyKXKk8xCcMpYljN190KcV1qV6qLFTNrvg4Gwyv29OCjAWA

Screenshot

Flag : PleaseUseAStrongSecretNextTime