Skip to content

In-depth lesson · technique

JWT flaws

What every disclosed JWT flaws report in the index teaches, put together: how it works, how it changed year by year, where it turns up, and things to try. Every point shows the reports it is seen in.

reports cited in this lesson
56

Learning Accounts and login, step 7

Overview

What it is and why programs pay for it.

JWT flaws are mistakes in how applications create, sign, verify or trust JSON Web Tokens. They matter to bug bounty programmes because a single flaw can let an attacker impersonate another user, escalate privileges or take over an account. The evidence shows this leading to account takeover, IDOR, privilege escalation and even remote code execution in some chains.

These flaws turn up in authentication and authorisation flows, especially single sign-on, password reset, account linking and integrations. Common places include client-side JavaScript that handles tokens, backend services that verify them, and endpoints that mint them. The reports here cover third-party integrations such as JIRA and Zendesk, as well as custom SSO and OIDC implementations.

The root causes are often simple: a signing secret embedded in client-side code, a default or low-entropy key, missing signature verification, mishandled expiry claims, or trusting a token without tying it to the user's session. These mistakes are common in both custom code and third-party components.

How it works

The mechanics, as the reports show them.

A JWT is a signed token carrying claims such as a user identifier, role or expiry. The server should verify the signature and then trust the claims. Flaws arise when the signature is not checked, the key is weak or known, or the claims are trusted without further checks.

One common mistake is a hardcoded or low-entropy signing secret. If the secret is in client-side JavaScript or is a default value, anyone can forge tokens. The evidence includes a JWT signing secret embedded in client-side JavaScript and an empty join key that defaulted to a fixed value.

Another mistake is missing or incorrect signature verification. Backend services may not verify the signature at all, or may mishandle the expiration claim, accepting tokens that are expired or signed with the wrong key. Algorithm confusion, where a token is signed with a public key used as an HMAC secret, is one variant.

Trusting client-supplied tokens without binding them to the session is another flaw. In a password reset flow, a victim-bound JWT and session cookie were issued and then trusted without tying the reset to the session that started it. This allowed an attacker to combine the victim's token with their own OTP to set a new password.

Year by year

6 years

What each year's disclosed reports show, newest first. A year with few reports says less.

Reports per yearPeak 2025: 60
Reports per year
20151
20171
20193
20207
20212
20221
20237
202417
202560
202657
  1. 2026

    57 reports · median $1,919

    New this year2

    • Algorithm confusion by signing with HS256 using the RSA public key as the HMAC secret appears as a clear pattern in the disclosed reports.
    • Forging a join JWT signed with the default empty join key appears as a new angle in the disclosed reports.

    Kept working2

    • Comparing login response times for registered and unregistered emails, confirming accounts via the forgot-password endpoint, cracking the HS256 signing key offline and forging tokens for sequential user IDs worked in the disclosed reports.
    • Testing ID4me handling in user OIDC exposed missing JWT signature verification in the disclosed reports.

    Turned up less1

    • The earlier pattern of swapping identifiers inside a JWT to access another account's data is not repeated in the 2026 evidence.
  2. 2023

    7 reports · median $10k

    New this year1

    • Testing the SharePoint pre-authentication chain involving JWT handling for remote code execution appears as a new angle in the disclosed reports.

    Kept working1

    • Swapping identifiers inside a JWT to access another account's data worked in the disclosed reports.

    Turned up less2

    • The earlier pattern of setting the expiration claim to a past timestamp and having the token accepted is not repeated in the 2023 evidence.
    • The earlier pattern of a twin or duplicate token being accepted is not repeated in the 2023 evidence.
  3. 2022

    1 report

    New this year1

    • Reviewing ASP.NET Boilerplate deployments for hardcoded credentials and JWT weaknesses appears as a new target class in the disclosed reports.

    Kept working3

    • Reviewing appliance code for a hardcoded JWT secret allowed privilege escalation in the disclosed reports.
    • Setting the expiration claim to a past Unix timestamp still worked because signature and expiry were mishandled in the disclosed reports.
    and 1 more

    Turned up less1

    • The earlier pattern of searching archived URL sources for leaked JWTs is not repeated in the 2022 evidence.
