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

feat: Verify the rayo JvbRoomName header if it exists. #1166

Merged
merged 2 commits into from
Sep 18, 2024

Conversation

bgrozev
Copy link
Member

@bgrozev bgrozev commented Sep 17, 2024

Note it's just a precaution, prosody already verifies it.

@@ -82,6 +78,17 @@ class JigasiIqHandler(
}
}

val roomNameHeader = request.iq.getHeader("JvbRoomName")
Copy link
Member

Choose a reason for hiding this comment

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

Does this search the whole structure of the stanza? Cause the dial-iq is like:

<iq to = '[email protected]/focus' type = 'set' xml:lang = 'en'
    id = ''
    from = '[email protected]/36ff70d6'>
    <dial to = 'jitsi_meet_transcribe' xmlns = 'urn:xmpp:rayo:1' from = 'fromnumber'>
        <header value = '[email protected]' name = 'JvbRoomName' />
    </dial>
</iq>

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

But that gets all direct child extensions and the only child of the IQ is a dial extension. The header is the child of the dial extension.

Copy link
Member

Choose a reason for hiding this comment

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

Oh this method gets the DialIq request: IqRequest<DialIq>. Sorry for the noise.

Copy link
Member Author

Choose a reason for hiding this comment

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

damencho
damencho previously approved these changes Sep 17, 2024
@damencho damencho merged commit 79aeb9f into jitsi:master Sep 18, 2024
3 checks passed
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.

2 participants