From finding to verified remediation
Demonstrate the full security feedback loop.
The idea
Create a test fixture with a booking owned by tenant A and a caller from tenant B. Capture a failing authorization regression against the deliberately vulnerable fixture. Add the tenant predicate and resource check, rerun the reproduction, and preserve the positive authorized case. Connect this evidence to a release revision.
Follow the flow
Make it concrete
This excerpt isolates the concept. Connect it to the booking API as you work through the exercise.
Finding: cross-tenant booking access in owned fixture
Before: negative test fails by returning foreign data
Fix: trusted tenant + booking ID query
After: negative and positive controls pass
Close: link source revision, test evidence, and retest resultDecisions that matter
- Keep intentionally vulnerable fixtures isolated from the deployed service.
- Verification must test the original path, not only nearby code.
- A successful retest closes the specified finding, not every security risk.
Your turn
Write a concise remediation report that another reviewer can reproduce without access to production data.
Reveal a worked answer
Include the fixture setup, exact method and route, test identities, observed before and after outcomes, affected and fixed revisions, root cause, regression test IDs, and retest result. Use synthetic records and omit tokens and private data.