Question 440
For a written-scope security assessment, consider: A test service accepts a modified JSON Web Token after its payload role changes from reader to administrator. What conclusion follows most directly from these facts?
Explanation
Correct Answer
Readable base64-encoded claims are not protected from alteration by themselves. The authorized fictional case states: A test service accepts a modified JSON Web Token after its payload role changes from reader to administrator. The underlying principle is that jWT claims are not trustworthy unless signature, algorithm, issuer, audience and expiry are checked. This is the strongest principal security interpretation for this specific scenario because it addresses the documented trust boundary and constraints, rather than merely another possible security consideration. The decisive corroborating evidence is: Inspect token verification configuration, signing algorithm restrictions and role authorization logs. The proportionate next step is: Reject unsigned or tampered tokens and enforce server-side privilege checks.
Incorrect Answers
Cross-site request forgery can abuse ambient browser credentials on state-changing actions. The reason this does not settle the present case is the actual condition: Readable base64-encoded claims are not protected from alteration by themselves.
Untrusted data reflected into HTML or script contexts can execute in visitors' browsers. The records needed for this specific case concern: Inspect token verification configuration, signing algorithm restrictions and role authorization logs.
SQL injection arises when attacker-controlled data is treated as query syntax. The appropriate acceptance check is: An altered token receives access denied while a correctly issued reader token remains read-only.