mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix injection vulnerability in fdb search page (#15315)
unescaped search output reported by: https://huntr.dev/users/hainguyen0207
This commit is contained in:
@@ -112,7 +112,7 @@ if ($vars['searchby'] == 'vlan') {
|
||||
"<div class=\"form-group\">"+
|
||||
"<input type=\"text\" name=\"searchPhrase\" id=\"address\" value=\""+
|
||||
<?php
|
||||
echo '"' . $vars['searchPhrase'] . '"+';
|
||||
echo '"' . htmlspecialchars($vars['searchPhrase']) . '"+';
|
||||
?>
|
||||
|
||||
"\" class=\"form-control input-sm\" placeholder=\"Value\" />"+
|
||||
|
Reference in New Issue
Block a user