Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


For Immediate Consideration - SECURITY PATCH

 
Post new topic   Reply to topic    Cacti Forum Index -> Announcements
Author Message
rony
Developer/Forum Admin


Joined: 17 Nov 2003
Posts: 5453
Location: Wisconsin, USA

PostPosted: Tue Jan 09, 2007 4:30 pm    Post subject: For Immediate Consideration - SECURITY PATCH Reply with quote

It has recently been reported that there are remote execution
vulnerabilities in cmd.php and other Cacti command line utilities that can
be executed from the web server.

The following versions have patches available to resolve this issue:

0.8.6i - http://www.cacti.net/download_patches.php?version=0.8.6i
0.8.6h - http://www.cacti.net/download_patches.php?version=0.8.6h


Forum post concerning this exploit:
http://forums.cacti.net/viewtopic.php?t=18846
Back to top
egarnel
Cacti Pro User


Joined: 21 Nov 2002
Posts: 630
Location: Austin, TX

PostPosted: Wed Jan 10, 2007 9:54 am    Post subject: Reply with quote

It seems to fail on the modified poller.php when using the 1 minute version from http://forums.cacti.net/viewtopic.php?t=16482

contents of poller.php.rej

Code:
***************
*** 26,32 ****
  */

  /* do NOT run this script through a web browser */
- if (!isset($_SERVER["argv"][0])) {
        die("<br><strong>This script is only meant to run at the command line.</strong>");
  }

--- 26,32 ----
  */

  /* do NOT run this script through a web browser */
+ if (!isset($_SERVER["argv"][0]) || isset($_SERVER['REQUEST_METHOD'])  || isset($_SERVER['REMOTE_ADDR'])) {
        die("<br><strong>This script is only meant to run at the command line.</strong>");
  }
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9723
Location: MI, USA

PostPosted: Thu Jan 11, 2007 11:39 pm    Post subject: Reply with quote

The patches did introduce a problem with the Timespan Selector. The attached file will remedy this problem.

TheWitness



inc_timespan_selector.zip
 Description:

Download
 Filename:  inc_timespan_selector.zip
 Filesize:  1.61 KB
 Downloaded:  207 Time(s)

Back to top
duckeo



Joined: 16 Feb 2006
Posts: 9

PostPosted: Thu Jan 11, 2007 11:56 pm    Post subject: Reply with quote

Thanks guys, worked well for me on 0.8.6h from a debian installed package.
Back to top
dagonet
Cacti User


Joined: 29 Oct 2005
Posts: 76
Location: Wuerzburg

PostPosted: Sat Jan 13, 2007 10:05 am    Post subject: Reply with quote

Hello Community,

we should consider the use of modsecurity http://www.modsecurity.org for apache installations.
I installed this module. So, now if you want to do a request for example on the cmd.php you will get the 403 response code.

For IIS installations is quit easy to put a redirect on particular files:
cacti/cmd.php
cacti/copy_cacti_user.php
cacti/poller.php
cacti/poller_commands.php
cacti/poller_export.php
cacti/poller_reindex_hosts.php
cacti/rebuild_poller_cache.php
cacti/script_server.php
cacti/scripts
cacti/include
cacti/install

You can do it from the management console of the IIS.

Dagonet
Back to top
jordon



Joined: 27 Nov 2006
Posts: 20

PostPosted: Sat Jan 13, 2007 10:35 am    Post subject: Reply with quote

If one would download the 0.8.6i would it be patched with these patches already?

As a note: I've been checking out the site for an updated cacti version with the security patches since reading about the exploit in secunia, thinking an update fixing multiple security flaws would certainly get a version letter increase from 0.8.6i to 0.8.6j

Today finally noticed there's a thread about it on the board with link to separate page with patches. So imho, would be a good idea to add some kind of notice about it to the main page.
Back to top
soloslinger



Joined: 19 Jan 2007
Posts: 25

PostPosted: Fri Jan 19, 2007 2:13 pm    Post subject: Reply with quote

Do I run these on my box in order to patch it or do I replace the corresponding scripts with this?

0.8.6i - http://www.cacti.net/download_patches.php?version=0.8.6i


soloslinger
Back to top
WimanX



Joined: 17 Jan 2007
Posts: 4

PostPosted: Fri Jan 19, 2007 3:29 pm    Post subject: Reply with quote

dagonet wrote:
Hello Community,

we should consider the use of modsecurity http://www.modsecurity.org for apache installations.
I installed this module. So, now if you want to do a request for example on the cmd.php you will get the 403 response code.

For IIS installations is quit easy to put a redirect on particular files:
cacti/cmd.php
cacti/copy_cacti_user.php
cacti/poller.php
cacti/poller_commands.php
cacti/poller_export.php
cacti/poller_reindex_hosts.php
cacti/rebuild_poller_cache.php
cacti/script_server.php
cacti/scripts
cacti/include
cacti/install

You can do it from the management console of the IIS.
Dagonet


Superb suggestion

i did a supereasy installation with fedora5
yum -y install mod_security

edited the conf file to support protection against sql and some other small pre-written rules..
works like a charm
Back to top
egarnel
Cacti Pro User


Joined: 21 Nov 2002
Posts: 630
Location: Austin, TX

PostPosted: Mon Jan 22, 2007 9:51 am    Post subject: Reply with quote

mod_security does not seem to be in the default Centos repos.

Here is a link for it
http://centos.karan.org/el4/extras/stable/i386/RPMS/repodata/repoview/mod_security-0-1.9.4-1.el4.kb.html

It is from Karanbir Singh's website. He is one of the CentOS team members
Back to top
JJX
Cacti User


Joined: 06 Oct 2005
Posts: 171

PostPosted: Sat Mar 17, 2007 3:38 am    Post subject: Reply with quote

Yesterday someone exploit my cacti 0.8.6i installation.
I havent see these patches

The attacked was trying to download remotely the script and run it.
Back to top
rony
Developer/Forum Admin


Joined: 17 Nov 2003
Posts: 5453
Location: Wisconsin, USA

PostPosted: Sat Mar 17, 2007 10:38 am    Post subject: Reply with quote

Back to top
pva



Joined: 26 Jan 2007
Posts: 26

PostPosted: Sun Nov 18, 2007 6:24 am    Post subject: Reply with quote

Oh, just missed the date. Sorry.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Announcements All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group