توضیح (فارسی)
نقاط ضعف authentication نامناسب در component Apache Camel Undertow.
این مشکل در Apache Camel نسخهای 4.19.0 تا قبل از 4.22.3 و 4.23.0 تا قبل از 4.24.0 وجود دارد.
در نسخهای متأثر از component camel-undertow، WebSocket handler حالت اعتبارسنجی توکن OAuth (oauthProfile) را به اتصال به جای endpoint فردی scoped میکرد، در حالی که سایر بررسیهای security WebSocket آن (security provider، allowed roles و custom handlers) به ازای هر endpoint scoped شده بود.
وقتی یک مسیر WebSocket واحد در طول زمان توسط endpointها با پروفایلهای OAuth مختلف سرویس داده شود، یک اتصال که تحت پروفایل یک endpoint اعتبارسنجی شده است، میتواند برای endpoint دیگری که پروفایل آن هرگز اعتبارسنجی نکرده است، به عنوان OAuth-validated در نظر گرفته شود، که این یک authentication/authorization bypass توسط یک WebSocket peer نامعتبر است.
راه حل اعتبارسنجی OAuth را بر اساس URI هر endpoint scoped می کند تا یک اتصال تنها برای endpoint مشخصی که پروفایل آن اعتبارسنجی کرده است، معتبر تلقی شود.
به نسخه Apache Camel 4.24.0 ارتقا پیدا کنید که مشکل را برطرف می کند. کاربران در جریان انتشار 4.22.x LTS باید به نسخه 4.22.3 ارتقا یابند.
Original description (English)
Improper Authentication vulnerability in Apache Camel Undertow component.
This issue affects Apache Camel: from 4.19.0 before 4.22.3, from 4.23.0 before 4.24.0.
In affected versions of the camel-undertow component, the WebSocket handler scoped OAuth (oauthProfile) token-validation state to the connection rather than to the individual endpoint, while its other WebSocket security checks (security provider, allowed roles and custom handlers) were scoped per endpoint. When a single WebSocket path is served over time by endpoints configured with different OAuth profiles, a connection validated under one endpoint's profile could be treated as OAuth-validated for another endpoint whose profile never validated it, which is an authentication/authorization bypass by an untrusted WebSocket peer. The fix scopes OAuth validation per endpoint URI so a connection is only treated as valid for the specific endpoint whose profile validated it.
Upgrade to Apache Camel 4.24.0, which fixes the issue. Users on the 4.22.x LTS release stream should upgrade to 4.22.3.