Reseller Hosting, Shared Hosting, Dedicated Hosting by Vortech Inc.

Go Back   Reseller Hosting, Shared Hosting, Dedicated Hosting by Vortech Inc. > >>Network Information & News and Announcements > News and Announcements
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

News and Announcements This is where you can read announcements regarding Vortech Inc.

Reply
 
Thread Tools Display Modes
  #1  
Old 06-16-2005, 04:01 PM
admin's Avatar
admin admin is offline
Vortech Inc. Owner
Owner
 
Location: Orlando FL
Send a message via ICQ to admin
!! Attention PHP Users and Developers !!

!! Attention PHP Users and Developers !!

In the past month alone we have had at least 20 incidents resulting from allow_url_fopen exploits. These incidents have caused downtime for many clients as well as network outages caused by DOS attacks. We feel it to be in the best interest of the vast majority of our clients who do not use allow_url_fopen to disable this function from our PHP core install.



Effective 06/16/2005 we will be disabling the allow_url_fopen function from the default PHP core functions on all of our webservers.



------------------------------------------------------------------------------------------

One of the most exploitable PHP functions is fopen. With allow_url_fopen enabled, potential attackers are able to force the PHP parser to execute malicious code. This code can include the execution of shell commands. Execution of malicious shell commands has several security-related ramifications:



1. User's files owned by the httpd user (common with CMS systems) can be changed or deleted.

2. Any file on the local file system can be read.

3. Attackers can download and run other malicious scripts, such as floods, DOS attacks, and remote shells which can cause downtime for everyone.

4. Shell commands can be run against suid binaries in an attempt to gain root access to the server.



From www.php.net :

"This option enables the URL-aware fopen wrappers that enable accessing URL objects like files (pictures or shell scripts). Default wrappers are provided for the access of remote files using the ftp or http protocol"

"Server admins should disable things... like allow_url_fopen due to extreme security vulnerabilities"

------------------------------------------------------------------------------------------
__________________
Brad Pugh
http://www.vortechhosting.com
------

Local System/Network Monitor
http://nagios.hsphere.cc/
Login:guest Pass:guest
XML FEED http://nagios.hsphere.cc/feed.xml
------

My Other Life:
Reply With Quote
  #2  
Old 06-16-2005, 04:09 PM
matthewshull's Avatar
matthewshull matthewshull is offline
Vortech Inc. Customer
Vortech Inc. Customer
 
Location: Forest, Ohio
So how do developer's get around this? This obviously breaks many applications, and for those who use third party products, may not be easy for them to fix.

What are the options here? I for one use a 3rd party shopping cart on a couple of sites that broke when you turned this off the first time.

Thanks.
__________________
____________________
Matt
Reply With Quote
  #3  
Old 06-16-2005, 04:26 PM
Vidvandre's Avatar
Vidvandre Vidvandre is offline
BANNED
Banned
 
Thanks for the notice. Although this has next to no impact on the php apps I am running, I greatly appreciate the heads up!

I'm also happy to see your continued devotion at keeping the servers running healthy! With the possible exploits of this function, it clearly isn't suitable to have it open in an environment such as this...
Reply With Quote
  #4  
Old 06-16-2005, 04:30 PM
admin's Avatar
admin admin is offline
Vortech Inc. Owner
Owner
 
Location: Orlando FL
Send a message via ICQ to admin
I am going to have dean post some other options as work arounds for "custom" coded apps IE curl..

We are also looking in to upgrading to apache 2.x as it would allow php and sites to be run as the user, this will make it much easier to catch these types of things. But we want to take that very slow and be sure it does not break anything or kill our boxes with that bit of extra load on them.

openbase_dir is the other option we are also looking at to also help secure things a bit more. But fopen is the biggest issue with people running there DDOS atacks from our systems because of poor code.
__________________
Brad Pugh
http://www.vortechhosting.com
------

Local System/Network Monitor
http://nagios.hsphere.cc/
Login:guest Pass:guest
XML FEED http://nagios.hsphere.cc/feed.xml
------

My Other Life:
Reply With Quote
  #5  
Old 06-16-2005, 04:43 PM
mdallarosa mdallarosa is offline
Vortech Inc. Customer
Vortech Inc. Customer
 
Location: Uruguay
This has been disabled some days ago on unix15. Then we have contacted support and it was enabled for some domains.
Will it be disabled for all domains?
Reply With Quote
  #6  
Old 06-16-2005, 04:43 PM
matthewshull's Avatar
matthewshull matthewshull is offline
Vortech Inc. Customer
Vortech Inc. Customer
 
