mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-16 14:02:52 +01:00
reject passwords with single or double quotes or backslashes
This commit is contained in:
@@ -44,4 +44,10 @@ lookup_pillar_secret() {
|
||||
check_container() {
|
||||
docker ps | grep "$1:" > /dev/null 2>&1
|
||||
return $?
|
||||
}
|
||||
|
||||
check_password() {
|
||||
local password=$1
|
||||
echo "$password" | egrep -v "'|\"|\\\\" > /dev/null 2>&1
|
||||
return $?
|
||||
}
|
||||
Reference in New Issue
Block a user