dontpanico / jwtxploiter Goto Github PK
View Code? Open in Web Editor NEWA tool to test security of json web token
License: GNU General Public License v3.0
A tool to test security of json web token
License: GNU General Public License v3.0
Describe the bug
Running --find-key-from-jwks raise AttributeError if jwks file does not contain a key that can verify the token
To Reproduce
Expected behavior
No AttributeError should be raised
Additional context
This is due to a typo an attribute has been typed incorrectly), and not for an unhandled exception
I noticed that sometimes install.sh miss to call pip3 install -r requirements.txt. So if when you run the main script you get a depndency-related error, do that manually.
N.B. THIS ISSUE HAS BEEN CLOSED! THE EXCEPTION HAS BEEN HANDLED!
Before time of writing, FileNotFoundError generated from non existing files passed to -k/--key, was handled only with HS*
algorithms.
Now, after last commit, the exception has been handled, no matter which alg has been passed.
Describe the bug
Exception FileNotFoundError not properly handled, when passing a non existing key file to -k/--key.
This happen only with asymmetric algorithms, since it's been handled with HS*
To Reproduce
jwtxpl <token> -a rs256 -p <key>:<value> -k /path/to/non/existing
Expected behavior
The script should properly handle this exception and return a custom error
Describe the bug
Jku and x5u attacks that return jwks files miss to generates it.
To Reproduce
Run a jku/x5u attack against a valid target (not --jku-inbody and --x5u-inbody, since they does not returns jwks files)
Expected behavior
The tool should return the crafted jwks file
Before time of writing, selecting alg none will raise an exceptions. This is due since during validation the script converts algorithms
to uppercase, but the method which select the signature only look for 'none' or 'None'.
SOLVED, converting algorithm to uppercase only if its lowercase differ from 'none'.
I WILL LEAVE THE ISSUE OPENED 3 DAYS IN ORDER TO MAKE IT MORE VISIBLE TO PEOPLE RAN INTO THAT ERROR.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.