php / php/php-src

php_admin_value disable_functions and upload_tmp_dir ignored

Abierto
#19,018 6 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Bug SAPI: apache2handler
Lenguaje dominante
C
Estrellas
40.4k
Forks
8.2k
Merge medio
2 d 13 h
PR fusionados (30 d)
96

Descripción

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

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

Reproduce el informe con PHP 8.2.29, Apache 2.4 y mod_php, utilizando la configuración de php.ini y php_admin_value de Apache para disable_functions y upload_tmp_dir. Compara su comportamiento y la salida de phpinfo con open_basedir. Se considera terminado cuando las directivas indicadas se aplican de forma coherente y sus valores efectivos se reflejan con precisión.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
apache, php
Área
backend, security
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.