🇰🇷 한글 설명
Chrome PHP 라이브러리의 1.14.0 이전 버전에서 CSS 선택자 표현식이 제대로 인코딩되지 않아 XSS 취약점이 발생합니다. 악의적인 CSS 선택자를 통해 스크립트 코드가 실행될 수 있습니다. 버전 1.14.0 이상으로 업그레이드하거나 선택자에 수동 인코딩을 적용하여 해결할 수 있습니다.
💡 쉬운 설명
Chrome을 제어하는 PHP 라이브러리에서 사용자 입력이 검증되지 않아 악의적인 코드가 실행될 수 있습니다. 라이브러리를 1.14.0 이상으로 업데이트하면 해결됩니다.
🇺🇸 원문 (English)
Chrome PHP allows users to start playing with chrome/chromium in headless mode from PHP. Prior to version 1.14.0, CSS Selector expressions are not properly encoded, which can lead to XSS (cross-site scripting) vulnerabilities. This is patched in v1.14.0. As a workaround, users can apply encoding manually to their selectors if they are unable to upgrade.
📍 영향받는 시스템
Chrome PHP library < v1.14.0
⚔️ 공격 벡터
Improper CSS selector encoding enabling malicious script injection through unvalidated selector expressions
🛡️ 대응 방법
Upgrade Chrome PHP to version 1.14.0 or later; alternatively apply manual encoding to CSS selectors
🔧 검증 코드
If version >= 1.14.0 is displayed, the system is patched; if version < 1.14.0 or no output, the system is vulnerable and requires upgrade
grep -A2 '"chrome-php/chrome"' composer.lock 2>/dev/null | grep '"version"'