Browse Source

Fix/2021 03 validate interface field (#1666)

* Valid  interface input v-add-sys-ip

* Update changelog

Co-authored-by: Jaap Marcus <9754650+jaapmarcus@users.noreply.github.com>
Kristan Kenney 5 năm trước cách đây
mục cha
commit
e40db7611f
2 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 4 1
      CHANGELOG.md
  2. 1 0
      func/main.sh

+ 4 - 1
CHANGELOG.md

@@ -1,8 +1,11 @@
 # Changelog
 All notable changes to this project will be documented in this file.
 
-- Fixed xss vulnerability in v-add-sys-ip (thanks **@numanturle**)
+## [1.3.4] - Service Release
+### Bugfixes
+- Fixed xss vulnerability in v-add-sys-ip and user history log (thanks **@numanturle**)
 - Fixed remote execution possibility when deleting ssh key (thanks **@numanturle**)
+
 ## [1.3.3] - Service Release
 ### Bugfixes
 - Improved permission handling.

+ 1 - 0
func/main.sh

@@ -962,6 +962,7 @@ is_format_valid() {
                 host)           is_object_format_valid "$arg" "$arg_name" ;;
                 hour)           is_cron_format_valid "$arg" $arg_name ;;
                 id)             is_int_format_valid "$arg" 'id' ;;
+                interface)      is_interface_format_valid "$arg" ;;
                 ip)             is_ip_format_valid "$arg" ;;
                 ip_name)        is_domain_format_valid "$arg" 'IP name';;
                 ip_status)      is_ip_status_format_valid "$arg" ;;