HTB Web Insomnia
by macavitysworld - Thursday March 21, 2024 at 05:36 AM
#1
HTB Web Challenge - Insomnia(Quick writeup)
  • Interception of the login request and deletion of the password parameter.
  • Entered an existing username in the DB (e.g., "test") to receive the JWT token.
  • Sent the JWT token to /index.php/profile endpoint with the username changed to "administrator" to obtain the flag.

Flag
Hidden Content
You must register or login to view this content.
Thanks @paw for the rank!!
Reply
#2
Wow this is very helpful
Reply
#3
how can I change the JWT? I have not the JWT_SECRET and the JWT became invalid!
Reply
#4
Thanks friend, I'll see... keep it up my king...
Reply
#5
(Mar 22, 2024, 06:53 PM)Art10n Wrote: how can I change the JWT? I have not the JWT_SECRET and the JWT became invalid!

- Intercept the request
- sent to repeater
- Delete password parameter
- add user as administrator
- you'll get the required token
Thanks @paw for the rank!!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [FREE] HackTheBox Academy - CBBH CDSA CPTS All Modules Flags Techtom 27 2,802 4 minutes ago
Last Post: Johe
  [MEGALEAK] HackTheBox ProLabs, Fortress, Endgame - Alchemy, 250 Flags, leak htb-bot htb-bot 87 7,976 1 hour ago
Last Post: char0n1507
Heart [FREE] HackTheBox All Cheatsheets Tamarisk 9 565 1 hour ago
Last Post: char0n1507
  CBBH Write Ups hiddenhacker 23 6,343 2 hours ago
Last Post: somecrazykid
  [FREE] CPTS 12 FLAGS pulsebreaker 72 2,219 4 hours ago
Last Post: coolguyaroundyou

Forum Jump:


 Users browsing this forum: 1 Guest(s)