QuickEntry controller missing create_other_timesheet authorization check allows creating timesheets for team members
Description
The QuickEntry weekly-timesheet controller creates a new timesheet for the currently selected user without ever checking the create_other_timesheet permission. A user who legitimately holds view_other_timesheet and edit_other_timesheet but has been explicitly denied create_other_timesheet (a valid fine-grained permission configuration) can nonetheless create brand-new time records for users they are a teamlead of, by submitting the QuickEntry form with a duration filled in for a new row.
Root Cause
src/Controller/QuickEntryController.php
- Line 59 — the user-switcher (
include_user) is gated byview_other_timesheetinstead ofcreate_other_timesheet. - Lines 274-285 — when the QuickEntry form is submitted, a new timesheet (
id === null) is unconditionally forwarded toupdateMultipleTimesheets(), bypassing anycreate/editauthorization check. - Lines 186-193 —
updateMultipleTimesheets()performs no permission validation (purposely)
Preconditions
The exploitation requires the following legitimate, configurable permission set, which is supported by Kimai's role/permission system:
- The attacker is authenticated.
- The attacker holds
view_other_timesheetandedit_other_timesheet, but notcreate_other_timesheet. This is a valid fine-grained configuration — e.g. a teamlead (or a custom role) who is allowed to view and correct team members' timesheets but must not create records on their behalf. - The target user is a member of a team for which the attacker is the teamlead. The QuickEntry user-switcher is populated by
UserTypewhoseuseroption is defaulted to the current user bysrc/Form/Extension/UserExtension.php:34($resolver->setDefault('user', $security->getUser())); the resulting query (UserRepository::addPermissionCriteria()) returns the current user plus the members of teams they lead. It is not an unscoped "all users" list. edit_other_timesheetis required in practice becausesrc/Form/Type/QuickEntryTimesheetType.php:63renders thedurationfielddisabledfor timesheets the current user cannotedit; a new timesheet with anullduration is not persisted by the controller (line 260), so withoutedit_other_timesheetthe new record is not saved.
Impact
A user with view_other_timesheet + edit_other_timesheet but without create_other_timesheet can create new time records on behalf of users they team-lead, bypassing the create_other_timesheet gate that the API and other creation paths enforce. Because timesheets feed billing, payroll, project budgets and customer invoicing, this enables:
- Fabrication of billable hours attributed to a team member (billing/payroll fraud).
- Inflation or exhaustion of a team member's project budget.
- Framing a team member for time they did not record.
The impact is confined to users the attacker leads in a team (not arbitrary users), which keeps the severity bounded but does not eliminate the privilege escalation.
Solution
No production change was needed.
Findings are correct for 2.61.0, but already fixed and publicly released three weeks before the report was filed.
| date | event |
|---|---|
| 2026-06-17 | 2.61.0 released - vulnerable, neither check present |
| 2026-06-30 | #6029 lands on main (controller check) |
| 2026-07-09 | 2.62.0 released - both checks present, issue fixed |
| 2026-07-25 | 2.63.0 released |
| 2026-07-30 | advisory submitted |
See <kimai.org/