Recipe 10-3: Preventing Cross-Site Request Forgery (CSRF) Attacks
This recipe shows you how to identify when attackers attempt to force users to send unintentional requests.
Ingredients
- OWASP ModSecurity Core Rule Set
- modsecurity_crs_43_csrf_attacks.conf
- ModSecurity
- Version 2.7 or higher
- SecDisableBackendCompression directive
- SecContentInjection directive
- SecStreamOutBodyInspection directive
- SecEncryptionEngine directive
- SecEncryptionKey directive
- SecEncryptionParam directive
- SecEncryptionMethodRx directive
- append action
CAPEC-62: Cross-Site Request Forgery (aka Session Riding)
Sample Attacks
In April 2009, Twitter ...