当前位置:网站首页>[ctfhub] the data of JWT header and payload are transmitted in clear text. If sensitive information is contained in it, sensitive information will be leaked. Try to find the flag. Format is flag{}
[ctfhub] the data of JWT header and payload are transmitted in clear text. If sensitive information is contained in it, sensitive information will be leaked. Try to find the flag. Format is flag{}
2022-07-23 15:10:00 【Meng Meng Mu Xi】
What is? JWT
Json Web Token (JWT), Is a kind of implementation based on the JSON Open standards for (RFC 7519.
The token Designed to be compact and safe , Especially for single sign in of distributed sites (SSO) scene , Is the most popular cross domain authentication solution .JWT The declaration of is generally used to pass the authenticated user identity information between the identity provider and the service provider , To get resources from the resource server , You can also add some additional declaration information that other business logic requires , The token It can also be used directly for authentication , It can also be encrypted .
JWT Three parts of
- Header( Head )
- Payload( load )
- Signature( Signature )

JWT Three parts for intermediate use . Division
Well known , After logging into the account , The front end will receive the message from the back end JWT.JWT The first two paragraphs of the default is Base64 Coded , verification JWT Whether it has been tampered with depends mostly on the signature of the last paragraph .
The back end usually specifies a signature algorithm ( Such as HMACSHA256 Algorithm ,secret It is generally defined by the back end , Must not leak , Otherwise, the attacker will be able to forge JWT request )
JWT Part three
HMACSHA256( base64UrlEncode(header) + "." + base64UrlEncode(payload), secret)
[JWTHub subject ]JWT The data of the header and payload are transmitted in plaintext , If it contains sensitive information , Sensitive information will be leaked . Try to find out FLAG. The format is flag{}
1. Click the link to enter the topic environment

2. Enter a user name and password randomly to log in .

3. open F12 Console , Find local storage and Cookie, Find out JWT There is Cookie in

4. Get JWT Go to jwt.io Website to parse ( Or press . Split into three segments , Take the first two paragraphs Base64 decode )

5. Find out FLAG( Half in Header, Half in Payload, Just splice them together )

Give me a compliment if you like ~ Thank you very much!
边栏推荐
- Live classroom system 01 database table design
- 易基因|靶基因DNA甲基化测序(Target-BS)
- The problem of double type precision loss and its solution
- Simulation of BOC modulation signal acquisition based on MATLAB
- Selenium in the crawler realizes automatic collection of CSDN bloggers' articles
- Matlab simulation of depth information extraction and target ranging based on binocular camera images
- Leetcode-227-basic calculator||
- Map structure stored in the room of jetpack series
- MySQL 常用命令
- 报错 | cannot read property ‘_normalized‘ of undefined
猜你喜欢
![[test platform development] XVII. The interface editing page realizes the drop-down cascade selection, and binds the module to which the interface belongs](/img/19/de8f4de5adbfcfb62291b8664187fd.png)
[test platform development] XVII. The interface editing page realizes the drop-down cascade selection, and binds the module to which the interface belongs

it 农民工的现状和历史

Smart headline: smart clothing forum will be held on August 4, and the whole house smart sales will exceed 10billion in 2022

深入理解CAS (自旋锁)

After vscode is updated, the shortcut keys related to tab cannot be used

General of MySQL_ Log log

基于双目相机拍摄图像的深度信息提取和目标测距matlab仿真

基于matlab的BOC调制信号捕获仿真

Simulation de modulation et de démodulation du signal CBOC basée sur MATLAB, sortie de corrélation, spectre de puissance et suivi de décalage de fréquence

Linux: analysis of the basic use of vim editor
随机推荐
IO流之 字节流 & 字符流
如何加速矩阵乘法——优化GEMM (CPU单线程篇)
PostgreSQL has no NVL solution. PostgreSQL queries all tables
Cloud native observability tracking technology in the eyes of Baidu engineers
安全7.18作业
头部姿态估计原理及可视化_loveliuzz的博客-程序员宅基地_头部姿态估计
Simulation de modulation et de démodulation du signal CBOC basée sur MATLAB, sortie de corrélation, spectre de puissance et suivi de décalage de fréquence
Linux: analysis of the basic use of vim editor
他山之石 | 阿里多模态知识图谱探索与实践
postgresql没有nvl的解决办法,postgresql查询所有的表
js判断元素是否到滚动到顶部
Oracle 报表常用sql
Byte stream & character stream of IO stream
基于PSO优化的多目标最优值求解matlab仿真
idea一次启动多个项目
【机器学习基础】无监督学习(5)——生成模型
Version correspondence between numpy and pytorch
力扣-单调栈
粒子边界碰撞的处理
Getting started with Prometheus (III)