A security researcher reports that your public site leaks customer email addresses. How do you respond?
Your confidence:Not rated
Model answer
- Contain: remove guest access to the suspected component, class or object; take the page offline if needed.
- Find the path: guest-accessible Apex (
without sharing, returns contacts by query), guest sharing rules on Contact, readable fields in search, a flow running in system context, or an LWC exposing data in its payload. - Assess impact: logs and Event Monitoring for access; determine affected records; involve privacy and legal for breach notification duties.
- Fix: remove guest object access, make guest Apex
with sharingwith minimal returns, restrict guest search, review flows' run context. - Prevent: guest access review in every release, Code Analyzer rules in CI, periodic guest user access reports, and a responsible-disclosure process.
โ Key points to hit
โ Red-flag answers
- Only changing the page layout
- No legal assessment
โช Follow-ups
What's the most common root cause?
Guest-accessible Apex running without sharing and returning more data than the page displays.
How do you thank and work with the researcher?
Acknowledge quickly, keep them informed, and follow the organisation's disclosure policy.