
全网首发 CVE-2025-31125 CVE-2025-30208 CVE-2025-32395 Vite Scanner
中文 | English
An automated tool for scanning Vite development server vulnerabilities. This tool utilizes the FOFA API to collect potential targets and automatically detects specific vulnerabilities.
Auto
Manual


server.fs.deny is a configuration option in the Vite development server that restricts access to the server's file system. This option allows developers to set an array of regular expressions to block access to specific files. While this is an important security feature designed to prevent unauthorized access to sensitive files on the server, the mechanism can be bypassed by appending ?raw?? or ?import&raw?? to the URL. If the target file exists, its contents can be directly accessed. This leads to the following potential security risks:
?import&?inline=1.wasm?init to the URL. This allows reading arbitrary files on the server, including:
Create a .env file in the project root directory with the following content:
[email protected]
FOFA_KEY=your_fofa_api_key
COUNTRY=AU
Common country codes:
pip install -r requirements.txt
python main.py

# Install dependencies
pip install -r requirements.txt
# Get help
python manual.py -h
usage: manual.py [-h] [-t TARGETS] [-f FILE] [-p PORTS] [-d DICT]
Vite Dev Server Vulnerability Scanner - Manual Mode
options:
-h, --help show this help message and exit
-t TARGETS, --targets TARGETS
Target IP addresses, supports single IP, CIDR format (e.g., 192.168.1.0/24) or
domain, separate multiple targets with commas
-f FILE, --file FILE Load targets from file (one target per line)
-p PORTS, --ports PORTS
Port list, separate with commas (default: 80,443,3000,5173,8080)
-d DICT, --dict DICT Custom dictionary file path (format: one path per line, lines starting with #
are ignored)
# Scan 192.168.1.0/24 with default ports
python manual.py -t 192.168.1.0/24
The following parameters can be adjusted in main.py:
MAX_PAGE: Maximum number of query pages (default: 5)RESULTS_PER_PAGE: Results per page (default: 100)TIMEOUT: Request timeout in seconds (default: 10)MAX_THREADS: Maximum concurrent threads (default: 20)
Scan results will be saved in vite_vulnerable_targets.csv with the following fields:
At the end of the scan, the tool will display hit rate statistics:
Example output:
[+] Scan complete!
[*] Total targets scanned: 100
[*] CVE-2025-30208 hits: 15 (15.00%)
[*] CVE-2025-31125 hits: 8 (8.00%)
[*] Total vulnerabilities found: 23
This tool is intended for security research and authorized testing only. Do not use for illegal purposes. Ensure you have proper authorization before testing any targets.