Description
Koillection through 1.8.4 contains a stored cross-site scripting vulnerability that allows authenticated users to upload HTML files as Datum file attachments lacking MIME restrictions. Attackers can upload HTML payloads via POST /api/data/{id}/file, served as text/html from public/uploads, executing JavaScript in victims' sessions to perform actions on their behalf.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
benjaminjonard Koillection
Default version status: unaffected
0 to ≤ 1.8.4affected
pkg:github/benjaminjonard/koillectionReferences
- https://github.com/benjaminjonard/koillection/issues/1609 ↗
- https://github.com/benjaminjonard/koillection/blob/1.8.4/src/Service/ImageHandler.php#L43-L50 ↗
- https://github.com/benjaminjonard/koillection/blob/1.8.4/src/Entity/Datum.php#L141-L145 ↗
- https://github.com/benjaminjonard/koillection/releases/tag/1.8.4 ↗
- https://www.vulncheck.com/advisories/koillection-through-1.8.4-stored-xss-via-datum-file-attachment-uploads ↗