项目说明
![Python 3.7|3.9]() ![License: GPL v3]() ![release 1.2.1]() ![pypi 1.2.1]()
jwtXploiter
A tool to test security of JSON Web Tokens.
Test a JWT against all known CVEs;
Tamper with the token payload: changes claims and subclaims .Exploit known header claims (kid, jku, x5u) a tokenRetrieve the public key of your target's ssl connection and try to use it in a key confusion attack with one option onlyAll JWAs supportedGenerates a JWK and insert it in the token headerAnd much, much more!Wiki
+ Read the wiki!
wiki
Installation
N.B. Cloning the repository should be a except for de purposes!
N.B. Deb package has to be considered beta
+ With rpm:
or, if previous is installed on your machine
+ With pip:
+ With deb:
+ Cloing the repo:
N.B. python3-pip package is required to install dependencies, be sure to have it installed.
Who this tool is written for?
+ Web Application Penetration Tester / Bug Bounty Hunters
- This tool has been written with the aim of become a key part of pentesters toolkit.
+ Devs who need to test the secuirty of JWTs used in their applications
+ CTF Players
+ Not For Students
- Since this tool automates lot of stuff, without force the user to know what's happening under the hood, it won't
help you to understand the it exploits.
To Know
For attacks that generates a jwks file, you could find it in the current working directory. Remeber to deletes such files in order to avoid conflicts.
For jku/x5u injection that needs to merge two urls (the ser url and your one), the HERE keyword is required.For redirect attacks the keyword should replace the redirect url, e.g. - -->
For jku/x5u injections via HTTP header injection attacks, the HERE keyword sould be appended to the parameter, without replacing its value, e.g.
- -->
Also, in such cases, be sure to pass the server url and your one as comma separated .'/.well-known/jwks.json' is automatically appended to your url in jku/x5u attacks. So make sure to place the jwks file under this path on your server.
If you don't want that happen, use the --manual option, but this option is compatible only with --jku-basic and --x5u-basic so, you will need to manually craft the url and pass it to those options, even for attacks that exploit Open Redirect or
HTTP header injection.
Look at the wiki for a detailed documentation.项目信息
开发语言:Python
Star 数:293
技术要点
该项目属于CTF思路方向的开源资源,代码结构清晰,适合安全研究人员学习参考。项目围绕A tool to test security of json web token展开,提供了可运行的实现,对理解相关安全机制、工具原理与攻防技术具有较高的研究价值。
从技术实现角度看,此类项目的核心在于对底层原理的深入理解与工程化落地。开发者在研究过程中可以结合官方文档与社区讨论,梳理项目的初始化流程、核心模块职责与数据流转,逐步掌握其中的技术细节与设计思路。
使用与学习建议
1. 下载源码压缩包,解压到本地环境。
2. 根据项目类型准备对应的运行环境与依赖。
3. 按照 README 中的步骤完成配置与部署。
4. 在隔离的测试环境中运行验证,避免影响生产系统。
免责声明
本资源来源于开源社区,仅供安全研究、技术学习与合法授权范围内的攻防演练使用,请勿用于任何非法或侵害他人权益的用途。使用本项目产生的一切后果由使用者自行承担。