[php-src] PR #21118: Add 'multipart_uri_whitelist' INI option to control which URL paths are allowed to submit multipart body
| From: | chopins | Date: | Tue, 03 Feb 2026 07:14:27 +0000 |
| Subject: | [php-src] PR #21118: Add 'multipart_uri_whitelist' INI option to control which URL paths are allowed to submit multipart body | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-34766@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/21118
Author: chopins
Currently, in PHP, users can upload files to the server under any circumstances, even if the PHP
script does not include file upload handling.
This not only unnecessarily increases server bandwidth usage but also introduces the security risk
of arbitrary file uploads to the server. like : hitcon-ctf-2018-one-line-php-challenge.
So add multipart_uri_whitelist PHP_INI_PERDIR ini option to Allow file uploads only from
whitelisted paths.