From 4e42d0f29745b0564aef395193111c73a915563d Mon Sep 17 00:00:00 2001 From: Jon Shallow Date: Tue, 30 Dec 2025 10:54:33 +0000 Subject: [PATCH] Proxy: Fix Reverse proxy --- ChangeLog | 1 + src/coap_proxy.c | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index ebce6e3e..7847d870 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,7 @@ * Fixes the following CVEs CVE-2025-59391 + CVE-2025-65493 CVE-2025-65494 CVE-2025-65495 CVE-2025-65496 diff --git a/src/coap_proxy.c b/src/coap_proxy.c index deded23d..61daa281 100644 --- a/src/coap_proxy.c +++ b/src/coap_proxy.c @@ -221,13 +221,13 @@ coap_proxy_get_session(coap_session_t *session, const coap_pdu_t *request, switch (server_list->type) { case COAP_PROXY_REVERSE: - case COAP_PROXY_FORWARD: case COAP_PROXY_DIRECT: + case COAP_PROXY_DIRECT_STRIP: + case COAP_PROXY_REVERSE_STRIP: /* Nothing else needs to be done */ break; - case COAP_PROXY_REVERSE_STRIP: + case COAP_PROXY_FORWARD: case COAP_PROXY_FORWARD_STRIP: - case COAP_PROXY_DIRECT_STRIP: /* Need to get actual server from CoAP options */ /* * See if Proxy-Scheme