An insecure direct object reference issue exists in the `api expensereports.class.php` payment endpoints. Authenticated users with permissions to read and create expense reports can access, create, or modify payments belonging to other users, potentially falsifying the reimbursement state. This is achieved by calling the following functions: `getAllPayments()`, `getPayments()`, `addPayment()`, and `updatePayment()`.