🇰🇷 한글 설명
OSClass 3.4.3 이전 버전의 연락처 기능(oc-includes/osclass/controller/contact.php)에서 파일 검증 없이 PHP 파일 업로드를 허용하는 취약점입니다. 공격자는 PHP 파일을 업로드한 후 웹브라우저에서 직접 접근하여 임의의 PHP 코드를 서버 권한으로 실행할 수 있습니다.
💡 쉬운 설명
OSClass 웹사이트에 위험한 PHP 파일도 아무 검사 없이 업로드할 수 있는 문제입니다. 공격자가 나쁜 코드가 담긴 파일을 올린 후 실행하면 웹서버를 완전히 장악할 수 있습니다.
🇺🇸 원문 (English)
Unrestricted file upload vulnerability in the CWebContact::doModel method in oc-includes/osclass/controller/contact.php in OSClass before 3.4.3 allows remote attackers to execute arbitrary PHP code by uploading a file with a PHP extension, then accessing it via a direct request to the file in an unspecified directory.
📍 영향받는 시스템
OSClass 버전 3.4.2 이하
⚔️ 공격 벡터
연락처 양식을 통해 PHP 파일 업로드 후 웹브라우저에서 직접 접근하여 코드 실행
🛡️ 대응 방법
OSClass를 3.4.3 이상으로 업데이트하고 업로드 디렉토리의 PHP 실행 권한 제거
🔧 검증 코드
3.4.2 이하의 버전 문자열이 출력되면 취약한 상태, 3.4.3 이상이거나 아무 출력도 없으면 패치 완료
grep -rE 'OSCLASS_VERSION.*3\.[0-3]' /var/www/html/osclass/ 2>/dev/null | head -1