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-2025-31486-Simulation | Kitploit
Tools/GitHubGitHub/hackmelocal/cve-2025-31486-simulation
Vulnerability AnalysisWeb Application ExploitationCTFPenetration TestingLearning & EducationLabs & Practice
GitHubhackmelocal/cve-2025-31486-simulation

CVE-2025-31486-Simulation

View Repository
1 year agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

Vite Path Traversal Lab (CVE-2025-31486)

Open in GitHub Codespaces License: MIT

A hands-on, containerized lab environment to simulate and exploit the Path Traversal vulnerability in Vite's development server, identified as CVE-2025-31486.

📖 About The Vulnerability

This lab demonstrates a significant Path Traversal vulnerability found in older versions of Vite, a modern web development build tool. The vulnerability allows an attacker to bypass security constraints in the Vite development server and read arbitrary files from the local file system.

The core of the issue lies in how Vite's asset plugin processes URLs. By crafting a special URL with suffixes like ?.svg and ?.wasm?init, an attacker can trick the server into skipping critical security checks (specifically the server.fs.deny function), granting access to sensitive files like /etc/passwd.

Conditions for Exploitation

  • Vulnerable Vite Version: The project must use a vulnerable version of Vite.
  • Exposed Dev Server: The server must be exposed to the network using the --host flag.
  • File Size Limit: The exploit works best for files smaller than the build.assetsInlineLimit (default is 4KB), as Vite inlines these files as Base64 strings in its response.

🎯 Live Simulation Lab

This repository contains everything you need to safely run a vulnerable Vite server and perform the exploit yourself. You can run the simulation in two ways:

Method 1: Run in GitHub Codespaces (Recommended)

Get a full, cloud-based development environment in seconds. No local setup required.

  1. Launch Codespace: Click the "Open in GitHub Codespaces" button at the top of this README. Open in GitHub Codespaces

  2. Wait for Setup: GitHub will prepare your cloud environment. This might take a minute. A terminal will appear at the bottom of the editor once it's ready.

  3. Start the Vulnerable Server: In the terminal, run the following single command:

    root@kitploit:~
    docker compose up
    

    You will see output indicating that the vulnerable Vite development server is running and accessible.

  4. Perform the Exploit:

    • Open a new terminal in your Codespace (Click the + icon in the terminal panel).
    • Copy and paste the one-line exploit command below into the new terminal and press Enter.

Method 2: Run Locally

If you prefer to run the lab on your own machine, follow these steps.

Prerequisites:

  • Docker must be installed.
  • Docker Compose must be installed.

Instructions:

  1. Clone the Repository:

    root@kitploit:~
    git clone https://github.com/hackmelocal/CVE-2025-31486-Simulation.git
    cd CVE-2025-31486-Simulation
    
  2. Start the Vulnerable Server: In your terminal, run the single command:

    root@kitploit:~
    docker compose up
    

    This command will build the Docker image (if not already built) and start the vulnerable Vite server.

  3. Perform the Exploit:

    • Open a new, separate terminal window or tab.
    • Copy and paste the one-line exploit command below into the new terminal and press Enter.
Download Tool