// CYBERVAULT / NEXUS VAULT

Nexus Vault โ€” Session Forgery

Medium Points: 300 JWT HS256 Secret Cracking

๐Ÿ“ก Mission Briefing

"We sniffed a session token off NexusVault's staff portal. It's just a guest account โ€” but their auth is JWT, and rumour says an intern picked the signing secret. Get us an admin session and pull the vault flag. Everything verifies right here in your browser, Agent."

Your goal: turn the intercepted guest token into a valid admin token that the Vault console below will accept.

๐ŸŽซ Intercepted Token

A live guest session token, signed with HS256:

๐Ÿ”“ Vault Console

Paste a forged token below. The console verifies the HS256 signature and checks the role โ€” an admin session unlocks the flag.

// VAULT BREACHED โ€” FLAG CAPTURED

๐Ÿงฐ Recommended Tools

You'll want to decode, crack, and re-sign JWTs offline. These help:

โšก JWTweak (crack + forge) jwt.io (decode) hashcat -m 16500 rockyou.txt

๐Ÿ’ก BYTE's Hints

Stuck? Open a hint. Each reveals a little more.

โ–ธ Hint 1 โ€” read the WHOLE token
A JWT is header.payload.signature, each part base64url. Most people only decode the payload and see "role":"guest". Decode the header too โ€” this vault put something unusual in it. Whatever you find there may itself be encoded again.
โ–ธ Hint 2 โ€” the weak link
The token uses HS256 โ€” symmetric, so the signature is only as strong as the secret. The intern chose a weak, guessable password. Recover it with an offline dictionary attack against the intercepted token. But note: cracking the secret and setting role:admin alone will not open the vaultโ€ฆ
โ–ธ Hint 3 โ€” put it together with JWTweak
The header's kid reveals a second claim the scoped console demands (decode it, then decode its inner value). Use JWTweak: Crack HMAC secret with rockyou.txt, then forge a token that sets both role=admin and the required clearance claim, re-signed with the cracked secret. Paste it into the console.
BYTE: Beep. I'm BYTE. Guest pass, weak secret โ€” easy start. But this vault has a trick: read the header, not just the payload. ๐Ÿ‘€
๐Ÿค–