Web Vulnerability Scanner (WVS)
Modular active / passive web vulnerability scanner with YAML config, SARIF export, plugins, and Docker support.
Version: 1.3.0
Author: Sharifzoda Ibrohim
Legal: Only scan systems you own or have explicit written permission to test.
Features
| Area |
Capabilities |
| Detection |
Context-aware XSS, error/boolean/time SQLi, headers, dirs, CSRF, SSRF, XXE, CORS, open redirect |
| Surface |
Crawl, JS endpoint extraction, OpenAPI/Swagger/GraphQL, hidden params, form/JSON fuzz |
| Intelligence |
Confidence scores, stable finding_id, dedup, chain rules, WAF profiles, secrets/cookies |
| Product |
YAML config, JSON + SARIF 2.1, plugins, CI exit codes (0 / 1 / 2) |
| Ops |
Docker, GitHub Actions CI, optional nmap ports |
Install
git clone https://github.com/SharifzodaIbrohim/Web-Vulnerability-Scanner.git
cd Web-Vulnerability-Scanner
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -r requirements.txt
Optional: nmap binary for port scans; selenium / sslyze for DOM / deep SSL.
Quick start
# Interactive permission prompt
python scanner.py -u https://example.com
# Non-interactive + JSON
python scanner.py -u https://example.com --no-warning -o results.json
# Passive only
python scanner.py -u https://example.com --passive --no-warning
# SARIF (GitHub Code Scanning / VS Code)
python scanner.py -u https://example.com --format sarif -o findings.sarif --no-warning
# Config file
cp config.example.yaml config.yaml
# edit target / scan options
python scanner.py --config config.yaml
Exit codes (CI)
| Code |
Meaning |
0 |
No findings |
1 |
Findings present (no CRITICAL/HIGH) |
2 |
CRITICAL or HIGH findings |
Docker
docker build -t web-vuln-scanner:1.3.0 .
docker run --rm web-vuln-scanner:1.3.0 -u https://example.com --no-warning -o /tmp/out.json
# With compose (mount config + output)
mkdir -p out
cp config.example.yaml config.yaml
docker compose run --rm wvs -c /app/config.yaml --no-warning -o /out/results.json
Configuration
See config.example.yaml. CLI flags override file values.
Important options:
target / -u — URL
passive — no injection probes
chaining — vulnerability chains
min_confidence — drop weak findings (0–100)
max_requests — request budget
plugins_dir — custom checks
format — json or sarif
Plugins
Drop a .py file into ./plugins:
# plugins/my_check.py
def run_check(scanner):
resp = scanner._make_request(scanner.target.geturl())
if resp and resp.status_code == 500:
scanner._add_finding(
type="Server Error",
description="HTTP 500 on home page",
severity="MEDIUM",
location=scanner.target.geturl(),
confidence=70,
cwe="CWE-550",
tags=["plugin"],
)
CHECK_NAME = "Home 500 Check"
python scanner.py -u https://example.com --plugins-dir ./plugins --no-warning
Or implement def register(scanner): scanner.register_check("Name", fn).
YAML templates
Built-in templates live under web_vuln_scanner/templates/. Add more with --templates-dir.
Project layout
scanner.py # CLI
web_vuln_scanner/
scanner.py # Orchestrator
detection.py # XSS / SQLi helpers
surface.py # Crawl / API surface
intelligence.py # Dedup, chains, WAF, secrets
templates_engine.py # Nuclei-style YAML
config_loader.py # YAML config
reporters.py # JSON / SARIF
plugins.py # Plugin loader
plugins/ # User plugins
config.example.yaml
Dockerfile
docker-compose.yml
Development roadmap (completed)
- Refactor + graceful deps
- Detection Engine 2.0
- Crawl & attack surface
- Intelligence & quality
- Product layer (config, SARIF, plugins)
- Docker + CI + README
License / use
Use responsibly. Unauthorized scanning may be illegal. The authors are not responsible for misuse.
评论