id: CVE-2020-19363

info:
  name: Vtiger CRM v7.2.0 - Directory Listing
  author: 0x_Akoko
  severity: medium
  description: |
    Vtiger CRM v7.2.0 contains a directory traversal vulnerability caused by improper access controls in /libraries and /layout directories, letting attackers display hidden files and list directories, exploit requires no authentication.
  impact: |
    Attackers can access sensitive files and directory structures, potentially leading to information disclosure or further exploitation.
  remediation: |
    Update to the latest version of Vtiger CRM or apply security patches that enforce proper access controls.
  reference:
    - https://github.com/EmreOvunc/Vtiger-CRM-Vulnerabilities
    - https://nvd.nist.gov/vuln/detail/CVE-2020-19363
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 5.3
    cve-id: CVE-2020-19363
    epss-score: 0.06148
    epss-percentile: 0.90927
    cwe-id: CWE-200
  metadata:
    verified: true
    max-request: 2
    shodan-query: http.html:"vtiger CRM"
    fofa-query: body="vtiger CRM"
  tags: cve,cve2020,vtiger,listing,exposure,vkev

http:
  - method: GET
    path:
      - "{{BaseURL}}/vtigercrm/libraries/"
      - "{{BaseURL}}/vtigercrm/layouts/"

    stop-at-first-match: true

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_all(body, "Index of", "vtigercrm", "Parent Directory")'
          - 'contains_any(body, "Smarty", "PHPExcel", "adodb", "nusoap", "tcpdf", "vlayout", "v7")'
        condition: and
# digest: 4b0a00483046022100d6807768ccf22ca2866fa38bf4ebc5619146320eb5cfb68a27a39ce9a8dca170022100c90f159984552c47718a6f2e8e9b6500e4ef27b15c65ac605a698d44a360ed88:922c64590222798bb761d5b6d8e72950