🇰🇷 한글 설명
Evoluted PHP Directory Listing Script 4.0.5 이하 버전의 index.php에서 디렉토리 파라미터가 HTML 인코딩 없이 반영되어 반사형 XSS 취약점이 존재합니다. 공격자는 디렉토리 파라미터에 악성 스크립트를 주입하여 피해자의 브라우저에서 임의의 JavaScript 코드를 실행할 수 있습니다.
💡 쉬운 설명
웹사이트의 주소창이나 검색창에 악성 코드를 넣으면 그 코드가 실행되어 개인 정보가 유출될 수 있는 문제입니다. 이는 웹사이트 개발자가 입력값을 제대로 검사하지 않아 발생한 보안 허점입니다.
🇺🇸 원문 (English)
Evoluted PHP Directory Listing Script through 4.0.5 contains a reflected cross-site scripting vulnerability in index.php where the dir parameter value is reflected without HTML encoding inside the HTML title element and inside anchor href attributes in the breadcrumb navigation. Attackers can inject arbitrary JavaScript via crafted dir parameter values by breaking out of the title context or injecting event handlers into breadcrumb anchor attributes to execute malicious scripts in a victim's browser.
📍 영향받는 시스템
Evoluted PHP Directory Listing Script through 4.0.5
⚔️ 공격 벡터
index.php의 dir 파라미터에 악성 JavaScript 코드를 포함하여 URL을 조작하고 피해자가 접속하도록 유도
🛡️ 대응 방법
소프트웨어를 최신 버전으로 업그레이드하거나, 입력값에 대한 HTML 인코딩 및 컨텍스트별 출력 인코딩을 적용하여 XSS를 방지
🔧 검증 코드
명령어 실행 시 dir 파라미터가 HTML 인코딩 함수 없이 그대로 출력되는 코드가 발견되면 취약점이 존재할 가능성이 높습니다.
grep -r 'dir' index.php | grep -v 'htmlspecialchars' | grep -v 'htmlentities'