GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||
GeezerVison is showing github.com — Discard input after a failed Socks5PrivateAuthRequestDecoder decode by Raghuvardhan-Reddy78 · Pull Request #17945 · netty/netty Conversation
Contributor
Motivation:
All the other socksx decoders, including Modification: Track INIT / SUCCESS / FAILURE the same way Result: Nothing received after a failed private authentication request reaches the next handler, and the decoder no longer throws on that path.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsMotivation: `Socks5PrivateAuthRequestDecoder` uses one `decoded` flag for both outcomes. When the sub-negotiation is rejected, `fail()` sets it without consuming any input, so `ByteToMessageDecoder` raises "decode() did not read anything but decoded a message" and, on the next read, the decoder is in its post-success pass-through mode. The rejected bytes and everything the client sends afterwards are then forwarded to the next handler as raw buffers, the same as after a successful authentication: ``` 02 03 61 62 63 -> failed DefaultSocks5PrivateAuthRequest 47 45 54 -> ByteBuf 0203616263474554 ``` All the other socksx decoders, including `Socks5PrivateAuthResponseDecoder` and `Socks5PasswordAuthRequestDecoder`, discard input once decoding failed. Modification: Track INIT / SUCCESS / FAILURE like `Socks5PrivateAuthResponseDecoder`. On failure skip the remaining input, and drop anything received later. Add `Socks5PrivateAuthRequestDecoderTest`. Result: Nothing received after a failed private authentication request reaches the next handler.
|
There was an error while loading. Please reload this page.
🚨 All tests passed but jobs failed 🚨Failed Jobs without Test Failures❌ Auto-port to 4.1 / Auto-porting to 4.1 🏷️ Commit: 7abefdc Rerun ControlsClick the checkbox to trigger a rerun:
Learn more about TestLens at testlens.app/docs. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
gentle ping |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Auto-port PR for 5.0: #18320 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Could not create auto-port PR. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…ecoder decode (#18320) Auto-port of #17945 to 5.0 Cherry-picked commit: be3e8d4 --- Motivation: `Socks5PrivateAuthRequestDecoder` is the server-side decoder for the client's private-method sub-negotiation, so it parses untrusted input. It uses one `decoded` flag for both outcomes. When the request is rejected (for example a wrong version byte), `fail()` sets that flag without consuming any input. `ByteToMessageDecoder` then raises "decode() did not read anything but decoded a message", and on the next read the decoder is in its post-success pass-through mode. The rejected bytes and everything the client sends afterwards go to the next handler as raw buffers, the same as after a successful authentication: ``` 02 03 61 62 63 -> failed DefaultSocks5PrivateAuthRequest 47 45 54 -> ByteBuf 0203616263474554 ``` All the other socksx decoders, including `Socks5PrivateAuthResponseDecoder` and `Socks5PasswordAuthRequestDecoder`, discard input once decoding has failed. Modification: Track INIT / SUCCESS / FAILURE the same way `Socks5PrivateAuthResponseDecoder` does. On failure, skip the remaining input and drop anything received later. Add `Socks5PrivateAuthRequestDecoderTest`. Its failure case errors on the current code and passes with this change. Result: Nothing received after a failed private authentication request reaches the next handler, and the decoder no longer throws on that path. --------- Co-authored-by: Raghuvardhan-Reddy78 <[email protected]> Co-authored-by: Norman Maurer <[email protected]>
|
private auth feature is not in 4.1 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.