🇰🇷 한글 설명
Kirby CMS 5.3.0 이상 5.4.1 미만 버전에서 사용자 ID 검증 미흡으로 인한 경로 탐색 취약점이 발견되었습니다. 공격자는 이를 통해 임의의 PHP 파일을 포함시키거나 서버 내 디렉토리 존재 여부를 조사하여 시스템 정보를 탈취할 수 있습니다.
💡 쉬운 설명
사용자 아이디를 확인하는 과정에서 보안 허점이 있어, 공격자가 서버의 다른 폴더에 접근하거나 특정 파일을 강제로 실행할 수 있는 문제입니다. 이를 통해 서버의 내부 구조가 노출되거나 악성 코드가 실행될 위험이 있습니다.
🇺🇸 원문 (English)
Kirby is an open-source content management system. In versions 5.3.0 and above but prior to 5.4.1, Kirby did not correctly validate the provided user ID, resulting in a path traversal vulnerability. Version 5.3.0 introduced a performance improvement to the Users collection that loaded user objects lazily when first needed. Users were queried by their ID, which was then used to locate the corresponding account directory under site/accounts. This affected the authentication API (accessible to unauthenticated requests), the users API (accessible only to authenticated users), and any other place that uses $users->find() to look up an individual user by a request-provided email or ID. As a result, an attacker could trigger arbitrary PHP file inclusion of files named index.php (for example, the main PHP files of plugins), the impact of which depends on the logic those files contain. It also allowed probing for the existence of arbitrary directories on the server, letting attackers fingerprint the server and site setup, including installed plugins and the content structure. This issue has been fixed in version 5.4.1.
📍 영향받는 시스템
Kirby CMS 5.3.0 ~ 5.4.0
⚔️ 공격 벡터
인증되지 않은 상태에서 API를 통해 조작된 사용자 ID를 전달하여 경로 탐색 수행
🛡️ 대응 방법
Kirby CMS를 최신 버전인 5.4.1 이상으로 업데이트하십시오.
🔧 검증 코드
출력된 버전이 5.4.1 미만(5.3.0 이상 포함)이면 취약한 상태입니다.
php -r 'echo "Kirby Version: " . (defined("KIRBY_VERSION") ? KIRBY_VERSION : "Not Defined");' 2>/dev/null