Charcoal-SE / halflife

Metasmoke back-end analysis client
Apache License 2.0
6 stars 2 forks source link

Limit size of fetched URL payload #9

Closed tripleee closed 2 years ago

tripleee commented 5 years ago

https://metasmoke.erwaysoftware.com/post/164468 contains an entire Bachelor's degree PDF on a low connection which took forever to download and caused Halflife to crash with Memory error:

https://chat.stackexchange.com/transcript/message/49448449#49448449

https://stackoverflow.com/questions/22346158/python-requests-how-to-limit-received-size-transfer-rate-and-or-total-time has some ideas for how to abort a download when it keeps going for too long.

tripleee commented 2 years ago

https://metasmoke.erwaysoftware.com/post/324696 downloads an entire MP4 video where the OP tries to demonstrate a problem with their web site /-:

There was also recently an XSS vulnerability which ... did something weird when Halflife tried to download it