Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated jitsi-xmpp-extensions version & send jibri base url in xmppcl… #430

Closed

Conversation

Tinkesh-Kumar
Copy link

…ient

@Tinkesh-Kumar
Copy link
Author

Xmpp-extension upgrade PR.
https://github.com/jitsi/jitsi-xmpp-extensions/pull/44/files

@jitsi-jenkins
Copy link

Hi, thanks for your contribution!
If you haven't already done so, could you please make sure you sign our CLA (https://jitsi.org/icla for individuals and https://jitsi.org/ccla for corporations)? We would unfortunately be unable to merge your patch unless we have that piece :(.

@@ -286,7 +286,7 @@ class XmppApi(
startIq.room,
xmppEnvironment.stripFromRoomDomain,
xmppEnvironment.xmppDomain,
xmppEnvironment.baseUrl
startIq.baseUrl
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My concern is that we're not doing any checking of this baseUrl. Without addition checks, this could be used by a malicious user to send your jibris to a poisoned site which records the credentials jibri uses when logging in. In addition, this entirely overrides the Xmpp API without keeping the previous behavior as default. In my opinion this should be a separate section of code which first checks for a startIq baseUrl and confirms it's allowed, and then uses the environment base URL as a backup the start IQ doesn't include it.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do not do any validation for baseUrl in case of Http,
https://github.com/jitsi/jibri/blob/master/doc/http_api.md

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is because the HTTP api is entirely a different use case. It's meant to be for jibris who expose a command and control interface. It's up to whomever is building that to control access to it. In the case of XMPP it's a much more exposed interface and therefore deserves this level of checks. Without this check, every default jibri and jitsi-meet install will be vulnerable to this type of attack.

@saghul
Copy link
Member

saghul commented Aug 9, 2021

I'm -1 on this approach. Jibri is already able to connect to several XMPP environments and having one extra connection should not be problematic since it uses very little traffic.

@Tinkesh-Kumar
Copy link
Author

I'm -1 on this approach. Jibri is already able to connect to several XMPP environments and having one extra connection should not be problematic since it uses very little traffic.

@aaronkvanmeerten Thanks for reviewing. Are you asking to keep an allowed list of baseUrl in xmpp jibri config & validate the same here.
@saghul Thanks for reviewing. Here is the requirement #429 (comment). Here concern is not about the xmpp connection. We wanted to allow multiple jibri url for single xmpp host.

@saghul
Copy link
Member

saghul commented Aug 9, 2021

You can have a jibri connect to the same host under 2 different names, if you have DNS records for it.

@Tinkesh-Kumar Tinkesh-Kumar deleted the AddJibriBaseUrlAsAsJibriIq branch September 18, 2021 01:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants