lus / pasty

pasty is a fast and lightweight code pasting server
https://pasty.lus.pm
MIT License
200 stars 28 forks source link

No content length cap for paste endpoint #7

Closed zekroTJA closed 3 years ago

zekroTJA commented 3 years ago

Description

There is no cap for the payload length of the past creation request body. When creating very large pastes, this will cause various problems.

Steps to reproduce

  1. Enter an enormous large paste content in the web frontend.
  2. Save the paste. Result: The paste will not load and the web frontend freezes.

And sorry by the way for some very large files in your object storage which I have created during my testing. ^^