Budibase to open-source'owa platforma low-code. Przed wersją 3.35.4 funkcje buildMatcherRegex() / matches() w packages/backend-core/src/middleware/matchers.ts kompilują wzorce tras do niezakotwiczonych wyrażeń regularnych i testują je względem ctx.request.url, które zawiera pełny ciąg zapytań. Middleware CSRF w Budibase Worker używa tego systemu dopasowywania, aby zdecydować, czy pominąć walidację tokenu CSRF. Niezauwierzytelniony atakujący może sfałszować żądania zmieniające stan z obcych źródeł wobec dowolnego endpointu Worker API, wstrzykując publiczny wzorzec trasy do ciągu zapytań, co powoduje, że middleware CSRF całkowicie pomija walidację tokenu. Umożliwia to działania takie jak wysyłanie zaproszeń administratora, modyfikowanie konfiguracji globalnej i zarządzanie użytkownikami bez ważnego tokenu CSRF. Podatność ta została naprawiona w wersji 3.35.4.
▸ Pokaż oryginał (EN)
Budibase is an open-source low-code platform. Prior to 3.35.4, the buildMatcherRegex() / matches() functions in packages/backend-core/src/middleware/matchers.ts route patterns are compiled into unanchored regular expressions and tested against ctx.request.url, which includes the full query string. The CSRF middleware in the Budibase Worker uses this matching system to decide whether to skip CSRF token validation. An unauthenticated attacker can forge state-changing cross-origin requests against any Worker API endpoint by injecting a public route pattern into the query string, causing the CSRF middleware to skip token validation entirely. This allows actions such as sending admin invites, modifying global configuration, and managing users without a valid CSRF token. This vulnerability is fixed in 3.35.4.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N