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

Fix client sending chat_session_update when local UUID does not match UUID on server #1237

Merged
merged 1 commit into from
Jul 14, 2023

Conversation

frej4189
Copy link
Contributor

@frej4189 frej4189 commented Jul 6, 2023

When connecting to an offline mode server behind an online mode proxy, the client will send a chat_session_update packet. On faulty (arguable) proxy implementations (e.g. Velocity), this packet will be forwarded to the backend server despite the backend being in offline mode. This will cause a signature mismatch on the server (because the offline mode UUID does not match the UUID we are signing with).

Possible fixes are:

  1. Regenerate signature using the offline mode UUID
  2. Don't send the chat_session_update packet

This PR implements fix 2, which mimics the behaviour of the Vanilla client.

Closes #1236

@rom1504 rom1504 merged commit 5a64f14 into PrismarineJS:master Jul 14, 2023
21 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.

Public Key Authentication fails on Velocity servers.
2 participants