Some vulnerabilities have been reported in Cacti, which can be exploited by malicious users to compromise a vulnerable system and conduct script insertion attacks and by malicious people to conduct cross-site scripting and SQL injection attacks.
1) Input passed to the hostname when adding or editing a device or to the vertical label when adding or editing a graph template is not properly verified before being used, which can be exploited to inject and execute arbitrary shell commands.
Successful exploitation requires access to the graph templates or device sections.
2) Input passed to the "rra_id" parameter in graph.php (when "action" is set to "zoom", "local_graph_id" is set, and "rra_id" cookie is set) is not properly sanitised before being used in SQL queries. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.
Successful exploitation of this vulnerability requires permissions to view graphs.
3) Certain input is not properly sanitised before being returned to the user. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site.
4) Input passed via the "graph_start" and "graph_end" parameters to graph.php is not properly sanitised before being returned to the user in include/top_graph_header.php. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site.
5) Input passed via the "filter" parameter to utilities.php (when "refresh" is set and "action" is set to "view_logfile") is not properly sanitised before being returned to the user. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site.
6) Input passed via multiple parameters to cdef.php, data_templates.php, data_input.php, data_queries.php, data_sources.php, graph_templates.php, graph_templates_inputs.php, graph_templates_items.php, gprint_presets.php, graphs.php, graph_view.php, graphs_new.php, host_templates.php, host.php, lib/html.php, lib/html_form.php, lib/html_form_template.php, lib/functions.php, lib/html_tree.php, lib/rrd.php, rra.php, tree.php, and user_admin.php is not properly sanitised before being displayed to the user. This can be exploited to insert arbitrary HTML and script code, which will be executed in a user's browser session in context of an affected site.
Successful exploitation requires certain privileges.
The vulnerabilities are reported in version 0.8.7e. Other versions may also be affected.
Solution: Update to version 0.8.7g.
Provided and/or discovered by: 1) Nahuel Grisolia, Bonsai Information Security
2) Stefan Esser
3) The vendor credits Vupen
4) Moritz Naumann
5, 6) Marc Schoenefeld reported in a Red Hat Bug
Original Advisory: Cacti:
Bonsai Information Security:
Do you have additional information related to this advisory?
Please provide information about patches, mitigating factors, new versions, exploits, faulty patches, links, and other relevant data by posting comments to this Advisory. You can also send this
information to firstname.lastname@example.org
Subject: Cacti Multiple Vulnerabilities
No posts yet
You must be logged in to post a comment.
Secunia Customer Login
Not a customer already?
Learn more about how our market leading Vulnerability Management solutions can help you manage risk and ensure compliance.