🇰🇷 한글 설명
Piwigo 사진 갤러리 애플리케ชัน의 17.0.0beta1 및 이전 버전에서 발생하는 취약점입니다. 인증되지 않은 사용자가 조작된 ratings[] 값을 사용하여 SQL 인젝션을 수행할 수 있으며, 이를 통해 데이터베이스 정보를 추출하거나 시간 지연 공격을 실행할 수 있습니다.
💡 쉬운 설명
로그인하지 않은 외부인이 사진 검색 기능을 악용하여 웹사이트의 데이터베이스 정보를 몰래 빼낼 수 있는 보안 결함입니다. 공격자는 이 취약점을 이용해 데이터베이스의 내용을 읽거나 시스템을 느리게 만들 수 있습니다.
🇺🇸 원문 (English)
Piwigo is a full featured open source photo gallery application for the web. In 17.0.0beta1 and earlier, when rating is enabled, an unauthenticated guest can call pwg.images.filteredSearch.create with a crafted ratings[] value and then open the returned search URL. include/ws_functions/pwg.images.php stores the unvalidated value in the search rules, and include/functions_search.inc.php integer-casts only the lower rating bound while concatenating the raw value as the SQL upper bound. This allows error-based or blind extraction of database information and database-dependent time delays through the public search flow. No fixed version is available as of this review.
📍 영향받는 시스템
Piwigo 17.0.0beta1 및 그 이전 모든 버전
⚔️ 공격 벡터
인증되지 않은 사용자가 조작된 ratings[] 매개변수를 포함한 API 호출을 통해 SQL 인젝션 수행
🛡️ 대응 방법
현재 고정된 버전이 없으므로, 보안 패치가 포함된 업데이트가 출시될 때까지 해당 기능을 비활성화하거나 방화벽을 통해 접근을 제한해야 합니다.
🔧 검증 코드
API 호출 결과에서 SQL 오류 메시지나 비정상적인 응답 지연이 발생하는지 확인하여 취약 여부를 판단합니다.
curl -s -X POST http://<target_ip>/plugin.php -d 'pwg.images.filteredSearch.create' | grep -E 'error|sql'