Authenticated server-side template injection (SSTI)

Affected versions

Description

Kimai contained a server-side template injection vulnerability in its export template handling. In affected versions, an authenticated user with sufficient permissions and access to a malicious export template could use the permissive Twig sandbox to read sensitive application data.

The advisory showed that environment values, password hashes, session data, and other secrets could be extracted from the rendering context.

This issue was caused by an overly permissive Twig security policy for export templates.

Solution

The existing Twig sandbox security-policy was enhanced to guard against access of sensitive user, session and environment data.

Users should update to 2.46.0 or newer.

Credits

First reported in GitHub advisory: GHSA-jg2j-2w24-54cg

Top