now we have a website that contain a JWT

Untitled

now let’s go and try to login

Untitled

okay hit login

Untitled

as we can see we are logged in as the user wiener now let’s open burpsuite and intercept the request

Untitled

as we can see the JWT Editor Extension identified that there is a JWT in this request

now let’s send it to the repeater and open the JWT Editor

Untitled

as we see the payload section of the JWT contain sub that is holding the current username that is logged in

now what will happen if there we change the value of it to administrator

Untitled

as we can see we got the admin panel as an option in the new JWT

now let’s open the response in browser

Untitled

as we can see we are in /admin endpoint and we successfully deleted the user carlos and solved the lab