CVE-2020-3452 on https://█████/
A Cisco ASA/FTD device exposed its web services interface without proper validation of URLs, allowing crafted requests with directory traversal sequences to read files inside the web services file system. An unauthenticated remote attacker could use this to view sensitive files, though not system or OS files.
- Triaged in 1 hour
- Fixed in 40 days
- Disclosed after 57 days
Hello team, I hope you're doing well, healthy & wealthy.
I found a CVE-2020-3452 path traversal and here is the explanation.
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.
References
- https://twitter.com/aboul3la/status/1286012324722155525
- http://packetstormsecurity.com/files/158646/Cisco-ASA-FTD-Remote-File-Disclosure.html
- http://packetstormsecurity.com/files/158647/Cisco-Adaptive-Security-Appliance-Software-9.11-Local-File-Inclusion.html
- http://packetstormsecurity.com/files/159523/Cisco-ASA-FTD-9.6.4.42-Path-Traversal.html
- http://packetstormsecurity.com/files/160497/Cisco-ASA-9.14.1.10-FTD-6.6.0.1-Path-Traversal.html
- https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-asaftd-ro-path-KJuQhB86
Impact
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.
** classification:**
- cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- cvss-score: 7.50
System Host(s)
█████████
Affected Product(s) and Version(s)
Cisco Adaptive Security Appliance (ASA) Software and Cisco Firepower Threat Defense (FTD) Software
CVE Numbers
CVE-2020-3452
Steps to Reproduce
Please do this GET request below.
- https://████████/+CSCOT+/translation-table?type=mst&textdomain=/%2bCSCOE%2b/portal_inc.lua&default-language&lang=../
Second attack type:
- https://██████/+CSCOT+/oem-customization?app=AnyConnect&type=oem&platform=..&resource-type=..&name=%2bCSCOE%2b/portal_inc.lua
You can see the file can be downloaded.
Suggested Mitigation/Remediation Actions
Please upgrade to the latest version of the software.
Best regards. @pirneci
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
Root cause
Likely the web services interface failed to validate URL input, so directory traversal sequences in the request path escaped the intended web services directory.
Impact
An unauthenticated attacker could read arbitrary files within the web services file system, but not ASA/FTD system files or underlying OS files; this only applies when WebVPN or AnyConnect features are enabled.
What the attacker needed
Target runs Cisco ASA or FTD; WebVPN or AnyConnect enabled; no authentication needed
The fix
The device should be upgraded to the latest software version.
How it was found
- Send a GET request to the device's web services path using the translation-table endpoint with a traversal sequence in the language parameter.
- Send a second GET request using the oem-customization endpoint with traversal sequences in the platform and resource-type parameters.
- Observe that the targeted file is returned and can be downloaded.
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.
Some web servers build a file path from parts of the URL you send. If they do not check those parts carefully, you can use '..' (meaning 'go up one folder') to step outside the intended folder and read files you should not see. Here a Cisco security appliance had this flaw, so anyone on the internet could fetch files from its web services area without logging in.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.