🇰🇷 한글 설명
WordPress용 GTM4WP 플러그인의 1.22.3 이하 버전에서 WooCommerce 결제 필드를 통한 저장형 XSS 취약점이 발견되었습니다. 입력값 검증 및 출력 이스케이프 처리가 미흡하여, 공격자가 악성 스크립트를 삽입하고 사용자가 해당 페이지에 접속할 때 실행될 수 있습니다.
💡 쉬운 설명
쇼핑몰 결제창의 이름 칸 등에 악성 코드를 몰래 적어두면, 다른 사용자가 그 페이지를 볼 때 해킹 코드가 자동으로 실행되는 문제입니다. 이를 통해 사용자의 정보를 훔치거나 사이트를 조작할 수 있습니다.
🇺🇸 원문 (English)
The GTM4WP – A Google Tag Manager (GTM) plugin for WordPress plugin for WordPress is vulnerable to Stored Cross-Site Scripting via WooCommerce Billing Fields in all versions up to, and including, 1.22.3 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This requires the GTM4WP WooCommerce order data integration option (GTM4WP_OPTION_INTEGRATE_WCORDERDATA) to be enabled, and is exploited by placing a guest checkout order with a JavaScript payload in a WooCommerce billing field such as the billing first name.
📍 영향받는 시스템
GTM4WP plugin for WordPress version 1.22.3 and below (with WooCommerce order data integration enabled)
⚔️ 공격 벡터
비인증 공격자가 게스트 결제 시 WooCommerce 결제 필드(예: 이름)에 JavaScript 페이로드를 삽입하여 공격
🛡️ 대응 방법
GTM4WP 플러그인을 최신 버전으로 업데이트하거나, WooCommerce 주문 데이터 통합 옵션을 비활성화하십시오.
🔧 검증 코드
출력된 버전 번호가 1.22.3 이하인지 확인하여 취약 여부를 판단합니다.
wp plugin list --status=active | grep -i 'gtm4wp' && wp plugin list --all --format=json | jq '.[] | select(.name=="gtm4wp") | .version'