php_admin_value disable_functions and upload_tmp_dir ignored
まだ誰も着手していません。
- 主要言語
- C
- スター
- 40.4k
- フォーク
- 8.2k
- 平均マージ
- 2日 13時間
- マージ済み PR(30日)
- 96
説明
Description
php 8.2 at least.
if disable_functions is null in php.ini but populated in apache config php_admin_value , its ignored, phpinfo says its there but those functions like the dangerous exec is there and usable. why phpinfo says we are protected but in fact are not, thankfully we found out 3 weeks after upgrading from 7.4 which I know worked well in protecting the systems. I also tonight found it ignores the php_admin_value upload_tmp_dir as well.
Thankfully it still knows what to do with open_basedir which still appears to work.
MY understanding of disabled functions changes in 8.0 meant this (apache vhost) method was complmentary, to the php.ini, but its ignored outright.
This is using apache 2.4 with mod_php, from php 8.2.29 tested and confirmed with this release when we had it with .28 as well.
PHP Version
PHP 8.2.29 (cli) (built: Jul 3 2025 19:24:07) (ZTS)
Copyright (c) The PHP Group
Zend Engine v4.2.29, Copyright (c) Zend Technologies
Operating System
slackware 15.0
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
PHP 8.2.29、Apache 2.4、mod_php を使用し、disable_functions と upload_tmp_dir について php.ini および Apache の php_admin_value 設定で報告を再現します。open_basedir を使用した場合の動作と phpinfo の出力を比較します。報告されたディレクティブが一貫して適用され、その実効値が正確に反映されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- apache, php
- 領域
- backend, security
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100