<aside> 💡
JWT stands for JSON Web Token. It is a format used for sending cryptographically signed data between systems, commonly used in authentication, access control mechanisms, and session handling.
</aside>
<aside> 💡
A JWT consists of three parts:
The process to sign an unsigned token is as follows:
unsignedToken = encodeBase64(header) + '.' + encodeBase64(payload)
signature_encoded = encodeBase64(HMAC-SHA256("secret", unsignedToken))
</aside>
<aside> 💡
JWT attacks involve malicious actors modifying JWTs to achieve unauthorized goals, such as:
bypassing authentication or circumventing access controls
</aside>
How to Prevent JWT Attacks