🇰🇷 한글 설명
Sphider 1.2.x의 index.php에서 include_dir 매개변수를 통해 원격 파일 포함(RFI) 취약점이 존재합니다. 원격 공격자가 이를 악용하여 임의의 PHP 코드를 실행할 수 있습니다.
💡 쉬운 설명
Sphider 검색 엔진의 특정 버전에서 외부 파일을 안전하지 않게 불러와 악의적인 코드가 실행될 수 있습니다. 공격자가 이를 이용해 웹서버에서 임의의 명령을 실행할 수 있습니다.
🇺🇸 원문 (English)
PHP remote file inclusion vulnerability in index.php in Sphider 1.2.x allows remote attackers to execute arbitrary PHP code via a URL in the include_dir parameter. NOTE: a third party disputes this vulnerability, stating that "the application is not vulnerable to this issue.
📍 영향받는 시스템
Sphider 1.2.x 버전
⚔️ 공격 벡터
include_dir 파라미터에 원격 파일 URL을 전달하여 RFI(Remote File Inclusion) 공격 수행
🛡️ 대응 방법
Sphider를 최신 버전으로 업그레이드하거나 include_dir 파라미터의 입력값을 화이트리스트로 검증
🔧 검증 코드
include_dir이 사용자 입력을 검증 없이 include/require 구문에 직접 사용하면 취약, 필터링 로직이 없으면 RFI 공격 가능
grep -n 'include_dir' /path/to/sphider/index.php && grep -n 'include\|require' /path/to/sphider/index.php | grep 'include_dir'