LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 06-07-2014, 10:02 AM   #1
OtagoHarbour
Member
 
Registered: Oct 2011
Posts: 332

Rep: Reputation: 3
Lynis tells me I have (removed?) PHP option register_globals option is turned on


I am running PHP 5.4.4-14 on Debian 3.2.41-2+deb7u2 x86_64 GNU/Linux.

I get a message from lynis

Code:
[10:39:07] Warning: PHP option register_globals option is turned on, which can be a risk for variable value overwriting [test:PHP-2368] [impact:M]
However this link tells me that register_globals was removed in PHP version 5.4.0.

How can it be turned on if it has been removed?

Thanks,
OH
 
Old 06-07-2014, 10:58 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,734

Rep: Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920
Have you actually verified for yourself that register_globals is turned on? You can see how PHP is configured.

If php CLI is installed run:
php -i | grep register_globals

or you can create a web page.
<?php phpinfo(); ?>
 
1 members found this post helpful.
Old 06-07-2014, 12:52 PM   #3
OtagoHarbour
Member
 
Registered: Oct 2011
Posts: 332

Original Poster
Rep: Reputation: 3
Thank you for your reply.

Quote:
Originally Posted by michaelk View Post
Have you actually verified for yourself that register_globals is turned on? You can see how PHP is configured.

If php CLI is installed run:
php -i | grep register_globals
This did not give me anything.

Code:
$ php -i | grep register_globals
$
Quote:
Originally Posted by michaelk View Post
or you can create a web page.
<?php phpinfo(); ?>
That gave me output similar to what is shown here. But ctrl-F for "register_globals" returned no results.

Thanks,
OH
 
Old 06-07-2014, 01:27 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,734

Rep: Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920
I've never played with lynis but as stated since register_globals was removed in 5.4.0 and since it does not show in phpinfo then nothing is wrong with your system.

Besides register_globals default went from on to off in version 4.2.0 so the directive being removed or not in the php.ini is being misreported.

Last edited by michaelk; 06-08-2014 at 03:56 AM.
 
1 members found this post helpful.
Old 06-07-2014, 04:53 PM   #5
OtagoHarbour
Member
 
Registered: Oct 2011
Posts: 332

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by michaelk View Post
I've never played with lynis but as stated since register_globals was removed in 5.4.0 and since it does not show in phpinfo then nothing is wrong with your system.

Besides register_globals default went from on to off in version 4.2.0 so the directive being removed or not in the php.conf is being misreported.
Thanks again!
OH
 
Old 06-08-2014, 11:40 AM   #6
mboelen
LQ Newbie
 
Registered: Nov 2013
Location: The Netherlands
Distribution: Several ones for testing purposes
Posts: 15

Rep: Reputation: Disabled
Lightbulb

Upcoming release will test for PHP version and skip the test when needed!
 
1 members found this post helpful.
Old 06-08-2014, 12:39 PM   #7
OtagoHarbour
Member
 
Registered: Oct 2011
Posts: 332

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by mboelen View Post
Upcoming release will test for PHP version and skip the test when needed!
That's good to know.

Thanks for the info.,
OH
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Is there any builtin option to show title and searched option? Madhu Desai Linux - Newbie 6 07-17-2013 07:29 AM
php : fopen() with 'w' option buzzport Linux - Software 1 02-21-2012 12:47 AM
rpm have --nodeps option with dpkg is such an option available deepclutch Debian 2 03-26-2006 09:49 PM
Does apt-get/aptitude's purge option removed required dep of other packages? Akhran Debian 1 09-05-2005 06:52 PM
php option for apache sopiaz57 Linux - General 2 08-28-2004 02:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 03:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration