Account lookup does not check who owns the record
- Where it is
- example-corp/shop-api · api/accounts/get.ts · line 48 · Pull request #482
- What raised it
- AI reviewAccess control
- Severity and impact
- HighAny signed-in user can read another customer’s name, address and order history.
- Proof status
- Proven on the running applicationLinked to: Customer records readable by any signed-in user · api.example.com
- Policy outcome
- Held · signed off by Engineering lead · waiver expires 18 Oct 2026
- Suggested fix
- Check that the signed-in user owns the record before returning it, and add a test that covers it.Fix pull request #489 ready
Illustrative sample for Example Corp on example.com. Not a real finding.