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

[INTERNAL][CORE] Adds security check for received activities #1067

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

srossbach
Copy link
Contributor

It was possible to impersonate yourself as another session user
(required a custom modification).

It was possible to impersonate yourself as another session user
(required a custom modification).
@@ -359,7 +359,7 @@ public void sendActivity(List<User> recipients, final IActivity activity) {
new Runnable() {
@Override
public void run() {
sarosSession.exec(Collections.singletonList(activity));
sarosSession.exec(user.getJID(), Collections.singletonList(activity));
Copy link
Contributor

Choose a reason for hiding this comment

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

getJID is deprecated. However, I found no alternative method (as e.g. getXMPPContact/getContact).
@stefaus How would you get the Contact/JID?

Copy link
Contributor

Choose a reason for hiding this comment

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

At the moment there is no proper replacement for everything where you need the contact plus the correct resource endpoint. XMPPContact can return the current best available JID, but this could change at any time.

the user.getJID() deprecation is really old, but until we have something better working this PR looks good to me

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.

3 participants