← All Labs
🛡 AI HACKING INTERMEDIATE +180 XP · +72 no-hint bonus

A01 Broken Access Control – Another Tenant's Invoice

A multi-tenant billing API returns invoice records by ID. Test whether it verifies that the requested invoice belongs to the authenticated tenant.

https://a01-broken-access-control-another-tenants-invoice.lab.local/

What is Broken Access Control – Cross-Tenant IDOR?

An insecure direct object reference occurs when an application uses a user-controlled identifier to find an object but fails to check whether the requester may access it. Every invoice lookup must enforce tenant ownership.

About this lab

Designed by the SecurityElites team specially for training.

How AI helps you find it

AI can explain the relevant HTTP behaviour, suggest a focused test checklist and help compare expected and observed responses. Confirm findings manually.

How to fix it

  • Derive tenant identity from the authenticated server-side session.
  • Check object ownership on every read and update.
  • Use deny-by-default authorization policies.
  • Do not rely on unguessable IDs as access control.
  • Add cross-tenant authorization tests.
  • Return a consistent denial when access is not permitted.

How AI helps you defend against it

AI can help review the relevant route, input handling or configuration and draft regression tests. A developer must validate the implementation.

Read the full OWASP LLM Top 10 guide · All free labs · AI red team certification