Tokens, and when a JWT is the wrong answer
1.[2p] The payload of a signed JWT is hidden from anyone holding the token.
The payload of a signed JWT is hidden from anyone holding the token.
2.[3p] Match each registered claim to what it asserts.
Match each registered claim to what it asserts.
iss
sub
aud
exp
which service the token was minted for
who issued this token
who the token is about
the moment after which it must be refused
Show the answer
iss: who issued this token sub: who the token is about aud: which service the token was minted for exp: the moment after which it must be refused
3.[3p] An attacker sets the header to {"alg":"none"}, edits the payload and removes the signature. What makes this work when it works?
An attacker sets the header to {"alg":"none"}, edits the payload and removes the signature. What makes this work when it works?
4.[3p] In an algorithm confusion attack against an RS256 issuer, what does the attacker use as the HMAC key?
In an algorithm confusion attack against an RS256 issuer, what does the attacker use as the HMAC key?
5.[3p] Access tokens live 15 minutes and revocation is by expiry alone. On average, how many minutes does a revoked token keep working?
Access tokens live 15 minutes and revocation is by expiry alone. On average, how many minutes does a revoked token keep working?
6.[3p] A team adds a jti denylist checked on every request and still calls the design stateless. What is the accurate description?
A team adds a jti denylist checked on every request and still calls the design stateless. What is the accurate description?
7.[3p] In which situations does a signed token genuinely beat a server-side session?
In which situations does a signed token genuinely beat a server-side session?
Select all that apply
8.[3p] Refresh token rotation with reuse detection turns theft into what?
Refresh token rotation with reuse detection turns theft into what?
9.[2p] A token carries role and an admin demotes the user. What kind of data should never travel inside the token? One word.
A token carries role and an admin demotes the user. What kind of data should never travel inside the token? One word.