🇰🇷 한글 설명
MiniGal b13의 classes.php 파일에 있는 imagecomments 함수가 input 매개변수에 대한 적절한 검증을 수행하지 않아, 공격자가 thumbs/ 디렉토리에 임의의 PHP 코드를 주입할 수 있습니다. 이를 통해 원격에서 웹 서버 권한으로 악의적인 코드를 실행할 수 있습니다.
💡 쉬운 설명
MiniGal 사진 갤러리 프로그램이 사용자 입력을 제대로 검증하지 않아 악의적인 코드를 삽입할 수 있습니다. 공격자는 이를 악용해 웹 서버 전체를 장악할 수 있습니다.
🇺🇸 원문 (English)
The imagecomments function in classes.php in MiniGal b13 allows remote attackers to inject arbitrary PHP code into a file in the thumbs/ directory via the input parameter. NOTE: some of these details are obtained from third party information.
📍 영향받는 시스템
MiniGal b13 및 그 이전 버전
⚔️ 공격 벡터
imagecomments 함수의 input 파라미터에 PHP 코드를 주입하여 thumbs/ 디렉토리에 악성 파일 생성
🛡️ 대응 방법
MiniGal을 최신 버전으로 업그레이드하고, 모든 사용자 입력에 대해 엄격한 검증 및 필터링 적용
🔧 검증 코드
classes.php 파일 발견 시 imagecomments 함수의 input 매개변수 검증 로직을 코드 검토로 확인하고 MiniGal 버전을 확인합니다.
find /var/www -name 'classes.php' -path '*minigal*' 2>/dev/null | xargs grep -l 'imagecomments' 2>/dev/null | head -1