🇰🇷 한글 설명
WebPageTest 버전 2.6 이하의 resultimage.php 스크립트에서 사용자 입력을 검증하지 않아 발생하는 임의 파일 업로드 취약점입니다. 공격자는 공개 접근 가능한 디렉토리에 PHP 코드를 업로드하여 웹 서버 권한으로 원격 코드 실행이 가능합니다.
💡 쉬운 설명
파일 업로드 기능이 모든 파일을 무조건 받아들이기 때문에 악성 프로그램을 업로드할 수 있습니다. 업로드된 코드가 웹 서버에서 자동으로 실행되어 전체 시스템이 장악됩니다.
🇺🇸 원문 (English)
WebPageTest version 2.6 and earlier contains an arbitrary file upload vulnerability in the resultimage.php script. The application fails to validate or sanitize user-supplied input before saving uploaded files to a publicly accessible directory. This flaw allows remote attackers to upload and execute arbitrary PHP code, resulting in full remote code execution under the web server context.
📍 영향받는 시스템
WebPageTest 버전 2.6 이하
⚔️ 공격 벡터
resultimage.php 엔드포인트에 PHP 파일을 업로드하여 공개 디렉토리에 저장 후 직접 실행
🛡️ 대응 방법
WebPageTest를 최신 버전으로 업그레이드하거나 파일 업로드 검증 로직을 추가로 패치 적용
🔧 검증 코드
resultimage.php 파일의 위치와 수정 날짜를 확인하여 취약한 버전임을 판단; 파일이 없으면 미설치 또는 이미 제거된 상태
find / -name 'resultimage.php' -type f 2>/dev/null | head -1 | xargs ls -l