|
|
| Author |
Message |
rony Developer/Forum Admin
Joined: 17 Nov 2003 Posts: 5448 Location: Wisconsin, USA
|
|
| Back to top |
|
 |
egarnel Cacti Pro User
Joined: 21 Nov 2002 Posts: 630 Location: Austin, TX
|
Posted: Wed Jan 10, 2007 9:54 am Post subject: |
|
|
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: 9671 Location: MI, USA
|
Posted: Thu Jan 11, 2007 11:39 pm Post subject: |
|
|
The patches did introduce a problem with the Timespan Selector. The attached file will remedy this problem.
TheWitness
| Description: |
|
 Download |
| Filename: |
inc_timespan_selector.zip |
| Filesize: |
1.61 KB |
| Downloaded: |
205 Time(s) |
|
|
| Back to top |
|
 |
duckeo
Joined: 16 Feb 2006 Posts: 9
|
Posted: Thu Jan 11, 2007 11:56 pm Post subject: |
|
|
| 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
|
Posted: Sat Jan 13, 2007 10:05 am Post subject: |
|
|
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
|
Posted: Sat Jan 13, 2007 10:35 am Post subject: |
|
|
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: 20
|
|
| Back to top |
|
 |
WimanX
Joined: 17 Jan 2007 Posts: 4
|
Posted: Fri Jan 19, 2007 3:29 pm Post subject: |
|
|
| 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
|
|
| Back to top |
|
 |
JJX Cacti User
Joined: 06 Oct 2005 Posts: 171
|
Posted: Sat Mar 17, 2007 3:38 am Post subject: |
|
|
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: 5448 Location: Wisconsin, USA
|
Posted: Sat Mar 17, 2007 10:38 am Post subject: |
|
|
|
|
| Back to top |
|
 |
pva
Joined: 26 Jan 2007 Posts: 25
|
Posted: Sun Nov 18, 2007 6:24 am Post subject: |
|
|
| Oh, just missed the date. Sorry.
|
|
| Back to top |
|
 |
|