Actions
Bug #12257
closedRoute data collection method on ``diag_routes.php`` has multiple issues
Start date:
Due date:
% Done:
100%
Estimated time:
Plus Target Version:
22.01
Release Notes:
Default
Affected Version:
Affected Architecture:
Description
The way that route data is collected for presentation in the GUI on diag_routes.php
has multiple problems, including:
- The use of
sed
appears to be unnecessary, and usingsed
in this way without severely limiting the filtering character set is a security issue assed
commands can be used which can perform unintended actions such as overwriting files or changing the output of the command in other problematic ways - The AJAX request uses POST but the code allows parameters to be sent via GET instead which is unnecessary and potentially problematic (see previous point).
- The AJAX request to fetch route data runs every 5 seconds, which seems too frequent since the route table rarely changes that fast, and the user can click the 'Update' button to trigger a manual refresh. 15 seconds seems more reasonable.
- The data returned by AJAX includes the headers of
netstat
output and draws the table dynamically. As a consequence these headers lackgettext()
translations, and some of the values are not ideal (e.g. output has "Mtu" instead of "MTU") - The table contains only some of the necessary attributes to be sortable, so sorting doesn't work as the specification is not complete.
Updated by Jim Pingle over 3 years ago
- Status changed from Confirmed to Feedback
- % Done changed from 0 to 100
Applied in changeset 72ea2b69cc111d4bc8ebf1ccf1e1529923c5b88a.
Updated by Jim Pingle about 3 years ago
- Plus Target Version changed from 21.09 to 22.01
Updated by Jim Pingle almost 3 years ago
- Status changed from Feedback to Resolved
This has been working well, and the changes have been reviewed by the original reporter of the problem as well. See also: #12265
Actions