Brute-forcing Secret Keys

List with well-known secrets: jwt.secrets.listarrow-up-right.

We can brute-force a JWT as follows (16500 -> JWTarrow-up-right).

hashcat -a 0 -m 16500 <jwt> <wordlist>

Hashcat signs the header and payload from the JWT using each wordlist secret and compares the resulting signature with the original one.

LAB: JWT Authentication Bypass via Weak Singing Key

Goal: Brute-force the website's secret key, access /admin, and delete carlos.

This can be also done using the Burp's JWT Editorarrow-up-right extension.

Last updated