POSTMORTEM #3 · PaisaFlow (fictional) · October 2026 "A customer could download other companies' invoices by changing the number in the URL. This is the third time this year. Each time a different developer wrote a new endpoint and forgot the organisation check."
PaisaFlow is a Pune invoicing SaaS used by 9,000 small businesses. Their bug is a classic IDOR (Insecure Direct Object Reference), a form of broken access control, the category at the top of the OWASP Top 10:
Feb 2026 · dev A
GET /api/invoices/:id
const inv = await getInvoice(id); // org check missing res.json(inv);
Found by: customer email
Jun 2026 · dev B
GET /api/invoices/:id/pdf
const inv = await getInvoice(id); // org check missing res.json(inv);
Found by: bug bounty report
Oct 2026 · dev C
GET /api/orgs/:orgId/invoices/export
const inv = await getInvoice(id); // org check missing res.json(inv);
Found by: a journalist
Every time, the fix was a one-line code change and an apology email. Nothing changed in how PaisaFlow builds software, so the bug came back. Application security (AppSec) engineers fix the process: security requirements, design review, code review, automated testing and pipeline gates, so the computer catches the bug before a customer does.
In this room you'll learn the secure SDLC, code review, AppSec testing tools, supply-chain security and DevSecOps. Then you'll review and fix PaisaFlow's code and design a pipeline that proves the IDOR can never ship again.