Brute-forcing Secret Keys
List with well-known secrets: jwt.secrets.list.
We can brute-force a JWT as follows (16500 -> JWT).
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 deletecarlos.


This can be also done using the Burp's JWT Editor extension.

Last updated