In-app reader
Multiple legacy PHP template files in LibreNMS directly output SNMP-sourced and syslog-sourced data into HTML without escaping. An attacker who controls a monitored network device (via compromised SNMP agent or syslog sender) can inject arbitrary JavaScript that executes when any authenticated LibreNMS user views the affected pages.
program field (clearest instance)File: includes/html/print-syslog.inc.php:11,13
$syslog_output .= '' . $entry['program'] . ' : ' . htmlspecialchars((string) $entry['msg']) . '';
Discussion
Sign in to join the discussion.
Keep reading
Optional: create a free account to save items, track programs, and sync across web + app. Reading stays free.