Episode Details

Back to Episodes
3 Ways JWTs Get Forged, and the One Rule That Stops Them All

3 Ways JWTs Get Forged, and the One Rule That Stops Them All

Published 2 weeks, 2 days ago
Description

This story was originally published on HackerNoon at: https://hackernoon.com/3-ways-jwts-get-forged-and-the-one-rule-that-stops-them-all.
A practical walkthrough of three JWT forgery attacks involving unsigned tokens, weak secrets, and algorithm confusion.
Check more stories related to cybersecurity at: https://hackernoon.com/c/cybersecurity. You can also check exclusive content about #jwt-token, #penetration-testing, #jwt-authentication, #jwt-security, #weak-jwt-secrets, #hmac-cracking, #authentication-security, #secure-token-validation, and more.

This story was written by: @elobeid. Learn more about this writer by checking @elobeid's about page, and for more stories, please visit hackernoon.com.

I walk through the three JWT attacks I actually test for: changing the algorithm to none, cracking weak HMAC secrets offline, and confusing an RS256 verifier into accepting an HS256 token signed with the public key. All three exploit weak assumptions in how the server verifies the token.

Listen Now

Love PodBriefly?

If you like Podbriefly.com, please consider donating to support the ongoing development.

Support Us