Headline
CVE-2023-4347: Fix unsanitized input injection (#15184) · librenms/librenms@91c57a1
Cross-site Scripting (XSS) - Reflected in GitHub repository librenms/librenms prior to 23.8.0.
Expand Up
@@ -113,20 +113,20 @@ function formatUnits(units,decimals,display,base) {
post: function ()
{
return {
device_id: '<?php echo $vars[‘device_id’] ?? '’; ?>’,
device_id: '<?php echo htmlspecialchars($vars[‘device_id’] ?? ‘’); ?>’,
hostname: '<?php echo htmlspecialchars($vars[‘hostname’] ?? ‘’); ?>’,
state: '<?php echo $vars[‘state’] ?? '’; ?>’,
ifSpeed: '<?php echo $vars[‘ifSpeed’] ?? '’; ?>’,
ifType: '<?php echo $vars[‘ifType’] ?? '’; ?>’,
port_descr_type: '<?php echo $vars[‘port_descr_type’] ?? '’; ?>’,
ifAlias: '<?php echo $vars[‘ifAlias’] ?? '’; ?>’,
location: '<?php echo $vars[‘location’] ?? '’; ?>’,
disabled: '<?php echo $vars[‘disabled’] ?? '’; ?>’,
ignore: '<?php echo $vars[‘ignore’] ?? '’; ?>’,
deleted: '<?php echo $vars[‘deleted’] ?? '’; ?>’,
errors: '<?php echo $vars[‘errors’] ?? '’; ?>’,
group: '<?php echo $vars[‘group’] ?? '’; ?>’,
devicegroup: '<?php echo $vars[‘devicegroup’] ?? '’; ?>’,
state: '<?php echo htmlspecialchars($vars[‘state’] ?? ‘’); ?>’,
ifSpeed: '<?php echo htmlspecialchars($vars[‘ifSpeed’] ?? ‘’); ?>’,
ifType: '<?php echo htmlspecialchars($vars[‘ifType’] ?? ‘’); ?>’,
port_descr_type: '<?php echo htmlspecialchars($vars[‘port_descr_type’] ?? ‘’); ?>’,
ifAlias: '<?php echo htmlspecialchars($vars[‘ifAlias’] ?? ‘’); ?>’,
location: '<?php echo htmlspecialchars($vars[‘location’] ?? ‘’) ?>’,
disabled: '<?php echo htmlspecialchars($vars[‘disabled’] ?? ‘’); ?>’,
ignore: '<?php echo htmlspecialchars($vars[‘ignore’] ?? ‘’); ?>’,
deleted: '<?php echo htmlspecialchars($vars[‘deleted’] ?? ‘’); ?>’,
errors: '<?php echo htmlspecialchars($vars[‘errors’] ?? ‘’); ?>’,
group: '<?php echo htmlspecialchars($vars[‘group’] ?? ‘’); ?>’,
devicegroup: '<?php echo htmlspecialchars($vars[‘devicegroup’] ?? ‘’); ?>’,
};
},
url: ‘<?php echo route(‘table.ports’) ?>’
Expand Down
Related news
Cross-site Scripting (XSS) - Reflected in GitHub repository librenms/librenms 23.7.0 and prior. A patch is available at commit 91c57a1ee54631e071b6b0c952d99c8ee892e824 and anticiapted to be part of version 23.8.0.