id: CVE-2021-20114

info:
  name: TCExam <= 14.8.1 - Sensitive Information Exposure
  author: push4d
  severity: high
  description: When installed following the default/recommended settings, TCExam <= 14.8.1 allowed unauthenticated users to access the /cache/backup/ directory, which includes sensitive database backup files.
  impact: |
    An attacker can gain access to sensitive information, potentially leading to unauthorized access or data leakage.
  remediation: |
    Upgrade TCExam to a version higher than 14.8.1 to mitigate the vulnerability.
  reference:
    - https://es-la.tenable.com/security/research/tra-2021-32?tns_redirect=true
    - https://nvd.nist.gov/vuln/detail/CVE-2021-20114
    - https://www.tenable.com/security/research/tra-2021-32
    - https://github.com/ARPSyndicate/cvemon
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2021-20114
    cwe-id: CWE-425
    epss-score: 0.53868
    epss-percentile: 0.98038
    cpe: cpe:2.3:a:tecnick:tcexam:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: tecnick
    product: tcexam
  tags: cve,cve2021,tcexam,disclosure,exposure,tenable,tecnick,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/cache/backup/"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "Index of /cache/backup"
          - "Parent Directory"
          - ".sql.gz"
        condition: and

      - type: status
        status:
          - 200
# digest: 4a0a00473045022100afafe6ba5d8f8e4bffb5388605ba1aee94d05b6e548d0f90612ac715c461437e02202705012c55bfa6176763873477e41a231fbc115f12e0a246235aa1ecf72341b2:922c64590222798bb761d5b6d8e72950