mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Security fix: unauthorized access (#10091)
* Security fix: unauthorized access Affects nginx users: Moved php files outside of public html directory (Apache was protected by .htaccess) Affects all users: Some files did not check for authentication and could disclose some info. Better checks before including files from user input * git mv html/includes/ includes/html git mv html/pages/ includes/html/
This commit is contained in:
28
includes/html/graphs/port/errors.inc.php
Normal file
28
includes/html/graphs/port/errors.inc.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
$rrd_list[1]['filename'] = $rrd_filename;
|
||||
$rrd_list[1]['descr'] = $int['ifDescr'];
|
||||
$rrd_list[1]['ds_in'] = 'INERRORS';
|
||||
$rrd_list[1]['ds_out'] = 'OUTERRORS';
|
||||
$rrd_list[1]['descr'] = 'Errors';
|
||||
$rrd_list[1]['colour_area_in'] = 'FF3300';
|
||||
$rrd_list[1]['colour_area_out'] = 'FF6633';
|
||||
|
||||
$rrd_list[4]['filename'] = $rrd_filename;
|
||||
$rrd_list[4]['descr'] = $int['ifDescr'];
|
||||
$rrd_list[4]['ds_in'] = 'INDISCARDS';
|
||||
$rrd_list[4]['ds_out'] = 'OUTDISCARDS';
|
||||
$rrd_list[4]['descr'] = 'Discards';
|
||||
$rrd_list[4]['colour_area_in'] = '805080';
|
||||
$rrd_list[4]['colour_area_out'] = 'c0a060';
|
||||
|
||||
$units = '';
|
||||
$units_descr = 'Packets/sec';
|
||||
$total_units = 'B';
|
||||
$colours_in = 'greens';
|
||||
$multiplier = '1';
|
||||
$colours_out = 'blues';
|
||||
|
||||
$nototal = 1;
|
||||
|
||||
require 'includes/html/graphs/generic_multi_seperated.inc.php';
|
||||
Reference in New Issue
Block a user