"6fbaa6bb67ccd2cc78afb983a570d34387dda870": "CAMEL-24655: camel-coap - guard case-insensitive header filtering, backport to camel-4.18.x (#26217)\n\nCAMEL-24655: camel-coap - guard case-insensitive header filtering\n\nThe CoAP consumer maps the URI query parameters of an incoming request\ninto Exchange headers, running each through the endpoint\nHeaderFilterStrategy first. The default strategy filters names starting\nwith Camel/camel case-insensitively, so a remote peer cannot set Camel\ninternal headers that steer downstream processing. That behaviour was\ncorrect but untested, so a refactoring of the consumer could silently\ndrop it - the exact regression the CVE-2025-27636 family was about.\n\nAdds CoAPHeaderInjectionTest: sends requests carrying a Camel internal\nheader name as a URI query parameter in four casings and asserts it is\nnever mapped onto the Exchange, while an ordinary query parameter still\nis. Verified to fail when the filter call in CamelCoapResource is\nremoved. Test-only; no production code is modified.\n\nBackport of #26208 to camel-4.18.x.\n\nOne adaptation was needed: CoAPTestSupport.PORT is a plain int on this\nbranch, not an AvailablePortFinder.Port, so the route uses PORT rather\nthan PORT.getPort(). Nothing else differs from the original.\n\n\n(cherry picked from commit e6e5621639a1e39540feb57d5f1b3687069ce565)\n\nSigned-off-by: Claus Ibsen <claus.ibsen@gmail.com>\nCo-authored-by: Andrea Cosentino <ancosen@gmail.com>\nCo-authored-by: Claude Opus 5 <noreply@anthropic.com>",
0 commit comments