All injectionsv3.9+

This configuration detects all the built-in injection attacks supported by the Injection Protection plugin.

Set up the plugin

Add this section to your declarative configuration file:

_format_version: "3.0"
plugins:
  - name: injection-protection
    config:
      injection_types:
      - sql
      - java_exception
      - js
      - ssi
      - xpath_abbreviated
      - xpath_extended
      locations:
      - path_and_query
      enforcement_mode: block
      error_status_code: 400
      error_message: Bad Request
Copied to clipboard!

Did this doc help?

Something wrong?

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!