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

Cannot join my server (using ely.by account) with combo auth mod #17

Open
Spicytin opened this issue May 19, 2024 · 1 comment
Open
Labels
help wanted Extra attention is needed

Comments

@Spicytin
Copy link

Spicytin commented May 19, 2024

Combo auth is a fabric mod that allows both microsoft and ely.by players to connect to the server if the online mode is enabled and the enforce-secure-profile=false is set to false.

Now when I try to join my server with the mod using ely.by acc from this launcher, it results in "Invalid signature for profile public key." error in the client and disconnects me on my srv, even I already disabled that secure profile option and restarted the server to make the changes. Looking at server console, it shows this:
[10:34:35] [Server thread/ERROR]: Failed to verify Services signature java.security.SignatureException: Bad signature length: got 1 but was expecting 512 at sun.security.rsa.RSASignature.engineVerify(RSASignature.java:215) ~[?:?] at java.security.Signature$Delegate.engineVerify(Signature.java:1435) ~[?:?] at java.security.Signature.verify(Signature.java:789) ~[?:?] at net.minecraft.class_7500.method_44171(class_7500.java:28) ~[server-intermediary.jar:?] at net.minecraft.class_7500.method_44173(class_7500.java:53) ~[server-intermediary.jar:?] at java.util.stream.MatchOps$1MatchSink.accept(MatchOps.java:90) ~[?:?] at java.util.AbstractList$RandomAccessSpliterator.tryAdvance(AbstractList.java:706) ~[?:?] at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:129) ~[?:?] at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:527) ~[?:?] at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:513) ~[?:?] at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?] at java.util.stream.MatchOps$MatchOp.evaluateSequential(MatchOps.java:230) ~[?:?] at java.util.stream.MatchOps$MatchOp.evaluateSequential(MatchOps.java:196) ~[?:?] at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?] at java.util.stream.ReferencePipeline.anyMatch(ReferencePipeline.java:632) ~[?:?] at net.minecraft.class_7500.method_51496(class_7500.java:50) ~[server-intermediary.jar:?] at net.minecraft.class_7500.method_44177(class_7500.java:23) ~[server-intermediary.jar:?] at net.minecraft.class_7428$class_7443.method_44205(class_7428.java:74) ~[server-intermediary.jar:?] at net.minecraft.class_7428.method_43550(class_7428.java:30) ~[server-intermediary.jar:?] at net.minecraft.class_7822$class_7823.method_46300(class_7822.java:42) ~[server-intermediary.jar:?] at net.minecraft.class_3244.method_46367(class_3244.java:1809) ~[server-intermediary.jar:?] at net.minecraft.class_7861.method_46617(class_7861.java:19) ~[server-intermediary.jar:?] at net.minecraft.class_7861.method_11054(class_7861.java:7) ~[server-intermediary.jar:?] at net.minecraft.class_2600.method_11072(class_2600.java:24) ~[server-intermediary.jar:?] at net.minecraft.class_3738.run(class_3738.java:18) ~[server-intermediary.jar:?] at net.minecraft.class_1255.method_18859(class_1255.java:156) ~[server-intermediary.jar:?] at net.minecraft.class_4093.method_18859(class_4093.java:23) ~[server-intermediary.jar:?] at net.minecraft.server.MinecraftServer.method_24306(MinecraftServer.java:797) ~[server-intermediary.jar:?] at net.minecraft.server.MinecraftServer.method_18859(MinecraftServer.java:165) ~[server-intermediary.jar:?] at net.minecraft.class_1255.method_16075(class_1255.java:130) ~[server-intermediary.jar:?] at net.minecraft.server.MinecraftServer.method_20415(MinecraftServer.java:779) ~[server-intermediary.jar:?] at net.minecraft.server.MinecraftServer.method_16075(MinecraftServer.java:773) ~[server-intermediary.jar:?] at net.minecraft.class_1255.method_18857(class_1255.java:139) ~[server-intermediary.jar:?] at net.minecraft.server.MinecraftServer.method_16208(MinecraftServer.java:758) ~[server-intermediary.jar:?] at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:687) ~[server-intermediary.jar:?] at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:270) ~[server-intermediary.jar:?] at java.lang.Thread.run(Thread.java:840) ~[?:?]

However, I was able to join my server with my ely.by acc but from another prism fork PollyMC. Both elyprism and pollymc use the latest version of authlib. My friend plays the game with Legacy Launcher which uses ely.by's authlib, but he was able to join with the mod on the server. I'm not sure if this is the mod's or the launcher's fault, but the two launchers I mentioned don't have this issue with it so that's why Im reporting here.

@Octol1ttle
Copy link
Owner

However, I was able to join my server with my ely.by acc but from another prism fork PollyMC. Both elyprism and pollymc use the latest version of authlib. My friend plays the game with Legacy Launcher which uses ely.by's authlib, but he was able to join with the mod on the server.

That shouldn't be possible. The latest versions of authlib-injector and ely-authlib replace their chat signature with a dummy (that is 1 byte in size). This is required to trick the game into thinking chat messages are signed, thus hiding any warnings. Minecraft servers that don't use authlib-injector will reject such signatures, regardless of enforce-secure-profile.

@Octol1ttle Octol1ttle added the help wanted Extra attention is needed label May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants