Project

General

Profile

Actions

Bug #2494

closed
CB DE

diag_packet_capture.php needs input validation

Bug #2494: diag_packet_capture.php needs input validation

Added by Chris Buechler over 14 years ago. Updated about 14 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Web Interface
Target version:
Start date:
06/12/2012
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
All
Affected Architecture:

Description

diag_packet_capture.php does minimal if any input validation. Every field on that page needs to be verified.
Interface: Valid interface is submitted
Address family: valid address family submitted
Host address: Valid IP address or CIDR subnet
Port: 1-65535
Packet length: positive integer
Count: positive integer
Level of detail: one of the options in the drop down

JP Updated by Jim Pingle over 14 years ago Actions #1

Some of this is already done but doesn't actually report an error to the user, it simply leaves the invalid parameters out of the tcpdump command.

Might need to rework the page a bit to properly produce errors for invalid input.

DE Updated by Darren Embry over 14 years ago Actions #2

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

fixed in github.

not quite sure that dropdowns need additional validation because you can't select an option that isn't in the dropdown ;-) and 'any' is a valid option for some of them.

DE Updated by Darren Embry over 14 years ago Actions #3

  • Status changed from Resolved to Assigned

DE Updated by Darren Embry over 14 years ago Actions #4

  • % Done changed from 100 to 90

DE Updated by Darren Embry over 14 years ago Actions #5

  • Status changed from Assigned to Feedback
  • % Done changed from 90 to 100

Applied in changeset commit:622caf8fee84e0744da2b4cd9ea5d1fc4c499388.

JP Updated by Jim Pingle about 14 years ago Actions #6

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom