🇰🇷 한글 설명
PHPIDS 20070703 이전 버전의 보안 필터가 substr, document.location, eval 등 다양한 JavaScript 구문을 제대로 검증하지 못하여 XSS 공격에 취약합니다. 공격자가 여러 우회 기법을 활용하여 임의의 웹 스크립트를 실행할 수 있습니다.
💡 쉬운 설명
웹사이트를 보호하는 PHPIDS 보안 도구가 특정 코드 패턴을 감지하지 못하게 하는 허점이 있습니다. 이를 이용하면 악의적인 스크립트를 주입할 수 있습니다.
🇺🇸 원문 (English)
PHPIDS before 20070703 does not properly handle use of the substr method in (1) document.location.search and (2) document.referrer; (3) certain use of document.location.hash; (4) certain "window[eval" and similar expressions; (5) certain Function expressions; (6) certain '=' expressions, as demonstrated by a 'whatever="something"' sequence; and (7) certain "with" expressions, which allows remote attackers to inject arbitrary web script.
📍 영향받는 시스템
PHPIDS before version 20070703
⚔️ 공격 벡터
XSS bypass via malformed JavaScript constructs (substr, eval, Function expressions, assignment patterns, with statements)
🛡️ 대응 방법
PHPIDS를 20070703 이후 버전으로 즉시 업데이트
🔧 검증 코드
명령어 결과로 IDS.php 파일 경로가 나타나면 PHPIDS가 설치되어 있으며, 해당 파일의 버전 정보를 확인하여 20070703 이전 버전인지 판단
find /usr/share/php /var/www /opt -name 'IDS.php' 2>/dev/null | head -1