config.php in Cacti 0.8.6e and earlier allows remote attackers to set the no_http_headers switch, then modify session information to gain privileges and disable the use of addslashes to conduct SQL injection attacks.
http://www.vupen.com/english/advisories/2005/0951
http://www.securityfocus.com/bid/14130
http://www.securityfocus.com/archive/1/404040
http://www.hardened-php.net/advisory-052005.php
http://www.debian.org/security/2005/dsa-764
http://www.cacti.net/downloads/patches/0.8.6e/cacti-0.8.6f_security.patch