mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix injection in search pages ipv4, etc (#15311)
Reported by: https://huntr.dev/users/hainguyen0207
This commit is contained in:
@@ -46,5 +46,5 @@ print_optionbar_end();
|
||||
if (file_exists("includes/html/pages/search/$search_type.inc.php")) {
|
||||
include "includes/html/pages/search/$search_type.inc.php";
|
||||
} else {
|
||||
echo report_this("Unknown search type $search_type");
|
||||
echo report_this('Unknown search type ' . htmlspecialchars($search_type));
|
||||
}
|
||||
|
@@ -85,8 +85,8 @@ if ($_POST['interface'] == 'Vlan%') {
|
||||
id: "address-search",
|
||||
search_type: "ipv4",
|
||||
device_id: '<?php echo htmlspecialchars($_POST['device_id']); ?>',
|
||||
interface: '<?php echo $_POST['interface']; ?>',
|
||||
address: '<?php echo $_POST['address']; ?>'
|
||||
interface: '<?php echo htmlspecialchars($_POST['interface']); ?>',
|
||||
address: '<?php echo htmlspecialchars($_POST['address']); ?>'
|
||||
};
|
||||
},
|
||||
url: "ajax_table.php",
|
||||
|
Reference in New Issue
Block a user