🔍 CVE-2026-114623

6.5
CVSS Score
MEDIUM
2026-10-23
2026-10-23 16:28
✅ 완료

🇰🇷 한글 설명

baserCMS의 선택적 플러그인 BcThemeFile 관리자 화면에서, 테마 파일 조회 권한만 가진 인증된 사용자가 ../ 경로 세그먼트를 이용해 테마 디렉터리 밖의 파일을 읽을 수 있는 경로 순회 취약점입니다. 경로 검증이 누락되어 .php, .css, .js, .ctp 파일 내용이 노출되며, MySQL/PostgreSQL 환경에서는 DB 자격 증명이 유출될 수 있습니다. 5.3.2 및 5.4.2 버전에서 패치되었습니다.

💡 쉬운 설명

테마 파일을 볼 수 있는 권한을 가진 로그인 사용자가 허용되지 않은 폴더의 소스 파일 내용을 볼 수 있는 문제입니다. 데이터베이스 비밀번호 같은 민감한 설정이 노출될 수 있습니다.

🇺🇸 원문 (English)

baserCMS is a website development framework. In versions 5.0.0 before 5.3.2 and 5.4.0 before 5.4.2, an authenticated user with only theme-file view permission can traverse outside the theme directory through the optional BcThemeFile plugin's Admin web screen. ThemeFilesController::parseArgs() constructs a path containing literal ../ segments, and the view and edit actions pass it to ThemeFilesService::get() without containment validation. Authorization checks the unresolved request path, after which ThemeFile::_getContents() reads the resolved file and exposes its contents in the form textarea. A client must preserve the dot segments rather than normalize them away. Readable files are limited to .php, .css, .js, and .ctp; this can disclose application source and config/install.php database credentials in MySQL or PostgreSQL deployments, while SQLite configurations have an empty database password. Reading config/app_local.php may expose the Security.salt fallback, which is effective only when not overridden by environment configuration. The flaw does not disclose .env, .pem, or SQLite .db files, does not itself permit file writes or code execution, and does not affect the separate API getFullpath() route. The plugin is disabled by default and unauthenticated requests are not sufficient. This issue has been patched in versions 5.3.2 and 5.4.2.

📍 영향받는 시스템

baserCMS 5.0.0 이상 5.3.2 미만, 5.4.0 이상 5.4.2 미만 (BcThemeFile 플러그인 활성화 시)

⚔️ 공격 벡터

테마 파일 조회 권한을 가진 인증 사용자가 관리자 화면의 파일 조회 요청에 ../ 경로를 포함시켜 테마 디렉터리 외부의 .php/.css/.js/.ctp 파일을 읽음

🛡️ 대응 방법

baserCMS를 5.3.2 또는 5.4.2 이상으로 업그레이드하고, 불필요한 BcThemeFile 플러그인은 비활성화하며, DB 비밀번호 등 노출된 자격 증명을 교체

🔧 검증 코드

출력된 버전이 5.3.2 미만(5.0.x~5.3.1) 또는 5.4.0~5.4.1이면 취약하며, 5.3.2 이상 또는 5.4.2 이상이면 패치된 버전입니다.

Shell / Script
grep -rE "baserCMS|version" /var/www/html/VERSION.txt 2>/dev/null || cat $(find / -name VERSION.txt -path '*basercms*' 2>/dev/null | head -1)

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

💻 영향받는 소프트웨어

MySQL