vetkit.ruby.csrf.protection-disabled
CSRF protection is skipped for a browser-facing controller (or disabled in configuration). Any site can submit state-changing requests on behalf of a logged-in user.
Last updated:
Suite: Security
ruby
CSRF protection is skipped for a browser-facing controller (or disabled in configuration). Any site can submit state-changing requests on behalf of a logged-in user.
Category: SECURITY · Engine rule severity: WARNING
How to fix it
Keep protect_from_forgery for session-authenticated controllers; for token-authenticated APIs inherit from ActionController::API, and verify signatures on webhooks.
References
Source: packages/engine/rules/sast/ruby.yml.
Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.