open_basedir breaks by restricting paths to files that should be allowed; Unknown: Failed opening required '/usr/share/phpmyadmin/index.php' (include_path='.') in Unknown on line 0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php |
Unknown
|
Unknown
|
|||
php5 (Ubuntu) |
Fix Released
|
High
|
Steve Beattie |
Bug Description
Binary package hint: php5
In package php5 (5.3.2-1ubuntu4.6) for Ubuntu Server 10.04.1 LTS, I have a bug regarding open_basedir setting in php.ini (using libapache2-mod-php5 5.3.2-1ubuntu4.6). phpmyadmin is within the allowed open_basedir resrictions, yet there is an error anyways saying it's not. It worked great using the configuration below with php5 (5.3.2-1ubuntu4.5) and libapache2-mod-php5 (5.3.2-1ubuntu4.5). This did not seem to affect php on fcgi for me, however this is unconfirmed as I haven't been able to fully test it out.
My configuration::
open_basedir = /home/:
What is expected to happen::
No error, it should work seamlessly.
What happens::
I receive an error message (below)::
PHP Warning: Unknown: open_basedir restriction in effect. File(/usr/
PHP Warning: Unknown: failed to open stream: Operation not permitted in Unknown on line 0
PHP Fatal error: Unknown: Failed opening required '/usr/share/
Current workaround::
Add . to the open_basedir restrictions.
open_basedir = /home/:
Alternatively, removing the forward slashes at the end of the paths also works as a workaround:
open_basedir = /home:/
Note: Please read the "open_basedir string" section at http://
CVE References
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
summary: |
- Unknown: Failed opening required '/usr/share/phpmyadmin/index.php' - (include_path='.') in Unknown on line 0 + open_basedir breaks with leading slash on paths; Unknown: Failed opening + required '/usr/share/phpmyadmin/index.php' (include_path='.') in Unknown + on line 0 |
summary: |
- open_basedir breaks with leading slash on paths; Unknown: Failed opening + open_basedir breaks by restricting paths to files that should be allowed + when you add a leading slash in configuration; Unknown: Failed opening required '/usr/share/phpmyadmin/index.php' (include_path='.') in Unknown on line 0 |
summary: |
- open_basedir breaks by restricting paths to files that should be allowed - when you add a leading slash in configuration; Unknown: Failed opening - required '/usr/share/phpmyadmin/index.php' (include_path='.') in Unknown - on line 0 + open_basedir breaks by restricting paths to files that should be + allowed; Unknown: Failed opening required + '/usr/share/phpmyadmin/index.php' (include_path='.') in Unknown on line + 0 |
Changed in php5 (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → High |
assignee: | nobody → Steve Beattie (sbeattie) |
Same problem with Hardy and php 5.2, libapache2-mod-php5 5.2.4-2ubuntu5.13. Problem started just now after security upgrade. Affected all my sites. Had to remove trailing slash to get it working again, even if that will include more directories potentially. BIG problem.