🇰🇷 한글 설명
WordPress용 Flow Payment 플러그인 3.0.8 버전의 WooCommerce 결제 페이지에서 반사형 XSS 취약점이 발견되었습니다. 주문 취소 처리 시 error_message GET 파라미터가 적절한 검증 없이 wc_add_notice() 함수로 전달되어 악성 스크립트가 실행될 수 있습니다.
💡 쉬운 설명
해커가 만든 특수한 링크를 사용자가 클릭하면, 사용자의 웹 브라우저에서 몰래 악성 코드가 실행될 수 있는 보안 약점입니다. 이를 통해 사용자의 개인정보를 탈취하거나 사이트의 권한을 가로챌 위험이 있습니다.
🇺🇸 원문 (English)
The Flow Payment plugin for WordPress (flow.cl) version 3.0.8 is vulnerable to reflected cross-site scripting on the WooCommerce checkout page. When the plugin handles an order cancellation, the error_message GET parameter is passed directly to wc_add_notice() in flowpayment-fl.php (lines 57-58) without input sanitization (for example sanitize_text_field()) or output escaping (for example esc_html()) before being rendered in the checkout notice HTML. An unauthenticated attacker can craft a URL containing a JavaScript payload in the error_message parameter (for example /checkout/?add-to-cart={product-id}&cancel_order=true&error_message={payload}); when a victim with an active WooCommerce checkout session follows the link, the payload executes in the victim's browser in the origin of the WordPress site.
📍 영향받는 시스템
WordPress Flow Payment plugin version 3.0.8
⚔️ 공격 벡터
error_message 파라미터에 JavaScript 페이로드를 포함한 조작된 URL을 피해자에게 클릭하도록 유도
🛡️ 대응 방법
플러그인을 최신 버전으로 업데이트하거나, 입력값에 대해 sanitize_text_field() 및 esc_html()과 같은 보안 함수를 적용하여 코드를 수정해야 합니다.
🔧 검증 코드
출력 결과에 flow-payment 플러그인이 포함되어 있고 버전이 3.0.8인지 확인합니다.
wp plugin list --status=active | grep -i 'flow-payment'