A session value under three layers of encoding
An export request carried a session parameter that looks like noise. Undo two layers of URL encoding by reading the % codes, then base64, and read the claims the server trusted.
What you’re looking at
An export request carried a session parameter that looks like noise. Undo two layers of URL encoding by reading the % codes, then base64, and read the claims the server trusted.
Your goal: Peel three layers of encoding off a session value and show the server trusted an unsigned claim.
- Briefing
- the story: what happened and what evidence you were handed.
- Terminal
- the dark box. It is a pretend Linux shell that runs in your browser. Type a command and press Enter. Nothing you type touches a real system.
- Walkthrough
- the numbered path. Each step says what to type and what you should see. Hints open one at a time.
- Answer boxes
- under each question step. Type what you found and press Check.
Words you will meet
- URL
- web address
- KB
- kilobyte
- IP
- Internet Protocol address, the number that identifies a machine on a network
- JSON
- JavaScript Object Notation, a text format of fields and values
Start with step 1 in the walkthrough. Every step says what to do and what you should see. The whole thing takes about 2 min to talk through.
Briefing
A report export of 88 KB went to an external IP using a session parameter instead of a cookie. The report service is supposed to require a signed token.
URL encoding turns = into %3D and % itself into %25, so %253D means it was encoded twice. Base64 strings often end in = or ==, which is a good clue for the last layer.
web-ws · Decoding artifacts
Type help for the command list and objectives for your tasks. Everything runs in this browser.
Up and down arrows walk your history. Ctrl+L clears the screen. Try help, ls, and objectives.
The whole walkthrough
Every step in order, written to be read aloud: 290 words, about 2 min. It gives away every answer, so try the steps first.