Country or region and language

    Choose your country or region and your language.

    Suggested for you

      All countries and regions

        Choose your character

        It shows in the top bar and on your profile. Change it any time.

        Sign in or join

        Secure code review: findings and retests

        A secure code review traces an untrusted value to a sensitive operation, explains the missing control and tests a repair without breaking the feature.

        Checked 23 November 2026

        The request and the decision

        A fictional shipment endpoint loads a row with the identifier in the URL. It checks that the caller has signed in, then returns the row. Authentication identifies the caller; it supplies no evidence that the caller may read this shipment. Review the route, the session source, the lookup and every return path together.

        const shipment = findShipment(request.query.id);
        if (!shipment) return reply(404);
        if (shipment.tenant !== session.tenant ||
            shipment.owner !== session.user) return reply(403);
        return reply(200, { id: shipment.id });

        This policy permits the owner in the same tenant. If the product permits delegated access, represent that relationship explicitly and test its scope. Replacing the comparison with an unrestricted support role changes the policy.

        Reproducible findings

        Record the endpoint and precondition, the request, the observed response and the expected authorization rule. Describe the consequence: one tenant can read a private report owned by another. Keep evidence free of unrelated personal data. Name the root cause and a proposed control, rather than reporting only an attack string.

        Priority depends on reachability, access needed, data and business impact. A category name or a scanner label cannot establish all of those facts. State what remains unknown and who will confirm it.

        The regression matrix

        Retest an allowed owner, another owner in the same tenant, the same owner identifier in a different tenant, a missing object and a caller without a session. Inspect both the status and body. A 403 with the private report still in the body is a leak. Repeat against fresh records so the patch cannot depend on a single identifier.

        The practical interviews use separate handlers and requests from the course. The cheat sheet covers other control families. Tests in a local handler cannot establish middleware ordering, real database isolation or production identity propagation; verify those in the deployed stack before closing a production finding.

        The new lessons and practical interviews in this extension are in English. Earlier translated lessons retain their native versions.

        Sources

        Your Work Gym account

        Save your progress and pick up on another device. Your browser's progress comes with you.

        Your account can start a 5-day free trial: every course, unit, project and exam. Card needed; cancel any time and pay nothing.

        New accounts get 6 hours of full access: every course, unit, project and exam. The clock starts when you go past the free lessons.

        Plan your practice from a job ad or syllabus

        Have a referral code?

        or

        You can keep practicing without an account.

        Help and feedback

        Ask a question, tell us what is not working, or share an idea. We reply by email.

        What is it about?

        We use it only to reply to you.