Every point, year by year

Where it is found

2

The features and places the reports found it in, most-reported first.

  1. The consent and account-linking flow for a third-party JIRA integration is a place to look for JWT flaws.

    Seen in 1 report
  2. Zendesk single sign-on tokens generated on the client side are a place to look for JWT flaws.

    Seen in 1 report

Root causes

6

The mistakes in the code or configuration behind the reports.

  1. The integration flow trusted a JWT supplied in a link and did not require the user to confirm the specific JIRA project before changing the connection.

    Seen in 1 report
  2. The JWT signing secret was embedded in client-side JavaScript, so anyone could generate tokens rather than only a trusted server.

    Seen in 1 report
  3. Backend services did not correctly verify the JWT signature and mishandled the expiration date claim.

    Seen in 1 report
  4. The reset flow issued and then trusted a victim-bound JWT and session cookie supplied by the client without tying the reset to the session that started it.

    Seen in 1 report
  5. The join key file was left empty, so the HMAC signing key defaulted to a fixed low-entropy value.

    Seen in 1 report
View all 6

Things to try

The most-reported tests in the largest contexts. Tick what you have tried; ticks stay in this browser and carry over to the full checklist. Test only what a program's scope allows.

ticked in this lesson

Other

of 3 ticked
More in Other

Single sign-on and identity providers

of 3 ticked
More in Single sign-on and identity providers

Internal services and server-side request forgery

of 3 ticked

Appliance and embedded device firmware

of 2 ticked
View more things to try

Bypasses and variations

1

How reports got past filters, encoders and other defences.

  1. Algorithm confusion: sign with HS256 using the RSA public key as the HMAC secret

    Seen in 1 report

Payouts

11 paid

Public bounties in US dollars, from the data. 11 of 189 reports show an amount.

a quarter paid up to
$1,169
median
$2,500
three quarters paid up to
$4,000
highest
$100k

One in ten paid reports was paid $10k or more.

SeverityReportsPaidMedianHighest
Critical 8 1 $10k $10k
High 7 2 $1,919 $2,500
Medium 6 1 $1,000 $1,000
Informational 5 0 None paid None
Unrated 163 7 $3,000 $100k

Tips for beginners

11

Advice for a first hunt, drawn from the reports.

  1. Test whether changing the user identifier claim inside a JWT grants access to another account. This is a common IDOR vector.

    Seen in 4 reports
  2. Start by mapping authentication and authorisation flows: login, password reset, SSO, account linking and integrations. Look for places where a JWT is issued, stored or passed in a URL. The reports here show these flows are common targets.

    Seen in 3 reports
  3. Test whether the server verifies the JWT signature. Try altering the signature or using a token signed with a different key. Also test expired tokens and tokens with modified claims.

    Seen in 3 reports
  4. When you find a JWT flaw, demonstrate impact clearly. Show that you can access another user's data, escalate privileges or take over an account. Avoid reporting theoretical issues without proof.

    Seen in 3 reports
  5. Make sure the target is in scope. JWT flaws in third-party integrations or components may be out of scope for the programme. Check the programme's policy before testing.

    Seen in 2 reports
View all 11

Guides and techniques

The best explainers, cheat sheets and technique posts on JWT flaws, from around the web.

Keep learning

Where this lesson fits, and what to read next.

How this is made: our model read every listed JWT flaws report in the index (our own summary where we have one, otherwise the title and the platform's label), listed the patterns, and merged them. Each point was kept only if the reports it cites exist, are listed and belong here; payouts are computed from the data, not written by the model. Read the originals before relying on a point. Generated 26 Nov 2026 from 56 reports. All JWT flaws reports.