Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device.
Atlassian cookies and tracking notice, (opens new window)
Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
🔍 Discover Our Product Documentation

Barracuda Web Application Firewall
Results will update as you type.
  • How to Update Your Notification Email Addresses
  • What's New in the Barracuda Web Application Firewall
  • 30-Day Evaluation Guide - Barracuda Web Application Firewall
  • Getting Started
  • Deployment
  • Services
  • Securing HTTP/HTTPS Traffic
  • Advanced Bot Protection
  • Client-Side Protection
  • API Security
    • REST API and JSON Security
      • JSON Security Components
        • Configuring a JSON Policy
        • JSON Key Profile
      • REST API Discovery
    • Web Services and XML Firewall Protection
    • GraphQL Security
  • Advanced Security
  • IP Reputation-Based Filters
  • Tuning Security Rules
  • Barracuda Active Threat Intelligence
  • Access Control
  • Traffic Management
  • Configuring User-Defined Patterns
  • Logging, Reporting and Monitoring
  • High Availability
  • Networking
  • System Administration and Maintenance
  • Certificate Management
  • Centralized Management of the Barracuda Web Application Firewall
  • Attacks Description - Action Policy
  • REST API
  • Common Web Application Attacks
  • How to Set Up Barracuda Cloud Control
  • End of Support and End of Life Information
  • Critical Vulnerabilities in Web Application
  • Barracuda Advanced Bot Protection Cloud Infrastructure Upgrade Information
  • Barracuda WAF 12.2 Firmware Hardened to Augment Security of Product Features

    You‘re viewing this with anonymous access, so some content might be blocked.
    /
    JSON Key Profile
    Published Feb 04, 2016

    JSON Key Profile

    Feb 04, 2016
    Subscribe

    A JSON key profile is used to validate keys present in JSON requests. Multiple key profiles can be configured with different JSON key validation settings, and associated with the JSON profile.

    For example, consider a JSON request with the following parameters:

    {

        "First-name":"John",

        "Last-name":"Kerry",

        "Email":"johnkerry@barracuda.com",

        "Age":"25",

        "Comments":"<script>John Details</script>"

    }

    Where:

    The JSON keys:

    • “First-name”, “Last-name” and “Email” can have string values

    • “Age” can have a numeric value

    • “Comments” can have different metacharacters including the script tag.

    In the example above, “Age” and “Comments” keys are of different value types (i.e. “Number” and “Any" respectively) for which JSON key profiles can be defined and associated with the JSON profile. A key in the JSON request can include different types of values, such as String, Number, Array, Object, or Any. If you want to validate the values of a specific key, you can define rules for the key using Add Key Profile on the WEBSITES > JSON Security page, and associate with the JSON profile.

    You can associate key value class to define the security policies for that particular key profile. For example, if key value class 'string' is selected, the Barracuda Web Application Firewall ensures that the respective key is checked for denied metacharacters, SQL, XSS, OS injection attack, etc. If the key value class “login” is selected, the Barracuda Web Application Firewall will validate to ensure that only alphanumeric values are sent and check the respective key values for SQL Injection attacks.

    If a service does not have a JSON Key Profile associated, but the JSON Profile configuration has the “Validate Key” configuration set to “Yes”, then keys seen in the JSON request are validated against the attack types selected in the JSON Profile. However, individual key values will not be validated for attacks.

    Steps to Add a JSON Key Profile:

    1. Go to the WEBSITES > JSON Security page.

    2. In the JSON Security section, click Add Key Profile next to the JSON profile.

    3. In the Add JSON Key Profile window:

      1. Status: Set to On.

      2. Key: Specify the key that needs to be validated in the JSON request.

      3. Value Type: Select the type of value (String, Array, Number, Object, or Any) associated with the specified key.

      4. Specify values for other parameters as required.

      5. Click Save.


    We value your feedback.
    If you have questions, suggestions, or feedback on our documentation, contact the Campus Product Documentation team.
    For general product inquiries or technical support, please contact the global Barracuda Support team.

    {"serverDuration": 30, "requestCorrelationId": "a46fcd7dd4be452e891fe34473d57bde"}