From cb9ff03bbc6411543aa2110eda519c5b05883eba Mon Sep 17 00:00:00 2001 From: TheWitness Date: Fri, 4 Aug 2023 13:29:24 -0400 Subject: [PATCH] Fixing another SQL Injection issue --- CHANGELOG | 3 ++- reports_user.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 586e684525..bf137c8f96 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -93,7 +93,8 @@ Cacti CHANGELOG -SECURITY#5348: Unchecked Regular expressions can lead to privilege escalation and data leakage -SECURITY: Protect against certain SQL Injection attacks -SECURITY: Protect against certain command level injections in snmp functions --SECURITY: Minor XSS in graphs.php +-SECURITY: Protect against SQL Injection in graphs.php +-SECURITY: Protect against SQL Injection in reports_user.php -issue#2959: Multi-threaded cli/rebuild_poller_cache.php, deprecated push_out_hosts.php -issue#4045: When searching tree or list views, the URL does not update after changes -issue#5254: Created a data source template to specify the snmp port, but it doesn't seem to work properly diff --git a/reports_user.php b/reports_user.php index a636ee18e7..e03baf2f05 100644 --- a/reports_user.php +++ b/reports_user.php @@ -62,7 +62,7 @@ switch (get_request_var('action')) { break; case 'ajax_get_branches': - print reports_get_branch_select(get_request_var('tree_id')); + print reports_get_branch_select(get_filter_request_var('tree_id')); break; case 'ajax_hosts':