Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
Kimai-CVE-2026-49865-POC — PoC exploits for CVE-2026-52824 (GHSA-jr9p-4h4j-6c58) — Kimai time-tracking default APP_SECRET authentication bypass affecting versions ≤ 2.57.0 | Kitploit
工具/GitHubGitHub/cyeezy08/kimai-cve-2026-49865-poc
OSINT (Open Source Intelligence)ReconnaissanceVulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingAuthenticationRed Teaming

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享
GitHub
cyeezy08/kimai-cve-2026-49865-poc

Kimai-CVE-2026-49865-POC

PoC exploits for CVE-2026-52824 (GHSA-jr9p-4h4j-6c58) — Kimai time-tracking default APP_SECRET authentication bypass affecting versions ≤ 2.57.0

查看仓库
21个月前尚未审核
内容在请求的语言中不可用。显示英文版本。

Kimai CVE-2026-52824 — Default APP_SECRET Authentication Bypass

Note: The repository URL contains an outdated CVE ID (CVE-2026-49865). The correct and current CVE tracked in this repository is CVE-2026-52824 (GHSA-jr9p-4h4j-6c58).

Proof-of-concept exploit toolkit for the hardcoded default APP_SECRET vulnerability in Kimai time-tracking (versions ≤ 2.57.0). Allows authentication bypass via forged KIMAI_REMEMBER cookies on unpatched Docker deployments.

The Story

When CVE-2026-52824 dropped — a CVSS 9.1 critical with a hardcoded default secret sitting in a Docker image used by thousands of self-hosters — the technical community knew about it, and the fix shipped in 2.58.0. But nobody published a working proof-of-concept.

So I rebuilt it from the advisory alone.

The chain: Kimai ships APP_SECRET=change_this_to_something_unique in Docker and .env.dist. In v2.57.0 the signature_properties for remember-me cookies is empty, so the FieldsHash collapses to a constant (SHA256('')). Combine the known secret with an empty hash and you can forge a KIMAI_REMEMBER cookie for any user id — including admin (id:1).

This repo is the complete working toolkit that goes from advisory to admin session on any unpatched instance.

Vulnerability Summary

How It Works

Kimai ships with a hardcoded default APP_SECRET in its Docker image and .env.dist:

root@kitploit:~
APP_SECRET=change_this_to_something_unique

In v2.57.0, the signature_properties for remember-me cookies is empty, making the FieldsHash a constant (SHA256('')). Combined with the known secret, anyone can forge a valid KIMAI_REMEMBER cookie for any user — including admin.

Attack Chain

  1. Identify a Kimai instance running ≤ 2.57.0
  2. User IDs are sequential (admin = id:1)
  3. Known APP_SECRET → compute HMAC-SHA256 signatures
  4. Forge KIMAI_REMEMBER cookie with admin's user_id + username
  5. Server validates HMAC → full admin session
  6. Admin access enables timesheet manipulation, user creation, and potential RCE

What Changed in v2.58.0

Toolkit Contents

Installation

root@kitploit:~
git clone https://github.com/cyeezy08/Kimai-CVE-2026-49865-POC.git
cd Kimai-CVE-2026-49865-POC
pip install -r requirements.txt

Usage

Single Target Exploit

root@kitploit:~
python3 exploit.py https://kimai.example.com
python3 exploit.py https://kimai.example.com admin --dump

Batch Exploitation

root@kitploit:~
# From a file of URLs
python3 batch_pwn.py kimai_hosts.txt results.txt 30

Shodan Discovery

root@kitploit:~
export SHODAN_API_KEY="your_key"
python3 shodan-scanner.py --search --output kimai_hosts.txt

Version Probing

root@kitploit:~
python3 deep_probe.py kimai_hosts.txt versioned_results.txt
python3 quick_scan.py hosts_file.txt

Requirements

  • Python 3.8+
  • requests — HTTP client
  • shodan — Shodan API client (only for shodan-scanner.py)

Disclaimer

This toolkit is provided for authorized security testing and research only. Unauthorized access to computer systems is illegal. Always obtain proper authorization before testing. The author assumes no liability for misuse.

License

MIT idk iam tired ok thx

下载工具
FieldValue
CVECVE-2026-52824
GHSAGHSA-jr9p-4h4j-6c58
CVSS9.1 (Critical)
CWECWE-1188 — Insecure Default Resource Initialization
AffectedKimai ≤ 2.57.0 (Docker image / .env.dist)
Fixed2.58.0
CreditTrent M. (AzureADTrent)
Aspectv2.57.0 (Vulnerable)v2.58.0 (Patched)
DockerfileENV APP_SECRET=change_this_to_something_uniqueNo hardcoded default
entrypoint.shNo secret generationGenerates bin2hex(random_bytes(32)) on first boot
StorageN/APersists in /opt/kimai/var/data/.appsecret
FilePurpose
exploit.pySingle-target exploit — forges cookie and authenticates
batch_pwn.pyMulti-threaded batch exploitation against a list of hosts
quick_scan.pyTwo-pass scanner — quick filter then deep probe
deep_probe.pyVersion detection via multiple endpoints
probe_batch.pyProbe hosts from file for version + vulnerability
shodan-scanner.pyShodan integration for discovering Kimai instances