Attacks and Exploits

During an authorized test, a tester wants to forge JWTs carrying arbitrary claims that the API accepts. Which three server behaviors would allow this? (Choose three.)

Choose 3 answers

Show the answer

Correct answersB. Server fetches verification keys from a jku URL supplied in the token headerE. Server uses the kid header to select a key file without sanitizing itF. Server accepts tokens whose alg header is set to none

AWhy not this: Header transport affects CSRF exposure and has no bearing on forging a signature.

BWhy this is right: A token-supplied jku lets the tester host their own key set and sign with the matching private key.

CWhy not this: Base64URL encoding makes claims readable, which is disclosure, but it does not let a tester produce a valid signature.

DWhy not this: A short lifetime limits replay and does not help forge claims.

EWhy this is right: An unsanitized kid can point to a file or record with known content, which the tester then uses as the signing key.

FWhy this is right: With alg none the server skips signature verification, so any edited claims are accepted.

Accepting alg none removes signature checking, trusting a token-supplied jku lets the tester host their own key, and an unsanitized kid lets the tester point to a key whose content they know. Readable payloads only disclose data; they do not allow forging.