Medium severityPHPInsecure ConfigurationMEDIUM confidence
Laravel CSRF Disabled
The VerifyCsrfToken middleware excludes all routes ('*'), disabling CSRF protection application-wide (CWE-352).
Standards mapping
- OWASP Top 10
- A01:2021 - Broken Access Control
- OWASP ASVS
- V4.2.2 (L1)
Vulnerable vs. safe
Flagged by this check
protected $except = ['*'];Passes - the safe pattern
protected $except = ['/webhooks/stripe'];Why it matters & how to fix it
The VerifyCsrfToken middleware excludes all routes ('*'), disabling CSRF protection application-wide (CWE-352). State-changing requests can then be forged from other sites. Remove the wildcard and exclude only specific, intentionally stateless endpoints (e.g. signed webhook URLs).
References
Rule ID integsec-php-laravel-csrf-disabled - engine: Opengrep - license: MIT - Copyright (c) IntegSec Inc.
TurboPentest runs this check automatically
Connect a GitHub repo and this check runs on every white-box pentest - AI-validated and reported with proof, from $99 per target.
Start a pentestRelated checks
- JavaScript / TypeScript - Insecure ConfigurationCORS Acao Wildcard Header
- JavaScript / TypeScript - Insecure ConfigurationCORS Wildcard Origin
- JavaScript / TypeScript - Insecure ConfigurationCORS Wildcard With Credentials
- JavaScript / TypeScript - Insecure ConfigurationCSRF Protection Disabled
- JavaScript / TypeScript - Insecure ConfigurationExpress Trust Proxy All
- JavaScript / TypeScript - Insecure ConfigurationExpress X Powered By Enabled