Skip to content

In-depth lesson · JWT flaws

Year by year: 2020

What the disclosed JWT flaws reports of each year show, newest first: what first appeared, what kept working and what turned up less.

Back to the lesson 1 to 6 of 6 (of 31 in all)

Clear the search

2020

6 points

New this year1

  1. Chaining several weaknesses, such as blind XSS, a CSP bypass, missing rate limiting and an exposed JWT generation endpoint, to reach account takeover first appears clearly in the disclosed reports.

    Seen in 1 report

Kept working4

  1. Changing the user identifier claim inside a JWT and checking whether the backend honoured it exposed IDOR through the token in the disclosed reports.

    Seen in 1 report
  2. An exposed endpoint that minted JWTs could be called to obtain a token for another user in the disclosed reports.

    Seen in 1 report
  3. Stripping or altering the JWT signature and finding the backend still accepted the token worked in the disclosed reports.

    Seen in 1 report
  4. Password reset and email verification flows accepted a JWT whose claims had been altered to target another account in the disclosed reports.

    Seen in 1 report

Turned up less1

  1. The earlier pattern of client-side single sign-on token generation with a hardcoded secret is not repeated in the 2020 evidence, which instead centres on claim swapping and exposed minting endpoints.

    Seen in 1 report