← LAB CATALOG// SECURE CODING · ORIGINAL TRAINING CHALLENGELogic Gate
Review a synthetic access check and identify its logic flaw.
Hard500 PTSOFFLINE EVIDENCE
// MISSIONInvestigate the evidence
Review a synthetic access check and identify its logic flaw.
OBJECTIVE
Recover the marker and submit it using the format SG{marker}.
BOUNDARY
Self-contained synthetic artifacts only. No live targets, services, devices, or external systems.
// EVIDENCEARTIFACT
const canRead = user.isAdmin || resource.isPublic || user.id === resource.ownerId;\n// Buggy production code:\nif (user.isAdmin || resource.isPublic || resource.ownerId) allow();\nmarker=boolean_checks_matter
HINT 01
A non-empty owner ID is truthy, but it is not an ownership check.