A user reports they can see another customer's invoice by changing the ID in the URL. What do you do?
BeginnerScenarioVulnerability Management and OWASP
Answer
Situation read → This is an IDOR, part of Broken Access Control (OWASP A01), and it is a data breach in progress.
What I'd do →
- Treat it as a security incident: page the owning team and AppSec.
- Hot-fix the handler to check ownership on the server side, not just authentication:
invoice = Invoice.get(invoice_id) if invoice.tenant_id != current_user.tenant_id: abort(404) - Query access logs for requests where the user's tenant differs from the invoice's tenant to measure exposure.
- Involve legal and privacy; exposed personal data may trigger notification duties.
- Audit other endpoints that take object IDs and add authorization tests to CI.
Why → Sequential IDs make enumeration trivial. Returning 404 instead of 403 also avoids confirming that the object exists.
Interview tip → UUIDs reduce guessing but are not access control.
More on Vulnerability Management and OWASP
A pentest report shows SQL injection in a search endpoint of a Java service. How do you handle it end to end?BeginnerA scanner reports 4,000 open CVEs across 300 images. The team can fix maybe 100 a month. How do you prioritise?IntermediateA webhook feature lets users enter a URL, and a pentester used it to read the cloud metadata endpoint. How do you fix it?AdvancedA team still runs Log4j 2.14 in an internal service and says it is not internet-facing. How do you respond?IntermediateA security review finds passwords stored as unsalted MD5 hashes. How do you migrate without forcing every user to reset?AdvancedYour DAST scan in staging finds reflected XSS in a React app. The developers say React escapes everything. Who is right?Intermediate