hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : xmlrpc exploit affects many software packages
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

xmlrpc exploit affects many software packages

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 07-04-2005, 08:27 PM
JohnCrowley JohnCrowley is offline
Web Hosting Master
 
Join Date: Mar 2001
Posts: 1,422

xmlrpc exploit affects many software packages


http://news.netcraft.com/archives/20..._exploits.html

It's in the wild now and is affecting a large number of sites. Upgrading these software packages is highly recommended.

- John C.

Reply With Quote


Sponsored Links
  #2  
Old 07-04-2005, 08:33 PM
papi papi is offline
Web Hosting Guru
 
Join Date: Jan 2004
Posts: 347
I was just about to start a thread about this when I saw this one. This is a serious issue and it's got little attention on wht and other forums ..

What I would like to know is whether recompiling apache/php (cpanel boxes) would help here at all? I mean is this problem fixable by simply getting a new xmrpc/pearxmlrpc version compiled into php OR is this problem much MUCH worse and each separate installation of affected script that uses the xmlrpc libraries

Either way .. everyone should know, you have dozens of entry points for remote php execution on each of your boxes due to this xmlrpc issue

Reply With Quote
  #3  
Old 07-04-2005, 08:36 PM
JohnCrowley JohnCrowley is offline
Web Hosting Master
 
Join Date: Mar 2001
Posts: 1,422
Quote:
Originally posted by papi
I was just about to start a thread about this when I saw this one. This is a serious issue and it's got little attention on wht and other forums ..

What I would like to know is whether recompiling apache/php (cpanel boxes) would help here at all? I mean is this problem fixable by simply getting a new xmrpc/pearxmlrpc version compiled into php OR is this problem much MUCH worse and each separate installation of affected script that uses the xmlrpc libraries

Either way .. everyone should know, you have dozens of entry points for remote php execution on each of your boxes due to this xmlrpc issue
The problem is 3 fold:

1. Upgrade pear xmlprc right away
2. Upgrade phpxmlrpc if you have it installed.
3. All the software listed in the above link has xmlrpc embedded in its files (i.e. not using shared pear library), so the software itself (i.e. wordpress, phpads, etc...) needs to be upgraded to take care of this problem.

- John C.

Reply With Quote
Sponsored Links
  #4  
Old 07-04-2005, 08:36 PM
papi papi is offline
Web Hosting Guru
 
Join Date: Jan 2004
Posts: 347
The nature of the flaw poses a dilemma for site operators on shared hosting services, who may run affected applications on their sites but not have the ability to update the server's PHP installation with the secure libraries. Disabling XML-RPC features is the recommended workaround.

That is giving me some hope however ... if that information is correct, then all we (server admins) needs to do is recompile apache/php and make sure when we do that, that the new versions of xmlrpc and pearxmlrpc are used ... So in my case, since I use cpanel I'll have to wait for Cpanel to update their easyapache script

Reply With Quote
  #5  
Old 07-04-2005, 08:49 PM
papi papi is offline
Web Hosting Guru
 
Join Date: Jan 2004
Posts: 347
Quote:
Originally posted by JohnCrowley
The problem is 3 fold:
.
3. All the software listed in the above link has xmlrpc embedded in its files (i.e. not using shared pear library), so the software itself (i.e. wordpress, phpads, etc...) needs to be upgraded to take care of this problem.

- John C.
Ok that just plain SUX and I don't know why anyone would even think that can be done.

I've scanned our servers, and have detected more than a hundred different installations of scripts that use xmlrpc such as postnuke, wordpress etc.

There is no way on earth to get every single one of these people to update every single one of their scripts. And no I am not being lazy, just realistic.

Is there any way to stop attacks on these vulnerable scripts through mod_security ??

Reply With Quote
  #6  
Old 07-05-2005, 07:29 AM
papi papi is offline
Web Hosting Guru
 
Join Date: Jan 2004
Posts: 347
It's quite amazing how no one seems to give a **** because on the surface this looks harmless ...

Guess what? IT'S NOT!

The vulnerability in xmlrpc and the dozens of different scripts that use it allows REMOTE PHP EXECUTION ie. anyone can execute php commands from remote incl. script kiddies which no doubt will root thousands of boxes thanks to this one.

Reply With Quote
  #7  
Old 07-05-2005, 07:56 AM
darksoul darksoul is offline
Junior Guru
 
Join Date: Oct 2002
Posts: 229
Quote:
Originally posted by papi
It's quite amazing how no one seems to give a **** because on the surface this looks harmless ...

Guess what? IT'S NOT!

The vulnerability in xmlrpc and the dozens of different scripts that use it allows REMOTE PHP EXECUTION ie. anyone can execute php commands from remote incl. script kiddies which no doubt will root thousands of boxes thanks to this one.
People give a ******* but everyone is busy fixing it

__________________
Server Admin Services

Reply With Quote
  #8  
Old 07-05-2005, 08:26 AM
papi papi is offline
Web Hosting Guru
 
Join Date: Jan 2004
Posts: 347
how exactly ya fixin' it? Has anyone come up with a viable solution for shared hosting servers (ie. with dozens of affected scripts on each box)

