Add object-level authorisation
Not solvedAny signed-in customer can read any invoice by changing the ID. Enforce ownership without locking out admins.
- Level
- Practitioner
- Estimated time
- ~25 min
- Points
- 0/60 pts
- Questions
- 0/0 answered
- OWASP
- A01:2025
- CWE
- CWE-639
- CWE
- CWE-862
invoices.js
Test results
Run the tests to check your code. It runs on the server in an isolated sandbox with no network access.