What problem does it solve?
Yii2 projects are prone to misconfigurations in access control (AccessControl/RBAC), CSRF handling, input filtering, output encoding, and unsafe redirects, which can lead to privilege escalation, data leakage, or XSS.
Core Features & Use Cases
- Inspect AccessControl and RBAC rules across controllers, actions, and matchCallback usage to ensure proper authorization boundaries.
- Verify CSRF settings, cookie validation, and token handling in state-changing requests to prevent forgery.
- Assess input filtering via rules(), safeAttributes(), and scenarios to prevent mass assignment vulnerabilities.
- Check output encoding and safe output practices in views to prevent XSS, including usage of Html::encode and HtmlPurifier.
- Map findings to common vulnerability categories (AUTH/CSRF/XSS/CFG/LOGIC) for remediation prioritization.
Quick Start
Run the Yii2 audit against your project root to generate framework_audit/yii_{timestamp}.md containing framework-specific risk findings.