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

Reject non-secure WebSocket or BOSH endpoints #3548

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

linkmauve
Copy link
Contributor

When discovering endpoints using XEP-0156, the server admin can list any kind of URL, but we want to use only secure ones using TLS. In order to achieve that, we filter out the lists before using the first one available.

This was causing connection to fail with the step.im server, which exposes in order ws:, wss: and http:, and we were previously using only the first and third ones, instead of the second like we should.

Should fix the issue reported by @vnpower at https://misskey.pm/notes/a0v0aaw0tbknyojk

When discovering endpoints using XEP-0156, the server admin can list any
kind of URL, but we want to use only secure ones using TLS.  In order to
achieve that, we filter out the lists before using the first one
available.

This was causing connection to fail with the step.im server, which
exposes in order ws:, wss: and http:, and we were previously using only
the first and third ones, instead of the second like we should.

Should fix the issue reported by @vnpower at
https://misskey.pm/notes/a0v0aaw0tbknyojk
@linkmauve linkmauve added the security Pull requests that address a security vulnerability label Nov 21, 2024
@jcbrand jcbrand merged commit ee7bea6 into conversejs:master Nov 22, 2024
3 of 4 checks passed
@jcbrand
Copy link
Member

jcbrand commented Nov 22, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
security Pull requests that address a security vulnerability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants