🇰🇷 한글 설명
phpopenchat 3.0.2 이전 버전의 contrib/yabbse/poc.php에 있는 원격 파일 포함(RFI) 취약점으로, sourcedir 파라미터를 통해 원격 공격자가 임의의 PHP 코드를 실행할 수 있습니다. PHP의 unset() 함수를 우회하여 실제 공격이 가능합니다.
💡 쉬운 설명
웹사이트가 인터넷에서 파일을 불러올 때 악의적인 코드를 주입당할 수 있는 결함이 있습니다. 공격자는 이를 이용해 웹서버를 완전히 장악할 수 있습니다.
🇺🇸 원문 (English)
PHP remote file inclusion vulnerability in contrib/yabbse/poc.php in phpopenchat before 3.0.2 allows remote attackers to execute arbitrary PHP code via the sourcedir parameter. NOTE: this issue was disputed by a third-party researcher who stated that the _REQUEST parameters were dynamically unset at the beginning of the file. Another researcher noted, and CVE agrees, that the unset PHP function can be bypassed (CVE-2006-3017). If this issue is due to a vulnerability in PHP, then it should be excluded from CVE
📍 영향받는 시스템
phpopenchat 버전 3.0.2 이전 (contrib/yabbse/poc.php 파일)
⚔️ 공격 벡터
sourcedir 파라미터에 원격 악성 PHP 파일 URL을 입력하여 코드 실행
🛡️ 대응 방법
phpopenchat을 버전 3.0.2 이상으로 업그레이드하거나 해당 파일에 대한 웹 접근 제한
🔧 검증 코드
취약한 sourcedir 파라미터가 포함된 poc.php 파일이 존재하면 취약, 파일 없거나 내용 없으면 안전
grep -i 'sourcedir' /var/www/html/*/contrib/yabbse/poc.php 2>/dev/null | head -1