🇰🇷 한글 설명
PhpWebGallery 1.5.1 이전 버전에서 여러 SQL injection 취약점이 발견되었습니다. comments.php, category.php, picture.php의 다양한 매개변수를 통해 원격 공격자가 임의의 SQL 명령어를 실행할 수 있습니다. 1.7.2 이하 버전에서도 일부 벡터가 영향을 받는 것으로 나중에 보고되었습니다.
💡 쉬운 설명
웹 갤러리 프로그램의 검색과 정렬 기능에서 악의적인 명령어를 입력하면 데이터베이스를 손상시킬 수 있습니다. 공격자가 데이터를 탈취하거나 변조할 수 있는 심각한 보안 결함입니다.
🇺🇸 원문 (English)
Multiple SQL injection vulnerabilities in PhpWebGallery 1.5.1 and earlier allow remote attackers to execute arbitrary SQL commands via the (1) since, (2) sort_by, and (3) items_number parameters to comments.php, (4) the search parameter to category.php, and (5) image_id parameter to picture.php. NOTE: it was later reported that the comments.php/sort_by vector also affects 1.7.2 and earlier.
📍 영향받는 시스템
PhpWebGallery 1.5.1 이전 및 1.7.2 이하 일부 버전
⚔️ 공격 벡터
HTTP GET/POST 요청을 통해 comments.php, category.php, picture.php의 매개변수(since, sort_by, items_number, search, image_id)에 SQL 구문을 주입
🛡️ 대응 방법
PhpWebGallery를 최신 버전으로 업그레이드하고, 모든 사용자 입력에 대해 SQL 이스케이프 처리 및 prepared statements 사용
🔧 검증 코드
설치된 PhpWebGallery의 위치를 찾은 후, 버전 정보 파일(version.php 등)에서 버전을 확인하여 1.5.1 이하 또는 1.7.2 이하인지 검증
find / -name 'phpwebgallery' -o -name '*gallery*' 2>/dev/null | head -5