Skip to main content
Menu
Advisories

QuickEntry controller missing create_other_timesheet authorization check allows creating timesheets for team members

GHSA-2W7F-X78F-89Q2Published Updated GitHub

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

  1. Line 59 — the user-switcher (include_user) is gated by view_other_timesheet instead of create_other_timesheet.
  2. Lines 274-285 — when the QuickEntry form is submitted, a new timesheet (id === null) is unconditionally forwarded to updateMultipleTimesheets(), bypassing any create/edit authorization check.
  3. 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:

  1. The attacker is authenticated.
  2. The attacker holds view_other_timesheet and edit_other_timesheet, but not create_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.
  3. The target user is a member of a team for which the attacker is the teamlead. The QuickEntry user-switcher is populated by UserType whose user option is defaulted to the current user by src/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.
  4. edit_other_timesheet is required in practice because src/Form/Type/QuickEntryTimesheetType.php:63 renders the duration field disabled for timesheets the current user cannot edit; a new timesheet with a null duration is not persisted by the controller (line 260), so without edit_other_timesheet the 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.

dateevent
2026-06-172.61.0 released - vulnerable, neither check present
2026-06-30#6029 lands on main (controller check)
2026-07-092.62.0 released - both checks present, issue fixed
2026-07-252.63.0 released
2026-07-30advisory submitted

See <kimai.org/en/security/ghsa-2w7f-x78f-89q2> for more information

Affected versions

References

GitHub · kimai/kimai