Skip to content
All modules
CoreModule 6 of 10120 minutes

Web attacks and session tokens

Read and forge JWTs and Flask sessions, find content nobody linked to, and probe for injection with detection payloads.

By the end you can

  • Decode a JWT and identify the attack its header enables
  • Forge an alg=none token and recover a weak HMAC secret offline
  • Discover unlinked content, including exposed .git directories
  • Choose a detection probe for SQL injection, SSTI, and command injection, and read the response for confirmation

1. Read

2. Use the tools

In the order they come up while solving. Each opens the workspace tab that runs it.

3. Try one now

Generated in your browser and checked in your browser. No account, nothing to download, and a fresh one whenever you want another.

Practice

generated here, checked here, no account and nothing to download

4. Practise on the real thing

Real picoCTF challenges that use these techniques, easiest first. 36 match in total - see the full index.

Checkpoint

Take a JWT-protected endpoint and reach an admin-only response, stating which of the three token weaknesses you used and why the other two did not apply.

Teaching note

This is the first module with real-world legal weight. Cover authorisation explicitly before the tools: the same techniques against a system nobody gave you permission to test are a criminal offence, not a lesson.