RI-0774-003 · Chained IDOR leading to tenant-wide privilege escalation
CVSS 9.1 CRITICAL · OWASP: A01:2021 · verified by operator M.K. · 2026-10-14 09:32 UTC
CRITICAL
Business impact: any logged-in customer could download every other customer's invoices, including the company's own administrator billing data.
The /api/v2/invoices/<id> endpoint returns invoice objects for any numeric identifier without verifying tenant membership. Combining this with the bulk-export feature's missing role check allows any authenticated user to enumerate and export all tenant invoices, including those of administrative users.
Impact: cross-tenant data exposure and full read access to billing data. Chained with finding RI-0774-001, write access is achievable (see §4.3).
GET /api/v2/invoices/8f3a-…?expand=all HTTP/1.1
Authorization: Bearer [standard-user-token]
HTTP/1.1 200 OK
{ "tenant": "acme-corp-admin", "total": "184,203.00", … }
Remediation: enforce object-level authorization in the invoice repository layer (defense in depth — not in the route handler), and add a regression test asserting cross-tenant 403s. Retest included within 90 days.