Description
Kimai before 2.53.0 fails to block sensitive User methods in the Twig invoice template sandbox, allowing admins to call getApiToken() and getPlainApiToken() methods. Attackers with template creation permissions can embed these method calls in invoice templates to leak hashed API tokens in rendered invoice output.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| kimai | kimai | < 2.53.0 | 2.53.0 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | kimai/kimai | < 2.53.0 | 2.53.0 | GHSA-rh42-6rj2-xwmc |
References
- GitHub Security Advisory (GHSA-rh42-6rj2-xwmc) vendor-advisory
- VulnCheck Advisory: Kimai before 2.53.0 API Token Leakage via Invoice Template third-party-advisory