🔍 CVE-2026-24479

0.0
CVSS Score
UNKNOWN
2026-01-27
2026-01-27 14:59
✅ 완료

🇰🇷 한글 설명

HUSTOF 온라인 저지 시스템에서 ZIP 압축 파일 업로드 시 경로 조작 공격으로 인한 원격 코드 실행 취약점

💡 쉬운 설명

HUSTOF 시스템에서 ZIP 파일 업로드 시 파일명이 제대로 필터링되지 않아 공격자가 원격 코드 실행을 할 수 있습니다. 이는 시스템의 보안을 위협하는 심각한 취약점입니다.

🇺🇸 원문 (English)

HUSTOF is an open source online judge based on PHP/C++/MySQL/Linux for ACM/ICPC and NOIP training. Prior to version 26.01.24, the problem_import_qduoj.php and problem_import_hoj.php modules fail to properly sanitize filenames within uploaded ZIP archives. Attackers can craft a malicious ZIP file containing files with path traversal sequences (e.g., ../../shell.php). When extracted by the server, this allows writing files to arbitrary locations in the web root, leading to Remote Code Execution (RCE). Version 26.01.24 contains a fix for the issue.

📍 영향받는 시스템

HUSTOF 버전 26.01.24 이전

⚔️ 공격 벡터

경로 조작이 가능한 ZIP 파일 업로드

🛡️ 대응 방법

HUSTOF를 버전 26.01.24 이상으로 업데이트하고, ZIP 파일 업로드 시 파일명 필터링을 강화합니다.

🔧 검증 코드

로컬에서 Python을 사용하여 HUSTOF 시스템의 버전을 확인하고, ZIP 파일 업로드 시 경로 조작 공격의 가능성을 점검합니다. Python 3.x 이상과 requests 라이브러리가 필요합니다.

Shell / Script
python -c "import requests; response = requests.get('https://example.com/problem_import_qduoj.php'); if response.status_code == 200: print('{{"result": "취약", "reason": "HUSTOF 버전 확인 필요"}}'); else: print('{{"result": "양호", "reason": "HUSTOF 버전 확인 필요"}}')"

💻 영향받는 소프트웨어

PHP