همهٔ گزارش‌ها
زیاد

Paths contain matrix variables bypass decorators

متن اصلی

نسخه‌های متأثر

نسخه‌های متأثر
<= 1.24.2
نسخهٔ اصلاح‌شده
1.24.3

بهره‌برداری

CVE-2023-38493

احتمال بهره‌برداری در ۳۰ روز آینده: 0.72%

FIRST EPSS · ۱۴۰۵/۰۸/۲۶

شرح آسیب‌پذیری

Impact

Spring supports Matrix variables. When Spring integration is used, Armeria calls Spring controllers via TomcatService or JettyService with the path that may contain matrix variables. In this situation, the Armeria decorators might not invoked because of the matrix variables. Let's see the following example:

// Spring controller
@GetMapping("/important/resources")
public String important() {...}

// Armeria decorator
ServerBuilder sb = ...
sb.decoratorUnder("/important/", authService);

If an attacker sends a request with /important;a=b/resources, the request would bypass the authrorizer

Patches
Workarounds

Users can add decorators using regex. e.g. "regex:^/important.*"

پیوندها