waf_condition_sql.tf 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. resource "aws_wafregional_sql_injection_match_set" "sql_injection_match_set" {
  2. name = "${var.waf_prefix}-generic-detect-sqli"
  3. sql_injection_match_tuple {
  4. text_transformation = "HTML_ENTITY_DECODE"
  5. field_to_match {
  6. type = "BODY"
  7. }
  8. }
  9. sql_injection_match_tuple {
  10. text_transformation = "URL_DECODE"
  11. field_to_match {
  12. type = "BODY"
  13. }
  14. }
  15. sql_injection_match_tuple {
  16. text_transformation = "HTML_ENTITY_DECODE"
  17. field_to_match {
  18. type = "URI"
  19. }
  20. }
  21. sql_injection_match_tuple {
  22. text_transformation = "URL_DECODE"
  23. field_to_match {
  24. type = "URI"
  25. }
  26. }
  27. sql_injection_match_tuple {
  28. text_transformation = "HTML_ENTITY_DECODE"
  29. field_to_match {
  30. type = "QUERY_STRING"
  31. }
  32. }
  33. sql_injection_match_tuple {
  34. text_transformation = "URL_DECODE"
  35. field_to_match {
  36. type = "QUERY_STRING"
  37. }
  38. }
  39. sql_injection_match_tuple {
  40. text_transformation = "HTML_ENTITY_DECODE"
  41. field_to_match {
  42. type = "HEADER"
  43. data = "cookie"
  44. }
  45. }
  46. sql_injection_match_tuple {
  47. text_transformation = "URL_DECODE"
  48. field_to_match {
  49. type = "HEADER"
  50. data = "cookie"
  51. }
  52. }
  53. }