php / php/php-src

php_admin_value disable_functions and upload_tmp_dir ignored

Offen
#19,018 6 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bug SAPI: apache2handler
Vorherrschende Sprache
C
Sterne
40.4k
Forks
8.2k
Ø Merge
2 T. 13 Std.
Gemergte PRs (30 T.)
96

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Reproduziere den Bericht mit PHP 8.2.29, Apache 2.4 und mod_php unter Verwendung von php.ini- und Apache-php_admin_value-Einstellungen für disable_functions und upload_tmp_dir. Vergleiche ihr Verhalten und die phpinfo-Ausgabe mit open_basedir. Erledigt ist die Aufgabe, wenn die gemeldeten Direktiven konsistent angewendet werden und ihre effektiven Werte korrekt widergespiegelt werden.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
apache, php
Bereich
backend, security
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.