Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 107828 Details for
Bug 159278
net-analyzer/cacti Cacti "cmd.php" Command Execution and SQL Injection (CVE-2006-6799)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
lib/ping.php patch for php4
ping.php.diff (text/plain), 1.59 KB, created by
Hans Rakers
on 2007-01-22 19:47:35 UTC
(
hide
)
Description:
lib/ping.php patch for php4
Filename:
MIME Type:
Creator:
Hans Rakers
Created:
2007-01-22 19:47:35 UTC
Size:
1.59 KB
patch
obsolete
>--- ping.php.orig 2007-01-22 20:30:19.000000000 +0100 >+++ ping.php 2007-01-22 20:29:18.000000000 +0100 >@@ -281,7 +281,13 @@ > > /* poll sysUptime for status */ > $retry_count = 0; >- $oid = ".1"; >+ >+ /* getnext does not work in php versions less than 5 */ >+ if (version_compare("5", phpversion(), "<")) { >+ $oid = ".1"; >+ }else{ $oid = ".1.3.6.1.2.1.1.3.0"; >+ } >+ > while (1) { > if ($retry_count >= $this->retries) { > $this->snmp_status = "down"; >@@ -289,15 +295,27 @@ > return false; > } > >- $output = cacti_snmp_getnext($this->host["hostname"], >- $this->host["snmp_community"], >- $oid, >- $this->host["snmp_version"], >- $this->host["snmp_username"], >- $this->host["snmp_password"], >- $this->host["snmp_port"], >- $this->host["snmp_timeout"], >- SNMP_CMDPHP); >+ /* getnext does not work in php versions less than 5 */ >+ if (version_compare("5", phpversion(), "<")) { >+ $output = cacti_snmp_getnext($this->host["hostname"], >+ $this->host["snmp_community"], >+ $oid, >+ $this->host["snmp_version"], >+ $this->host["snmp_username"], >+ $this->host["snmp_password"], >+ $this->host["snmp_port"], >+ $this->host["snmp_timeout"], >+ SNMP_CMDPHP); >+ }else{ $output = cacti_snmp_get($this->host["hostname"], >+ $this->host["snmp_community"], >+ $oid, >+ $this->host["snmp_version"], >+ $this->host["snmp_username"], >+ $this->host["snmp_password"], >+ $this->host["snmp_port"], >+ $this->host["snmp_timeout"], >+ SNMP_CMDPHP); >+ } > > /* determine total time +- ~10% */ > $this->time = $this->get_time($this->precision);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 159278
: 107828