Waraxe IT Security Portal
Login or Register
October 6, 2026
Menu
Home
Logout
Discussions
Forums
Members List
IRC chat
Tools
Base64 coder
MD5 hash
CRC32 checksum
ROT13 coder
SHA-1 hash
URL-decoder
Sql Char Encoder
Affiliates
y3dips ITsec
Md5 Cracker
User Manuals
AlbumNow
Content
Content
Sections
FAQ
Top
Info
Feedback
Recommend Us
Search
Journal
Your Account
User Info
Welcome, Anonymous
Nickname
Password
(Register)

Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144

People Online:
Visitors: 2387
Members: 0
Total: 2387
Full disclosure
[0day-rubbish] StreamSets Transformer 3.17.0 auth-mode none fallback and un-sandboxed ScalaDTransform execution to container root (8.1 primary)
[0day-rubbish] RCDevs WebADM 2.4.14 authenticated log viewer sid command injection to webadm uid 999 code execution (7.2)
[0day-rubbish] Maian Cart 3.8 addBanners unrestricted banner upload to PHP webshell and administrator command execution (7.2 primary, PR:H)
[0day-rubbish] IPConfigure Orchid VMS 26.3.0 authenticated DNF repository GPG-key property command injection to root (7.2)
[0day-rubbish] Circutor LineEds 24.11.14-r0 unauthenticated pwrstudio events.xml shellExecute command injection (9.8)
[0day-rubbish] Asustor ADM 3.5.9.RWM1 (AS602T) music.cgi act=live stored-filename command injection reaching system() (8.8 primary, PR:L)
[0day-rubbish] Advantech WebAccess Node 9.2.3 unauthenticated CrystalRpt.aspx file upload and path traversal to code execution in w3wp.exe (9.8)
SEC Consult Research 20261001 :: Arbitrary Email sender spoofing in Apple iCloud mail
SEC Consult SA-20260924-0 :: Multiple Vulnerabilities in Paessler PRTG Network Monitor #CVE-2026-4637 #CVE-2026-4638
[NotCVE-2026-0019] game-music-emu through 0.6.5 VGM Command Interpreter Missing Operand Length Check Allows Heap Out-of-Bounds Read
[NotCVE-2026-0018] game-music-emu (libgme) through 0.6.5 Unbounded GYM Command Loop Allows Heap Out-of-Bounds Read
[NotCVE-2026-0017] game-music-emu (libgme) 0.6.5 and Earlier AY Loader NULL Pointer Dereference Allows Denial of Service
[NotCVE-2026-0016] game-music-emu VGM Command Interpreter Unvalidated 0xE0 PCM Seek Offset Allows Out-of-Bounds Read and Denial of Service
APPLE-SA-09-28-2026-3 macOS Sequoia 15.8.1
APPLE-SA-09-28-2026-2 macOS Tahoe 26.7.1
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> Php -> PHP version 6 --> safe mode gone!
Post new topicReply to topic View previous topic :: View next topic
PHP version 6 --> safe mode gone!
PostPosted: Sat Nov 17, 2007 9:02 pm Reply with quote
waraxe
Site admin
Site admin
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




http://ee.php.net/features.safe-mode

Code:

The PHP safe mode is an attempt to solve the shared-server security problem. It is architecturally incorrect to try to solve this problem at the PHP level, but since the alternatives at the web server and OS levels aren't very realistic, many people, especially ISP's, use safe mode for now.


Code:

Warning

Safe Mode was removed in PHP 6.0.0.


Smile
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Sun Nov 18, 2007 9:22 am Reply with quote
pexli
Valuable expert
Valuable expert
Joined: May 24, 2007
Posts: 665
Location: Bulgaria




Cooooooollllllllll. Laughing Laughing Laughing Laughing
View user's profile Send private message
php6
PostPosted: Sat Mar 01, 2008 10:36 pm Reply with quote
woot
Regular user
Regular user
Joined: Jan 26, 2008
Posts: 5
Location: Germany/Russian




I think thats not a big problem becouse open_basedir was not removed thats like a chroot for php files. With suhosin its possible to disable all danger php Command.

Just my 2 cent
View user's profile Send private message
PostPosted: Sun Mar 02, 2008 12:15 am Reply with quote
waraxe
Site admin
Site admin
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




Php.ini has "disable_function" setting, so it's easy to block functions.

If safe mode will be gone, then there is two situations:

1. webserver admin blocks all php shell related functions, so that it's hard to break out of "open_basedir". Still there are other ways - cgi, perl, python ...

2. if php shell functions are available, then "open_basedir" means nothing - because we can access filesystem via shell. In this case all depends on webserver operating system security: file and directory permissions, jail, suexec, etc. I have seen LOTS of hosting servers with poor cross-virtual-host security ...
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Sun Mar 02, 2008 4:23 am Reply with quote
woot
Regular user
Regular user
Joined: Jan 26, 2008
Posts: 5
Location: Germany/Russian




waraxe wrote:
Php.ini has "disable_function" setting, so it's easy to block functions.

Yes i know but i see exploits where i can the protection of "disable_functions" from the php.ini bypass.If i disable the same command in suhosin the bypass failed. But in php6 i read is suhosin integrates.

waraxe wrote:

1. webserver admin blocks all php shell related functions, so that it's hard to break out of "open_basedir". Still there are other ways - cgi, perl, python ...

2. if php shell functions are available, then "open_basedir" means nothing - because we can access filesystem via shell. In this case all depends on webserver operating system security: file and directory permissions, jail, suexec, etc. I have seen LOTS of hosting servers with poor cross-virtual-host security ...


Yes thats the reason why i hosting on my own server. The most important reform for me in php6 is Namespaces and Unicode suport. (Yes i know that namespaces are announced for php 5.3)
View user's profile Send private message
PostPosted: Sun Mar 02, 2008 9:29 am Reply with quote
pexli
Valuable expert
Valuable expert
Joined: May 24, 2007
Posts: 665
Location: Bulgaria




waraxe wrote:
2. if php shell functions are available, then "open_basedir" means nothing - because we can access filesystem via shell. In this case all depends on webserver operating system security: file and directory permissions, jail, suexec, etc. I have seen LOTS of hosting servers with poor cross-virtual-host security ...


Don't forget log's.Может у тебя все функции врубленъй но логи.POST,GET,COOKIE,HEAD и есчо md5 checksum на каждъй файл.Если зальеш новъй файл на сервак все равно у админа мигает красная лампочка и с твоим шеллом пипец.Мое имхо что safe mode включают тока ламеръй которъе незнают как настроить сервак.
View user's profile Send private message
PostPosted: Sun Mar 02, 2008 4:00 pm Reply with quote
woot
Regular user
Regular user
Joined: Jan 26, 2008
Posts: 5
Location: Germany/Russian




[quote="koko"]
koko wrote:
safe mode включают тока ламеръй которъе незнают как настроить сервак.

правда, there are many certain solutions as safe_mode. For example fastcgi and suphp.

btw @ koko: i was 5 times in Bulgaria at Holidays. In Goldstrand, Albena and Varna.
View user's profile Send private message
PHP version 6 --> safe mode gone!
www.waraxe.us Forum Index -> Php
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT
Page 1 of 1

Post new topicReply to topic


Powered by phpBB © 2001-2008 phpBB Group



PCWizardHub - Helping you fix, build, and optimize your PC life
All logos and trademarks in this site are property of their respective owner. The comments and posts are property of their posters, all the rest (c) 2004-2024 Janek Vind "waraxe"
Page Generation: 0.038 Seconds