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] 300+ Writeups PDF HackTheBox/HTB premium retired Tamarisk 370 92,224 1 hour ago
Last Post: lifolifo007
  Hack the box Pro Labs, VIP, VIP+ 1 month free Method RedBlock 23 2,196 4 hours ago
Last Post: kkkato
  [FREE] HackTheBox Academy - CBBH CDSA CPTS All Modules Flags Techtom 20 2,500 Yesterday, 11:06 PM
Last Post: op334
Heart [FREE] HackTheBox All Cheatsheets Tamarisk 3 401 Yesterday, 10:36 PM
Last Post: op334
  CBBH Write Ups hiddenhacker 22 6,232 Yesterday, 06:39 AM
Last Post: Usercomplex

Forum Jump:


 Users browsing this forum: 1 Guest(s)