Improper Access Control in janeczku/calibre-web
The create_shelf method in shelf.py did not check whether a user had permission to create a public shelf. A user without public shelf permissions could therefore create a public shelf, performing an action they were not authorised to do.
janeczku/calibre-web
Originally disclosed on huntr
An improper access control vulnerability exists in janeczku/calibre-web. The affected version allows users without public shelf permissions to create public shelves. The vulnerability is due to the create_shelf method in shelf.py not verifying if the user has the necessary permissions to create a public shelf. This issue can lead to unauthorized actions being performed by users.
From the GitHub Advisory Database (GHSA-fj5v-w2jp-wqvj, CC BY 4.0).
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the create_shelf function in shelf.py did not check the user's permission before allowing a public shelf to be created.
Impact
A user without public shelf permissions could create a public shelf, which may expose shelf contents more widely than intended.
What the attacker needed
A user account without public shelf permissions
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A shelf is a way to group books in this book-management app. Some shelves are public, meaning other people can see them, and only certain users are supposed to be allowed to make public shelves. The code that creates a shelf forgot to check that rule, so a user who should not have been allowed could still make a public shelf.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.