mojira.dev
MC-302337

Unauthorised server access with name using someone else's uuid

I am monitoring logs on my minecraft server donwoladed from https://www.minecraft.net/en-us/download/server
I extracted server-log4j2.xml from server.jar to allow more data being logged and running server like this:

java -Xmx32768M -Xms1024M -Dlog4j.configurationFile=file:./server-log4j2.xml -jar server.jar nogui

Recently I have tested usernames against uuids using mojang api.
I noticed that some hackers logged in to my server with username and uuid that belongs to someone else.
Data from server’s usercache.json:

    {
        "name": "lucnocity",
        "uuid": "d8c0443d-84fd-4288-9cfd-342ae4c725d6",
        "expiresOn": "2025-09-24 15:10:27 +0200"
    },
    {
        "name": "Luxnocity",
        "uuid": "39f85368-5b2a-4d68-b75e-4acad2bbbf41",
        "expiresOn": "2025-09-24 14:36:48 +0200"
    },

Those two players logged in together, but their uuids belong to someone else.

In api.mojang.com those users do not exits:
https://api.mojang.com/users/profiles/minecraft/lucnocity
https://api.mojang.com/users/profiles/minecraft/Luxnocity
and they logged in to my server.

And their uuids belong to someone else:
https://sessionserver.mojang.com/session/minecraft/profile/d8c0443d-84fd-4288-9cfd-342ae4c725d6
Bootsmcft
https://sessionserver.mojang.com/session/minecraft/profile/39f85368-5b2a-4d68-b75e-4acad2bbbf41
OptistickYT

My server properties are set to:

enforce-secure-profile=true
online-mode=true
prevent-proxy-connections=true

I don’t know how it happen, but banning those uuids or playernames may affect not guilty players.
It would be nice that mojang authorisation was fixed and prevented this from happening.

Environment

Java: Java version 24.0.2
OS: FreeBSD 14.1-RELEASE-p7, architecture: amd64-64
Runtime: OpenJDK Runtime Environment (build 24.0.2+12-1) from OpenJDK BSD Porting Team
VM: OpenJDK 64-Bit Server VM (build 24.0.2+12-1, mixed mode, sharing)
Locale: default locale: pl_PL, platform encoding: UTF-8
Hardware: processors: 7, architecture: amd64-64

Comments 2

Thank you for your report!
After consideration, the issue is being closed as Invalid.

This report does not describe a bug.

Quick Links:
πŸ““ Bug Tracker Guidelines – πŸ’¬ Community Support – πŸ“§ Mojang Support (Technical Issues) – πŸ“§ Microsoft Support (Account Issues)
πŸ““ Project Summary – ✍️ Feedback and Suggestions – πŸ“– Game Wiki

It looks like these players both changed their usernames - so the UUIDs are correct, even if the name outdated for their accounts. πŸ™‚
If they were to join again, these would be updated in the usercache JSON.

createdbyjurand

(Unassigned)

Plausible

(Unassigned)

1.21.8

Retrieved