Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Validate special characters that may conflict with sed (#13674)

Javier García85fb7513dbd8
diff --git a/debian/jitsi-meet-tokens.postinst b/debian/jitsi-meet-tokens.postinst
index d4e2e29282..21280847c5 100644
--- a/debian/jitsi-meet-tokens.postinst
+++ b/debian/jitsi-meet-tokens.postinst
@@ -38,6 +38,11 @@ case "$1" in
if [ "$RET" = "false" ] ; then
echo "Application secret is mandatory"
fi
+ # Not allowed unix special characters in secret: /, \, ", ', `
+ if echo "$RET" | grep -q '[/\\\"\`]' ; then
+ echo "Application secret contains invalid characters: /, \\, \", ', \`"
+ exit 1
+ fi
APP_SECRET=$RET
PROSODY_HOST_CONFIG="/etc/prosody/conf.avail/$JVB_HOSTNAME.cfg.lua"