Open
Description
Right now, caddy has problems handling fastcgi requests when the client sends a body with unknown body length, for http1.1 it's usually chunked encoded body. Users have to buffer the request manually and the buffer doesn't work right now because Content-length
is not set in this case, and it will leads to some easy attacks.
Here, an attacker doesn't need to do much to block all processes spawned by php-fpm.
Caddy should handle this type of requests with a sane default just like nginx does, i.e. buffer requests with unknown body length in this case, and reject requests whose body is too large to buffer.
Metadata
Metadata
Assignees
Labels
No labels