Skip to content

Commit

Permalink
Merge pull request from GHSA-jrxg-8wh8-943x
Browse files Browse the repository at this point in the history
  • Loading branch information
TheWitness committed Apr 7, 2024
1 parent 96d9a4c commit 9e87882
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/html_form_template.php
Expand Up @@ -156,6 +156,18 @@ function draw_nontemplated_fields_graph_item($graph_template_id, $local_graph_id

if (cacti_sizeof($input_item_list)) {
foreach ($input_item_list as $item) {
if (!db_column_exists('graph_templates_item', $item['column_name'])) {
raise_message_javascript(
__('Attempted SQL Injection'),
__('There was a SQL Injection attempted on the page'),
__('A client attempted to create a SQL Injection into Cacti likely from an external host with the address %s', get_client_addr())
);

cacti_log(sprintf('ERROR: A client attempted to create a SQL Injection into Cacti likely from an external host with the address %s', get_client_addr()), false, 'SECURITY');

exit;
}

$form_array = array();

if (!empty($local_graph_id)) {
Expand Down

0 comments on commit 9e87882

Please sign in to comment.