Skip to content
Critiq Docs

Search docs

Search documentation pages and rules

security.session-management

Avoid broad Laravel CSRF exclusions on sensitive routes

Wildcard CSRF exclusions should not cover account, billing, admin, password, or profile endpoints.

#Metadata

Rule ID
php.security.laravel-sensitive-csrf-exclusion
Severity
high
Confidence
0.86
Languages
php
Presets
security, strict
Stability
stable
Applies to
block
Tags
csrf, laravel, php, rules-catalog, security

#Why it matters

Over-broad CSRF exemptions remove request integrity checks from high-impact authenticated actions.

#Remediation

Limit CSRF exceptions to explicitly signed webhook endpoints and avoid wildcard exclusions on authenticated user flows.

#Repository path

The generated metadata points to critiq-rules/libs/rules/catalog/rules/php/php.security.laravel-sensitive-csrf-exclusion.rule.yaml.