CSRF tokens can be leaked or bypassed without additional security.
While CSRF tokens are effective in validating requests, they can be compromised if leaked through referer headers or other means. Therefore, combining CSRF tokens with other security measures, such as the 'SameSite' cookie attribute, enhances protection by restricting cookie transmission to same-site contexts only. In an e-commerce application, this combination helps ensure that both CSRF tokens and cookies are secure.
Additional Notes
Why might CSRF tokens be insufficient alone for CSRF prevention?