🇰🇷 한글 설명
Correct Prices 플러그인의 correct_prices_page() 함수에서 $_SERVER['PHP_SELF']를 입력 검증 없이 form의 action 속성에 출력하여 Reflected XSS 취약점 발생. 미인증 공격자가 특수하게 조작된 URL 링크로 사용자를 유도하면 임의의 웹 스크립트를 주입하여 실행 가능.
💡 쉬운 설명
WordPress의 Correct Prices 플러그인이 URL 일부를 검증하지 않고 웹페이지에 표시하는 결함입니다. 공격자가 악의적인 링크를 클릭하도록 유도하면 악성 스크립트가 실행됩니다.
🇺🇸 원문 (English)
The Correct Prices plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the $_SERVER['PHP_SELF'] variable in versions up to and including 1.0. This is due to the correct_prices_page() function echoing $_SERVER['PHP_SELF'] into a form's action attribute without any input sanitization or output escaping (such as esc_url() or esc_attr()). Because PHP_SELF reflects attacker-controlled path-info appended to the script URL, an attacker can break out of the attribute and inject arbitrary markup. 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 specially crafted link.
📍 영향받는 시스템
Correct Prices plugin for WordPress version 1.0 and earlier
⚔️ 공격 벡터
Reflected XSS via specially crafted URL with malicious PHP_SELF path-info appended to plugin page URL
🛡️ 대응 방법
Update Correct Prices plugin to version higher than 1.0 or apply esc_url() and esc_attr() escaping to $_SERVER['PHP_SELF'] in correct_prices_page() function
🔧 검증 코드
If Correct Prices plugin version is 1.0 or lower, system is vulnerable; if version higher than 1.0 or plugin not installed, no vulnerability
wp plugin list --field=name,version 2>/dev/null | grep -i 'correct.*prices'