What is Cybersecurity? (An anecdote about a JSON Web Token)

Miguel A. Calles · Serverless CISO
Nerd For Tech
Published in
2 min readMay 26, 2021

--

Photo by ZSun Fu on Unsplash

“Is a web app secure just because I use a JWT?”

That is a question I had when I first learned about them.

Learning is important.

I was impressed with how JWT, OIDC, SAML, and modern Identity Provider (IdP) solutions were well designed. The quality of the design I read about in the Request for Comments (RFCs) was impressive. Yet even after reading the RFCs and watching tutorials, something was still nagging at me.

Test assumptions and concerns.

One day, I logged into one web application and copied the JWT using the Chrome developer tools.

I went to another web application and opened the Chrome developer tools. I added the other site’s JWT token and refreshed the page.

A surprise outcome.

I logged in!

I had an active login, but there were multiple errors and missing data within the different views.

After investigating, I realized the APIs validated the JWTs, but the web application client did not.

What is cybersecurity?

Even well-designed solutions and technologies require secure implementation.

When something is nagging at us, or we suspect a potential flaw, we should take the time to investigate and test it.

Before you go

Here are other posts you might enjoy.

--

--

Miguel A. Calles · Serverless CISO
Nerd For Tech

Author of Mastering AWS Serverless · AWS Community Builder · Specializing in CMMC, SOC 2, serverless & engineering.