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 — Netty RtspDecoder Method-Token Smuggling via Trailing Control Byte Netty RtspDecoder Method-Token Smuggling via Trailing Control Byte
Moderate
PackageAffected versions>=4.2.0.Final, <=4.2.17.Final
<=4.1.137.Final
Patched versions4.2.18.Final
4.1.138.Final
DescriptionSummary
This is the same root cause as #16723 and #16971, in a sibling that those fixes did not reach. The fix for ReproductionMinimal wire-level reproduction Send the following raw bytes to any Netty-based RTSP server using RtspDecoder: The Expected (correct) behavior: decode failure, decoderResult().isSuccess() == false. Confirmed via EmbeddedChannel test byte[] data = ("PLAY\u0000 rtsp://172.20.184.218:554/stream RTSP/1.0\r\n" + "CSeq: 1\r\n\r\n") .getBytes(StandardCharsets.ISO_8859_1); EmbeddedChannel ch = new EmbeddedChannel(new RtspDecoder()); ch.writeInbound(Unpooled.wrappedBuffer(data)); HttpObject res = ch.readInbound(); // res instanceof HttpRequest → true // request.decoderResult().isSuccess() → TRUE (should be false) // request.method() == RtspMethods.PLAY → TRUE (same reference — cache hit) Run against netty/netty branch 4.2 at HEAD 775ad71: DEBUG decoderResult = success Root causeThe vulnerable path in RtspMethods.valueOf() (line 127, RtspMethods.java): public static HttpMethod valueOf(String name) { name = checkNonEmptyAfterTrim(name, "name").toUpperCase(Locale.US); HttpMethod result = methodMap.get(name); if (result != null) { return result; // <-- cache hit; hardened HttpMethod constructor never runs } else { return HttpMethod.valueOf(name); // hardened path — too late for cached names } }
public static String checkNonEmptyAfterTrim(final String value, final String name) { String trimmed = checkNotNull(value, name).trim(); return checkNonEmpty(trimmed, name); }
Why The base decoder's All ten cached RTSP method names are affected by the trailing-edge placement: ImpactDirect: method-based access control bypassAny Netty-based RTSP server or proxy that makes authorization or routing decisions based on Proxy launderingWhen a Netty-based RTSP proxy receives Not affected
HTTP/2 and HTTP/3 pipelines: independent header validation, not affected. Keep-alive connections / pipelined requests: the the second message is rejected Proposed fixMirror the approach used in Test suite (already passing/failing against current 4.2 HEAD)Four unit-level tests in Unit level ( @Test void valueOfRejectsNulPaddedCachedMethodName() { assertThrows(IllegalArgumentException.class, () -> RtspMethods.valueOf("\u0000PLAY")); } @Test void valueOfRejectsNulPaddedCachedMethodNameTrailing() { assertThrows(IllegalArgumentException.class, () -> RtspMethods.valueOf("SETUP\u0000")); } @Test void valueOfRejectsCarriageReturnPaddedCachedMethodName() { assertThrows(IllegalArgumentException.class, () -> RtspMethods.valueOf("\rTEARDOWN")); } @Test void valueOfDoesNotReturnCachedConstantForControlBytePaddedName() { try { HttpMethod result = RtspMethods.valueOf("\u0000PLAY"); assertNotSame(RtspMethods.PLAY, result); } catch (IllegalArgumentException expected) { // Correct outcome. } } Wire level ( @Test public void testRejectsTrailingNulInMethodName() { byte[] data = ("PLAY\u0000 rtsp://172.20.184.218:554/stream RTSP/1.0\r\n" + "CSeq: 1\r\n\r\n") .getBytes(StandardCharsets.ISO_8859_1); EmbeddedChannel ch = new EmbeddedChannel(new RtspDecoder()); ch.writeInbound(Unpooled.wrappedBuffer(data)); HttpObject res = ch.readInbound(); assertTrue(res instanceof HttpRequest); assertFalse(((HttpRequest) res).decoderResult().isSuccess()); ch.finishAndReleaseAll(); } Discovery contextFound by pattern-mining recent fix commits on the 4.2 branch: #16723 and #16971 both fixed the same I am happy to provide the full patch file, the complete test suite, or additional technical detail on request. I have not disclosed this finding publicly and will follow your 90-day coordinated disclosure timeline. Severity
Moderate
CVSS v4 base metricsExploitability Metrics
Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User interaction
None
Vulnerable System Impact Metrics
Confidentiality
Low
Integrity
Low
Availability
None
Subsequent System Impact Metrics
Confidentiality
None
Integrity
None
Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
CVE ID
CVE-2026-93565
WeaknessesWeakness CWE-20Improper Input ValidationThe product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. Learn more on MITRE.Weakness CWE-180Incorrect Behavior Order: Validate Before CanonicalizeThe product validates input before it is canonicalized. Learn more on MITRE.Credits
|
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |