🇰🇷 한글 설명
WordPress의 Inquiry Form to Posts or Pages 플러그인 1.0 이하 버전에서 저장형 XSS 취약점이 발견되었습니다. 'Form Header' 필드에 대한 입력값 검증 및 출력 시 이스케이프 처리가 미흡하여, 관리자 권한을 가진 공격자가 악성 스크립트를 삽입할 수 있습니다.
💡 쉬운 설명
관리자 권한을 가진 사람이 플러그인 설정에 몰래 악성 코드를 심어둘 수 있는 문제입니다. 이 코드는 다른 사용자가 설정 페이지를 열거나 특정 페이지를 방문할 때 자동으로 실행되어 정보를 훔칠 수 있습니다.
🇺🇸 원문 (English)
The Inquiry Form to Posts or Pages plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'Form Header' field in versions up to and including 1.0. This is due to insufficient input sanitization when saving via update_option() and lack of output escaping when displaying the stored value. The vulnerability exists in two locations: (1) the plugin settings page at inq_form.php line 180 where the value is echoed into an HTML attribute without esc_attr(), and (2) the front-end shortcode output at inquery_form_to_posts_or_pages.php line 139 where the value is output in HTML content without esc_html(). This makes it possible for authenticated attackers with administrator-level access to inject arbitrary web scripts that will execute whenever a user accesses the plugin settings page or views a page containing the [inquiry_form] shortcode.
📍 영향받는 시스템
WordPress Inquiry Form to Posts or Pages plugin version <= 1.0
⚔️ 공격 벡터
인증된 관리자가 플러그인 설정의 'Form Header' 필드에 악성 스크립트를 입력하여 저장
🛡️ 대응 방법
플러그인을 최신 버전으로 업데이트하거나, 입력값에 대한 sanitization 및 출력 시 esc_attr()/esc_html() 적용
🔧 검증 코드
명령어 결과에 해당 플러그인이 나타나면 설치된 것이며, 버전이 1.0 이하인지 확인이 필요합니다.
wp plugin list --status=active | grep -E 'inquiry-form-to-posts-or-pages'