🇰🇷 한글 설명
WordPress의 Gravity Forms 플러그인 2.9.30 이하 버전에서 `form_ids` 매개변수를 통한 반사형 XSS 취약점이 발견되었습니다. `gform_get_config` AJAX 액션이 JSON 데이터를 HTML 형식으로 응답하면서 특수 문자를 적절히 필터링하지 않아 발생하며, 공격자는 이를 통해 악성 스크립트를 실행할 수 있습니다.
💡 쉬운 설명
웹사이트의 특정 기능을 이용해 공격자가 만든 가짜 코드를 사용자 브라우저에서 실행시키는 취약점입니다. 사용자가 악성 링크를 클릭하면 개인정보 탈취나 페이지 변조가 일어날 수 있습니다.
🇺🇸 원문 (English)
The Gravity Forms plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the `form_ids` parameter in the `gform_get_config` AJAX action in all versions up to, and including, 2.9.30. This is due to the `GFCommon::send_json()` method outputting JSON-encoded data wrapped in HTML comment delimiters using `echo` and `wp_die()`, which serves the response with a `Content-Type: text/html` header instead of `application/json`. The `wp_json_encode()` function does not HTML-encode angle brackets within JSON string values, allowing injected HTML/script tags in `form_ids` array values to be parsed and executed by the browser. The required `config_nonce` is generated with `wp_create_nonce('gform_config_ajax')` and is publicly embedded on every page that renders a Gravity Forms form, making it identical for all unauthenticated visitors within the same 12-hour nonce tick. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute if they can successfully trick a user into performing an action such as clicking on a link. This vulnerability cannot be exploited against users who are authenticated on the target system, but could be used to alter the target page.
📍 영향받는 시스템
WordPress Gravity Forms plugin version 2.9.30 and below
⚔️ 공격 벡터
공격자가 조작된 `form_ids` 파라미터가 포함된 링크를 사용자에게 클릭하도록 유도하여 스크립트 실행
🛡️ 대응 방법
Gravity Forms 플러그인을 최신 보안 패치가 적용된 버전으로 즉시 업데이트하십시오.
🔧 검증 코드
출력된 결과에서 Gravity Forms의 버전을 확인하여 2.9.30 이하인지 체크합니다.
wp plugin list --status=active | grep -i 'gravityforms'