Re: Increase maximum size of an uploaded file to 50Mbyte

From: Date: Sat, 10 Sep 2022 14:29:51 +0000
Subject: Re: Increase maximum size of an uploaded file to 50Mbyte
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-118601@lists.php.net to get a copy of this message
2022年9月10日(土) 23:23 David Gebler <davidgebler@gmail.com>: > On Sat, Sep 10, 2022 at 3:05 PM juan carlos morales < > dev.juan.morales@gmail.com> wrote: > >> I also agree that increasing the size to something bigger than 8M >> might not be a good idea; I can imagine that a value bigger than 8M >> (like 50M) will cause an impact in hosting platforms specially, which >> will be forced to always change the php's default values to a lower >> one, because of potential DoS Attacks. >> >> Default settings should have a reasonable level of security in mind. >> > > Do these settings actually have any impact in respect of DoS attacks? As > far as I'm aware, neither post_max_size nor upload_max_filesize do anything > to prevent or terminate processes where the client sends data exceeding > these limits, that's something you should handle in your webserver. > For example, password hash DoS attack was made possible because PHP allows 8MB post data. https://www.acunetix.com/vulnerabilities/web/long-password-denial-of-service/ IIRC, Drupal has a security release for this. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net

« previous php.internals (#118601) next »