Cacti: SQL injection vulnerability
Gentoo Linux Security Advisory
||GLSA 200408-21 / cacti
||August 23, 2004
||May 22, 2006: 04
All supported architectures
With special configurations of Cacti it is possible to change passwords via
a SQL injection attack.
Cacti is a complete web-based front end to rrdtool.
Cacti is vulnerable to a SQL injection attack where an attacker may
inject SQL into the Username field.
An attacker could compromise the Cacti service and potentially execute
programs with the permissions of the user running Cacti. Only systems
with php_flag magic_quotes_gpc set to Off are vulnerable. By default,
Gentoo Linux installs PHP with this option set to On.
There is no known workaround at this time. All users are encouraged to
upgrade to the latest available version of Cacti.
All users should upgrade to the latest available version of Cacti, as
Code Listing 3.1: Resolution
# emerge sync
# emerge -pv ">=net-analyzer/cacti-0.8.5a-r1"
# emerge ">=net-analyzer/cacti-0.8.5a-r1"