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
CVE-2023-50164 — Educational exploit for CVE-2023-50164 (Apache Struts 2) demonstrating path traversal and remote code execution via malicious file upload, designed for HackTheBox lab environments. | Kitploit
Tools/GitHubGitHub/pixel-defaultbr/cve-2023-50164
Vulnerability AnalysisExploitationWeb Application ExploitationCTFPenetration TestingLearning & Education
GitHubpixel-defaultbr/cve-2023-50164

CVE-2023-50164

Educational exploit for CVE-2023-50164 (Apache Struts 2) demonstrating path traversal and remote code execution via malicious file upload, designed for HackTheBox lab environments.

View Repository
1281 year agoNot yet reviewed

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.

    968
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    556
  • 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.

    347
  • 4

    redforge

    cybersecurity91/redforge

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

    346
  • 5

    ARTEX

    baarai/artex

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

    319
  • 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.

    297

Explore all tools

Browse our collection of tools

View all tools →
Share

Exploit CVE-2023-50164 for HackTheBox Lab

Description

This exploit was developed specifically for the Strutted lab from HackTheBox, aiming to exploit the vulnerability CVE-2023-50164 in Apache Struts 2. The flaw allows path traversal through a fault in handling file upload parameters. The exploit was created with the purpose of demonstrating how an attacker can upload malicious files and achieve remote code execution (RCE).

Note:

This exploit was developed exclusively for educational purposes within the controlled environment of HackTheBox and should not be used on real systems without explicit permission. Exploiting vulnerabilities without consent is illegal and unethical.

Objective

The objective of this exploit is to demonstrate how the flaw in Apache Struts 2, specifically in the file upload endpoint, can be exploited to:

  1. Perform Path Traversal and access unauthorized files.
  2. Upload a malicious file to the server.
  3. Execute remote code (RCE) on the affected server.

Technical Description

The vulnerability CVE-2023-50164 is associated with incorrect handling of file upload parameters, allowing an attacker to manipulate the uploaded file name to perform path traversal.

Exploit Steps

  1. HTTP Parameter Manipulation: The exploit modifies HTTP parameters to include directory traversal characters (../), allowing the upload of a malicious file to an unauthorized folder.

  2. Malicious File Upload: The exploit sends a malicious file using the POST method to the /upload.action endpoint, exploiting the case sensitivity flaw of HTTP parameters.

  3. Remote Code Execution: The attacker can inject malicious code that will be executed on the server after the upload.

Example HTTP Request

Below is an example of an HTTP request that can be used to exploit the vulnerability:

POST /upload.action HTTP/1.1
Host: vulnerable-server.com
Content-Type: multipart/form-data; boundary=------------------------abcdef
--------------------------abcdef
Content-Disposition: form-data; name="Upload"; filename="img.png"
Content-Type: application/octet-stream
PNG


--------------------------abcdef
Content-Disposition: form-data;
Content-Type: application/octet-stream

../../shell.jsp
--------------------------abcdef--
Download Tool