🇰🇷 한글 설명
Kirby CMS 4.9.0 및 5.4.0 이전 버전에서 REST API를 통해 새 페이지를 생성할 때 isDraft 플래그를 재정의할 수 있어, pages.create 권한을 가진 인증된 공격자가 편집 승인 절차를 우회하고 바로 게시된 페이지를 만들 수 있습니다. 또한 Options 로직이 OptionsQuery/OptionsApi 소스의 쿼리를 이중 해석하던 문제도 함께 수정되었습니다.
💡 쉬운 설명
글을 새로 만들 때 임시저장 상태를 거치지 않고 바로 공개할 수 있는 취약점입니다. 글쓰기 권한이 있는 사용자가 승인 과정을 건너뛸 수 있습니다.
🇺🇸 원문 (English)
Kirby is an open-source content management system. Prior to versions 4.9.0 and 5.4.0, Kirby's user permissions control which user role is allowed to perform specific actions to content models in the CMS. These permissions are defined for each role in the user blueprint (`site/blueprints/users/...`). It is also possible to customize the permissions for each target model in the model blueprints (such as in `site/blueprints/pages/...`) using the `options` feature. The permissions and options together control the authorization of user actions. For pages, Kirby provides the `pages.create` and `pages.changeStatus` permissions (among others). In affected releases, Kirby checked these permissions independently and only for the respective action. However the `changeStatus` permission didn't take effect on page creation. New pages are created as drafts by default and need to be published by changing the page status of an existing page draft. This is ensured when the page is created via the Kirby Panel. However the REST API allows to override the `isDraft` flag when creating a new page. This allowed authenticated attackers with the `pages.create` permission to immediately create published pages, bypassing the normal editorial workflow. The problem has been patched in Kirby 4.9.0 and Kirby 5.4.0. Kirby has updated the `Options` logic to no longer double-resolve queries in option values coming from `OptionsQuery` or `OptionsApi` sources. Kirby now only resolves queries that are directly configured in the blueprints.
📍 영향받는 시스템
Kirby CMS 4.9.0 미만 및 5.4.0 미만 버전
⚔️ 공격 벡터
pages.create 권한을 가진 인증된 사용자가 REST API 요청에서 isDraft 값을 false로 설정해 승인 없이 공개 페이지를 생성
🛡️ 대응 방법
Kirby를 4.9.0 이상 또는 5.4.0 이상으로 업데이트
🔧 검증 코드
출력된 버전이 4.9.0 이상(4.x 계열) 또는 5.4.0 이상(5.x 계열)이면 패치된 것이며, 그보다 낮으면 취약합니다.
composer show getkirby/cms 2>/dev/null | grep -E '^versions'