Lucene search

K
huntrNhiephon370538F6-5312-4C15-9FC0-B4C36AC236FE
HistoryJan 24, 2022 - 3:16 a.m.

Improper Access Control in janeczku/calibre-web

2022-01-2403:16:26
nhiephon
www.huntr.dev
19

0.001 Low

EPSS

Percentile

21.4%

Description

With default settings, low-level users will not have permission to read name of private shelf (shelf create by another user and not in public mode). However, due to incorrect HTML render, the application does not work as intended.

Proof of Concept

Root-cause

In line 380 (https://github.com/janeczku/calibre-web/blob/master/cps/shelf.py#L380), server will check view permission of user and query book for shelf. However, if user doesn’t have view permission, server continues to render HTML containing shelf.name instead of showing error messages and redirect. This leads to disclose name of private shelf.

Impact

Low-level user can read name of all private shelves.

0.001 Low

EPSS

Percentile

21.4%

Related for 370538F6-5312-4C15-9FC0-B4C36AC236FE