Kimai is a web-based multi-user time-tracking application. Prior to version 2.51.0, "GET /api/invoices/{id}" only checks the role-based view_invoice permission but does not verify the requesting user has access to the invoice's customer. Any user with ROLE_TEAMLEAD (which grants view_invoice) can read all invoices in the system, including those belonging to customers assigned to other teams. This issue has been patched in version 2.51.0.
https://github.com/kimai/kimai/security/advisories/GHSA-v33r-r6h2-8wr7
https://github.com/kimai/kimai/releases/tag/2.51.0
https://github.com/kimai/kimai/commit/a0601c8cb28fed1cca19051a8272425069ab758f