Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rishuranjanofficial/JWTweak
Detects the algorithm of input JWT Token and provide options to generate the new JWT token based on the user selected algorithm.
https://github.com/rishuranjanofficial/JWTweak
application-security appsec authentication authorization automation bugbounty jwt jwt-algorithm jwt-algorithm-confusion-attack jwt-tokens pentesting python security-enthusiasts vulnerability-assessment
Last synced: 22 days ago
JSON representation
Detects the algorithm of input JWT Token and provide options to generate the new JWT token based on the user selected algorithm.
- Host: GitHub
- URL: https://github.com/rishuranjanofficial/JWTweak
- Owner: rishuranjanofficial
- Created: 2020-04-24T03:48:51.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-09-27T12:08:29.000Z (about 1 year ago)
- Last Synced: 2024-08-05T17:36:49.756Z (4 months ago)
- Topics: application-security, appsec, authentication, authorization, automation, bugbounty, jwt, jwt-algorithm, jwt-algorithm-confusion-attack, jwt-tokens, pentesting, python, security-enthusiasts, vulnerability-assessment
- Language: Python
- Homepage:
- Size: 63.5 KB
- Stars: 101
- Watchers: 2
- Forks: 23
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
- awesome-hacking-lists - rishuranjanofficial/JWTweak - Detects the algorithm of input JWT Token and provide options to generate the new JWT token based on the user selected algorithm. (Python)
README
# JWTweak
[![GitHub stars](https://img.shields.io/github/stars/rishuranjanofficial/JWTweak?logoColor=blue&style=social)](https://github.com/rishuranjanofficial/JWTweak/stargazers) [![GitHub forks](https://img.shields.io/github/forks/rishuranjanofficial/JWTweak?logoColor=blue&style=social)](https://github.com/rishuranjanofficial/JWTweak/network)## Introduction
With the global increase in JSON Web Token (JWT) usage, the attack surface has also increased significantly. Having said that, this utility is designed with the aim to generate the new JWT token with little or no time which would help security enthusiasts to find security flaws in JWT implementation like Algorithm confusion attacks. This tool is designed to automate the process of modifying the JWT algorithm of input JWT Token and then generate the new JWT based on the new algorithm.## Requirements
- Python 3 (tested and working fine in python-3.7.7/Kali and python-3.8.2/Windows 10)
- pip3 install pycryptodomex## Features
- Detects the algorithm of the input JWT Token
- Base64 decode the input JWT Token
- Generate new JWT by changing the algorithm of the input JWT to 'none'
- Generate new JWT by changing the algorithm of the input JWT to 'HS256'
- Generate new JWT by changing the algorithm of the input JWT to 'HS384'
- Generate new JWT by changing the algorithm of the input JWT to 'HS512'
- Generate new JWT by changing the algorithm of the input JWT to 'RS256'
- Generate new JWT by changing the algorithm of the input JWT to 'RS384'
- Generate new JWT by changing the algorithm of the input JWT to 'RS512'## Download Link
**[JWTweak.py](https://rishuranjanofficial.github.io/JWTweak/JWTweak.py)**## POC
![jwtweak](https://user-images.githubusercontent.com/51092706/86468710-9fdaae00-bd55-11ea-8272-8169ee29d431.png)## Issues and Suggestions
[![GitHub issues](https://img.shields.io/github/issues/rishuranjanofficial/JWTweak?label=Contribution&style=social)](https://github.com/rishuranjanofficial/JWTweak/issues)## Author
**Rishu Ranjan**
> [![](https://img.shields.io/twitter/follow/secureit_rrj?style=social)](https://twitter.com/intent/follow?screen_name=secureit_rrj) [![](https://static-exp1.licdn.com/sc/h/95o6rrc5ws6mlw6wqzy0xgj7y)](https://www.linkedin.com/in/rishuranjan/)