OSV 1.4.0 · github-reviewed · 修改于 2026-07-14 08:07
发布时间
2026-07-14 08:07
GitHub 审查时间
2026-07-14 08:07
NVD 发布时间
—
源文件
advisories/github-reviewed/2026/07/GHSA-jr9p-4h4j-6c58/GHSA-jr9p-4h4j-6c58.json
The official Kimai Docker image ships with APP_SECRET=change_this_to_something_unique as the default environment variable. The Docker entrypoint does not override or validate this value. Any Kimai instance deployed using the Docker image without explicitly setting APP_SECRET runs with a publicly-known Symfony kernel.secret, enabling an unauthenticated attacker to forge HMAC-signed cookies and login links to take over any account including super_admin.
Dockerfile:263 sets ENV APP_SECRET=change_this_to_something_unique. This value is consumed by config/packages/framework.yaml:7 as kernel.secret, which Symfony uses to HMAC-sign:
KIMAI_REMEMBER remember-me cookieThe .docker/entrypoint.sh does not check for or replace the default sentinel value. The bare-metal .env.dist:38 ships the same default. No startup-time guard exists anywhere in the codebase that refuses to start when APP_SECRET equals the sentinel.
User IDs are sequential integers starting from 1. The first super_admin account is almost always id=1. User IDs are visible in some URLs and API responses.
A PoC was provided, but removed for security reasons.
Any Kimai instance deployed via the official Docker image without overriding APP_SECRET can be compromised from the internet. An unauthenticated attacker who can reach the Kimai URL can forge authentication tokens and log in as any user if:
APP_SECRET via bin2hex(random_bytes(32)) which will be stored in /opt/kimai/var/data/.appsecret/opt/kimai/.env.localAPP_SECRETAPP_SECRETAPP_SECRET=change_this_to_something_uniqueAPP_SECRET=change_this_to_something_uniqueSee https://www.kimai.org/en/security/ghsa-jr9p-4h4j-6c58 for more information.