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
- median public bounty
- $2,500
- highest public bounty
- $100k
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.
Seen in these reports6
-
Critical -
High
Show all 6 reportsShow fewer
-
High -
Critical -
$1,000 Medium
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.
Seen in these reports6
-
Critical -
High -
$1,337 High
Show all 6 reportsShow fewer
-
High -
Critical
Year by year
6 yearsWhat each year's disclosed reports show, newest first. A year with few reports says less.
| 2015 | 1 |
|---|---|
| 2017 | 1 |
| 2019 | 3 |
| 2020 | 7 |
| 2021 | 2 |
| 2022 | 1 |
| 2023 | 7 |
| 2024 | 17 |
| 2025 | 60 |
| 2026 | 57 |
-
2026
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.
-
2023
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.
-
2022
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.
Turned up less1
- The earlier pattern of searching archived URL sources for leaked JWTs is not repeated in the 2022 evidence.
Reports from 20221
-
High
Earlier years3
Where it is found
2The features and places the reports found it in, most-reported first.
-
The consent and account-linking flow for a third-party JIRA integration is a place to look for JWT flaws.
Seen in 1 report
-
Zendesk single sign-on tokens generated on the client side are a place to look for JWT flaws.
Seen in 1 report
Technologies in these reports16
Root causes
6The mistakes in the code or configuration behind the reports.
-
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
-
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
-
Backend services did not correctly verify the JWT signature and mishandled the expiration date claim.
-
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
-
The join key file was left empty, so the HMAC signing key defaulted to a fixed low-entropy value.
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
Single sign-on and identity providers
of 3 ticked-
Seen in 1 report
-
Seen in 1 report
Internal services and server-side request forgery
of 3 ticked-
Seen in 2 reports
-
Seen in 1 report
Appliance and embedded device firmware
of 2 ticked-
Seen in 1 report
Bypasses and variations
1How reports got past filters, encoders and other defences.
-
Algorithm confusion: sign with HS256 using the RSA public key as the HMAC secret
Seen in 1 report
Payouts
11 paidPublic 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.
| Severity | Reports | Paid | Median | Highest |
|---|---|---|---|---|
| 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 |
Highest-paid reports5
-
$100,000 -
$10,000 Critical -
$5,000 -
$3,000
-
$3,000
Tips for beginners
11Advice for a first hunt, drawn from the reports.
-
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
-
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
-
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
-
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
-
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
Guides and techniques
The best explainers, cheat sheets and technique posts on JWT flaws, from around the web.
-
Introducing SignSaboteur: forge signed web tokens with easePortSwigger releases SignSaboteur, a Burp extension for forging and tampering with signed web tokens during testing.
portswigger.net
-
How to use Codex for Bug Bounty research: explore broadly, validate rigorouslyExplores using Codex agents for vulnerability hunting, with blind lab tests showing it can exploit DOM XSS and JWT flaws autonomously.
Methodology yeswehack.com
-
BugQuest 2026: 31 Days of Broken Access ControlMonth long series covering broken access control, from authorisation models and recon to JWT flaws and logic bypasses.
Methodology intigriti.com
-
alg:none and Friends — A JWT Hacking Field GuideField guide to JWT attacks covering the alg none bypass, weak key cracking and algorithm confusion tricks.
Cheat sheet kd-200.medium.com
-
Exploiting JWT vulnerabilities: A complete guideCovers common JWT flaws such as the none algorithm, key confusion, JWK spoofing and kid injection leading to path traversal or SQL injection.
Explainer intigriti.com
Keep learning
Where this lesson fits, and what to read next.
Learning paths
Related techniques
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.