appsec.fyi › JSON Web Tokens (JWT)

JSON Web Tokens (JWT) Resources

Page 4 of 4: resources 151–200 of 200, added Jul 2021 to Apr 2026.

The newest JSON Web Tokens (JWT) resources are on the JSON Web Tokens (JWT) page. For a reading order instead of a date order, see the JSON Web Tokens (JWT) learning path.

Date AddedLinkExcerpt
2026-04-11 2026JWT Signature Bypass via kid SQL injection intermediate 1 min readVulnerability writeup detailing JWT Signature Bypass via `kid` SQL injection. This flaw arises when the `kid` header parameter is used to query a database for cryptographic keys without proper input sanitization, enabling attackers to inject SQL and forge JWTs. Remediation involves using parameterized queries, strict `kid` validation, secure error handling, and robust key management. → invicti.com
2026-04-11 2026JWT Attack Walk-Through - NCC Group intermediate 2 min readWalkthrough of JWT attack vectors, detailing vulnerabilities within JSON Web Tokens. This analysis, from NCC Group's Exploit Development Group, leverages their expertise in cryptography and vulnerability research to illustrate real-world exploitation techniques, contributing to improved cyber resilience.
2026-04-11 2026A Practical Guide to Attacking JWT intermediateA Practical Guide to Attacking JWT
2026-04-11 2026Hacker Tools: JWT_Tool beginner 4 min readJWT_Tool is a Python-based toolkit for validating, forging, scanning, and tampering with JSON Web Tokens (JWTs). It aids in identifying JWT misconfigurations, fuzzing applications, cracking weak secrets, and performing attacks like the "none" algorithm exploit (CVE-2015-9235) and RS256 to HS256 key confusion (CVE-2016-5431). → intigriti.com
2026-04-11 2026November CTF Challenge: Exploiting JWT vulnerabilities to achieve RCE intermediate 9 min readWalkthrough of a CTF challenge exploiting JWT vulnerabilities, including the 'none' algorithm attack, to achieve remote code execution on the AquaCommerce! e-commerce platform. This guide details reconnaissance steps using Wappalyzer, JWT decoding, privilege escalation to 'admin' role, and server-side template injection (SSTI) in the profile display name field to locate the flag. → intigriti.com
2026-04-11 2026RFC 8725 - JSON Web Token Best Current Practices beginner 16 min readReference detailing Best Current Practices for JSON Web Tokens (JWTs). This document updates RFC 7519, offering actionable guidance for secure JWT implementation and deployment by addressing common attack vectors. It covers issues such as algorithm confusion ("none" algorithm, RS256 to HS256), weak symmetric keys, failure to validate internal signatures in encrypted JWTs, information leakage from encryption algorithms, invalid curve point validation in ECDH-ES, and JSON encoding ambiguities. The document references mitigations for these vulnerabilities and is intended for JWT library implementers, developers using JWTs, and specification authors.
2026-04-11 2026Brute Forcing HS256 is Possible intermediate 8 min readHS256 JWT brute-forcing with weak keys is possible due to the shared secret nature of the algorithm. While RFC7518 mandates keys as large as the hash output, weaker implementations can be exploited. Tools like `jwt-cracker` demonstrate how to leverage computing power to deduce secret keys, highlighting the critical importance of employing strong, sufficiently sized secrets for signing JSON Web Tokens to prevent such attacks. → auth0.com
2026-04-11 2026Golang JWT access restriction bypass vulnerability intermediate 5 min readGolang JWT access restriction bypass vulnerability in the `VerifyAudience` function allowed improper audience verification, affecting projects cloning the master branch even after a fix was released. This issue, along with hundreds of other proprietary Golang vulnerabilities uncovered by Snyk's research team, highlights the growing security risks in the popular ecosystem. Snyk's intelligence database provides comprehensive coverage, identifying vulnerabilities beyond official CVEs and helping developers secure their Go applications. → snyk.io
2026-04-11 2026Top 3 security best practices for handling JWTs beginner 8 min readJWT security best practices include keeping tokens secret through secure transmission (HTTPS) and proper client-side storage (HttpOnly, Secure flags), validating tokens on the server by checking signatures and claims, and setting expiration times to limit their validity. Python examples demonstrate these techniques, while tools like Snyk can identify and help remediate vulnerabilities in JWT handling. → snyk.io
2026-04-11 2026Detecting JWT Security Issues beginner 4 min readJWTs, used for application authentication, can introduce broken authentication vulnerabilities when misunderstood, as demonstrated by the insecure use of `jsonwebtoken.decode()` in Node.js applications. This method bypasses signature verification, allowing tokens to be tampered with and accepted as valid. Snyk can detect this specific misuse of the `jsonwebtoken` library, along with other potential risks like hardcoded secrets and inadequate token expiration, helping developers secure their JWT implementations. → snyk.io
2026-04-11 2026Attacking JWT authentication intermediate 4 min readAttacking JWT authentication outlines methods to compromise stateless web application security. Vulnerabilities include exposing sensitive data within easily decodable JWTs, and exploiting algorithmic flaws where JWT headers can be manipulated. Specifically, attackers can force an "none" algorithm or exploit an insecure switch from RS256 to HS256, using public keys as shared secrets. Additionally, weak signing keys for HS256 can be brute-forced using tools like `jwtbrute`, Python scripts, and John the Ripper, enabling token forgery.
2026-04-11 2026Lab: JWT authentication bypass via weak signing key intermediate 2 min readLab: JWT authentication bypass via weak signing key, detailing a process to exploit a weak signing key in JSON Web Tokens. This involves using Burp Suite's JWT Editor extension to brute-force the secret key with `hashcat`, generating a new symmetric key in JWK format, and then modifying the JWT's payload to gain administrative access. → portswigger.net
2026-04-11 2026Lab: JWT authentication bypass via jku header injection intermediate 2 min readLab: JWT authentication bypass via jku header injection. This lab demonstrates an authentication bypass vulnerability in JSON Web Tokens by injecting a malicious JWK Set. Using the Burp Suite JWT Editor extension, attackers can upload a controlled JWK Set, modify the JWT header to reference it with a `jku` parameter, and then sign the token with their own key. This allows them to impersonate legitimate users and gain unauthorized access, as shown by escalating privileges to access an admin panel. → portswigger.net
2026-04-10 2026PortSwigger KB: JWT none algorithm supported intermediate 1 min readJWT none algorithm supported vulnerability allows attackers to tamper with the "alg" header to "none," bypassing signature verification and leading to privilege escalation or user impersonation by injecting arbitrary claims into the token payload. This occurs when servers incorrectly support the "none" algorithm, accepting unsigned JWTs. Remediation involves rejecting unsecured JWTs and restricting the "alg": "none" parameter within JWT parsing libraries, ensuring only cryptographically strong algorithms are verified. → portswigger.net
2026-04-10 2026Intigriti: Exploiting JWT vulnerabilities — advanced exploitation guide advanced 11 min read API Sec Bug BountyGuide to exploiting JWT vulnerabilities, this resource details seven methods for testing misconfigurations. It covers the 'none' algorithm, missing signature validation, and algorithm confusion attacks, including examples like CVE-2018-0114 and JWK spoofing. The guide explains JWT structure and emphasizes the risks of neglecting security specifications during implementation. → intigriti.com
2026-04-10 2026Vaadata: JWT vulnerabilities, common attacks and security best practices beginner 15 min readJWT (JSON Web Token) vulnerabilities, common attacks, and security best practices are explored, detailing how these stateless authentication tokens function and their inherent risks. The article breaks down JWT structure, including the JOSE header, payload, and signature, explaining their roles in ensuring data integrity. It highlights how weak implementations or exposed secrets can lead to exploitable vulnerabilities, allowing attackers to compromise authentication systems, escalate privileges, and impersonate users. Best practices for secure JWT configuration and implementation are also discussed to mitigate these risks. → vaadata.com
2026-04-10 2026WorkOS: JWT algorithm confusion attacks explained intermediate 7 min readJWT algorithm confusion attacks exploit a vulnerability where token verification logic trusts the `alg` claim in the token's header, allowing attackers to forge tokens. This is commonly demonstrated by changing the algorithm from RS256 to HS256, where a server's RSA public key is used as the symmetric secret for HMAC signing. Defenses include explicitly pinning the expected algorithm in verification code, enforcing key type and algorithm agreement, ignoring or strictly validating embedded key references like `jku` and `x5u`, and using well-maintained, updated JWT libraries.
2026-04-10 2026PentesterLab: Another JWT Algorithm Confusion Vulnerability (CVE-2024-54150) news 3 min readCVE-2024-54150: The xmidt-org/cjwt C library suffers from a critical JWT algorithm confusion vulnerability. This flaw allows attackers to bypass signature verification by using HMAC signatures with public keys, exploiting the library's failure to properly distinguish between different signing algorithms like RS256 and HS256. The vulnerability arises from an insufficient distinction between HMAC and asymmetric key verification processes, potentially granting unauthorized access. → pentesterlab.com
2026-04-10 2026Curity: JWT Security Best Practices beginner 16 min readJWT security relies on proper implementation and validation rather than the message format itself. Best practices include fully validating signatures, issuers, and audiences; avoiding interchangeable use of access and ID tokens; not embedding sensitive data; employing short-lived tokens; and utilizing asymmetric signing keys with centralized management. Applications should also treat all traffic as untrusted, even internal communications, and prefer allow-lists for algorithm verification to mitigate potential attack vectors like the "none" algorithm.
2026-04-10 2026RFC 8725: JSON Web Token Best Current Practices beginner 16 min readReference for RFC 8725, updating RFC 7519, this document provides actionable guidance for secure implementation and deployment of JSON Web Tokens (JWTs). It addresses common vulnerabilities such as algorithm confusion attacks (including "none" algorithm and RS256 to HS256 transitions), weak symmetric keys, mismatches between signed and encrypted token validation, and encryption length leakage from compression attacks. The guidance also covers input validation issues with ECDH-ES and concerns related to older JSON encoding standards, aiming to mitigate attacks like CVE-2015-9235 and CVE-2023-51774.
2026-04-10 2026Auth0: Critical vulnerabilities in JSON Web Token libraries news 7 min readCritical vulnerabilities in JSON Web Token libraries like node-jsonwebtoken, pyjwt, and others allowed attackers to bypass signature verification. The issues stemmed from improper handling of the "none" algorithm and the ability to use public keys as HMAC secrets in asymmetric signing algorithms. This exploitation could lead to arbitrary account access and token forgery. Developers are urged to update vulnerable libraries and ensure that tokens with unexpected signature types are rejected. → auth0.com
2026-04-10 2026OWASP WSTG: Testing JSON Web Tokens intermediate 8 min readReference detailing OWASP's Web Security Testing Guide (WSTG) procedures for testing JSON Web Tokens (JWTs). It covers analyzing JWT headers and payloads for sensitive data, testing for tampering vulnerabilities, and verifying signature integrity. Specific attack vectors discussed include exploiting the "none" algorithm, the ECDSA "psychic signatures" vulnerability (CVE-2022-21449), weak HMAC key cracking using tools like crackjwt.py and John the Ripper, and HMAC vs. public key confusion attacks. → owasp.org
2026-04-10 2026KathanP19/HowToHunt: JWT beginner 11 min readLibrary detailing JSON Web Token (JWT) security, covering its structure (header, payload, signature), symmetric and asymmetric encryption (HS256, RS256), and common vulnerabilities. It explores attacks such as the "none" algorithm bypass, algorithm substitution (RS256 to HS256), signature validation failures, and secret key cracking using tools like Hashcat and JWT_Tool. The library also highlights insecure header parameters like `kid`, `jku`, `jwk`, `x5u`, `x5c`, and `x5t`.
2026-04-10 2026tuhin1729 Bug Bounty Methodology: JWT beginner 1 min readReference to JWT attacks, detailing methods such as modifying the body when signatures are unchecked or exist, brute-forcing weak signatures, and exploiting the "None" algorithm. It also covers attacks against RS256 by finding public keys, manipulating the `kid` parameter for URL redirection, accessing publicly readable files, and injecting commands or SQL queries. The entry includes steps for setting up and using the `jwt_tool` for automated analysis.
2026-04-10 2026HackTricks: JWT vulnerabilities intermediate 13 min readJWT vulnerabilities are detailed in this comprehensive resource, covering techniques like tampering with claims, signature bypasses using "alg: none," key confusion attacks by switching RS256 to HS256 and using the public key as a shared secret, and exploiting weak JWE decryption in vulnerable pac4j-jwt versions. The guide recommends practical tools such as `jwt_tool` and Burp Suite extensions like SignSaboteur and JOSEPH for discovering and exploiting these weaknesses, emphasizing the importance of understanding token generation and verification processes. → book.hacktricks.xyz
2026-04-10 2026PayloadsAllTheThings: JSON Web Token beginner 10 min readLibrary detailing JSON Web Token (JWT) security flaws, including format, signature bypasses like CVE-2020-28042 and CVE-2015-9235, key confusion attacks (CVE-2016-5431), and key injection. It also covers tools such as `ticarpi/jwt_tool`, `c-jwt-cracker`, and `JOSEPH`, along with insights into signature disclosure vulnerabilities like CVE-2019-7644 and the "None" algorithm exploit.
2026-04-10 2026DontPanicO/jwtXploiter: A tool to test the security of JSON Web Tokens intermediate 2 min readTool for testing JSON Web Token (JWT) security. This application facilitates tampering with token payloads, exploiting vulnerable header claims like `kid`, `jku`, and `x5u`, verifying tokens, and performing key confusion attacks. It supports all JSON Web Algorithms (JWAs), generates JWKs, and integrates with `pip` and `dpkg`. Targeted at web application penetration testers, bug bounty hunters, and developers needing to secure JWT implementations.
2026-04-10 2026brendan-rius/c-jwt-cracker: JWT brute-force cracker in C intermediate 3 min readLibrary for multi-threaded JWT brute-force cracking written in C. It supports HMAC hash functions like HS256, HS384, and HS512, allowing users to specify custom alphabets and secret lengths. The tool leverages OpenSSL for hashing and includes build instructions for Docker and native compilation on Linux and macOS, noting potential Base64 implementation issues.
2026-04-10 2026mazen160/jwt-pwn: Security testing scripts for JWT intermediate 1 min readLibrary of scripts for security testing of JSON Web Tokens (JWT). Includes tools for brute-forcing secrets with `jwt-cracker.py` and `go-jwt-cracker`, decoding JWT values, generating new JWTs signed with HS256, and creating unsigned JWTs. These scripts aid in identifying vulnerabilities related to JWT implementation.
2026-04-10 2026jwt_tool Attack Methodology wiki intermediate 13 min readLibrary providing an attack methodology for testing JSON Web Tokens (JWTs). It details a workflow, beginning with setup using intercepting proxies like Burp Suite or ZAP, and then enumerates various checks and exploits. These include verifying token requirement and persistence, analyzing claim processing before validation, and exploiting common vulnerabilities such as the 'none' algorithm (CVE-2015-9235), RSA key confusion (CVE-2016-5431), JWKS injection (CVE-2018-0114), and null signatures (CVE-2020-28042). The library also covers advanced techniques like "kid" issues, URL tampering, JWKS spoofing, and cross-service relay attacks.
2026-04-10 2026ticarpi/jwt_tool: A toolkit for testing, tweaking and cracking JSON Web Tokens intermediate 6 min readLibrary for validating, forging, scanning, and tampering with JSON Web Tokens (JWTs). It identifies vulnerabilities like `alg=none` (CVE-2015-2951), RS/HS256 public key mismatch (CVE-2016-10555), key injection (CVE-2018-0114), and blank password (CVE-2019-20933/CVE-2020-28637) by fuzzing claims, testing secrets, performing dictionary attacks, and enabling timestamp tampering. The tool also supports RSA and ECDSA key generation and reconstruction, rate-limiting, and can directly send tokens to target URLs or files for automated testing against applications.
2026-04-10 2026Working with JWTs in Burp Suite intermediate 2 min readBurp Suite's JWT Editor extension facilitates security testing of JSON Web Tokens, commonly used for authentication and session management. This tool allows security professionals to view and decode JWTs directly within Burp Inspector, identify sensitive information, and then edit token headers and payloads. Crucially, the extension enables the generation of cryptographic signing keys and resigns modified JWTs with valid signatures, allowing for testing of vulnerabilities like signature bypass. → portswigger.net
2026-04-10 2026JSON Web Token Attacker Burp extension intermediateExtension that assists in pentesting applications utilizing JavaScript Object Signing and Encryption (JOSE), specifically targeting JSON Web Tokens. This tool automates the discovery and testing of vulnerabilities within JOSE implementations, aiding security professionals in identifying potential weaknesses during application assessments. → portswigger.net
2026-04-10 2026JWT Scanner Burp extension intermediateExtension for Burp Suite that scans for JWT vulnerabilities by highlighting tokens and initiating scans. It supports forging public keys when they are not exposed, allowing for further exploitation and vulnerability discovery by rerunning scans after successful forging. → portswigger.net
2026-04-10 2026PortSwigger jwt-editor: Burp Suite extension for editing and signing JWTs intermediate 5 min readLibrary for manipulating JSON Web Tokens (JWTs) within Burp Suite, this tool detects and allows editing, signing, verifying, encrypting, and decrypting JWTs in HTTP and WebSocket messages. It offers detection of JWTs, highlighting, and an Intruder payload provider. Functionality includes importing/exporting cryptographic keys, editing JWS/JWE components with JSON and hex editors, and performing attacks such as "none" algorithm bypass, HMAC key confusion, embedded JWK, signing with an empty HMAC key, Psychic signatures (CVE-2022-21449), and collaborator integration.
2026-04-10 2026Algorithm confusion attacks | Web Security Academy intermediate 5 min readReference detailing algorithm confusion attacks, also known as key confusion attacks, where an attacker manipulates JWT verification by forcing a server to use an unintended algorithm. This often exploits flawed JWT library implementations where a single verification method handles multiple algorithms, allowing an attacker to use a public key as a symmetric secret for HS256 verification when RS256 was intended. The entry outlines obtaining the server's public key, converting it to the correct format, and signing a forged JWT with HS256 using that public key. It also covers deriving public keys from existing tokens using tools like `jwt_forgery.py` or `portswigger/sig2n`. → portswigger.net
2026-04-10 2026JWT attacks | Web Security Academy beginner 13 min readJWT attacks exploit design flaws and mishandling of JSON Web Tokens (JWTs) to compromise authentication, session management, and access control. Vulnerabilities often arise from improper signature verification, allowing attackers to tamper with token payloads and impersonate users or escalate privileges. Applications may mistakenly use token decoding instead of verification or accept tokens with missing or manipulable signature algorithms. → portswigger.net
2026-01-12 2026dr34mhacks/jwtauditor: JWT Auditor – Analyze, break, and understand your tokens like a pro. intermediate 3 min read PythonTool for analyzing and exploiting JWT security vulnerabilities. JWTAuditor offers automated detection for over 15 vulnerability types, including algorithm confusion, KID parameter injection, and sensitive data exposure, with detailed explanations and remediation advice. It features secret bruteforcing, a JWT editor, token generator, and seven specialized attack modules, all processed client-side for enhanced privacy. It supports various signing algorithms like HS256 and RS256, and facilitates testing through RSA key generation and signature verification.
2025-10-27 2025Stealing Microsoft Teams access tokens in 2025 advanced 3 min read AuthNAnalysis of Microsoft Teams token extraction reveals a method to retrieve encrypted access tokens stored on disk. Initially, tokens were in plaintext within an SQLite database, but newer versions encrypt them using DPAPI. The process involves monitoring file writes with Sysinternals ProcMon to identify the `msedgewebview2.exe` process, which accesses the `Cookies` file. The DPAPI encryption key is found in a local state JSON file. A Proof of Concept in Rust decrypts these tokens using AES-256-GCM, enabling interactions with the Microsoft Graph API via tools like GraphSpy.
2025-09-05 2025Authentication Explained: When to Use Basic, Bearer, OAuth2, JWT & SSO | daily.dev beginner AuthN AuthZGuide to authentication and authorization models, detailing when to use Basic, Bearer tokens, OAuth2, JWT, and SSO. It contrasts RBAC, ABAC, and ACL authorization strategies and explains how applications like GitHub and Stripe integrate these for robust security, emphasizing the importance of selecting appropriate mechanisms based on application complexity and specific requirements.
2024-09-05 2024JWT vs PASETO: New Era of Token-Based Authentication intermediate 11 min read API Sec AuthNPaseto, a platform-agnostic security token specification, offers a modern and more secure alternative to JSON Web Tokens (JWT). While JWT is widely used for token-based authentication due to its simplicity, it suffers from potential vulnerabilities like improper algorithm choices and key management issues. Paseto addresses these shortcomings by enforcing secure defaults, preventing algorithm confusion, and providing distinct token types (local and public) for different use cases, making it a robust choice for secure stateless tokens.
2024-08-16 2024Securing OAuth 2.0 Token Exchange Flow with Keycloak intermediate 3 min read API Sec AuthNReference detailing RFC 8693 Token Exchange security hardening in Keycloak. It demonstrates how to secure the flow by requiring both a specific client ID and a custom scope claim in the subject token, preventing unauthorized exchanges. The article outlines a five-step process within Keycloak, including creating client IDs, client scopes, and configuring policies and permissions to enforce these requirements, ultimately demonstrating how to deny exchanges lacking the necessary scope.
2023-05-21 2023JWT (Json Web Token) Audience aud versus Client_Id - What's the difference? beginner 3 min read AuthNReference on the JWT `aud` (Audience) claim, clarifying its role in identifying intended recipients and the responsibility of token processors to validate this claim. It explains that `aud` can be a string or array of strings, application-specific, and optional, unlike the unrelated OAuth Client ID. The document highlights its use case for distinguishing access from refresh tokens and stresses that recipient validation of the `aud` claim is crucial for its effectiveness. → stackoverflow.com
2023-05-09 2023All About Attacking JWT intermediateAll About Attacking JWT https://ift.tt/8Rcdsfp
2023-04-02 2023JSON Web Tokens Vulnerabilities and Exploitation. intermediate 5 min readJSON Web Token (JWT) vulnerabilities and exploitation techniques are detailed, covering misconfigurations such as flawed signature verification, accepting tokens with no signature, and brute-forcing secret keys for HS256 algorithms. The article also explores header parameter injection via `jwk` and `jku`, enabling self-signed JWTs. Tools like Burp Suite's JWT Editor and jwt.io are highlighted for analyzing, manipulating, and exploiting these weaknesses, while also emphasizing prevention through up-to-date libraries and robust signature verification.
2023-04-02 2023JWT [JSON WEB TOKENS] [EXPLANATION & EXPLOITATION] (0x02) intermediateJWT [JSON WEB TOKENS] [EXPLANATION & EXPLOITATION] (0x02) https://ift.tt/Pk0dAUM
2021-11-03 2021Introducing CookieMonster: a tool for breaking stateless authentication intermediate 4 min read AuthNCookieMonster, a Go-based application security library, aids in detecting and breaking stateless authentication mechanisms. It identifies vulnerabilities arising from weak secret keys in frameworks like Django, Flask, and Laravel, which can lead to account takeover or even RCE. Supporting JWTs and various framework-specific cookie schemes, CookieMonster offers both an API for automation and a CLI for manual testing, achieving high performance for large-scale scanning and real-time alerting.
2021-10-14 2021These are the security issues with JWT beginner 4 min read AuthNReference detailing security issues with JWTs, highlighting the impossibility of revocation and the need for custom solutions for logouts or permission adjustments. It discusses storage vulnerabilities like XSS and CSRF, referencing OWASP's recommendations for hardened cookies and their implications. The article emphasizes JWT suitability for stateless applications, as per the OWASP JWT Cheat Sheet, and contrasts them with traditional session tokens.
2021-09-13 2021The Wonderful World of Tokens and Claims: CWT beginner AuthNThe Wonderful World of Tokens and Claims: CWT
2021-07-19 2021Where to Store the JSON Web Token (JWT)? intermediate AuthNThis content explores secure storage options for JSON Web Tokens (JWTs) in web applications. It highlights the trade-offs between client-side (e.g., browser local storage, session storage, cookies) and server-side storage. Key considerations include vulnerability to Cross-Site Scripting (XSS) attacks for client-side storage and potential for token hijacking. The article likely delves into best practices and recommended approaches to mitigate these risks and maintain the security of JWTs.