Description
BookLore through 2.4.0 contains an authorization bypass vulnerability in AdditionalFileController that allows authenticated users to download or delete files from books in unassigned libraries. Attackers with access to any book can supply sequential fileId values to the download and delete endpoints, retrieving restricted files or removing files and audiobook folders from disk.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| booklore-app | booklore | 0 ≤2.4.0 | — |
References
- https://github.com/booklore-app/booklore/blob/v2.4.0/booklore-api/src/main/java/org/booklore/controller/AdditionalFileController.java#L59-L75
- https://github.com/booklore-app/booklore/blob/v2.4.0/booklore-api/src/main/java/org/booklore/service/file/AdditionalFileService.java#L99-L104
- https://github.com/booklore-app/booklore/releases/tag/v2.4.0
- https://www.vulncheck.com/advisories/booklore-through-2.4.0-authorization-bypass-via-additionalfilecontroller