We have our application set up on Amazon Web Services behind an ALB (Application Load Balancer) with a AWS WAF (Web Application Firewall). The WAF includes a rule to block SQL injection attempts using a set of conditions provided by Amazon.
The problem is that certain form fields in the system are designed to be used for generic notes, and the WAF is overly aggressive at filtering this input. An example note:
You shouldn't have more than one "and" in this sentence
The form that submits this request gets blocked (403 Forbidden) because of the "and" (including the quotes).
Is there a way to modify our application or the WAF configuration to prevent it from blocking these types of requests?
We have had multiple instances of broad SQL injection probe attacks in our past, so while we have made a concentrated effort to patch any security holes at the application level, we'd really like to be able to keep the WAF as an additional layer of protection over the whole application.