Broken object level authorisation on account lookup
Changing the account ID in the request returns another customer’s account details, including name and balance.
- CWE
- CWE-639
- Endpoint
- GET /v1/accounts/{id}
- OWASP
- API1:2023
- Check the signed-in user owns the account before returning data.
- Enforce it in one shared authorisation layer.
- Add a cross-account test, then request a retest.