Charta Aetatis Cyberpunk

Console Newsletter Pro Sign in Register
Aa · Display
Themes
Type size
Density
Offensive Security · PentesterLab · 79d · 5 min read

JWT Security: How to Secure JWTs and Avoid Common Vulnerabilities

JSON Web Tokens (JWTs) are everywhere in modern authentication, and for good reason: they are compact, self-contained and easy to pass around between services. The catch is that a lot of their security depends on how you use them. If you rely on a well-maintained JWT library, the hardest cryptographic parts are handled for you, but a handful of practical decisions are still yours to get right. This post is aimed at developers who use a JWT library rather than write one. We will walk through the practical steps that make the difference between a token you can trust and one an attacker can bend, starting with the single most important one. 1. Always pin the algorithm This is the one to get

…

Discussion

Sign in to join the discussion.

Make the first comment.

That's Cyber for today

Tomorrow's desk, in your inbox by 06:00 UTC. The week's best stories, every Sunday. The month that mattered, on the 1st.

The freshest blend of security news delivered to you. Text and HTML, one-click unsubscribe. Free.

How often
Your desks