Reply With Quote
  #9  
Old 07-05-2005, 10:20 AM
comafish comafish is offline
Newbie
 
Join Date: Jun 2004
Posts: 17
Quote:
Originally posted by papi
how exactly ya fixin' it? Has anyone come up with a viable solution for shared hosting servers (ie. with dozens of affected scripts on each box)
I second this request

Reply With Quote
  #10  
Old 07-05-2005, 10:55 AM
darksoul darksoul is offline
Junior Guru
 
Join Date: Oct 2002
Posts: 229
The first thing we did was pushing
Code:
SecFilter "xmlrpc.php"
into our mod_security configs.
This generated no problems so far.
Next step is updating php and resolving the problems
that might arise from the first step.
Keep in mind... if you're using a control panel
you'll have to update the autoinstallers like fantastico as well
so that new scripts get installed with the patched version.
(This when fantastico and the other auto install systems will
update their versions)

__________________
Server Admin Services

Reply With Quote
  #11  
Old 07-05-2005, 01:10 PM
hostito hostito is offline
Aspiring Evangelist
 
Join Date: Apr 2003
Location: San Francisco, CA
Posts: 428
Cpanel thread on same subject here:

http://forums.cpanel.net/showthread....&highlight=XML

__________________
Hostito, Inc. - Web Hosting & Reseller Plans
http://www.hostito.com
info@hostito.com - 1 888 467 8486

Reply With Quote
  #12  
Old 07-05-2005, 02:39 PM
McRox McRox is offline
Junior Guru
 
Join Date: Nov 2002
Location: The Netherlands
Posts: 222
Quote:
Originally posted by papi
The vulnerability in xmlrpc and the dozens of different scripts that use it allows REMOTE PHP EXECUTION ie. anyone can execute php commands from remote incl. script kiddies which no doubt will root thousands of boxes thanks to this one.
YOUR customers can also execute php, do you trust any customer?

Security is more than keeping your customer's scripts up-to-date..

Anyway, there are 2 exploits:

1) XMLRPC for PEAR
2) XMLRPC for PHP

Solution:

1) Run the following commands:
pear upgrade XML_RPC

If it's updated, your version should be 1.3.1:

root@mcrox [/]# pear list | grep RPC
XML_RPC 1.3.1 stable

2) Upgrade your PHP to version 4.4.0RC2 OR disable XMLRPC by recompiling php without it.

Please note that XMLRPC is needed for Horde and many other customer's scripts, so choose..

You could also add the following rule to mod_security:

SecFilter "xmlrpc.php"

like what darksoul suggested, but it wont stop 100% of the exploits..

A better one is:

SecFilter "xmlrpc"
SecFilter "xml_rpc"

OR

SecFilter "xml_rpc"

Reply With Quote
  #13  
Old 07-05-2005, 09:53 PM
papi papi is offline
Web Hosting Guru
 
Join Date: Jan 2004
Posts: 347
Re the modsec filters ... while I'm sure those will stop MOST attacks, the xmlrpc files could be called anything eg. elephant.php and contain the same code

Reply With Quote
  #14  
Old 07-06-2005, 02:30 AM
darksoul darksoul is offline
Junior Guru
 
Join Date: Oct 2002
Posts: 229
Quote:
Originally posted by papi
Re the modsec filters ... while I'm sure those will stop MOST attacks, the xmlrpc files could be called anything eg. elephant.php and contain the same code
Right, but in a real world scenario I doubt your customers modifyed the name of those files.
Plus if they did, the attacker wouldn't know.
What we're trying to protect against here is worms that will most
likely follow a pattern.
Sure, this is a first step and you shouldn't consider it like a fix it all solution.
There are other steps some of which were highlighted here,
that need to be taken in order to completely secure the environment against this bug.

__________________
Server Admin Services

Reply With Quote
  #15  
Old 07-06-2005, 04:10 AM
papi papi is offline
Web Hosting Guru
 
Join Date: Jan 2004
Posts: 347
Quote:
Originally posted by darksoul
Right, but in a real world scenario I doubt your customers modifyed the name of those files.
Plus if they did, the attacker wouldn't know.
What we're trying to protect against here is worms that will most
likely follow a pattern.
Good point

Quote:

Sure, this is a first step and you shouldn't consider it like a fix it all solution.
There are other steps some of which were highlighted here,
that need to be taken in order to completely secure the environment against this bug.


Anything apart from updating pear XMLRPC and the php module (which i didn't have installed on any of our servers ..luckily) ??

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Cisco Researcher Discovers Possible Exploit Vector for DarkLeech Attacks Web Hosting News 2013-04-26 10:19:35
Hackers Breach GitHub Database to Expose, Demonstrate Flaw in Ruby on Rails Web Hosting News 2012-03-06 12:37:11
Web Host Bluehost Launches Reseller Hosting Web Hosting News 2011-10-14 15:16:37
Web Host Cyber Host Pro Launches New VPS Packages Web Hosting News 2011-09-16 18:15:55
Patch Released for Apache Software DDoS Vulnerability Web Hosting News 2011-08-26 15:03:10


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?