🇰🇷 한글 설명
WordPress용 GSheetConnector – CF7 Google Sheets Connector 플러그인의 's' 파라미터에서 일반적인 SQL 인젝션 취약점이 발견되었습니다. 관리자 권한을 가진 인증된 공격자가 데이터베이스에 추가 SQL 쿼리를 삽입하여 민감한 정보를 추출할 수 있습니다.
💡 쉬운 설명
관리자 권한을 가진 사용자가 입력창에 특수 명령어를 넣어 데이터베이스를 조작할 수 있는 보안 약점입니다. 이를 통해 데이터베이스에 저장된 중요한 정보가 유출될 위험이 있습니다.
🇺🇸 원문 (English)
The GSheetConnector – CF7 Google Sheets Connector with Real-Time Sync plugin for WordPress is vulnerable to generic SQL Injection via the 's' parameter in all versions up to, and including, 5.2.1 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 administrator-level access and above, to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database. wp_unslash() strips magic-quote protection and sanitize_text_field() does not escape SQL metacharacters, leaving single quotes and other SQL metacharacters intact before the value is interpolated into the query.
📍 영향받는 시스템
GSheetConnector – CF7 Google Sheets Connector 플러그인 5.2.1 이하 모든 버전
⚔️ 공격 벡터
인증된 관리자 권한을 이용해 's' 파라미터에 조작된 SQL 쿼리 삽입
🛡️ 대응 방법
플러그인을 최신 버전으로 업데이트하거나 SQL 메타문자를 적절히 이스케이프 처리하도록 코드를 수정해야 합니다.
🔧 검증 코드
출력된 결과의 버전이 5.2.1 이하인지 확인하여 취약 여부를 판단합니다.
wp plugin list --name gsheetconnector --format=csv | grep -E 'gsheetconnector'