🇰🇷 한글 설명
WordPress용 Photo Gallery by 10Web 플러그인의 'compact_album_order_by' 쇼트코드 파라미터에서 시간 기반 SQL 인젝션 취약점이 발견되었습니다. 기여(Contributor) 권한 이상의 인증된 공격자가 악성 페이로드를 저장하여 데이터베이스의 민감한 정보를 추출할 수 있습니다.
💡 쉬운 설명
웹사이트 관리 권한이 낮은 사용자가 데이터베이스에 몰래 명령어를 심어 중요한 정보를 빼낼 수 있는 보안 약점입니다. 공격자가 특정 명령을 저장해두면 시스템이 이를 실행하면서 데이터가 유출될 수 있습니다.
🇺🇸 원문 (English)
The Photo Gallery by 10Web – Mobile-Friendly Image Gallery plugin for WordPress is vulnerable to time-based SQL Injection via 'compact_album_order_by' Shortcode Parameter in all versions up to, and including, 1.8.41 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for authenticated attackers, with contributor-level access and above, to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database. The malicious payload is stored via the 'shortcode_bwg' AJAX handler — accessible to Contributor-level users and exploitable without a valid nonce by omitting the 'page' parameter — and is subsequently triggered by the unauthenticated 'bwg_frontend_data' AJAX handler, meaning successful exploitation requires only that an attacker has Contributor-level access to save the shortcode.
📍 영향받는 시스템
Photo Gallery by 10Web (WordPress plugin) version 1.8.41 및 그 이하 모든 버전
⚔️ 공격 벡터
기여자 권한을 가진 사용자가 AJAX 핸들러를 통해 악성 쇼트코드를 저장한 후, 프론트엔드 AJAX 호출을 통해 SQL 인젝션을 실행
🛡️ 대응 방법
해당 플러그인을 최신 보안 패치가 적용된 버전으로 즉시 업데이트하십시오.
🔧 검증 코드
출력된 플러그인 이름과 버전이 1.8.41 이하인지 확인하여 취약 여부를 판단합니다.
wp plugin list --status=active | grep -i 'photo-gallery' && wp plugin list --all | grep -E 'photo-gallery' | awk '{print $2 " " $3}'