🇰🇷 한글 설명
Kirby CMS의 미디어 핸들러가 파일 시스템 격리 검사를 불완전하게 수행하여 발생하는 취약점입니다. 공격자는 경로 접두사가 일치하는 인접 디렉토리에 접근하여 썸네일 생성 기능을 통해 내부 파일이나 백업 데이터에 접근할 수 있습니다.
💡 쉬운 설명
웹사이트의 이미지 처리 기능이 보안 검사를 제대로 하지 않아, 원래 허용되지 않은 옆 동네 폴더의 파일까지 몰래 들여다볼 수 있는 문제입니다. 이를 통해 중요한 백업 파일이나 다른 사이트의 정보를 훔쳐볼 위험이 있습니다.
🇺🇸 원문 (English)
Kirby is an open-source content management system. Prior to 4.9.5 and 5.5.2, depending on the release line, Kirby's media handler used incomplete filesystem containment checks in src/Filesystem/Dir.php and src/Filesystem/F.php through Kirby\Filesystem\Dir::realpath() and Kirby\Filesystem\F::realpath(). The checks accepted a sibling directory whose path shared the intended root's string prefix, such as /var/www/site2 next to /var/www/site, because they did not require an exact match or a DIRECTORY_SEPARATOR boundary. A remote attacker could use Kirby\Cms\Media::thumb() to create and access thumbnails from image files in a PHP-readable sibling directory when that directory contained a valid .json thumbnail job file, potentially exposing staging sites, backups, or other internal sites and deleting the job file during processing. This issue is fixed in versions 4.9.5 and 5.5.2.
📍 영향받는 시스템
Kirby CMS 4.9.5 미만 및 5.5.2 미만 버전
⚔️ 공격 벡터
Kirby\Cms\Media::thumb() 함수를 이용한 경로 조작을 통한 인접 디렉토리 접근
🛡️ 대응 방법
Kirby CMS를 4.9.5 또는 5.5.2 이상의 최신 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 버전 정보가 4.9.5 또는 5.5.2보다 낮은지 확인하십시오.
composer show kirby/core | grep 'versions'