🇰🇷 한글 설명
Wiclear 0.11.1 이전 버전의 파일 첨부 기능(attachment.lib.php의 onAttachFiles 함수)에서 파일명 검증이 부족하여 원격 공격자가 임의의 PHP 코드를 업로드할 수 있습니다. 이를 통해 서버에서 직접 악의적인 코드를 실행할 수 있어 전체 시스템이 침해될 수 있습니다.
💡 쉬운 설명
웹사이트의 파일 업로드 기능에 보안 검사가 없어서 해커가 악성 코드가 들어간 파일을 마음대로 올릴 수 있습니다. 이 파일을 실행하면 서버 전체를 장악당합니다.
🇺🇸 원문 (English)
Unrestricted file upload vulnerability in the onAttachFiles function in the upload tool (inc/lib/attachment.lib.php) in Wiclear before 0.11.1 allows remote attackers to upload and execute arbitrary PHP code via unspecified vectors related to filename validation. NOTE: some details were obtained from third party information.
📍 영향받는 시스템
Wiclear 버전 0.11.0 이하
⚔️ 공격 벡터
첨부 파일 업로드 기능을 통해 PHP 파일을 서버에 업로드한 후 웹 브라우저에서 직접 접근하여 코드 실행
🛡️ 대응 방법
Wiclear를 0.11.1 이상으로 즉시 업그레이드하거나 파일 확장자 화이트리스트 설정 및 파일명 검증 강화
🔧 검증 코드
파일이 발견되면 해당 경로의 Wiclear 설치 위치를 확인하고, 버전 확인 후 0.11.0 이하면 취약함
find /var/www /home -name 'attachment.lib.php' 2>/dev/null | xargs grep -l 'onAttachFiles' 2>/dev/null