Location: Forest, Ohio
What if I have a commercial app (in this case LiteCommerce) that encodes the PHP? I can't edit it.
__________________
____________________
Matt
Reply With Quote
  #7  
Old 06-16-2005, 04:55 PM
Two Roads Media's Avatar
Two Roads Media Two Roads Media is offline
Vortech Inc. Customer
Vortech Inc. Customer
 
Location: Houston, Texas
Does anyone know of any CSS readers that can parse without the allow_url_fopen??? As far as I can tell, that is the only way to display an RSS or XML feed using PHP. Without it, RSS is useless despite being one of the most popular and quickly growing information sources on the web.

I'm open to suggestions.
Reply With Quote
  #8  
Old 06-16-2005, 04:56 PM
lvanweb lvanweb is offline
Vortech Inc. Customer
Vortech Inc. Customer
 
You cannot be sure about this.
There should be a workaround first.
We should get time to implement this workaround.

I cannot agree with this!!!!!

This means that our shops stop working tonight,
You cannot mean this!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!

We need time first!!!
Reply With Quote
  #9  
Old 06-16-2005, 05:01 PM
lvanweb lvanweb is offline
Vortech Inc. Customer
Vortech Inc. Customer
 
We must be able to open file on other http-locations for reading.
I can agree that you can disable it for writing, but certainly not for reading with fopen.

Let's organise a voting for this.

I would call all resellers to post their opinion and stop Vortech from doing this,
without giving us a nice solution first!
Reply With Quote
  #10  
Old 06-16-2005, 05:13 PM
jpal jpal is offline
Registered User
Junior Member
 
I think that the ability to turn on allow_url_fopen is necessary to use Amazon's AWS service. My guess would be that I am not the only customer that would like to be able to use this! I would like to have an alternative solution.
Reply With Quote
  #11  
Old 06-16-2005, 05:23 PM
admin's Avatar
admin admin is offline
Vortech Inc. Owner
Owner
 
Location: Orlando FL
Send a message via ICQ to admin
That is the problem with fopen it does not have options for write or read. Even php.net says it should be disabled, we enabled it last week after we disabled it on select sites and the hacking keeps going.

They are running DDOS attacks from our network, hacking peoples sites. None of this would have been an issue is people and dev. coded things right.

This is something that must be done and after 3 DOS atacks just last night taking down a part of our network we must act and fix the issue. We wanted to be able to give this to select people but we tried and it still happen. We can't review every persons code and check it for them.

Also maybe Amazon should read up on php and understand it's very unsecure and a big risk to even allow it. But I am sure they coded there side right.

fopen will be turned off later tonight.
__________________
Brad Pugh
http://www.vortechhosting.com
------

Local System/Network Monitor
http://nagios.hsphere.cc/
Login:guest Pass:guest
XML FEED http://nagios.hsphere.cc/feed.xml
------

My Other Life:
Reply With Quote
  #12  
Old 06-16-2005, 05:27 PM
lvanweb lvanweb is offline
Vortech Inc. Customer
Vortech Inc. Customer
 
Please read my previous posts,
we need a workaround first or we can close our business!!!!!!
Reply With Quote
  #13  
Old 06-16-2005, 05:35 PM
macrebel
Guest
 
What general features or cms packages does this affect?

I am new to PHP and wonder if anyone can give me an idea of what features this would affect with CMS systems like Mambo or PHP shop?

Thanks
Reply With Quote
  #14  
Old 06-16-2005, 05:40 PM
Dean's Avatar
Dean Dean is offline
Registered User
Admin
 
You can gain similar functionality to fopen by using the curl functions. There are all kinds of examples here:

http://us2.php.net/manual/en/ref.curl.php
Reply With Quote
  #15  
Old 06-16-2005, 05:45 PM
admin's Avatar
admin admin is offline
Vortech Inc. Owner
Owner
 
Location: Orlando FL
Send a message via ICQ to admin
Quote:
Originally Posted by lvanweb
Please read my previous posts,
we need a workaround first or we can close our business!!!!!!

curl is the work around and secure way to do the same thing. It does not allow people to run scripts or delete your files.
__________________
Brad Pugh
http://www.vortechhosting.com
------

Local System/Network Monitor
http://nagios.hsphere.cc/
Login:guest Pass:guest
XML FEED http://nagios.hsphere.cc/feed.xml
------

My Other Life:
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 11:00 PM.


Powered by vBulletin Version 3.5.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Vortech Inc. ©2005
Page generated in 0.74979 seconds with 28 queries
[Output: 110.16 Kb. compressed to 101.23 Kb. by saving 8.93 Kb. (8.11%)]