games647 / FastLogin

Checks if a minecraft player has a valid paid account. If so, they can skip offline authentication automatically. (premium auto login)
https://www.spigotmc.org/resources/fastlogin.14153
MIT License
504 stars 123 forks source link

"Invalid session" #872

Closed jbmagination closed 2 years ago

jbmagination commented 2 years ago

What happened?

I, and only I, am immune to this problem. Everyone else on the server gets an "Invalid session" error when attempting to login, even if they're premium. I'm also premium. I have no idea why :sob:

I have chatted with multiple players and confirmed they are premium but are all getting "Invalid session".

What did you expect?

"Invalid session" should not given to premium players.

Steps to reproduce

  1. Join server
  2. Invalid session

Plugin list

Plugins (33): AdvancedReplay*, AntiCheatReplay, AuthMe, DiscordSRV, Essentials, EssentialsChat, EssentialsSpawn, FastAsyncVoxelSniper, FastAsyncWorldEdit (WorldEdit), FastLogin, floodgate, FreedomChat, Geyser-Spigot, GeyserSkinManager, GSit, LuckPerms, Multiverse-Core, Multiverse-Inventories, PlasmoVoice, PlotSquared, PlugManX (PlugMan), ProtocolLib, ProtocolSupportPotions, SkinsRestorer, spark, Themis, VanishNoPacket, Vault, ViaBackwards, ViaRewind, ViaRewind-Legacy-Support, ViaVersion, voicechat

Configuration file

https://gist.github.com/jbmagination/5259d104d8dfddcb1adea0417a3dde0d

Server log

[20:29:54 INFO]: [FastLogin] New packet START[class=PacketLoginInStart, id=0] from com.comphenix.protocol.injector.temporary.TemporaryPlayerInvocationHandler@57e06965
[20:29:54 INFO]: [FastLogin] Handling player {player name}
[20:29:54 INFO]: [FastLogin] GameProfile {player name} uses a premium username
[20:29:55 INFO]: [FastLogin] New packet ENCRYPTION_BEGIN[class=PacketLoginInEncryptionBegin, id=1] from com.comphenix.protocol.injector.temporary.TemporaryPlayerInvocationHandler@57e06965
[20:29:55 INFO]: [FastLogin] Enabling onlinemode encryption for /{IP address}
[20:29:55 ERROR]: [FastLogin] GameProfile {player name} (/{IP address}) tried to log in with an invalid session. ServerId: {server ID - idk if that's sensitive or not}
[20:29:55 INFO]: /{IP address} lost connection: Disconnected
[20:30:09 INFO]: [FastLogin] New packet START[class=PacketLoginInStart, id=0] from com.comphenix.protocol.injector.temporary.TemporaryPlayerInvocationHandler@77fd9bc0
[20:30:09 INFO]: [FastLogin] Handling player {player name}
[20:30:09 INFO]: [FastLogin] Second attempt login -> cracked {player name}
[20:30:10 INFO]: UUID of player {player name} is {player UUID}
[20:30:10 INFO]: {player name} joined the game

Plugin version

1.12-SNAPSHOT-8331779

Platform

Spigot

Relevance

games647 commented 2 years ago

Which Spigot version do you run?

games647 commented 2 years ago

The error means that Mojang rejected the verification. Are the IP addresses of the clients local or IPv6? Can you try it using the proxyAgnostic version?

jbmagination commented 2 years ago

The IP addresses are not IPv6 and I do not believe they're local either. I'm running Paper, git-Paper-97.

I have tried it with the proxyAgnostic version and I think it's working now!