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

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

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

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

工具目录

分类

查看所有分类
Loading categories
CVE-2026-54121 — Certighost POC | Kitploit
工具/GitHubGitHub/aniqfakhrul/cve-2026-54121
Privilege EscalationVulnerability AnalysisExploitationPenetration TestingAuthentication
GitHubaniqfakhrul/cve-2026-54121

CVE-2026-54121

Certighost POC

查看仓库
3127521个月前Kitploit 审核通过

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享
内容在请求的语言中不可用。显示英文版本。

CVE-2026-54121 (Certighost)

This is a proof-of-concept tool to demonstrace CVE-2026-54121 a.k.a Certighost. Read here https://gist.github.com/H0j3n/a5ef2609b5f2944ac2390a191a534c26 for the detailed analysis.

Install dependencies

The proof of concept is a self-contained Python script. It requires impacket, cryptography, pyasn1, asn1crypto, and dnspython.

root@kitploit:~
sudo pip install --break-system-packages git+https://github.com/fortra/impacket.git cryptography pyasn1 asn1crypto pycryptodome dnspython

Usage

Run as root because the rogue LDAP and SMB services listen on high privileged ports 389 and 445.

root@kitploit:~
sudo python3 certighost.py -d playground.local -u lowpriv -p 'Password1234' --dc-ip 192.168.1.10

Successful execution writes the target certificate (.pfx) and Kerberos cache (.ccache) to the current directory.

What this script does

  1. Create a new computer account (e.g. GHOSTABCDEFGH$) or reuse one passed via --computer-name.
  2. Start two rogue listeners: an SMB/LSA server on port 445 and an LDAP server on port 389.
  3. Send a certificate request as that computer account, embedding a custom cdc attribute pointing to a controlled IP (via --listener; optional, auto-detected if omitted) plus an rmd attribute carrying the target DC's DNS name.
  4. The CA connects back to the rogue LSA/LDAP listeners. They authenticate as the created account (validated through the real DC over Netlogon) and answer the CA's lookups with the target DC's identity (sAMAccountName, SID, dNSHostName) instead.
  5. The CA issues a valid certificate belonging to the DC.
  6. The scripts also performs PKINIT with the DC's pfx to request .ccache and NT hash

Timeline

  • 28 July 2026 — Credits to @GregDurys for the PR fixing the STATUS_NOLOGON_SERVER_TRUST_ACCOUNT issue. certighost now ships a proper in-script hotpatch of the rogue SMB NetLogon path (setting the E bit 0x20 alongside the K bit 0x800 in ParameterControl, per MS-NRPC 2.2.1.4.15), so the exploit works against a CA hosted on a Domain Controller without worrying about installing a different / forked Impacket version.
  • 28 July 2026 — Credits to @Hack0ura for mentioning the request-SAN fix. On a CA that honors request-supplied SANs (EDITF_ATTRIBUTESUBJECTALTNAME2 / ESC6), the certificate request now sets the SAN:dns identity to the target DC's DNS name (rmd_value) instead of the rogue computer's, avoiding KDC_ERR_CLIENT_NAME_MISMATCH at the PKINIT step. On build-from-AD templates the request SAN is ignored, so the change is a safe no-op.

References

  • https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-54121
  • https://gist.github.com/H0j3n/a5ef2609b5f2944ac2390a191a534c26
  • https://github.com/ly4k/Certipy
下载工具