🇰🇷 한글 설명
Laravel-Mediable 7.0.0 미만 버전에서 파일 업로드 취약점이 발견되었습니다. 공격자가 shell.php.jpg와 같이 이중 확장자를 가진 파일을 업로드하면, 서버 설정 오류로 인해 PHP 파일로 실행되어 원격 코드 실행(RCE)이 가능해집니다.
💡 쉬운 설명
파일 이름에 .php와 .jpg를 동시에 써서 보안 검사를 속이는 방식입니다. 서버가 이 파일을 이미지로 착각해 저장하지만, 실제로는 해커의 명령어를 실행하는 프로그램으로 작동하게 됩니다.
🇺🇸 원문 (English)
Laravel-Mediable before 7.0.0 contains a file upload vulnerability that allows unauthenticated attackers to achieve remote code execution by uploading a file with an embedded PHP extension disguised within a double extension such as shell.php.jpg. The PATHINFO_FILENAME extraction preserves the inner .php extension in the base name, and on misconfigured Apache or nginx servers that execute any filename containing .php as PHP, the stored file is interpreted as executable code while all MIME type, extension, and aggregate type validation checks pass due to the outer .jpg extension.
📍 영향받는 시스템
Laravel-Mediable version < 7.0.0
⚔️ 공격 벡터
이중 확장자를 이용한 악성 PHP 파일 업로드 및 서버의 잘못된 파일 실행 설정 악용
🛡️ 대응 방법
Laravel-Mediable를 7.0.0 이상의 최신 버전으로 업데이트하고, 서버의 파일 실행 설정을 강화하십시오.
🔧 검증 코드
출력된 버전 정보가 7.0.0 미만인 경우 해당 취약점에 노출된 상태입니다.
composer show mediable | grep -E 'versions'