Uploaded image for project: 'Jira Software Data Center'
  1. Jira Software Data Center
  2. JSWSERVER-21061

Add Field operation fails with OWASP 3.0 core security rule because the request payload is not a json

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • 8.17.0
    • REST API
    • None

    Description

      Issue Summary

      Add field operation in issues details page, fails in Jira running behind Microsoft Azure Application Gateway's OWASP 3.0 core security rule. It looks for the request payload to be confirming to json, which the payload isn't.

      Steps to Reproduce

      • Enable Azure Application Gateway's OWASP 3.0 core security rule if possible.
      • Try adding field from issue details page.

      Expected Results

      Operation "Add Field" should work as usual.

      Actual Results

      It blocks the call since the request payload does not confirm to json format.

      Message that we get back from rule is below:

      { "resourceId": "xyz", "operationName": "ApplicationGatewayFirewall", "time": "2021-08-05T13:18:43.8437482Z", "category": "ApplicationGatewayFirewallLog", "properties": {
        "instanceId": "ApplicationGatewayRole_IN_0",
        "clientIp": "10.10.10.10",
        "clientPort": "0",
        "requestUri": "/rest/globalconfig/1/issuecustomfields/10100",
        "ruleSetType": "OWASP",
        "ruleSetVersion": "3.0",
        "ruleId": "0",
        "ruleGroup": "Default",
        "message": "",
        "action": "Matched",
        "site": "Global",
        "details": {
          "message": "JSON parsing error: lexical error: invalid char in json text.",
          "data": "",
          "file": "",
          "line": ""
        },
        "hostname": "jira.whatnot.com",
        "transactionId": "123456789"
      }}
      

      Workaround

      Try writing a rule that neglects this URL and overrides the main rule. Something as suggested in example here.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vpandey2@atlassian.com Vikas Pandey (Inactive)
              Votes:
              3 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: