🔍 CVE-2026-44257

0.0
CVSS Score
UNKNOWN
2026-05-12
2026-05-18 16:16
✅ 완료

🇰🇷 한글 설명

efw4.X의 FileManager.unZip이 경로 검증 없이 ZIP 파일을 추출하여 상위 디렉토리 이동 공격(path traversal)에 취약합니다. 멀티파트 업로드 서블릿과 결합하면 공격자가 JSP 웹셸을 업로드하고 Tomcat 권한으로 임의 명령을 실행할 수 있습니다. 4.08.010 버전에서 수정되었습니다.

💡 쉬운 설명

efw 웹 프레임워크가 압축 파일 해제 시 저장 위치를 제대로 확인하지 않아, 공격자가 악성 파일을 의도한 디렉토리 밖 어디든 저장할 수 있습니다. 이를 이용해 웹셸을 업로드하고 서버 권한으로 임의 명령을 실행 가능합니다.

🇺🇸 원문 (English)

efw4.X is an Enterprise Framework for Web. Prior to 4.08.010, efw.file.FileManager.unZip writes zip entries to disk using new File(baseDir, zipEntry.getName()) with no canonical-path check. An entry name such as ../../../pwned.jsp escapes the intended extraction directory and lands anywhere the Tomcat process can write — including the servlet context root. Combined with the framework's multipart /uploadServlet and an event that calls file.saveUploadFiles + FileManager.unZip, a remote attacker with no credentials drops a JSP webshell and executes arbitrary commands as the Tomcat user. This vulnerability is fixed in 4.08.010.

📍 영향받는 시스템

efw (Enterprise Framework for Web) 버전 4.X ~ 4.08.009

⚔️ 공격 벡터

ZIP 파일 이름에 '../' 같은 경로 탈출 문자 포함 후 멀티파트 업로드 서블릿으로 전송하여 서블릿 컨텍스트 루트에 JSP 파일 저장

🛡️ 대응 방법

efw를 4.08.010 이상으로 업그레이드하거나 ZIP 추출 경로를 검증하는 패치 적용

🔧 검증 코드

출력된 버전이 4.08.010 미만이면 취약, 4.08.010 이상이면 안전

Shell / Script
find /opt/tomcat -name 'efw*.jar' 2>/dev/null | xargs basename | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1

💻 영향받는 소프트웨어

Apache Tomcat