Closed sirnails closed 5 months ago
Add CSRF Token Checking to Forms and Controllers
checkCSRFToken
in QuoteController.php
and UserController.php
to validate CSRF tokens.QuoteController.php
to validate CSRF tokens for create, add_item, edit_item, and edit_quote actions.UserController.php
to validate CSRF tokens for register and login actions.
CSRF Token Exposure The CSRF token is generated and stored in the session, which is good. You should ensure that all forms include the CSRF token and that it is validated for all POST requests.
Token Check Timing The CSRF token should be checked at the beginning of the POST request handling, not after checking other conditions.