1
0
Fork 0
mirror of https://github.com/lrsjng/h5ai synced 2026-01-10 18:22:49 +01:00
h5ai/src
glubsy 2582d2272b Limit thumbnail generation
* This fixes a denial-of-service exploit that would allow the client to
generate an infinite number of thumbnails and fill up the storage completely.
Since the client had control over the requested thumbnail sizes, it could make arbitrary requests for thumbnails, and every time the backend did not find an already generated thumbnail with the specified sizes, it would happily generate a new one.
* Remove the ability of the client to decide thumbnail dimensions and
only let the back-end do this by reading the configuration.
* Limit the number of generated thumbnails per file to only one, with
"landscape" dimensions (4/3).
* Use CSS "object-fit" property to adjust displaying of landscape thumbnails into squares. Ref: https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit
2021-01-25 01:55:07 +00:00
..
_h5ai Limit thumbnail generation 2021-01-25 01:55:07 +00:00
.eslintrc Update eslintrc. 2016-07-01 15:00:39 +02:00