Page 1 of 1

5.4.9 had some PHP includes re-permed?

Posted: Thu Sep 07, 2017 11:47 am
by vAJ
Just upgraded to 5.4.9 on my test instance. Good news is that I no longer got that PHP out of memory error. So I think maybe something to do with the sudoers fix?

Anyhow, when I went back to the UI. I got an HTTP 500 error. ssl_error log showed several perm denied on some of the includes. Here's what I found:

Code: Select all

total 3088
-rwxr-x---  1 nagios nagios   5980 Sep  7 12:05 auth.inc.php
-rwxr-x---  1 nagios nagios    807 Sep  7 12:05 common.inc.php
drwxr-x--- 65 nagios nagios   4096 Nov  1  2016 components
-rwxr-x---  1 nagios nagios   1060 Sep  7 12:05 components.inc.php
drwxr-x--- 64 nagios nagios   4096 Dec  4  2015 configwizards
-rwxr-x---  1 nagios nagios    619 Sep  7 12:05 configwizards.inc.php
-rwxr-x---  1 nagios nagios  21991 Sep  7 12:05 constants.inc.php
-rwxr-x---  1 nagios nagios  24962 Sep  7 12:05 constants-nagioscore.inc.php
drwxr-x---  3 nagios nagios   4096 Sep 27  2016 css
drwxr-x--- 12 nagios nagios   4096 May 12 16:59 dashlets
-rwxr-x---  1 nagios nagios    680 Sep  7 12:05 dashlets.inc.php
-rwxr-x---  1 nagios nagios 252869 Sep  7 12:05 dbauth.inc.php
-rwxr-x---  1 nagios nagios  16465 Sep  7 12:05 db.inc.php
-rwxr-x---  1 nagios nagios 107225 Sep  7 12:05 dbl.inc.php
-rwxr-x---  1 nagios nagios    763 Sep  7 12:05 errors.inc.php
drwxr-x---  2 nagios nagios   4096 Oct 15  2015 fonts
-rwxr-x---  1 nagios nagios     56 Sep  7 12:05 footer-child.inc.php
-rwxr-x---  1 nagios nagios   7409 Sep  7 12:05 footer.inc.php
drwxr-x---  5 nagios nagios   4096 Oct 15  2015 fpdf
-rwxr-x---  1 nagios nagios    564 Sep  7 12:05 header-child.inc.php
-rwxr-x---  1 nagios nagios  20209 Sep  7 12:05 header.inc.php
drwxr-x---  6 nagios nagios   4096 Sep 27  2016 js
drwxr-x---  3 nagios nagios   4096 Oct 15  2015 lang
-rwxr-x---  1 nagios nagios    163 Sep  7 12:05 notificationmethods.inc.php
-rw-r-----  1 nagios nagios  17893 Sep  7 12:05 page-default-splash.php
-rwxr-x---  1 nagios nagios   2428 Sep  7 12:05 page-home-main.php
-rwxr-x---  1 nagios nagios    824 Sep  7 12:05 page-home.php
-rwxr-x---  1 nagios nagios    835 Sep  7 12:05 page-missing.php
-rwxr-x---  1 nagios nagios  31149 Sep  7 12:05 pageparts.inc.php
drwxr-x---  2 nagios nagios   4096 Feb 13  2017 phpmailer
-rwxr-x---  1 nagios nagios   3495 Sep  7 12:05 utils-auditlog.inc.php
-rwxr-x---  1 nagios nagios  64921 Sep  7 12:05 utils-backend.inc.php
-rwxr-x---  1 nagios nagios  13373 Sep  7 12:05 utils-ccm.inc.php
-rwxr-x---  1 nagios nagios  33861 Sep  7 12:05 utils-commands.inc.php
-rwxr-x---  1 nagios nagios   3797 Sep  7 12:05 utils-components.inc.php
-rwxr-x---  1 nagios nagios  12064 Sep  7 12:05 utils-configwizards.inc.php
-rwxr-x---  1 nagios nagios 142425 Sep  7 12:05 utils-dashboards.inc.php
-rwxr-x---  1 nagios nagios 116197 Sep  7 12:05 utils-dashlets.inc.php
-rwxr-x---  1 nagios nagios   6408 Sep  7 12:05 utils-email.inc.php
-rwxr-x---  1 nagios nagios  23089 Sep  7 12:05 utils-events.inc.php
-rwxr-x---  1 nagios nagios   2036 Sep  7 12:05 utils-graphtemplates.inc.php
-rwxr-x---  1 nagios nagios  38366 Sep  7 12:05 utils.inc.php
-rw-r-----  1 root   root   192549 Sep  7 12:05 utilsl-data.inc.php
-rw-r-----  1 root   root   162321 Sep  7 12:05 utilsl-helpers.inc.php
-rwxr-x---  1 nagios nagios 594885 Sep  7 12:05 utilsl.inc.php
-rwxr-x---  1 nagios nagios   9328 Sep  7 12:05 utils-links.inc.php
-rw-r-----  1 root   root    82969 Sep  7 12:05 utils-macros.inc.php
-rwxr-x---  1 nagios nagios  75864 Sep  7 12:05 utils-menu.inc.php
-rwxr-x---  1 nagios nagios  27445 Sep  7 12:05 utils-metrics.inc.php
-rwxr-x---  1 nagios nagios   1998 Sep  7 12:05 utils-mibs.inc.php
-rwxr-x---  1 nagios nagios 260569 Sep  7 12:05 utils-nagioscore.inc.php
-rwxr-x---  1 nagios nagios   2080 Sep  7 12:05 utils-notificationmethods.inc.php
-rwxr-x---  1 nagios nagios 116069 Sep  7 12:05 utils-notifications.inc.php
-rwxr-x---  1 nagios nagios  38661 Sep  7 12:05 utils-objects.inc.php
-rwxr-x---  1 nagios nagios   2442 Sep  7 12:05 utils-perms.inc.php
-rw-r-----  1 nagios nagios   4333 Sep  7 12:05 utils-reports-export.inc.php
-rwxr-x---  1 nagios nagios  45090 Sep  7 12:05 utils-reports.inc.php
-rw-r-----  1 nagios nagios   6099 Sep  7 12:05 utils-rrdexport.inc.php
-rw-r-----  1 nagios nagios   1392 Sep  7 12:05 utils-rss.inc.php
-rwxr-x---  1 nagios nagios   5473 Sep  7 12:05 utils-status.inc.php
-rwxr-x---  1 nagios nagios   2379 Sep  7 12:05 utils-systat.inc.php
-rwxr-x---  1 nagios nagios  14349 Sep  7 12:05 utils-tables.inc.php
-rwxr-x---  1 nagios nagios    726 Sep  7 12:05 utils-themes.inc.php
-rw-r-----  1 nagios nagios  10194 Sep  7 12:05 utils-time.inc.php
-rw-r-----  1 nagios nagios   7751 Jun 15  2016 utils-timezones.inc.php
-rwxr-x---  1 nagios nagios   4340 Sep  7 12:05 utils-tools.inc.php
-rwxr-x---  1 nagios nagios  37125 Sep  7 12:05 utils-updatecheck.inc.php
-rwxr-x---  1 nagios nagios  32499 Sep  7 12:05 utils-users.inc.php
-rwxr-x---  1 nagios nagios  38149 Sep  7 12:05 utils-views.inc.php
-rwxr-x---  1 nagios nagios   6705 Sep  7 12:05 utils-wizards.inc.php
-rwxr-x---  1 nagios nagios  17899 Sep  7 12:05 utilsx.inc.php
-rwxr-x---  1 nagios nagios  34326 Sep  7 12:05 utilsx-json.php
-rwxr-x---  1 nagios nagios   4364 Sep  7 12:05 utils-xmlauditlog.inc.php
-rwxr-x---  1 nagios nagios  37057 Sep  7 12:05 utils-xmlobjects.inc.php
-rwxr-x---  1 nagios nagios  33960 Sep  7 12:05 utils-xmlreports.inc.php
-rwxr-x---  1 nagios nagios  62752 Sep  7 12:05 utils-xmlstatus.inc.php
-rwxr-x---  1 nagios nagios   7753 Sep  7 12:05 utils-xmlsysstat.inc.php
-rwxr-x---  1 nagios nagios   1947 Sep  7 12:05 utils-xmlusers.inc.php
So chown nagios:nagios util* and chmod 750 util* and we were back in business.

-Andrew

Re: 5.4.9 had some PHP includes re-permed?

Posted: Thu Sep 07, 2017 12:18 pm
by scottwilkerson
Thanks for letting us know about the possible re-perming of the files however it does seem odd.

I believe the out of memory was a problem with sourceguardian compatibility with certain version of php which would have also been fixed in this release.