Exceptionflug / protocolize

A lightweight BungeeCord / Velocity protocol framework supporting items
MIT License
300 stars 39 forks source link

EXPLOIT #179

Closed NaTorOG closed 1 year ago

NaTorOG commented 1 year ago

Protocolize 2.2.2 XCord Proxy server

14:50:13] [epollEventLoopGroup-3-5/INFO]: [FatalCrasher] disconnected with: Book too large! [14:50:13] [epollEventLoopGroup-3-5/INFO]: [/93.43.232.92:65340|FatalCrasher] -> UpstreamBridge has disconnected [14:50:13] [epollEventLoopGroup-3-5/INFO]: [/93.43.232.92:65340|FatalCrasher] <-> DownstreamBridge <-> [hub] has disconnected [14:50:14] [epollEventLoopGroup-3-8/INFO]: [/185.135.158.216:33326] <-> InitialHandler has pinged [14:50:15] [epollEventLoopGroup-3-1/INFO]: [/87.13.89.95:10674] <-> InitialHandler has pinged [14:50:16] [epollEventLoopGroup-3-2/INFO]: [/93.43.232.92:65342] <-> InitialHandler has connected [14:50:16] [epollEventLoopGroup-3-2/WARN]: === WARNING === [14:50:16] [epollEventLoopGroup-3-2/WARN]: The player FatalCrasher is using protocol version 47 (earlier than 1.13) which is not supported by protocolize by default. [14:50:16] [epollEventLoopGroup-3-2/WARN]: You may experience log spamming due to protocolize not finding appropriate mappings for the clients protocol version. [14:50:16] [epollEventLoopGroup-3-2/WARN]: To fix this you have to install the legacy support module for BungeeCord. More info at: https://simplixsoft.com/protocolize [14:50:16] [epollEventLoopGroup-3-2/INFO]: [FatalCrasher|/93.43.232.92:65342] <-> ServerConnector [hub] has connected [14:50:19] [epollEventLoopGroup-3-2/ERROR] [dev.simplix.protocolize.api.util.DebugUtil]: Unable to write dump file Fri-Feb-10-14:50:19-CET-2023.zip java.io.IOException: Stream closed at java.util.zip.ZipOutputStream.ensureOpen(ZipOutputStream.java:97) ~[?:?] at java.util.zip.ZipOutputStream.closeEntry(ZipOutputStream.java:261) ~[?:?] at dev.simplix.protocolize.api.util.DebugUtil.writeDump(DebugUtil.java:45) ~[?:?] at dev.simplix.protocolize.bungee.packet.BungeeCordProtocolizePacket.read(BungeeCordProtocolizePacket.java:57) ~[?:?] at net.md_5.bungee.protocol.DefinedPacket.read0(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at net.md_5.bungee.protocol.MinecraftDecoder.decode(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at net.md_5.bungee.protocol.MinecraftDecoder.decode(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.handler.codec.ByteToMessageDecoder.callDecode(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.handler.codec.ByteToMessageDecoder.channelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.channel.epoll.EpollEventLoop.processReady(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.channel.epoll.EpollEventLoop.run(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.util.internal.ThreadExecutorMap$2.run(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.util.concurrent.FastThreadLocalRunnable.run(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at java.lang.Thread.run(Thread.java:833) [?:?] [14:50:19] [epollEventLoopGroup-3-2/ERROR]: [Protocolize] === EXCEPTION CAUGHT IN DECODER === [14:50:19] [epollEventLoopGroup-3-2/ERROR]: [Protocolize] Protocolize 2.2.2:456 [14:50:19] [epollEventLoopGroup-3-2/ERROR]: [Protocolize] Stream Direction: UPSTREAM [14:50:19] [epollEventLoopGroup-3-2/ERROR]: [Protocolize] Connection: [/93.43.232.92:65342|FatalCrasher] <-> InitialHandler [14:50:19] [epollEventLoopGroup-3-2/ERROR]: [Protocolize] Protocol version: 47 [14:50:19] [epollEventLoopGroup-3-2/ERROR]: io.netty.handler.codec.DecoderException: net.md_5.bungee.protocol.BadPacketException: Protocolize is unable to read packet dev.simplix.protocolize.data.packets.BlockPlacement at protocol version 47 in direction TO_SERVER [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.handler.codec.MessageToMessageDecoder.channelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.handler.codec.MessageToMessageDecoder.channelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.handler.codec.ByteToMessageDecoder.callDecode(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.handler.codec.ByteToMessageDecoder.channelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.DefaultChannelPipeline.fireChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.epoll.EpollEventLoop.processReady(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.epoll.EpollEventLoop.run(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.util.internal.ThreadExecutorMap$2.run(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.util.concurrent.FastThreadLocalRunnable.run(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at java.base/java.lang.Thread.run(Thread.java:833) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: Caused by: net.md_5.bungee.protocol.BadPacketException: Protocolize is unable to read packet dev.simplix.protocolize.data.packets.BlockPlacement at protocol version 47 in direction TO_SERVER [14:50:19] [epollEventLoopGroup-3-2/ERROR]: Caused by: java.lang.IndexOutOfBoundsException: readerIndex(1) + length(8) exceeds writerIndex(1): PooledSlicedByteBuf(ridx: 1, widx: 1, cap: 1/1, unwrapped: PooledUnsafeDirectByteBuf(ridx: 3, widx: 7, cap: 64)) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.buffer.AbstractByteBuf.checkReadableBytes0(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.buffer.AbstractByteBuf.readLong(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at dev.simplix.protocolize.data.util.BlockPositionSerializer.read(BlockPositionSerializer.java:30) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at dev.simplix.protocolize.data.packets.BlockPlacement.read(BlockPlacement.java:71) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at dev.simplix.protocolize.bungee.packet.BungeeCordProtocolizePacket.read(BungeeCordProtocolizePacket.java:48) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at net.md_5.bungee.protocol.DefinedPacket.read0(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at net.md_5.bungee.protocol.MinecraftDecoder.decode(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at net.md_5.bungee.protocol.MinecraftDecoder.decode(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.handler.codec.MessageToMessageDecoder.channelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.handler.codec.MessageToMessageDecoder.channelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.handler.codec.ByteToMessageDecoder.callDecode(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.handler.codec.ByteToMessageDecoder.channelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.DefaultChannelPipeline.fireChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.epoll.EpollEventLoop.processReady(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.epoll.EpollEventLoop.run(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.util.internal.ThreadExecutorMap$2.run(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.util.concurrent.FastThreadLocalRunnable.run(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at java.base/java.lang.Thread.run(Thread.java:833) [14:50:19] [epollEventLoopGroup-3-2/ERROR] [dev.simplix.protocolize.api.util.DebugUtil]: Unable to write dump file Fri-Feb-10-14:50:19-CET-2023.zip java.io.IOException: Stream closed at java.util.zip.ZipOutputStream.ensureOpen(ZipOutputStream.java:97) ~[?:?] at java.util.zip.ZipOutputStream.closeEntry(ZipOutputStream.java:261) ~[?:?] at dev.simplix.protocolize.api.util.DebugUtil.writeDump(DebugUtil.java:45) ~[?:?] at dev.simplix.protocolize.bungee.packet.BungeeCordProtocolizePacket.read(BungeeCordProtocolizePacket.java:57) ~[?:?] at net.md_5.bungee.protocol.DefinedPacket.read0(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at net.md_5.bungee.protocol.MinecraftDecoder.decode(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at net.md_5.bungee.protocol.MinecraftDecoder.decode(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.handler.codec.ByteToMessageDecoder.callDecode(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.handler.codec.ByteToMessageDecoder.channelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.channel.epoll.EpollEventLoop.processReady(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.channel.epoll.EpollEventLoop.run(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.util.internal.ThreadExecutorMap$2.run(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.util.concurrent.FastThreadLocalRunnable.run(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at java.lang.Thread.run(Thread.java:833) [?:?] [14:50:19] [epollEventLoopGroup-3-2/ERROR]: [Protocolize] === EXCEPTION CAUGHT IN DECODER === [14:50:19] [epollEventLoopGroup-3-2/ERROR]: [Protocolize] Protocolize 2.2.2:456 [14:50:19] [epollEventLoopGroup-3-2/ERROR]: [Protocolize] Stream Direction: UPSTREAM [14:50:19] [epollEventLoopGroup-3-2/ERROR]: [Protocolize] Connection: [/93.43.232.92:65342|FatalCrasher] <-> InitialHandler [14:50:19] [epollEventLoopGroup-3-2/ERROR]: [Protocolize] Protocol version: 47 [14:50:19] [epollEventLoopGroup-3-2/ERROR]: io.netty.handler.codec.DecoderException: net.md_5.bungee.protocol.BadPacketException: Protocolize is unable to read packet dev.simplix.protocolize.data.packets.BlockPlacement at protocol version 47 in direction TO_SERVER [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.handler.codec.MessageToMessageDecoder.channelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.handler.codec.MessageToMessageDecoder.channelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.handler.codec.ByteToMessageDecoder.callDecode(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.handler.codec.ByteToMessageDecoder.channelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.DefaultChannelPipeline.fireChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.epoll.EpollEventLoop.processReady(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.epoll.EpollEventLoop.run(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.util.internal.ThreadExecutorMap$2.run(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.util.concurrent.FastThreadLocalRunnable.run(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at java.base/java.lang.Thread.run(Thread.java:833) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: Caused by: net.md_5.bungee.protocol.BadPacketException: Protocolize is unable to read packet dev.simplix.protocolize.data.packets.BlockPlacement at protocol version 47 in direction TO_SERVER [14:50:19] [epollEventLoopGroup-3-2/ERROR]: Caused by: java.lang.IndexOutOfBoundsException: readerIndex(1) + length(8) exceeds writerIndex(1): PooledSlicedByteBuf(ridx: 1, widx: 1, cap: 1/1, unwrapped: PooledUnsafeDirectByteBuf(ridx: 3, widx: 64, cap: 64)) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.buffer.AbstractByteBuf.checkReadableBytes0(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.buffer.AbstractByteBuf.readLong(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at dev.simplix.protocolize.data.util.BlockPositionSerializer.read(BlockPositionSerializer.java:30) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at dev.simplix.protocolize.data.packets.BlockPlacement.read(BlockPlacement.java:71) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at dev.simplix.protocolize.bungee.packet.BungeeCordProtocolizePacket.read(BungeeCordProtocolizePacket.java:48) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at net.md_5.bungee.protocol.DefinedPacket.read0(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at net.md_5.bungee.protocol.MinecraftDecoder.decode(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at net.md_5.bungee.protocol.MinecraftDecoder.decode(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.handler.codec.MessageToMessageDecoder.channelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.handler.codec.MessageToMessageDecoder.channelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.handler.codec.ByteToMessageDecoder.callDecode(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.handler.codec.ByteToMessageDecoder.channelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.DefaultChannelPipeline.fireChannelRead(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.epoll.EpollEventLoop.processReady(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.channel.epoll.EpollEventLoop.run(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.util.internal.ThreadExecutorMap$2.run(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at io.netty.util.concurrent.FastThreadLocalRunnable.run(Unknown Source) [14:50:19] [epollEventLoopGroup-3-2/ERROR]: at java.base/java.lang.Thread.run(Thread.java:833) [14:50:19] [epollEventLoopGroup-3-2/ERROR] [dev.simplix.protocolize.api.util.DebugUtil]: Unable to write dump file Fri-Feb-10-14:50:19-CET-2023.zip java.io.IOException: Stream closed at java.util.zip.ZipOutputStream.ensureOpen(ZipOutputStream.java:97) ~[?:?] at java.util.zip.ZipOutputStream.closeEntry(ZipOutputStream.java:261) ~[?:?] at dev.simplix.protocolize.api.util.DebugUtil.writeDump(DebugUtil.java:45) ~[?:?] at dev.simplix.protocolize.bungee.packet.BungeeCordProtocolizePacket.read(BungeeCordProtocolizePacket.java:57) ~[?:?] at net.md_5.bungee.protocol.DefinedPacket.read0(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at net.md_5.bungee.protocol.MinecraftDecoder.decode(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at net.md_5.bungee.protocol.MinecraftDecoder.decode(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.handler.codec.ByteToMessageDecoder.callDecode(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.handler.codec.ByteToMessageDecoder.channelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.channel.epoll.EpollEventLoop.processReady(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.channel.epoll.EpollEventLoop.run(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.util.internal.ThreadExecutorMap$2.run(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at io.netty.util.concurrent.FastThreadLocalRunnable.run(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:1eca455:unknown] at java.lang.Thread.run(Thread.java:833) [?:?]

