Interview Prep/DevSecOps/Vulnerability Management and OWASP

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 →

  1. Treat it as a security incident: page the owning team and AppSec.
  2. 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)
    
  3. Query access logs for requests where the user's tenant differs from the invoice's tenant to measure exposure.
  4. Involve legal and privacy; exposed personal data may trigger notification duties.
  5. 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.

All DevSecOps questions Roadmap: Security in the pipeline

More on Vulnerability Management and OWASP