Lucene search

K
huntrNhiephon8F27686F-D698-4AB6-8EF0-899125792F13
HistoryJan 17, 2022 - 10:09 a.m.

Improper Access Control in janeczku/calibre-web

2022-01-1710:09:28
nhiephon
www.huntr.dev
7

0.001 Low

EPSS

Percentile

21.4%

Description

With default settings, low-level users will not have permission to create new shelf with public mode. However, due to incorrect checking, the function does not work as intended.

Steps To Reproduce

Root-cause

In line 248 (https://github.com/janeczku/calibre-web/blob/01090169a795342626412955cd0aefea11ad4a2a/cps/shelf.py#L248), server will check if user without “Public shelf” permission add “is_public=on” in create request and return error. However, in line 251, server only check the existence of “is_public” but not check the value again. Attacker can pass a value different “on” to pass this check.

Impact

Low-level user without “Public Shelf” permission can create public shelf. This can leads to malicious content being shared publicly.

0.001 Low

EPSS

Percentile

21.4%

Related for 8F27686F-D698-4AB6-8EF0-899125792F13