🇰🇷 한글 설명
WSN Forum 1.3.4 이전 버전에서 pathtoconfig 매개변수의 경로를 조작하여 PHP 코드가 포함된 아바타 이미지를 지정하고, prestart.php 실행 시 이 파일의 PHP 코드가 실행되는 취약점입니다. 원격 파일 포함 공격으로 분류되지만, 근본 원인은 검증되지 않은 파일 포함입니다.
💡 쉬운 설명
WSN Forum 게시판에서 특정 설정 파일 경로를 임의로 변경할 수 있는 보안 결함이 있습니다. 공격자가 이를 악용하여 서버에서 악의적인 PHP 코드를 실행시킬 수 있습니다.
🇺🇸 원문 (English)
WSN Forum 1.3.4 and earlier allows remote attackers to execute arbitrary PHP code via a modified pathname in the pathtoconfig parameter that points to an avatar image that contains PHP code, which is then accessed from prestart.php. NOTE: this issue has been labeled remote file inclusion, but that label only applies to the attack, not the underlying vulnerability.
📍 영향받는 시스템
WSN Forum 버전 1.3.4 이전 모든 버전
⚔️ 공격 벡터
pathtoconfig 매개변수에 PHP 코드가 포함된 아바타 이미지 경로 지정 후 prestart.php 호출로 코드 실행
🛡️ 대응 방법
WSN Forum을 1.3.5 이상으로 즉시 업그레이드하고, 모든 사용자 입력에 대한 경로 검증 메커니즘 구현
🔧 검증 코드
출력된 버전 문자열에서 버전 번호를 확인하여, 1.3.5 이상이면 안전, 1.3.4 이하면 취약한 상태입니다.
find /var/www/html -name 'index.php' -path '*wsn*' -exec grep -o 'WSN Forum.*' {} \; 2>/dev/null | head -1