Files
librenms-librenms/includes/html/pages/device/port/arp.inc.php
Tony Murray 36431dd296 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/
2019-04-11 23:26:42 -05:00

31 lines
763 B
PHP

<?php
$no_refresh = true;
?>
<table id="port-arp" class="table table-condensed table-hover table-striped">
<thead>
<tr>
<th data-column-id="mac_address">MAC address</th>
<th data-column-id="ipv4_address">IPv4 address</th>
<th data-column-id="remote_device" data-sortable="false">Remote device</th>
<th data-column-id="remote_interface" data-sortable="false">Remote interface</th>
</tr>
</thead>
</table>
<script>
var grid = $("#port-arp").bootgrid({
ajax: true,
rowCount: [50, 100, 250, -1],
post: function ()
{
return {
id: "arp-search",
port_id: "<?php echo $port['port_id']; ?>"
};
},
url: "ajax_table.php"
});
</script>