Re: Error behaviour for max_input_vars
| From: | Tim Düsterhus | Date: | Wed, 14 Sep 2022 19:39:36 +0000 |
| Subject: | Re: Error behaviour for max_input_vars | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-118633@lists.php.net to get a copy of this message | ||
Hi
On 9/13/22 19:58, Mel Dafert wrote:
- Deciding thatThis would be my preferred option, but my understanding is that the limit still is relevant to protect against attacks on the hash table implementation. The web server can't really protect against this type of attack, because the payload required to execute the attack is fairly small. Protecting against the attack without some arbitrary cut-off limit would require making the hash algorithm used for the superglobals dependent on a randomly generated per-request seed value. I can't comment on how easy or hard that would be to change, but I believe that this should be the ultimate goal here. It's also what other programming languages do. Best regards Tim Düsterhusmax_input_varsis not relevant anymore and should be handled by the likes of Apache and NGINX, thus changing the default to0and removing the settingover a deprecation period.