mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Catch UnicodeDecodeErrors in id verification
Do not crash if the id cannot be decoded. An invalid id provided by an untrusted client can DOS the master.
This commit is contained in:
parent
858cfac113
commit
fd73f86c75
1 changed files with 1 additions and 1 deletions
|
@ -490,7 +490,7 @@ def valid_id(opts, id_):
|
|||
if any(x in id_ for x in ('/', '\\', '\0')):
|
||||
return False
|
||||
return bool(clean_path(opts['pki_dir'], id_))
|
||||
except (AttributeError, KeyError, TypeError):
|
||||
except (AttributeError, KeyError, TypeError, UnicodeDecodeError):
|
||||
return False
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue