🇰🇷 한글 설명
WordPress용 WP Visitor Statistics (Real Time Traffic) 플러그인의 'fullRef' 매개변수에서 발생하는 일반적인 SQL 인젝션 취약점입니다. 인증되지 않은 공격자가 조작된 리퍼러 URL을 통해 데이터베이스에 악성 쿼리를 삽입할 수 있으며, 관리자가 트래픽 소스 대시보드를 조회할 때 공격이 실행되는 2차 SQL 인젝션 형태를 띱니다.
💡 쉬운 설명
해커가 가짜 웹사이트 주소를 이용해 데이터베이스에 몰래 명령어를 심어둘 수 있는 보안 약점입니다. 관리자가 통계 화면을 확인하는 순간, 심어둔 명령어가 실행되어 중요한 정보가 유출될 수 있습니다.
🇺🇸 원문 (English)
The WP Visitor Statistics (Real Time Traffic) plugin for WordPress is vulnerable to generic SQL Injection via the 'fullRef' parameter in all versions up to, and including, 8.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 unauthenticated attackers to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database. This is a second-order SQL injection: an unauthenticated attacker submits a crafted referrer URL to the wmcTrack tracking endpoint, which persists the raw unescaped value into the wp_logVisit table, and the injection is triggered when an administrator next views the Traffic Sources dashboard.
📍 영향받는 시스템
WP Visitor Statistics (Real Time Traffic) plugin version 8.7 및 그 이하 모든 버전
⚔️ 공격 벡터
조작된 리퍼러 URL을 통한 2차 SQL 인젝션 (Second-order SQL Injection)
🛡️ 대응 방법
플러그인을 최신 버전으로 업데이트하거나, 입력값에 대한 이스케이프 처리 및 SQL 쿼리 준비(Prepared Statement)를 적용해야 합니다.
🔧 검증 코드
출력된 플러그인의 버전이 8.7 이하인지 확인하여 취약 여부를 판단합니다.
wp-cli plugin list --allow-root | grep -E 'wp-visitor-statistics'