A document app checks permissions only when a user first opens a file. Later reads skip the check, so a user whose access was revoked keeps reading the open file. Which security design pattern is being violated?
Show the answer
Correct answerD. Complete mediation
AWhy not this: Fail secure governs behavior when a component fails, not whether each access is authorized.
BWhy not this: Defense-in-depth adds layered controls; it does not require rechecking authorization on each access.
CWhy not this: Least privilege limits what rights are granted; the problem here is that revocation is never re-evaluated.
DWhy this is right: Every access must be rechecked against current policy; skipping checks after the first open lets revoked rights persist.
Complete mediation requires every access to be checked against the current authorization policy, so revoked rights take effect immediately. Least privilege concerns how narrow the granted rights are, not whether each access is rechecked.