diff options
author | Devaev Maxim <[email protected]> | 2020-05-15 17:30:14 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-05-16 17:35:10 +0300 |
commit | 2eef3061ce8e3222da7864bfe4fd2bf767b5e5f1 (patch) | |
tree | f9adc498cc1ebc5362489bd9ae550a36dec4f0a0 /kvmd/apps/vnc/vncauth.py | |
parent | a364e689c6d944be90ce80ad34594b21309cdb05 (diff) |
improved security checks
Diffstat (limited to 'kvmd/apps/vnc/vncauth.py')
-rw-r--r-- | kvmd/apps/vnc/vncauth.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kvmd/apps/vnc/vncauth.py b/kvmd/apps/vnc/vncauth.py index 2a66ee1d..b27d74d5 100644 --- a/kvmd/apps/vnc/vncauth.py +++ b/kvmd/apps/vnc/vncauth.py @@ -81,6 +81,8 @@ class VncAuthManager: (kvmd_user, kvmd_passwd) = kvmd_userpass.split(":") kvmd_user = kvmd_user.strip() + if len(kvmd_user) == 0: + raise VncAuthError(f"Empty KVMD user (right part) at line #{number}") if vnc_passwd in credentials: raise VncAuthError(f"Found duplicating VNC password (left part) at line #{number}") |