hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Managed Hosting and Services : Security problem with php implode syntax in shared hosting.
Reply

Managed Hosting and Services Discussions on hosting and services offered by managed service providers. This includes reviews and general questions and answers about the managed services segment of hosting. Whether you purchased managed hosting or hired someone to manage your server, you're in the right place.
Forum Jump

Security problem with php implode syntax in shared hosting.

Reply Post New Thread In Managed Hosting and Services Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 04-24-2006, 10:13 AM
sanbad sanbad is offline
Newbie
 
Join Date: Jul 2005
Location: Iran
Posts: 14
Question

Security problem with php implode syntax in shared hosting.


Hi

I am a webmaster. I support some websites. I find a problem in some hosting services.
In these hosting a user that use implode syntax in a php script can access to other account's file.

So he/she can implode configuration portal files from other account and find database's name,username&password and so it can access to dbase and drop it or use other action with dbase!

For exam He can use this address in implode syntax :
/home/otherAccountName/public_html/portalFolder/config.php

This is occur in all hosting services or only occur in these hosting services that I work with them?
Why we see this problem?
What is webhosting administrator must do for solve this problem?

I know if we use syntax Error_reporting (0); in php script hacker can not find account name but I want users can not impload other account's files.
Please help.
Thanks


Last edited by sanbad; 04-24-2006 at 10:16 AM.
Reply With Quote


Sponsored Links
  #2  
Old 04-24-2006, 10:38 AM
gbjbaanb gbjbaanb is offline
Retired Moderator
 
Join Date: Oct 2004
Location: Southwest UK
Posts: 1,159
look up open_basedir in the PHP documentation and implement it for your sites.

Also, disable the exec() calls in PHP.

Reply With Quote
  #3  
Old 04-24-2006, 12:00 PM
sanbad sanbad is offline
Newbie
 
Join Date: Jul 2005
Location: Iran
Posts: 14
Question

Quote:
Originally Posted by gbjbaanb
look up open_basedir in the PHP documentation and implement it for your sites.

Also, disable the exec() calls in PHP.
Thanks
If possible, please explan about Disableing exec() calls.

who must do this? Server admin? reseller admin? webhosting enduser?

If disable exec() call. portl's that use require, include and implode syntaxes in that scripts; can work properly?

Reply With Quote
Sponsored Links
  #4  
Old 04-24-2006, 01:17 PM
gbjbaanb gbjbaanb is offline
Retired Moderator
 
Join Date: Oct 2004
Location: Southwest UK
Posts: 1,159
Here's a link to get you started, but if you're serious about securing your site, I suggest hiring someone who will do it for you, or take the time to learn for yourself.

In both cases, the server admin will have to do this - you will need to update the virtual host directives for each site, or the php.ini, to include the necessary php directives.

http://uk.php.net/exec

to disable exec, find the line "disable_functions =" in php.ini and change it to "disable_functions = exec".

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Security and Optimization Provider Incapsula Launches Web Host Affiliate Program, cPanel Plugin Web Hosting News 2012-10-23 10:19:03
NetHosting Improves Security, Performance with Updated Cloud Hosting Solutions Web Hosting News 2012-08-30 13:49:41
CloudLinux Adds Features to Define Resource Limits for Shared Hosting Plans Web Hosting News 2012-06-27 15:04:24
Linux OS CloudLinux Releases Virtualized File System for Shared Web Hosts Web Hosting News 2012-02-16 14:22:51
Web Host Certified Hosting Offers CloudFlare Security and Performance Service Web Hosting News 2012-01-04 16:07:29


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?