Skip to content

Fix XUID logging#1395

Open
sylvessa wants to merge 2 commits intosmartcmd:mainfrom
sylvessa:fix/xuid-logging
Open

Fix XUID logging#1395
sylvessa wants to merge 2 commits intosmartcmd:mainfrom
sylvessa:fix/xuid-logging

Conversation

@sylvessa
Copy link
Collaborator

Description

This PR makes it to where XUID's cannot be logged by other clients. This doesn't break anything serverside.

This fix applies serverside, old clients before this fix should not be able to log XUID's either

Changes

Previous Behavior

Before, XUID"s were passed to all clients, which could be stolen by iterating through pMinecraft->level->players in your client

Example:
Minecraft Client_4bsQWpYDv3

Root Cause

Its old. And you were never intended to be able to spoof your XUID

New Behavior

When add player packet is passed to other clients, the XUID is now replaced with INVALID_XUID (only to clients, server still knows the actual XUID)

Example attempt to log with an XUID logger:
Minecraft Client_IeYH0d0udc

Fix Implementation

remove getting xuid in getAddEntityPacket() (this is what gets the actual packet to send to other clients for an entity beigna dded)

AI Use Disclosure

no ai

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.

1 participant