Skip to main content
faical
Staff
Staff
August 21, 2024

Technical Tip: How to protect against JSON attacks in the body (SQL injection)

  • August 21, 2024
  • 0 replies
  • 717 views
Description

The article describes how to enable FortiWeb to block SQL injections (using JSON in the HTTP body).

Scope FortiWeb.
Solution

The signature profile does not detect SQL injections in a JSON body. For FortiWeb to scan and block JSON requests, the JSON Protection policy needs to be added to the Web Protection Profile. Configure a JSON Protection Profile with the Signature Detection option enabled (see the screenshot below) and assign it to the Web Protection Profile. No JSON rule is needed unless further customization of API access is desired.

 

enable_JSON_protection.jpeg

 

Attack logs:

 

Json_Alog.png

 

Note: To detect XML injection in an XML body, enable Signature Detection under the XML Protection settings. This configuration is similar to the existing guidance for detecting SQL injection in a JSON body, which also requires enabling Signature Detection under the JSON Protection settings.

    Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
    Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!