🇰🇷 한글 설명
Eric Gerdes Crafty Syntax Image Gallery (CSIG) 3.1g 이전의 newimage.php에서 인증된 사용자가 multipart/form-data POST로 .jpg 파일명과 ext=.php 매개변수를 조합하여 임의의 PHP 코드를 업로드 및 실행할 수 있는 파일 업로드 검증 우회 취약점입니다.
💡 쉬운 설명
사진 갤러리에서 파일 확장자 검증이 불충분해서 .php 파일을 업로드한 후 실행할 수 있습니다. 이를 통해 웹 서버 전체를 장악할 수 있습니다.
🇺🇸 원문 (English)
newimage.php in Eric Gerdes Crafty Syntax Image Gallery (CSIG) (aka PHP thumbnail Photo Gallery) 3.1g and earlier allows remote authenticated users to upload and execute arbitrary PHP code via a multipart/form-data POST with a .jpg filename in the fullimage parameter and the ext parameter set to .php.
📍 영향받는 시스템
Eric Gerdes Crafty Syntax Image Gallery (CSIG) 3.1g 이전 버전
⚔️ 공격 벡터
인증된 사용자가 multipart/form-data POST로 fullimage 매개변수에 .jpg 파일명, ext 매개변수에 .php 설정하여 PHP 코드 업로드
🛡️ 대응 방법
CSIG를 최신 버전으로 업데이트하거나 파일 업로드 시 MIME 타입 검증, 파일 내용 확인, 실행권한 제거 등 다층 검증 적용
🔧 검증 코드
newimage.php 파일과 3.1g 버전 정보 발견 시 즉시 업그레이드 필요하며, 최신 버전 설치 후 재확인 필요
find /var/www -name 'newimage.php' 2>/dev/null | head -1 && grep -r 'version.*3.1' /var/www 2>/dev/null | head -1