cspshivam/playground
Modern Level 5 / 14 Hard
← All labs

JWT Forgery (alg abuse)

The session is a JSON Web Token the server trusts to describe your role. Mint one that promotes you.

Session inspector

Your session is carried in the session cookie — a JSON Web Token. The server validates it on every request and shows who it thinks you are. Become admin.

Your session cookie (JWT — base64url, decodable)

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjoieW91Iiwicm9sZSI6InVzZXIifQ.0E2cqOIHUaXjHeE2uWJXJhpulH2NerwRSiNX6rfJRkM

This token is not editable here. It lives in a cookie, so changing your role means editing that cookie in the request.

Accepted. user=you, role=user

This is an isolated, intentionally-vulnerable sandbox. Data here is fake and scoped to you. The rest of CSPSHIVAM Playground is not part of the target.