🇰🇷 한글 설명
WordPress용 'The Contest Gallery' 플러그인에서 2차 SQL 인젝션 취약점이 발견되었습니다. 인증된 작성자 권한 이상의 공격자가 'cg_multiple_files_for_post' 파라미터의 'cgRealId' 값을 조작하여 데이터베이스에 추가 SQL 쿼리를 삽입하고 민감한 정보를 추출할 수 있습니다.
💡 쉬운 설명
게시판 플러그인의 특정 입력값이 제대로 검사되지 않아 발생하는 보안 문제입니다. 권한을 가진 사용자가 악의적인 명령어를 입력하면 데이터베이스에 저장된 중요한 정보를 몰래 빼낼 수 있습니다.
🇺🇸 원문 (English)
The Contest Gallery – Upload & Vote Photos, Media, Sell with PayPal & Stripe plugin for WordPress is vulnerable to Second-Order SQL Injection via MultipleFiles Second-Order Payload via 'cg_multiple_files_for_post' -> 'cgRealId' in all versions up to, and including, 30.0.7 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 author-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 Contest Gallery 플러그인 30.0.7 이하 모든 버전
⚔️ 공격 벡터
인증된 공격자가 'cgRealId' 파라미터에 조작된 페이로드를 삽입하여 실행하는 2차 SQL 인젝션
🛡️ 대응 방법
플러그인을 최신 버전으로 업데이트하거나 입력값 검증 및 SQL 쿼리 준비(Prepared Statement)를 적용해야 합니다.
🔧 검증 코드
출력된 플러그인 버전이 30.0.7 이하인지 확인하여 취약 여부를 판단합니다.
wp plugin list --name contest-gallery | grep -E 'version'