How samyyy05/web-api-security-audit-lab works
This repository is a local security-audit lab, not a general-purpose testing framework: assessors inspect two isolated training targets, investigate selected weaknesses, compare vulnerable and fixed Flask API behavior, and retain evidence. The Flask API combines authentication, authorization, product search, and comments with a disposable SQLite store. Reconnaissance and automated checks are represented by sampled scripts; manual testing, ZAP scanning, remediation analysis, and reporting are included as documented capabilities. Source excerpts establish the API and automation links; other workflow links are limited to README statements.
Main entry points: app.py Flask training API · zap.yaml ZAP baseline scan · recon.py Endpoint reconnaissance · run_tests.py Mode-based security checks
Components 19
Training targets
- OWASP Juice Shop
- Flask training API
api/app.py - SQLite lab store
api/app.py - JWT authentication
api/app.py - Authorization controls
api/app.py - Product search
api/app.py - Stored comments
api/app.py
Assessment
- Endpoint reconnaissance
scripts/recon.py - Postman exercises
postman/AuditLab.postman_collection.json - Burp request replay
- Nmap service scan
- ZAP baseline scan
evidence/zap/zap.yaml
Validation
- Mode-based security checks
scripts/run_tests.py
Evidence
- Juice Shop scan evidence
evidence/zap/juice-shop.json - API scan evidence
evidence/zap/audit-api.json - Vulnerable/fixed results
evidence/automation/vulnerable.json - Recon inventory
evidence/recon/api-inventory.json - Findings and retests
evidence/fixes
Other components
- Local assessor
Connections 22
- Local assessor → Endpoint reconnaissance: maps endpoints
README.md - Endpoint reconnaissance → Flask training API: probes routes
scripts/recon.py - Endpoint reconnaissance → Recon inventory: writes inventory
scripts/recon.py - Local assessor → Postman exercises: tests API
README.md - Postman exercises → Flask training API: sends requests
README.md - Local assessor → Burp request replay: intercepts traffic
README.md - Burp request replay → Flask training API: replays requests
README.md - Local assessor → Nmap service scan: scans services
README.md - Local assessor → ZAP baseline scan: runs baseline
README.md - ZAP baseline scan → OWASP Juice Shop: scans target
README.md - ZAP baseline scan → Flask training API: scans target
README.md - ZAP baseline scan → Juice Shop scan evidence: produces report
README.md - ZAP baseline scan → API scan evidence: produces report
README.md - Mode-based security checks → Flask training API: checks behavior
scripts/run_tests.py - Mode-based security checks → Vulnerable/fixed results: writes results
scripts/run_tests.py - Flask training API → SQLite lab store: reads and writes
api/app.py - Flask training API → JWT authentication: validates tokens
api/app.py - Flask training API → Authorization controls: enforces permissions
api/app.py - Flask training API → Product search: serves product queries
api/app.py - Flask training API → Stored comments: serves comment routes
api/app.py - Local assessor → OWASP Juice Shop: tests challenges
README.md - Local assessor → Findings and retests: documents remediation
README.md