Skip to content
OAuth / SSO Disclosed report Intermediate

[jitsi-meet] Authentication Bypass when using JWT w/ public keys

A Prosody module accepted symmetric JWT algorithms even when asymmetric signatures were configured, so an attacker who knew the public key could forge tokens. This allowed starting new conferences or entering protected rooms on affected instances.

plokta Follow

Originally disclosed on HackerOne

Medium 5.3 View original
  • Triaged in 4 days
  • Fixed in 12 days
  • Disclosed after 6 months

Summary by the program

A Prosody module allows the use of symmetrical algorithms to validate JWTs. This means that tokens generated by arbitrary sources can be used to gain authorization to protected rooms. There are no known incidents related to this vulnerability. Please refer to the published advisory: https://github.com/jitsi/jitsi-meet/security/advisories/GHSA-45ff-37jm-xjfx We thank Nils Engelbertz for this finding!

Summary by the researcher

In Jitsi Meet versions < 2.0.5963, it was possible to bypass JWT authentication when asymmetric JWT signatures were enabled. An adversary was able to forge valid JWTs by setting the JWT header's alg field to a symmetric algorithm such as HS256 and using the public key as the secret to compute the HMAC. In effect, knowledge of a configured public key was sufficient to start new conferences or enter protected conference rooms on affected instances.

The original report as published on HackerOne, by plokta. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The JWT validation module did not restrict the accepted signing algorithms, allowing a symmetric algorithm to be used with the public key as the HMAC secret.

Impact

An attacker could forge tokens to start new conferences or enter protected conference rooms on affected instances; no known incidents are reported.

What the attacker needed

Knowledge of the configured public key; affected Jitsi Meet version < 2.0.5963

The fix

The JWT validation should reject symmetric algorithms when asymmetric signatures are configured.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

JWT is a token format used to prove who you are. It is signed with a secret or a key pair. The server should only accept the signing method it expects. Here it also accepted a method where the public key acts as the secret, so anyone with the public key could make valid tokens.

What is OAuth / SSO?

Mistakes in OAuth, OpenID Connect, SAML or token handling that leak codes and tokens or link an attacker's identity to a victim's account.

More from 8x8

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

OAuth and single sign-on flaws

The lesson behind this report.

Mistakes in OAuth, OpenID Connect, SAML or token handling that leak codes and tokens or link an attacker's identity to a victim's account.