Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
jwt-spoof-tool — Automate JWT Exploit (CVE-2018-0114) | Kitploit
Tools/GitHubGitHub/amr9k8/jwt-spoof-tool
Authentication & AuthorizationPayload GenerationExploitationWeb Application ExploitationPenetration TestingLearning & Education
GitHubamr9k8/jwt-spoof-tool

jwt-spoof-tool

Automate JWT Exploit (CVE-2018-0114)

View Repository
3 years agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

jwt-spoof-tool

Tool Description :

I made this tool for learning purpose and automating jwt token hijacking without depending on using burpsuite the code is well documented and easy to follow Based on (CVE-2018-0114) The Vulnerabilty happend because in backend the server check jwk object embeded inside jwt header, it contain n and e which are 2 paramters used to form the public key

How to exploit :


1) An attacker generate new RSA KEY PAIRS,
2) Get n and e and inject them inside the jwk object in jwt headers
3) Change any values in jwt body section then sign it with his private key
4) The server uses the attacker public key to verify the signature .
5) i made a verify function to make sure the jwt is exploited successfulyy or not by trying to decode it using attacker public key (n and e)

How to run it :


1) overwrite value of variable "jwt_orginal at line 125" by the new vulnerable jwt
2) add any attributes you wanna change inside the dictionary object "dict_values at line 126"
3) Enjoy

Download Tool