🇰🇷 한글 설명
Strapi 5.45.0 미만 버전의 users-permissions 플러그인에서 rate-limit 미들웨어가 요청 본문의 email 필드를 기반으로 제한 키를 생성하는 취약점이 발견되었습니다. 공격자는 이메일 필드에 임의의 값을 삽입하여 IP 기반 속도 제한을 우회함으로써 무차별 대입 공격(Brute-force)을 수행할 수 있습니다. 패치 버전에서는 허용된 경로 외에는 이메일 필드를 키 생성에서 제외하여 보안을 강화했습니다.
💡 쉬운 설명
로그인 시도 횟수를 제한하는 보안 장치가 공격자가 가짜 이메일 정보를 계속 바꿔 보내는 것을 막지 못하는 문제입니다. 이로 인해 해커가 비밀번호를 맞출 때까지 무수히 많은 로그인을 시도할 수 있습니다.
🇺🇸 원문 (English)
Strapi is an open source headless content management system. In Strapi versions prior to 5.45.0, the rate-limit middleware in the users-permissions plugin derived its rate-limit key in part from `ctx.request.body.email`, including on routes whose body schema does not contain an `email` field (`/auth/local`, `/auth/reset-password`, `/auth/change-password`). An unauthenticated attacker could include an arbitrary `email` value in the request body to obtain a fresh rate-limit key per request, effectively bypassing per-IP throttling on those routes and enabling high-volume credential brute-force, password-reset code brute-force, and credential-stuffing attempts. The rate-limit key was constructed as `${userIdentifier}:${requestPath}:${ctx.request.ip}`, where `userIdentifier = ctx.request.body.email`. On routes that legitimately use email as their identifier (e.g. `/auth/forgot-password`, `/auth/local/register`), this scoping is correct. On routes that use a different identifier (`identifier` for login, `code` for password reset, `currentPassword` for password change), the email field was not part of the route contract, but the middleware still incorporated it into the key, allowing a caller to rotate the value and obtain a unique key on every request. The patch in version 5.45.0 maintains an allow-list of routes that legitimately key on the email field and excludes that key component on every other route the middleware is mounted on. OAuth callback paths (`/connect/*`) are treated identifier-less. On routes outside the allow-list, the middleware now falls back to a fixed identifier-less key, ensuring per-IP throttling remains effective even when the request body is attacker-controlled.
📍 영향받는 시스템
Strapi versions prior to 5.45.0 (users-permissions plugin)
⚔️ 공격 벡터
HTTP 요청 본문에 임의의 email 필드를 포함시켜 rate-limit 키를 매번 변경함으로써 속도 제한을 우회함
🛡️ 대응 방법
Strapi를 5.45.0 버전 이상으로 업데이트하십시오.
🔧 검증 코드
출력된 Strapi 버전이 5.45.0 미만인지 확인하십시오.
npm list strapi__strapi || npm list @strapi/strapi