Geyser icon indicating copy to clipboard operation
Geyser copied to clipboard

Unknown connections causing the geyser to crash velocity

Open jhqwqmc opened this issue 2 years ago • 26 comments

Describe the bug

There are a few suspicious connections trying to connect to the server, but no actual connection is being made, resulting in an error.

To Reproduce

  1. I'm not exactly sure how these connections are being made
  2. Server crashes automatically

Expected behaviour

The server won't crash

Screenshots / Videos

No response

Server Version and Plugins

No response

Geyser Dump

No response

Geyser Version

2.2.2-SNAPSHOT (git-master-8590869)

Minecraft: Bedrock Edition Device/Version

No response

Additional Context

https://mclo.gs/a3rNz2W

jhqwqmc avatar Mar 28 '24 15:03 jhqwqmc

Hey, this is likely related to this issue: https://github.com/GeyserMC/Geyser/issues/4510

NullOrNaN avatar Mar 28 '24 20:03 NullOrNaN

Hey, this is likely related to this issue: #4510

Thank you, after investigation, it is indeed a memory leak. ca582674cc4538740303889bacfa98ca

jhqwqmc avatar Mar 28 '24 20:03 jhqwqmc

Are you still experiencing these connections?

Kas-tle avatar Mar 29 '24 00:03 Kas-tle

Are you still experiencing these connections?

Let me test it

jhqwqmc avatar Mar 29 '24 00:03 jhqwqmc

Are you still experiencing these connections?

The problem still exists

https://mclo.gs/dmWKAIv Here's the full log, there's no output after this because it crashed, due to a memory leak.

jhqwqmc avatar Mar 30 '24 14:03 jhqwqmc

Same issue, after 27-03-2024 in log I see this, many strange connections: https://mclo.gs/eRprzRJ

Most of these IP addresses are from China (I have never played with Chinese, so this is suspisious)

After update Paper and Geyser — problem still exist

vapespb avatar Mar 31 '24 20:03 vapespb

What type of server are you running Geyser from?

NBT22 avatar Apr 01 '24 00:04 NBT22

What type of server are you running Geyser from?

VPS

The VPS and IP are shared by multiple machines. I suspect that there may have been a protocol attack, which caused a geyser memory leak by exploiting some protocol vulnerabilities.

jhqwqmc avatar Apr 01 '24 02:04 jhqwqmc

Same issue, after 27-03-2024 in log I see this, many strange connections: https://mclo.gs/eRprzRJ

Most of these IP addresses are from China (I have never played with Chinese, so this is suspisious)

After update Paper and Geyser — problem still exist

Through reverse analysis of these IPs, I found that they are all quite normal IPs. I think the owners of these IPs should be controlled by some kind of computer virus.

jhqwqmc avatar Apr 01 '24 02:04 jhqwqmc

Please supply a Geyser Dump if you are experiencing this issue.

Camotoy avatar Apr 01 '24 04:04 Camotoy

Please supply a Geyser Dump if you are experiencing this issue.

When should I generate the dump, because geyser has crashed when there is a problem, but when there is no problem, geyser is normal.

jhqwqmc avatar Apr 01 '24 04:04 jhqwqmc

It can be generated now.

Kas-tle avatar Apr 01 '24 04:04 Kas-tle

It can be generated now.

OK

jhqwqmc avatar Apr 01 '24 04:04 jhqwqmc

https://dump.geysermc.org/NTGq7SF8CEDpHOm7tAaT80R3memlpmOS

jhqwqmc avatar Apr 01 '24 04:04 jhqwqmc

I can confirm this is happening to my server too. Multiple chinese and french ips trying multiple connections to the 19132 port all the time!

I am running geyser on a dedicated server.

I updated to the latest geysermc today and the issue continues. Lots of chinese ips trying to connect.

abhisantos avatar Apr 01 '24 04:04 abhisantos

A few points to clarify:

  • These bots are likely trying to use your Geyser instance to perform a denial of service attack on other servers
  • We patched their ability to use your server in such an attack in build 478 and later
  • Updating will not stop the connection requests, but it does prevent your server from being used in a denial of service attack
  • From what we've seen, the connection attempts themselves are not happening at a fast enough rate to degrade Geyser performance

Kas-tle avatar Apr 01 '24 05:04 Kas-tle

But this is not a DOS attack, it is not fast, it just crashes suddenly.

jhqwqmc avatar Apr 01 '24 05:04 jhqwqmc

A few points to clarify:

  • These bots are likely trying to use your Geyser instance to perform a denial of service attack on other servers
  • We patched their ability to use your server in such an attack in build 478 and later
  • Updating will not stop the connection requests, but it does prevent your server from being used in a denial of service attack
  • From what we've seen, the connection attempts themselves are not happening at a fast enough rate to degrade Geyser performance

If that is the case, nice to know. And thank you for the answer. Although its a bit annoying, we can live with that for now.

abhisantos avatar Apr 01 '24 05:04 abhisantos

If there are just a lot of useless connection messages, you can use a standalone version of geyser to distinguish the logs, but no matter which version, it will crash because of these meaningless connections.

The current temporary solution is to use the standalone version of geyser and then restart using the restart script, This has the smallest scope of influence.

jhqwqmc avatar Apr 01 '24 06:04 jhqwqmc

I think it's the port scanner that's working, so connection messages are displayed.

brother1p avatar Apr 02 '24 07:04 brother1p