Share
## https://sploitus.com/exploit?id=7E9AB78A-EC36-5B66-A8F9-1A52F13CAF8E
# π VulnAnalyzer 2.1
**A comprehensive automated vulnerability detection and analysis platform**
Supports manual code analysis and automatic website scanning. Features 17+ vulnerability type detection engines, and automatically generates test PoCs. 


---
## π Quick Navigation
- [Features](#Features)
- [Quick Start](#QuickStart)
- [Usage Guide](#UsageGuide)
- [Detection Capabilities](#DetectionCapabilities)
- [FAQs](#FAQs)
---
## π― Features
### Core Features
β
**Two working modes**
- **Manual Analysis**: Paste code/HTTP requests, detect vulnerabilities in real time.
- **Automatic Scanning**: Enter a URL, the system automatically crawls the website and detects all vulnerabilities.
β
**Automated Processes**
- Automatic website crawling (identifying forms, parameters, links).
- Intelligent parameter extraction.
- Automatic vulnerability detection.
- Generate reports with one click.
β
**Intelligent Analysis**
- Detects 17+ types of vulnerabilities.
- Heuristic matching + code pattern recognition.
- Automatically generate PoCs.
- Classification of risk levels.
β
**Complete Reports**
- Export in JSON/Markdown format.
- References to CWE/OWASP standards.
- Guidance on validation steps.
- Recommendations for fixes.
---
## π Quick Start
### System Requirements
- Python 3.8+
- pip package manager
### Installation Steps
```bash
# 1. Create a directory and download files
mkdir vulnanalyzer
cd vulnanalyzer
# Download the following files:
# app.py
# vuln_analyzer.py
# crawler.py
# static_index.html (rename to index.html)
# 2. Create a static folder
mkdir static
mv index.html static/
# 3. Install dependencies
pip install flask requests
# 4. Start the service
python app.py
# 5. Open a browser
# http://127.0.0.1:5000
```
---
## π Usage Guide
### Mode 1: Manual Analysis (Manual Mode)
1. Open the web page, select the βManualβ tab.
2. Paste code/HTTP requests.
3. Click βAnalyzeβ.
4. View the detection results.
**Supported Input Types:**
- HTTP requests (GET/POST/PUT/DELETE, etc.).
- HTML source code.
- Code snippets in Java/Python/PHP/JavaScript.
**Example Input:**
```http
POST /admin/upload?id=1&redirect=http://evil.com HTTP/1.1
Host: example.com
Content-Type: application/x-www-form-urlencoded
username=admin&password=password
```
### Mode 2: Automatic Scanning (Scan Mode)
1. Click the βScanβ tab.
2. Enter the target URL (e.g., `https://example.com`).
3. Set the maximum number of pages to scan (default: 30).
4. Click βScan Targetβ.
5. Wait for the scan to complete.
---
## π Detection Capabilities
### Vulnerability Types (17+)
| Vulnerability Type | Risk Level | Detection Method |
|-------------------|------------|------------------|
| XSS | High | DOM sink, parameter reflection |
| SQL Injection | High | String concatenation, error messages |
| Command Injection | High | Runtime/ProcessBuilder |
| Path Traversal | High | ../ sequence detection |
| SSRF | High | URL construction, private network detection |
| Redirect Hijacking | Medium | Redirect parameter analysis |
| File Upload | High | Form validation |
| XXE | Critical | DOCTYPE detection |
| Deserialization | Critical | ObjectInputStream |
| CORS Errors | Medium | Wildcard detection |
| Sensitive Information Leakage | High | API Key, key recognition |
| Authorization Bypass | High | Parameter direct control, sensitive routes |
| Encryption Vulnerabilities | High | ECB, MD5, weak TLS |
| Log Injection | Medium | Log concatenation detection |
| SpEL Injection | Critical | Expression parsing |
| Unsafe Reflection | Critical | Class.forName |
| Missing Security Headers | Low | Response header checks |
---
### Each Vulnerability Includes
- **Location Information** β Indicates the exact location of the vulnerability.
- **Evidence** β Explains why this vulnerability is considered present.
- **Verification Steps** β Instructions on how to further verify it.
- **Proof-of-Copy** β Automatically generated test code.
- **CWE/OWASP Standards** β Reference standards.
---
## π API Documentation
### POST /analyze
Manual code analysis.
```bash
curl -X POST http://127.0.0.1:5000/analyze \
-H "Content-Type: application/json" \
-d '{
"text": "GET /admin?id=1 HTTP/1.1",
"min_risk": "info",
"types": ["XSS", "SQL Injection"]
}'
```
**Parameters:**
- `text` (String) β Code/request to be analyzed.
- `min_risk` (String) β Minimum risk level: info, low, medium, high, critical.
- `types` (Array) β Only detect specified types; if empty, all types will be checked.
### POST /crawl
Website crawling and parameter extraction.
```bash
curl -X POST http://127.0.0.1:5000/crawl \
-H "Content-Type: application/json" \
-d '{
"target": "https://example.com",
"max_pages": 30
}'
```
### POST /scan-target
Full automatic scanning.
```bash
curl -X POST http://127.0.0.1:5000/scan-target \
-H "Content-Type: application/json" \
-d '{
"target": "https://example.com",
"min_risk": "info"
}'
```
---
## π PoC Examples
### XSS
```javascript
" onmouseover="alert(1)" x="
alert(1)
```
### SQL Injection
```sql
' OR '1'='1
' UNION SELECT 1,2,3,4-- -
' AND SLEEP(5)-- -
```
### Command Injection
```bash
; id;
| cat /etc/passwd
&& sleep 5
```
### Path Traversal
```
../../../etc/passwd
..\..\..\..\windows\win.ini
..%2F..%2F..%2Fetc%2Fpasswd
```
---
## βοΈ Project Structure
```
vulnanalyzer/
βββ app.py # Flask server
βββ vuln_analyzer.py # Detection engine (2000+ lines)
βββ crawler.py # Website crawler
βββ static/
β βββ index.html # Front-end UI
βββ README.md # Documentation
βββ QUICKSTART.md # Quick start guide
```
---
## β Frequently Asked Questions
### Q: Why are there so many vulnerability detections? A: VulnAnalyzer uses heuristic detection, which may have false positives. Itβs recommended to filter by risk level and use PoC for manual verification. ### Q: Does it support HTTPS? A: Yes, SSL verification is skipped by default. You can enable it by setting `verify_ssl=True` in `crawler.py`. ### Q: Does it support JavaScript rendering? A: No. The crawler only parses static HTML. ### Q: Can it scan websites that require login? A: Not currently supported. This feature will be added in future versions. ### Q: How do I add new vulnerability types? A: Edit `vuln_analyzer.py` and add new `analyze_xxx()` functions.
---
## β οΈ Legal Statement
**This tool is used solely for authorized security testing.**
- β
For personal projects.
- β
For targets that have been properly authorized.
- β Scanning of unauthorized websites is illegal.
---
## π Thanks
Thanks to OWASP, CWE, and the Flask community. ---
**VulnAnalyzer v2.1** | Educational Use Only
Last updated: 2025-06-14
[source-iocs-preserved url=https://example.com`οΌ]