🇰🇷 한글 설명
baserCMS는 웹사이트 개발 프레임워크입니다. 5.0.0-beta1 이후 5.3.2 및 5.4.2 이전 버전에서 PermissionGroupsService::build()는 플러그인의 config/permission.php 파일이 없을 경우 모든 비관리자 그룹에 대해 /baser/<prefix>/<plugin>/* 경로에 대한 와일드카드 허용 규칙을 생성합니다. BcCustomContent 플러그인에는 해당 파일이 없어, 관리자가 설치하면 기본 operators 그룹이 문서 루트 아래에서 임의의 PHP 코드를 저장하고 실행할 수 있습니다. 5.3.2 및 5.4.2 버전에서 수정되었습니다.
💡 쉬운 설명
웹사이트 관리 프로그램의 권한 설정 오류로, 일반 운영자 계정이 본来 접근하면 안 되는 기능까지 사용할 수 있게 됩니다. 이를 악용하면 공격자가 서버에서 임의의 프로그램을 실행할 수 있습니다.
🇺🇸 원문 (English)
baserCMS is a website development framework. Starting in version 5.0.0-beta1 and prior to versions 5.3.2 and 5.4.2, `PermissionGroupsService::build()` reads a plugin's `config/permission.php` to decide what each user group may reach. When that file is absent it writes a wildcard allow rule instead: `url` `/baser/<prefix>/<plugin>/*`, `method` `*`, `auth` true, for every non-admin group. BcCustomContent has no such file in any release. After an administrator installs it, the default `operators` group can store and execute arbitrary PHP under the document root. Versions 5.3.2 and 5.4.2 patch the issue.
📍 영향받는 시스템
baserCMS 5.0.0-beta1 이상 5.3.2 미만, 5.4.2 미만 버전 (BcCustomContent 플러그인 설치 시)
⚔️ 공격 벡터
operators 그룹 권한을 가진 사용자가 BcCustomContent 경로를 통해 PHP 파일을 업로드하고 웹에서 실행
🛡️ 대응 방법
baserCMS 5.3.2 또는 5.4.2 이상으로 업그레이드하고, 불필요한 BcCustomContent 플러그인을 제거하며 operators 그룹 권한을 점검
🔧 검증 코드
출력된 버전이 5.3.2 또는 5.4.2 미만이면 취약하므로 업그레이드가 필요하며, 결과가 없으면 경로를 확인해야 합니다.
grep -r "version" /path/to/baserCMS/config/version.php 2>/dev/null | head -5