Replies: 1 comment
-
I should note that extending is rather easy to resolve this, but might be more appropriate as part of the configuration which a description about the security implications and PCI-DSS. To disable this cookie from being set, in the VerifyCsrfToken middleware:
Will disable this cookie from being set. However, it does not prevent the code from looking for that |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
We utilize the Laravel Framework for many of our e-commerce websites. Annually we have to review all of our systems by penetration testers who analyze everything and provide recommendations or requirements before we can be fully compliant with the PCI-DSS Standards. One such issue that has been brought up this year is the use of the
XSRF-Token
which is stored in an encrypted cookie and contains a CSRF token. The purpose of this cookie is for use with JavaScript Frameworks which can be convenient. However, our penetration testers are requiring that this cookie be disabled as it is against OWASP standards. Our penetration testers have said:Their recommendation is to simply have the Javascript frameworks utilize the information that is stored in the meta csrf-token tag as that seems to be an acceptable and secure practice.
With that said, I understand the convenience of this and I also understand many are not having to worry about PCI-DSS compliance. I think it would be useful to have a simple mechanism in place where we can disable or enable
XSRF-Token
cookies. Either that or completely scrap the use of it if you want Laravel to follow OWASP guidelines which PCI-DSS Standards look at, and probably others like SOC 2, HIPAA and so forth.For now we will simply extend the framework, but I am willing to bet others who have to PCI-DSS Compliance to worry about may have to do something similar. Thus a setting like that may be useful for other users of the Laravel Framework.
Beta Was this translation helpful? Give feedback.
All reactions