NaTorOG commented 1 year ago

https://github.com/Exceptionflug/protocolize/blob/master/protocolize-bungeecord/src/main/java/dev/simplix/protocolize/bungee/netty/ProtocolizeDecoderChannelHandler.java#L123 GitHub protocolize/ProtocolizeDecoderChannelHandler.java at master · Excep... A lightweight BungeeCord protocol framework supporting items - protocolize/ProtocolizeDecoderChannelHandler.java at master · Exceptionflug/protocolize

This is the biggest problem He should be firing ctx.fireExceptionCaught(cause); Otherwise XCord, or any other software isn't aware there's an exception

Instead of print, it should be 'ctx.fireExceptionCaught(cause);' I mean the whole exception handling is bad, He needs to hand it over, not return Return = not forwarding the exception down the pipeline

Exceptionflug commented 1 year ago

Hey, this is not bad exception handling since this is intended. Not delegating the exception prevents the client from being kicked for non critical exceptions (e.g. exceptions in packet listeners). Additionally XCord is not officially supported by protocolize at all. So there is not an issue here. I will keep in mind to search for a better solution then this, but this is not number one priority at the moment.

bob7l commented 1 year ago

Hey, this is not bad exception handling since this is intended. Not delegating the exception prevents the client from being kicked for non critical exceptions (e.g. exceptions in packet listeners). Additionally XCord is not officially supported by protocolize at all. So there is not an issue here. I will keep in mind to search for a better solution then this, but this is not number one priority at the moment.

The problem is you've created a major exploit by not passing down decoder errors. Now people with ill intent can overload the server by just sending malformed packets, which will be printed to console instead of being handled properly by Bungee/etc.

A solution could be to just catch listener errors, and wrap them in your own exception class, then catch that - while firing all the other exceptions down the pipeline.

Very critical issue that you have the opportunity to take care of before it becomes widespread and targeted.

Exceptionflug commented 1 year ago

Wait a minute. You are saying that sending malformed packets does not disconnect the client? Then this is definetely a bug. As you correctly stated the decoder error should not get passed down if it is produced by a packet listener. Decoding packets should still result in a disconnect. I will take a look at it.