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.03643
    epss-percentile: 0.88125
    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: 4a0a00473045022100ca696e5d76626d782c2f7b6505922b2d8ffd80036e1359c63207b52bd4d68df902205aa98062346c9d1bb67903c569f556da56c6b5ccaec395103c865a5c6451a832:922c64590222798bb761d5b6d8e72950