Project

General

Profile

Actions

Bug #173

closed

Missing input validation for gateways

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

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Gateways
Target version:
Start date:
11/20/2009
Due date:
% Done:

70%

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

Description

system_gateways_edit.php does not sanity check entries. Two checks should be added:

1) The gateway IP is within the IP subnet of the interface selected
2) The monitor IP is not used on any other gateway (otherwise the static routes can't be added properly)

Actions #1

Updated by Seth Mos over 14 years ago

  • Status changed from New to Feedback
  • Assignee set to Seth Mos
  • % Done changed from 0 to 100

.

Actions #2

Updated by Seth Mos over 14 years ago

  • Status changed from Feedback to New
  • % Done changed from 100 to 0
Actions #3

Updated by Seth Mos over 14 years ago

Seth Mos wrote:
The monitor IP check was caused by a incorrect variable name which was fixed in #166.

Adding code for subnet check and comitting that.

Actions #4

Updated by Seth Mos over 14 years ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 70
Actions #5

Updated by Perry Mason over 14 years ago

unexpected ',' on line 97

Actions #6

Updated by Seth Mos over 14 years ago

The parse error is now gone, but upon further inspection I can create empty array entries by attempting to delete a gateway entry.

Actions #7

Updated by Chris Buechler over 14 years ago

  • Status changed from Feedback to Resolved

the particular issues mentioned in the ticket are fixed after my last commit fixing the input validation

not sure on the empty array entries. If I delete a gateway it is removed properly, the only thing I see is when all gateways are deleted it leaves <gateways></gateways> which shouldn't be a problem from what I see.

Seth, if you know of any other outstanding issues, please open a new ticket.

Actions

Also available in: Atom PDF