wheels security scan
Scans your CFWheels application for security vulnerabilities and provides remediation recommendations.
Usage
Parameters
path
- (Optional) Path to scan. Default: current directory (.
)--fix
- (Optional) Attempt to fix issues automatically--report
- (Optional) Report format:console
,json
,html
. Default:console
--severity
- (Optional) Minimum severity to report:low
,medium
,high
,critical
. Default:medium
--output
- (Optional) Output file for report
Description
The security scan
command performs comprehensive security analysis of your CFWheels application, checking for:
SQL injection vulnerabilities
Cross-site scripting (XSS) risks
Cross-site request forgery (CSRF) issues
Insecure direct object references
Security misconfigurations
Outdated dependencies with known vulnerabilities
Weak authentication patterns
Information disclosure risks
Examples
Standard security scan
Scan with auto-fix
Generate HTML security report
Scan specific directory with high severity only
JSON report for CI/CD integration
Severity Levels
The --severity
parameter filters which issues are reported:
Low
Code style issues that could lead to vulnerabilities
Missing best practices
Informational findings
Medium (Default)
Potential security issues requiring review
Missing security headers
Weak configurations
High
Confirmed vulnerabilities with moderate impact
Authentication/authorization issues
Data validation problems
Critical
Severe vulnerabilities requiring immediate attention
SQL injection risks
Remote code execution possibilities
Output
Auto-Fix Feature
The --fix
flag automatically resolves safe issues:
Report Formats
HTML Report
Generates interactive HTML report with:
Executive summary
Detailed findings with code snippets
Remediation steps
Compliance mapping (OWASP, CWE)
JSON Report
Machine-readable format for CI/CD integration
Integration
CI/CD Pipeline
Pre-commit Hook
Notes
Scans are performed locally; no code is sent externally
False positives can be suppressed with inline comments
Regular scanning is recommended as part of development workflow
Keep scan rules updated with
wheels deps update
Some fixes require manual review to ensure functionality
Last updated
Was this helpful?