Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix: prosody: token alg is checked before public key is used
Aaron van Meerten81c4e9a7fdc9
diff --git a/resources/prosody-plugins/token/util.lib.lua b/resources/prosody-plugins/token/util.lib.luaindex 81d8aa7b27..1e254bf227 100644--- a/resources/prosody-plugins/token/util.lib.lua+++ b/resources/prosody-plugins/token/util.lib.lua@@ -270,6 +270,13 @@ function Util:process_and_verify_token(session, acceptedIssuers)if kid == nil thenreturn false, "not-allowed", "'kid' claim is missing";end+ local alg = header["alg"];+ if alg == nil then+ return false, "not-allowed", "'alg' claim is missing";+ end+ if alg.sub(alg,1,2) ~= "RS" then+ return false, "not-allowed", "'kid' claim only support with RS family";+ endpubKey = self:get_public_key(kid);if pubKey == nil thenreturn false, "not-allowed", "could not obtain public key";