Home arrow Forum & FAQ arrow Network Information & News and Announcementsarrow News and Announcementsarrow !! Attention PHP Users and Developers !!
IGoSite.com Hosting Forum
November 21, 2008, 06:47:04 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome!
 
   Home   Help Search Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: !! Attention PHP Users and Developers !!  (Read 810 times)
admin
Administrator
Full Member
*****
Offline Offline

Posts: 216


View Profile
« on: September 07, 2005, 02:37:25 pm »

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 09/07/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"
Logged

Admin
http://www.IGoSite.com
Hosting For Everyone
Radeon007
Jr. Member
**
Offline Offline

Posts: 20


View Profile
« Reply #1 on: September 07, 2005, 04:02:15 pm »

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
Logged
admin
Administrator
Full Member
*****
Offline Offline

Posts: 216


View Profile
« Reply #2 on: September 07, 2005, 04:03:01 pm »

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
Logged

Admin
http://www.IGoSite.com
Hosting For Everyone
Isaac
Jr. Member
**
Offline Offline

Gender: Male
Posts: 72



View Profile
« Reply #3 on: September 07, 2005, 06:26:58 pm »

Good idea to disable it; I've heard many people have been harmed by this.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.1 | SMF © 2006, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 1.072 seconds with 20 queries.